Skip to content

Commit 0e20a07

Browse files
committed
chore: fix typo
1 parent 0e65361 commit 0e20a07

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/graphile-utils/src/makePgSmartTagsPlugin.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function compileRule<T extends PgEntity>(
4949
const { kind, match: incomingMatch, ...rest } = rule;
5050
if (!Object.prototype.hasOwnProperty.call(meaningByKind, kind)) {
5151
throw new Error(
52-
`makePgPgSmartTagsPlugin rule has invalid kind '${kind}'; valid kinds are: ${validKinds}`
52+
`makePgSmartTagsPlugin rule has invalid kind '${kind}'; valid kinds are: ${validKinds}`
5353
);
5454
}
5555

@@ -66,7 +66,7 @@ function compileRule<T extends PgEntity>(
6666
return entityIsIdentifiedBy(obj, incomingMatch);
6767
} else {
6868
throw new Error(
69-
"makePgPgSmartTagsPlugin rule 'match' is neither a string nor a function"
69+
"makePgSmartTagsPlugin rule 'match' is neither a string nor a function"
7070
);
7171
}
7272
};
@@ -96,7 +96,7 @@ export type SubscribeToPgSmartTagUpdatesCallback = (
9696
cb: UpdatePgSmartTagRulesCallback | null
9797
) => void | Promise<void>;
9898

99-
export function makePgPgSmartTagsPlugin(
99+
export function makePgSmartTagsPlugin(
100100
ruleOrRules: PgSmartTagRule | PgSmartTagRule[] | null,
101101
subscribeToUpdatesCallback?: SubscribeToPgSmartTagUpdatesCallback | null
102102
): Plugin {
@@ -141,7 +141,7 @@ export function makePgPgSmartTagsPlugin(
141141
// Let people know if their rules don't match; it's probably a mistake.
142142
if (hits === 0) {
143143
console.warn(
144-
`WARNING: there were no matches for makePgPgSmartTagsPlugin rule ${idx} - ${inspect(
144+
`WARNING: there were no matches for makePgSmartTagsPlugin rule ${idx} - ${inspect(
145145
rawRules[idx]
146146
)}`
147147
);
@@ -301,5 +301,5 @@ export function makeJSONPgSmartTagsPlugin(
301301
}
302302
: null;
303303

304-
return makePgPgSmartTagsPlugin(rules, subscribeToUpdatesCallback);
304+
return makePgSmartTagsPlugin(rules, subscribeToUpdatesCallback);
305305
}

0 commit comments

Comments
 (0)