From 0e20a070123d785c0fd62cd9183affdb7fc606e8 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Tue, 12 Nov 2019 15:42:45 +0000 Subject: [PATCH] chore: fix typo --- packages/graphile-utils/src/makePgSmartTagsPlugin.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/graphile-utils/src/makePgSmartTagsPlugin.ts b/packages/graphile-utils/src/makePgSmartTagsPlugin.ts index 9e7d30c99..0005caacf 100644 --- a/packages/graphile-utils/src/makePgSmartTagsPlugin.ts +++ b/packages/graphile-utils/src/makePgSmartTagsPlugin.ts @@ -49,7 +49,7 @@ function compileRule( const { kind, match: incomingMatch, ...rest } = rule; if (!Object.prototype.hasOwnProperty.call(meaningByKind, kind)) { throw new Error( - `makePgPgSmartTagsPlugin rule has invalid kind '${kind}'; valid kinds are: ${validKinds}` + `makePgSmartTagsPlugin rule has invalid kind '${kind}'; valid kinds are: ${validKinds}` ); } @@ -66,7 +66,7 @@ function compileRule( return entityIsIdentifiedBy(obj, incomingMatch); } else { throw new Error( - "makePgPgSmartTagsPlugin rule 'match' is neither a string nor a function" + "makePgSmartTagsPlugin rule 'match' is neither a string nor a function" ); } }; @@ -96,7 +96,7 @@ export type SubscribeToPgSmartTagUpdatesCallback = ( cb: UpdatePgSmartTagRulesCallback | null ) => void | Promise; -export function makePgPgSmartTagsPlugin( +export function makePgSmartTagsPlugin( ruleOrRules: PgSmartTagRule | PgSmartTagRule[] | null, subscribeToUpdatesCallback?: SubscribeToPgSmartTagUpdatesCallback | null ): Plugin { @@ -141,7 +141,7 @@ export function makePgPgSmartTagsPlugin( // Let people know if their rules don't match; it's probably a mistake. if (hits === 0) { console.warn( - `WARNING: there were no matches for makePgPgSmartTagsPlugin rule ${idx} - ${inspect( + `WARNING: there were no matches for makePgSmartTagsPlugin rule ${idx} - ${inspect( rawRules[idx] )}` ); @@ -301,5 +301,5 @@ export function makeJSONPgSmartTagsPlugin( } : null; - return makePgPgSmartTagsPlugin(rules, subscribeToUpdatesCallback); + return makePgSmartTagsPlugin(rules, subscribeToUpdatesCallback); }