adaptic-backend 1.0.278 → 1.0.279
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/client.cjs +4 -1
- package/client.d.ts +3 -2
- package/package.json +1 -1
- package/server/client.d.ts +3 -2
- package/server/client.d.ts.map +1 -1
- package/server/client.js.map +1 -1
- package/server/client.mjs +5 -2
package/client.cjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.onError = exports.setContext = exports.HttpLink = exports.InMemoryCache = exports.gql = exports.ApolloError = exports.ApolloClient = exports.client = void 0;
|
3
|
+
exports.split = exports.onError = exports.setContext = exports.HttpLink = exports.InMemoryCache = exports.gql = exports.ApolloError = exports.ApolloClient = exports.client = void 0;
|
4
4
|
exports.getApolloClient = getApolloClient;
|
5
5
|
// Import runtime implementations.
|
6
6
|
const client_1 = require("@apollo/client");
|
@@ -14,6 +14,7 @@ let InMemoryCache;
|
|
14
14
|
let HttpLink;
|
15
15
|
let setContext;
|
16
16
|
let onError;
|
17
|
+
let split;
|
17
18
|
// Conditional logic: on server use require(), on client use the static imports.
|
18
19
|
if (typeof window === "undefined") {
|
19
20
|
// --- Server-side ---
|
@@ -24,6 +25,7 @@ if (typeof window === "undefined") {
|
|
24
25
|
exports.HttpLink = HttpLink = pkg.HttpLink;
|
25
26
|
exports.gql = gql = pkg.gql;
|
26
27
|
exports.ApolloError = ApolloError = pkg.ApolloError;
|
28
|
+
exports.split = split = pkg.split;
|
27
29
|
const contextPkg = require("@apollo/client/link/context/context.cjs");
|
28
30
|
exports.setContext = setContext = contextPkg.setContext;
|
29
31
|
const errorPkg = require("@apollo/client/link/error/error.cjs");
|
@@ -39,6 +41,7 @@ else {
|
|
39
41
|
exports.ApolloError = ApolloError = client_1.ApolloError;
|
40
42
|
exports.setContext = setContext = context_cjs_1.setContext;
|
41
43
|
exports.onError = onError = error_cjs_1.onError;
|
44
|
+
exports.split = split = client_1.split;
|
42
45
|
}
|
43
46
|
// Use the type-only alias (ApolloClientType) for type annotations.
|
44
47
|
let apolloClient = null;
|
package/client.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ApolloClient as ApolloClientType, InMemoryCache as InMemoryCacheType, HttpLink as HttpLinkType, NormalizedCacheObject } from "@apollo/client";
|
2
|
-
import { ApolloClient as ApolloClientImported, InMemoryCache as InMemoryCacheImported, HttpLink as HttpLinkImported, gql as gqlImported, ApolloError as ApolloErrorImported } from "@apollo/client";
|
2
|
+
import { ApolloClient as ApolloClientImported, InMemoryCache as InMemoryCacheImported, HttpLink as HttpLinkImported, gql as gqlImported, ApolloError as ApolloErrorImported, split as splitImported } from "@apollo/client";
|
3
3
|
import { setContext as setContextImported } from "@apollo/client/link/context/context.cjs";
|
4
4
|
import { onError as onErrorImported } from "@apollo/client/link/error/error.cjs";
|
5
5
|
declare let ApolloClient: typeof ApolloClientImported;
|
@@ -9,12 +9,13 @@ declare let InMemoryCache: typeof InMemoryCacheImported;
|
|
9
9
|
declare let HttpLink: typeof HttpLinkImported;
|
10
10
|
declare let setContext: typeof setContextImported;
|
11
11
|
declare let onError: typeof onErrorImported;
|
12
|
+
declare let split: typeof splitImported;
|
12
13
|
/**
|
13
14
|
* Retrieves the singleton Apollo Client instance.
|
14
15
|
* @returns ApolloClient instance.
|
15
16
|
*/
|
16
17
|
export declare function getApolloClient(): ApolloClientType<NormalizedCacheObject>;
|
17
18
|
export declare const client: ApolloClientType<NormalizedCacheObject>;
|
18
|
-
export { ApolloClient, ApolloError, gql, InMemoryCache, HttpLink, setContext, onError };
|
19
|
+
export { ApolloClient, ApolloError, gql, InMemoryCache, HttpLink, setContext, onError, split };
|
19
20
|
export type { ApolloClientType, InMemoryCacheType, HttpLinkType, NormalizedCacheObject, };
|
20
21
|
//# sourceMappingURL=client.d.ts.map
|
package/package.json
CHANGED
package/server/client.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ApolloClient as ApolloClientType, InMemoryCache as InMemoryCacheType, HttpLink as HttpLinkType, NormalizedCacheObject } from "@apollo/client";
|
2
|
-
import { ApolloClient as ApolloClientImported, InMemoryCache as InMemoryCacheImported, HttpLink as HttpLinkImported, gql as gqlImported, ApolloError as ApolloErrorImported } from "@apollo/client";
|
2
|
+
import { ApolloClient as ApolloClientImported, InMemoryCache as InMemoryCacheImported, HttpLink as HttpLinkImported, gql as gqlImported, ApolloError as ApolloErrorImported, split as splitImported } from "@apollo/client";
|
3
3
|
import { setContext as setContextImported } from "@apollo/client/link/context/context.cjs";
|
4
4
|
import { onError as onErrorImported } from "@apollo/client/link/error/error.cjs";
|
5
5
|
declare let ApolloClient: typeof ApolloClientImported;
|
@@ -9,12 +9,13 @@ declare let InMemoryCache: typeof InMemoryCacheImported;
|
|
9
9
|
declare let HttpLink: typeof HttpLinkImported;
|
10
10
|
declare let setContext: typeof setContextImported;
|
11
11
|
declare let onError: typeof onErrorImported;
|
12
|
+
declare let split: typeof splitImported;
|
12
13
|
/**
|
13
14
|
* Retrieves the singleton Apollo Client instance.
|
14
15
|
* @returns ApolloClient instance.
|
15
16
|
*/
|
16
17
|
export declare function getApolloClient(): ApolloClientType<NormalizedCacheObject>;
|
17
18
|
export declare const client: ApolloClientType<NormalizedCacheObject>;
|
18
|
-
export { ApolloClient, ApolloError, gql, InMemoryCache, HttpLink, setContext, onError };
|
19
|
+
export { ApolloClient, ApolloError, gql, InMemoryCache, HttpLink, setContext, onError, split };
|
19
20
|
export type { ApolloClientType, InMemoryCacheType, HttpLinkType, NormalizedCacheObject, };
|
20
21
|
//# sourceMappingURL=client.d.ts.map
|
package/server/client.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,aAAa,IAAI,iBAAiB,EAClC,QAAQ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AAM,yCAAoB,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAG/F,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,GACtB,CAAC"}
|
package/server/client.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAQA,kCAAkC;AAClC,OAAO,EACL,YAAY,IAAI,oBAAoB,EACpC,aAAa,IAAI,qBAAqB,EACtC,QAAQ,IAAI,gBAAgB,EAC5B,GAAG,IAAI,WAAW,EAClB,WAAW,IAAI,mBAAmB,
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAQA,kCAAkC;AAClC,OAAO,EACL,YAAY,IAAI,oBAAoB,EACpC,aAAa,IAAI,qBAAqB,EACtC,QAAQ,IAAI,gBAAgB,EAC5B,GAAG,IAAI,WAAW,EAClB,WAAW,IAAI,mBAAmB,EAClC,KAAK,IAAI,aAAa,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEjF,kFAAkF;AAClF,IAAI,YAAyC,CAAC;AAC9C,IAAI,WAAuC,CAAC;AAC5C,IAAI,GAAuB,CAAC;AAC5B,IAAI,aAA2C,CAAC;AAChD,IAAI,QAAiC,CAAC;AACtC,IAAI,UAAqC,CAAC;AAC1C,IAAI,OAA+B,CAAC;AACpC,IAAI,KAA2B,CAAC;AAEhC,gFAAgF;AAChF,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IAClC,sBAAsB;IACtB,gDAAgD;IAChD,MAAM,GAAG,GAAG,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e,EAAE,CAAC;AAExC,2EAA2E;AAC3E,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/server/client.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// Import runtime implementations.
|
2
|
-
import { ApolloClient as ApolloClientImported, InMemoryCache as InMemoryCacheImported, HttpLink as HttpLinkImported, gql as gqlImported, ApolloError as ApolloErrorImported, } from "@apollo/client";
|
2
|
+
import { ApolloClient as ApolloClientImported, InMemoryCache as InMemoryCacheImported, HttpLink as HttpLinkImported, gql as gqlImported, ApolloError as ApolloErrorImported, split as splitImported, } from "@apollo/client";
|
3
3
|
import { setContext as setContextImported } from "@apollo/client/link/context/context.cjs";
|
4
4
|
import { onError as onErrorImported } from "@apollo/client/link/error/error.cjs";
|
5
5
|
// Declare runtime variables that will eventually hold the proper implementations.
|
@@ -10,6 +10,7 @@ let InMemoryCache;
|
|
10
10
|
let HttpLink;
|
11
11
|
let setContext;
|
12
12
|
let onError;
|
13
|
+
let split;
|
13
14
|
// Conditional logic: on server use require(), on client use the static imports.
|
14
15
|
if (typeof window === "undefined") {
|
15
16
|
// --- Server-side ---
|
@@ -20,6 +21,7 @@ if (typeof window === "undefined") {
|
|
20
21
|
HttpLink = pkg.HttpLink;
|
21
22
|
gql = pkg.gql;
|
22
23
|
ApolloError = pkg.ApolloError;
|
24
|
+
split = pkg.split;
|
23
25
|
const contextPkg = require("@apollo/client/link/context/context.cjs");
|
24
26
|
setContext = contextPkg.setContext;
|
25
27
|
const errorPkg = require("@apollo/client/link/error/error.cjs");
|
@@ -35,6 +37,7 @@ else {
|
|
35
37
|
ApolloError = ApolloErrorImported;
|
36
38
|
setContext = setContextImported;
|
37
39
|
onError = onErrorImported;
|
40
|
+
split = splitImported;
|
38
41
|
}
|
39
42
|
// Use the type-only alias (ApolloClientType) for type annotations.
|
40
43
|
let apolloClient = null;
|
@@ -89,5 +92,5 @@ export function getApolloClient() {
|
|
89
92
|
// Export the singleton instance.
|
90
93
|
export const client = getApolloClient();
|
91
94
|
// Re-export the runtime implementations so they can be imported elsewhere.
|
92
|
-
export { ApolloClient, ApolloError, gql, InMemoryCache, HttpLink, setContext, onError };
|
95
|
+
export { ApolloClient, ApolloError, gql, InMemoryCache, HttpLink, setContext, onError, split };
|
93
96
|
//# sourceMappingURL=client.js.map
|