@m1212e/rumble 0.23.22 → 0.23.24
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/client.cjs +1 -2
- package/out/client.cjs.map +1 -1
- package/out/client.mjs +1 -2
- package/out/client.mjs.map +1 -1
- package/out/index.cjs +12 -9
- package/out/index.cjs.map +1 -1
- package/out/index.mjs +5 -2
- package/out/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|
|
189
|
+
var version = "0.23.24";
|
|
190
190
|
//#endregion
|
|
191
191
|
//#region lib/helpers/errorLogging.ts
|
|
192
192
|
function hasMessage(error) {
|
|
@@ -2612,6 +2612,9 @@ function registerRuntimeFiltersPlugin() {
|
|
|
2612
2612
|
}
|
|
2613
2613
|
//#endregion
|
|
2614
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;
|
|
2615
2618
|
const FIELD_PATH_MAP = {
|
|
2616
2619
|
addressLine1: "streetAddress",
|
|
2617
2620
|
addressLine2: "streetAddress",
|