@forge/cli-shared 9.4.0-next.3 → 9.4.0-next.4
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/CHANGELOG.md +6 -0
- package/out/apps/template-module.d.ts.map +1 -1
- package/out/apps/template-module.js +4 -5
- package/out/apps/template.d.ts.map +1 -1
- package/out/apps/template.js +4 -10
- package/out/graphql/graphql-types.d.ts +10 -0
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +1 -0
- package/out/graphql/minimal-graphql-runner.d.ts +1 -2
- package/out/graphql/minimal-graphql-runner.d.ts.map +1 -1
- package/out/http-client/feedback-post-client.d.ts +0 -1
- package/out/http-client/feedback-post-client.d.ts.map +1 -1
- package/out/http-client/feedback-post-client.js +1 -3
- package/out/http-client/file-uploader.d.ts.map +1 -1
- package/out/http-client/file-uploader.js +8 -7
- package/out/http-client/global-edge-http-client.d.ts +0 -1
- package/out/http-client/global-edge-http-client.d.ts.map +1 -1
- package/out/http-client/index.d.ts +1 -0
- package/out/http-client/index.d.ts.map +1 -1
- package/out/http-client/index.js +1 -0
- package/out/http-client/node-request.d.ts +10 -0
- package/out/http-client/node-request.d.ts.map +1 -0
- package/out/http-client/node-request.js +57 -0
- package/out/http-client/trace.d.ts +3 -2
- package/out/http-client/trace.d.ts.map +1 -1
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +2 -4
- package/out/shared/error-handling.d.ts.map +1 -1
- package/out/shared/error-handling.js +30 -4
- package/package.json +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-module.d.ts","sourceRoot":"","sources":["../../src/apps/template-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template-module.d.ts","sourceRoot":"","sources":["../../src/apps/template-module.ts"],"names":[],"mappings":"AAWA,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM;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AkB,EAC5B,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,kBAAkB,CAAC;IAajB,oBAAoB,CAAC,QAAQ,EAAE,kBAAkB,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA2ClG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAO5C"}
|
|
@@ -4,7 +4,6 @@ exports.TemplateModuleServices = exports.BifrostFetchError = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
6
6
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
-
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
|
|
8
7
|
const os_1 = tslib_1.__importDefault(require("os"));
|
|
9
8
|
const url_1 = require("url");
|
|
10
9
|
const adm_zip_1 = tslib_1.__importDefault(require("adm-zip"));
|
|
@@ -30,7 +29,7 @@ class TemplateModuleServices {
|
|
|
30
29
|
return this.templatesCache;
|
|
31
30
|
}
|
|
32
31
|
const indexUrl = new url_1.URL(MODULE_INDEX_FILE, this.baseUrl);
|
|
33
|
-
const res = await (
|
|
32
|
+
const res = await fetch(indexUrl);
|
|
34
33
|
if (!res.ok) {
|
|
35
34
|
throw new BifrostFetchError(text_1.Text.module.errors.bifrostIndexFetchFailed(res.status, res.statusText));
|
|
36
35
|
}
|
|
@@ -43,7 +42,7 @@ class TemplateModuleServices {
|
|
|
43
42
|
}
|
|
44
43
|
async fetchModuleShowMeta(moduleKey) {
|
|
45
44
|
const url = `${this.baseUrl}${moduleKey}/${MODULE_SHOW_FILE}`;
|
|
46
|
-
const res = await (
|
|
45
|
+
const res = await fetch(url);
|
|
47
46
|
if (!res.ok) {
|
|
48
47
|
throw new BifrostFetchError(text_1.Text.module.errors.bifrostIndexFetchFailed(res.status, res.statusText));
|
|
49
48
|
}
|
|
@@ -51,7 +50,7 @@ class TemplateModuleServices {
|
|
|
51
50
|
}
|
|
52
51
|
async fetchManifestFragment(manifestPath) {
|
|
53
52
|
const url = `${this.baseUrl}${manifestPath}`;
|
|
54
|
-
const res = await (
|
|
53
|
+
const res = await fetch(url);
|
|
55
54
|
if (!res.ok) {
|
|
56
55
|
throw new BifrostFetchError(text_1.Text.module.errors.bifrostManifestFragmentFetchFailed(res.status, res.statusText));
|
|
57
56
|
}
|
|
@@ -95,7 +94,7 @@ class TemplateModuleServices {
|
|
|
95
94
|
const url = `${this.baseUrl}${rel}`;
|
|
96
95
|
let res;
|
|
97
96
|
try {
|
|
98
|
-
res = await (
|
|
97
|
+
res = await fetch(url);
|
|
99
98
|
}
|
|
100
99
|
catch (err) {
|
|
101
100
|
const message = err instanceof Error ? err.message : String(err);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/apps/template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/apps/template.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAM/B,qBAAa,eAAgB,SAAQ,SAAS;gBAChC,QAAQ,EAAE,MAAM;CAG7B;AAED,qBAAa,2BAA4B,SAAQ,KAAK;CAAG;AAEzD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,MAAM,WAAW,cAAc;IAC7B,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CA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exports.ComposableTemplater = exports.TemplateServiceLister = exports.TemplateFe
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
6
6
|
const fs_extra_1 = require("fs-extra");
|
|
7
|
-
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
|
|
8
7
|
const path_1 = require("path");
|
|
9
8
|
const tmp_1 = tslib_1.__importDefault(require("tmp"));
|
|
10
9
|
const url_1 = require("url");
|
|
@@ -24,17 +23,12 @@ exports.InvalidTemplateArchiveError = InvalidTemplateArchiveError;
|
|
|
24
23
|
class TemplateServiceDownloader {
|
|
25
24
|
async download(template, zipFile) {
|
|
26
25
|
const zipUrl = this.buildZipUrl(template);
|
|
27
|
-
const
|
|
28
|
-
const response = await (0, node_fetch_1.default)(zipUrl);
|
|
26
|
+
const response = await fetch(zipUrl);
|
|
29
27
|
if (!response.ok) {
|
|
30
28
|
throw new NoTemplateError(template);
|
|
31
29
|
}
|
|
32
|
-
await
|
|
33
|
-
|
|
34
|
-
resolve(args);
|
|
35
|
-
});
|
|
36
|
-
response.body.pipe(fileStream);
|
|
37
|
-
});
|
|
30
|
+
const zipBytes = await response.arrayBuffer();
|
|
31
|
+
fs_1.default.writeFileSync(zipFile, Buffer.from(zipBytes));
|
|
38
32
|
}
|
|
39
33
|
buildZipUrl(template) {
|
|
40
34
|
return new url_1.URL(`${template}.zip`, TEMPLATE_SERVICE_URL);
|
|
@@ -88,7 +82,7 @@ class TemplateServiceLister {
|
|
|
88
82
|
return false;
|
|
89
83
|
}
|
|
90
84
|
async getAvailableTemplates() {
|
|
91
|
-
const res = await (
|
|
85
|
+
const res = await fetch(new url_1.URL(TEMPLATE_MAP, TEMPLATE_SERVICE_URL));
|
|
92
86
|
if (!res.ok) {
|
|
93
87
|
throw new TemplateFetchError(res.statusText);
|
|
94
88
|
}
|
|
@@ -39774,6 +39774,11 @@ export type CplsAtlasProjectRecommendation = {
|
|
|
39774
39774
|
atlasProject?: Maybe<TownsquareProject>;
|
|
39775
39775
|
atlasProjectId: Scalars['ID']['output'];
|
|
39776
39776
|
};
|
|
39777
|
+
export type CplsCapacityPlan = {
|
|
39778
|
+
__typename?: 'CplsCapacityPlan';
|
|
39779
|
+
id: Scalars['ID']['output'];
|
|
39780
|
+
scopeId?: Maybe<Scalars['ID']['output']>;
|
|
39781
|
+
};
|
|
39777
39782
|
export type CplsCapacityPlanningPeopleView = {
|
|
39778
39783
|
__typename?: 'CplsCapacityPlanningPeopleView';
|
|
39779
39784
|
contributor?: Maybe<CplsContributor>;
|
|
@@ -167424,6 +167429,7 @@ export declare enum MercuryFocusAreaSortField {
|
|
|
167424
167429
|
FocusAreaType = "FOCUS_AREA_TYPE",
|
|
167425
167430
|
GroupType = "GROUP_TYPE",
|
|
167426
167431
|
HasParent = "HAS_PARENT",
|
|
167432
|
+
HasSponsorOrganization = "HAS_SPONSOR_ORGANIZATION",
|
|
167427
167433
|
Health = "HEALTH",
|
|
167428
167434
|
HierarchyLevel = "HIERARCHY_LEVEL",
|
|
167429
167435
|
LastUpdated = "LAST_UPDATED",
|
|
@@ -185549,6 +185555,7 @@ export type Query = {
|
|
|
185549
185555
|
countGroupBySpace?: Maybe<CountGroupBySpace>;
|
|
185550
185556
|
countGroupByUser?: Maybe<CountGroupByUser>;
|
|
185551
185557
|
countUsersGroupByPage?: Maybe<CountUsersGroupByPage>;
|
|
185558
|
+
cpls_capacityPlansByIds?: Maybe<Array<Maybe<CplsCapacityPlan>>>;
|
|
185552
185559
|
cpls_customContributionTargets?: Maybe<CplsCustomContributionTargetConnection>;
|
|
185553
185560
|
cpls_customContributionTargetsByIds?: Maybe<Array<Maybe<CplsCustomContributionTarget>>>;
|
|
185554
185561
|
cpls_filters?: Maybe<CplsFilterConfigurationType>;
|
|
@@ -192213,6 +192220,9 @@ export type QueryCountUsersGroupByPageArgs = {
|
|
|
192213
192220
|
sortOrder?: InputMaybe<Scalars['String']['input']>;
|
|
192214
192221
|
startTime: Scalars['String']['input'];
|
|
192215
192222
|
};
|
|
192223
|
+
export type QueryCpls_CapacityPlansByIdsArgs = {
|
|
192224
|
+
ids: Array<Scalars['ID']['input']>;
|
|
192225
|
+
};
|
|
192216
192226
|
export type QueryCpls_CustomContributionTargetsArgs = {
|
|
192217
192227
|
input: CplsSearchCustomContributionTargetsInput;
|
|
192218
192228
|
};
|