adaptic-backend 1.0.294 → 1.0.295
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/apollo-client.server.cjs
CHANGED
@@ -4,18 +4,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.onError = exports.setContext = exports.split = exports.ApolloError = exports.gql = exports.HttpLink = exports.InMemoryCache = exports.ApolloClient = void 0;
|
5
5
|
// Use require() to load the runtime implementations.
|
6
6
|
const pkg = require("@apollo/client");
|
7
|
-
|
7
|
+
// Use a fallback check: try the named export first, then pkg.default if needed.
|
8
|
+
const ApolloClient = pkg.ApolloClient || (pkg.default && pkg.default.ApolloClient);
|
8
9
|
exports.ApolloClient = ApolloClient;
|
10
|
+
const InMemoryCache = pkg.InMemoryCache || (pkg.default && pkg.default.InMemoryCache);
|
9
11
|
exports.InMemoryCache = InMemoryCache;
|
12
|
+
const HttpLink = pkg.HttpLink || (pkg.default && pkg.default.HttpLink);
|
10
13
|
exports.HttpLink = HttpLink;
|
14
|
+
const gql = pkg.gql || (pkg.default && pkg.default.gql);
|
11
15
|
exports.gql = gql;
|
16
|
+
const ApolloError = pkg.ApolloError || (pkg.default && pkg.default.ApolloError);
|
12
17
|
exports.ApolloError = ApolloError;
|
18
|
+
const split = pkg.split || (pkg.default && pkg.default.split);
|
13
19
|
exports.split = split;
|
14
20
|
// Some sub‑modules require a different path.
|
15
21
|
const contextPkg = require("@apollo/client/link/context/context.cjs");
|
16
|
-
const
|
22
|
+
const setContext = contextPkg.setContext || (contextPkg.default && contextPkg.default.setContext);
|
17
23
|
exports.setContext = setContext;
|
18
24
|
const errorPkg = require("@apollo/client/link/error/error.cjs");
|
19
|
-
const
|
25
|
+
const onError = errorPkg.onError || (errorPkg.default && errorPkg.default.onError);
|
20
26
|
exports.onError = onError;
|
21
27
|
//# sourceMappingURL=apollo-client.server.js.map
|
@@ -1,5 +1,10 @@
|
|
1
1
|
import type { ApolloClient as ApolloClientType, InMemoryCache as InMemoryCacheType, HttpLink as HttpLinkType, NormalizedCacheObject } from "@apollo/client";
|
2
|
-
declare const ApolloClient: any
|
2
|
+
declare const ApolloClient: any;
|
3
|
+
declare const InMemoryCache: any;
|
4
|
+
declare const HttpLink: any;
|
5
|
+
declare const gql: any;
|
6
|
+
declare const ApolloError: any;
|
7
|
+
declare const split: any;
|
3
8
|
declare const setContext: any;
|
4
9
|
declare const onError: any;
|
5
10
|
export { ApolloClient, InMemoryCache, HttpLink, gql, ApolloError, split, setContext, onError, };
|
@@ -1,5 +1,10 @@
|
|
1
1
|
import type { ApolloClient as ApolloClientType, InMemoryCache as InMemoryCacheType, HttpLink as HttpLinkType, NormalizedCacheObject } from "@apollo/client";
|
2
|
-
declare const ApolloClient: any
|
2
|
+
declare const ApolloClient: any;
|
3
|
+
declare const InMemoryCache: any;
|
4
|
+
declare const HttpLink: any;
|
5
|
+
declare const gql: any;
|
6
|
+
declare const ApolloError: any;
|
7
|
+
declare const split: any;
|
3
8
|
declare const setContext: any;
|
4
9
|
declare const onError: any;
|
5
10
|
export { ApolloClient, InMemoryCache, HttpLink, gql, ApolloError, split, setContext, onError, };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"apollo-client.server.d.ts","sourceRoot":"","sources":["../../src/apollo-client.server.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,aAAa,IAAI,iBAAiB,EAClC,QAAQ,IAAI,YAAY,EACxB,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"apollo-client.server.d.ts","sourceRoot":"","sources":["../../src/apollo-client.server.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,aAAa,IAAI,iBAAiB,EAClC,QAAQ,IAAI,YAAY,EACxB,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AAMxB,QAAA,MAAM,YAAY,KAC6C,CAAC;AAChE,QAAA,MAAM,aAAa,KAC8C,CAAC;AAClE,QAAA,MAAM,QAAQ,KAAwD,CAAC;AACvE,QAAA,MAAM,GAAG,KAA8C,CAAC;AACxD,QAAA,MAAM,WAAW,KAC4C,CAAC;AAC9D,QAAA,MAAM,KAAK,KAAkD,CAAC;AAI9D,QAAA,MAAM,UAAU,KACgE,CAAC;AAGjF,QAAA,MAAM,OAAO,KACuD,CAAC;AAGrE,OAAO,EACL,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,GAAG,EACH,WAAW,EACX,KAAK,EACL,UAAU,EACV,OAAO,GACR,CAAC;AAGF,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,GACtB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"apollo-client.server.js","sourceRoot":"","sources":["../../src/apollo-client.server.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAU1B,qDAAqD;AACrD,MAAM,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"apollo-client.server.js","sourceRoot":"","sources":["../../src/apollo-client.server.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAU1B,qDAAqD;AACrD,MAAM,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAEtC,gFAAgF;AAChF,MAAM,YAAY,GAChB,GAAG,CAAC,YAAY,IAAI,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAChE,MAAM,aAAa,GACjB,GAAG,CAAC,aAAa,IAAI,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;AAClE,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACvE,MAAM,GAAG,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACxD,MAAM,WAAW,GACf,GAAG,CAAC,WAAW,IAAI,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AAC9D,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE9D,6CAA6C;AAC7C,MAAM,UAAU,GAAG,OAAO,CAAC,yCAAyC,CAAC,CAAC;AACtE,MAAM,UAAU,GACd,UAAU,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAEjF,MAAM,QAAQ,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;AAChE,MAAM,OAAO,GACX,QAAQ,CAAC,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAErE,yCAAyC;AACzC,OAAO,EACL,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,GAAG,EACH,WAAW,EACX,KAAK,EACL,UAAU,EACV,OAAO,GACR,CAAC"}
|
@@ -1,12 +1,18 @@
|
|
1
1
|
// apollo-client.server.ts
|
2
2
|
// Use require() to load the runtime implementations.
|
3
3
|
import * as pkg from "@apollo/client";
|
4
|
-
|
4
|
+
// Use a fallback check: try the named export first, then pkg.default if needed.
|
5
|
+
const ApolloClient = pkg.ApolloClient || (pkg.default && pkg.default.ApolloClient);
|
6
|
+
const InMemoryCache = pkg.InMemoryCache || (pkg.default && pkg.default.InMemoryCache);
|
7
|
+
const HttpLink = pkg.HttpLink || (pkg.default && pkg.default.HttpLink);
|
8
|
+
const gql = pkg.gql || (pkg.default && pkg.default.gql);
|
9
|
+
const ApolloError = pkg.ApolloError || (pkg.default && pkg.default.ApolloError);
|
10
|
+
const split = pkg.split || (pkg.default && pkg.default.split);
|
5
11
|
// Some sub‑modules require a different path.
|
6
|
-
|
7
|
-
const
|
8
|
-
|
9
|
-
const
|
12
|
+
import * as contextPkg from "@apollo/client/link/context/context.cjs";
|
13
|
+
const setContext = contextPkg.setContext || (contextPkg.default && contextPkg.default.setContext);
|
14
|
+
import * as errorPkg from "@apollo/client/link/error/error.cjs";
|
15
|
+
const onError = errorPkg.onError || (errorPkg.default && errorPkg.default.onError);
|
10
16
|
// Re‑export the runtime implementations.
|
11
17
|
export { ApolloClient, InMemoryCache, HttpLink, gql, ApolloError, split, setContext, onError, };
|
12
18
|
//# sourceMappingURL=apollo-client.server.js.map
|
package/package.json
CHANGED