@econneq/gql-auth 1.0.21 → 1.1.1
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/dist/client.d.ts.map +1 -1
- package/dist/client.js +0 -5
- package/dist/query-server.js +0 -2
- package/dist/upload-gql.js +1 -1
- package/package.json +1 -1
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAC;AAGvE,wBAA8B,eAAe,CAC3C,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EACjD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,MAAM,CAAC,EAAE;IACP,UAAU,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC3E,MAAM,EAAE,MAAM,CAAC;CAChB,GACA,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAC;AAGvE,wBAA8B,eAAe,CAC3C,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EACjD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,MAAM,CAAC,EAAE;IACP,UAAU,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC3E,MAAM,EAAE,MAAM,CAAC;CAChB,GACA,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CA8D9B"}
|
package/dist/client.js
CHANGED
|
@@ -33,11 +33,6 @@ export default async function getApolloClient(options, domain, config) {
|
|
|
33
33
|
? Subdomains.find((s) => s.subdomain.toLowerCase() === domain.toLowerCase())
|
|
34
34
|
: null;
|
|
35
35
|
const csrfToken = options?.csrfToken || (!isServer ? Cookies.get("csrftoken") : "");
|
|
36
|
-
console.log(1, uri);
|
|
37
|
-
console.log(2, baseUrl);
|
|
38
|
-
console.log(3, dynamicHost);
|
|
39
|
-
console.log(4, tenant);
|
|
40
|
-
console.log(5, csrfToken);
|
|
41
36
|
const headers = {
|
|
42
37
|
'Content-Type': 'application/json',
|
|
43
38
|
'X-API-KEY': apiKey,
|
package/dist/query-server.js
CHANGED
|
@@ -14,11 +14,9 @@ export async function queryServerGraphQL({ query, variables = {}, domain, config
|
|
|
14
14
|
variables,
|
|
15
15
|
fetchPolicy: 'no-cache',
|
|
16
16
|
});
|
|
17
|
-
console.log("getting @e-conneq/gql-auth ........");
|
|
18
17
|
return result?.data;
|
|
19
18
|
}
|
|
20
19
|
catch (err) {
|
|
21
|
-
console.error("GraphQL Server Error:", err);
|
|
22
20
|
return null;
|
|
23
21
|
}
|
|
24
22
|
}
|
package/dist/upload-gql.js
CHANGED
|
@@ -6,7 +6,7 @@ export async function uploadGraphQLMutation({ query, variables, fileMap, token,
|
|
|
6
6
|
const host = production ? process.env.INTERNAL_API_URL : process.env.EXTERNAL_API_URL;
|
|
7
7
|
let API_LINK;
|
|
8
8
|
if (isServer) {
|
|
9
|
-
API_LINK =
|
|
9
|
+
API_LINK = `http://${host}/graphql/`;
|
|
10
10
|
}
|
|
11
11
|
else {
|
|
12
12
|
API_LINK = `/api/graphql`;
|