Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Nov 12, 2019
1 parent 0e65361 commit 0e20a07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/graphile-utils/src/makePgSmartTagsPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function compileRule<T extends PgEntity>(
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}`
);
}

Expand All @@ -66,7 +66,7 @@ function compileRule<T extends PgEntity>(
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"
);
}
};
Expand Down Expand Up @@ -96,7 +96,7 @@ export type SubscribeToPgSmartTagUpdatesCallback = (
cb: UpdatePgSmartTagRulesCallback | null
) => void | Promise<void>;

export function makePgPgSmartTagsPlugin(
export function makePgSmartTagsPlugin(
ruleOrRules: PgSmartTagRule | PgSmartTagRule[] | null,
subscribeToUpdatesCallback?: SubscribeToPgSmartTagUpdatesCallback | null
): Plugin {
Expand Down Expand Up @@ -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]
)}`
);
Expand Down Expand Up @@ -301,5 +301,5 @@ export function makeJSONPgSmartTagsPlugin(
}
: null;

return makePgPgSmartTagsPlugin(rules, subscribeToUpdatesCallback);
return makePgSmartTagsPlugin(rules, subscribeToUpdatesCallback);
}

0 comments on commit 0e20a07

Please sign in to comment.