@m1212e/rumble 0.23.21 → 0.23.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { t as lazy } from "./lazy-C7IyM4M4.mjs";
2
2
  import { t as generateFromSchema } from "./generate-0QFVc3Sg.mjs";
3
+ import { createRequire } from "node:module";
3
4
  import { GraphQLError, GraphQLScalarType, GraphQLSchema, Kind, execute as defaultExecute, getOperationAST, print, subscribe as defaultSubscribe } from "graphql";
4
5
  import { EnvelopArmorPlugin } from "@escape.tech/graphql-armor";
5
6
  import { useDisableIntrospection } from "@graphql-yoga/plugin-disable-introspection";
@@ -21,7 +22,6 @@ import TracingPlugin, { isRootField, wrapResolver } from "@pothos/plugin-tracing
21
22
  import ValidationPlugin from "@pothos/plugin-validation";
22
23
  import { BigIntResolver, ByteResolver, DateResolver, DateTimeISOResolver, EmailAddressResolver, JSONResolver, LocaleResolver } from "graphql-scalars";
23
24
  import DataLoader from "dataloader";
24
- import { AddressValidationError, CountryMissingError, InvalidStateError, InvalidZipError, MissingFieldError, isValidCountryCode, validateAddress } from "lib-address";
25
25
  import { z } from "zod";
26
26
  import { parsePhoneNumberFromString } from "libphonenumber-js";
27
27
  //#region lib/types/rumbleError.ts
@@ -186,7 +186,7 @@ function mapNullFieldsToUndefined(obj) {
186
186
  }
187
187
  //#endregion
188
188
  //#region package.json
189
- var version = "0.23.21";
189
+ var version = "0.23.23";
190
190
  //#endregion
191
191
  //#region lib/helpers/errorLogging.ts
192
192
  function hasMessage(error) {
@@ -2605,12 +2605,16 @@ var RuntimeFiltersPlugin = class extends BasePlugin {
2605
2605
  let registered = false;
2606
2606
  function registerRuntimeFiltersPlugin() {
2607
2607
  if (!registered) {
2608
+ SchemaBuilder.allowPluginReRegistration = true;
2608
2609
  SchemaBuilder.registerPlugin(pluginName, RuntimeFiltersPlugin);
2609
2610
  registered = true;
2610
2611
  }
2611
2612
  }
2612
2613
  //#endregion
2613
2614
  //#region lib/scalars/addressValidation.ts
2615
+ const libAddress = createRequire(import.meta.url)("lib-address");
2616
+ const { AddressValidationError, CountryMissingError, InvalidStateError, InvalidZipError, isValidCountryCode, MissingFieldError } = libAddress;
2617
+ const validateAddress = libAddress.validateAddress;
2614
2618
  const FIELD_PATH_MAP = {
2615
2619
  addressLine1: "streetAddress",
2616
2620
  addressLine2: "streetAddress",