@webiny/project 6.6.0-alpha.6 → 6.6.0-alpha.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/project",
|
|
3
|
-
"version": "6.6.0-alpha.
|
|
3
|
+
"version": "6.6.0-alpha.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"description": "An SDK for managing Webiny projects.",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@webiny/build-tools": "6.6.0-alpha.
|
|
16
|
+
"@webiny/build-tools": "6.6.0-alpha.8",
|
|
17
17
|
"@webiny/di": "1.1.0",
|
|
18
|
-
"@webiny/feature-flags": "6.6.0-alpha.
|
|
19
|
-
"@webiny/global-config": "6.6.0-alpha.
|
|
20
|
-
"@webiny/pulumi-sdk": "6.6.0-alpha.
|
|
21
|
-
"@webiny/react-properties": "6.6.0-alpha.
|
|
22
|
-
"@webiny/system-requirements": "6.6.0-alpha.
|
|
23
|
-
"@webiny/telemetry": "6.6.0-alpha.
|
|
24
|
-
"@webiny/utils": "6.6.0-alpha.
|
|
25
|
-
"@webiny/wcp": "6.6.0-alpha.
|
|
18
|
+
"@webiny/feature-flags": "6.6.0-alpha.8",
|
|
19
|
+
"@webiny/global-config": "6.6.0-alpha.8",
|
|
20
|
+
"@webiny/pulumi-sdk": "6.6.0-alpha.8",
|
|
21
|
+
"@webiny/react-properties": "6.6.0-alpha.8",
|
|
22
|
+
"@webiny/system-requirements": "6.6.0-alpha.8",
|
|
23
|
+
"@webiny/telemetry": "6.6.0-alpha.8",
|
|
24
|
+
"@webiny/utils": "6.6.0-alpha.8",
|
|
25
|
+
"@webiny/wcp": "6.6.0-alpha.8",
|
|
26
26
|
"chalk": "6.0.0",
|
|
27
27
|
"chokidar": "5.0.0",
|
|
28
28
|
"ci-info": "4.4.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getWcpGqlApiUrl } from "@webiny/wcp";
|
|
2
|
-
import { request } from "graphql-request";
|
|
3
2
|
class WcpGqlClient {
|
|
4
|
-
static execute(query, variables = {}, headers = {}) {
|
|
3
|
+
static async execute(query, variables = {}, headers = {}) {
|
|
4
|
+
const { request } = await import("graphql-request");
|
|
5
5
|
const wcpApiUrl = getWcpGqlApiUrl();
|
|
6
6
|
return request(wcpApiUrl, query, variables, headers);
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services/WcpService/WcpGqlClient.js","sources":["../../../src/services/WcpService/WcpGqlClient.ts"],"sourcesContent":["import { getWcpGqlApiUrl } from \"@webiny/wcp\";\
|
|
1
|
+
{"version":3,"file":"services/WcpService/WcpGqlClient.js","sources":["../../../src/services/WcpService/WcpGqlClient.ts"],"sourcesContent":["import { getWcpGqlApiUrl } from \"@webiny/wcp\";\n\nexport class WcpGqlClient {\n static async execute<TData extends Record<string, any> = Record<string, any>>(\n query: string,\n variables: Record<string, any> = {},\n headers: HeadersInit = {}\n ) {\n // Loaded here rather than at the top of the file: `graphql-request` pulls in all of\n // `graphql`, about 140 modules, and every CLI command would load it just to register this\n // service. Most commands never send a GraphQL request to WCP, since the environment lookup\n // uses the REST endpoint first.\n const { request } = await import(\"graphql-request\");\n\n const wcpApiUrl = getWcpGqlApiUrl();\n return request(wcpApiUrl, query, variables, headers) as Promise<TData>;\n }\n}\n"],"names":["WcpGqlClient","query","variables","headers","request","wcpApiUrl","getWcpGqlApiUrl"],"mappings":";AAEO,MAAMA;IACT,aAAa,QACTC,KAAa,EACbC,YAAiC,CAAC,CAAC,EACnCC,UAAuB,CAAC,CAAC,EAC3B;QAKE,MAAM,EAAEC,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC;QAEjC,MAAMC,YAAYC;QAClB,OAAOF,QAAQC,WAAWJ,OAAOC,WAAWC;IAChD;AACJ"}
|