zephyr-edge-contract 0.0.26 → 0.0.27
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/index.d.ts +9 -22
- package/dist/index.js +24 -45
- package/dist/index.js.map +1 -1
- package/dist/lib/api-contract-negotiation/get-api-contract.js +1 -0
- package/dist/lib/api-contract-negotiation/get-api-contract.js.map +1 -1
- package/dist/lib/edge-api/publish-request.d.ts +1 -1
- package/dist/lib/plugin-options/{zephyr-plugin-options.js → zephyr-webpack-plugin-options.js} +1 -1
- package/dist/lib/plugin-options/zephyr-webpack-plugin-options.js.map +1 -0
- package/dist/lib/promise/index.d.ts +29 -0
- package/dist/lib/promise/index.js +63 -0
- package/dist/lib/promise/index.js.map +1 -0
- package/dist/lib/snapshot.js +1 -0
- package/dist/lib/snapshot.js.map +1 -1
- package/dist/lib/{utils → string}/string.d.ts +6 -2
- package/dist/lib/{utils → string}/string.js +2 -1
- package/dist/lib/string/string.js.map +1 -0
- package/dist/lib/{utils → string}/strip-ansi.d.ts +2 -1
- package/dist/lib/{utils → string}/strip-ansi.js +2 -1
- package/dist/lib/string/strip-ansi.js.map +1 -0
- package/dist/lib/utils/{create-application-u-i-d.d.ts → create-application-uid.d.ts} +1 -1
- package/dist/lib/utils/{create-application-u-i-d.js → create-application-uid.js} +5 -6
- package/dist/lib/utils/create-application-uid.js.map +1 -0
- package/dist/lib/utils/create-snapshot-id.d.ts +7 -0
- package/dist/lib/utils/create-snapshot-id.js +18 -4
- package/dist/lib/utils/create-snapshot-id.js.map +1 -1
- package/dist/lib/utils/safe-json-parse.js.map +1 -1
- package/dist/lib/ze-api/local-package-json.d.ts +4 -4
- package/dist/lib/ze-api/local-package-json.js +4 -4
- package/dist/lib/zephyr-build-stats.d.ts +58 -39
- package/dist/lib/zephyr-build-stats.js +1 -0
- package/dist/lib/zephyr-build-stats.js.map +1 -1
- package/dist/lib/zephyr-edge-contract.d.ts +18 -40
- package/dist/lib/zephyr-edge-contract.js +1 -0
- package/dist/lib/zephyr-edge-contract.js.map +1 -1
- package/dist/package.json +5 -8
- package/package.json +5 -8
- package/dist/lib/errors/codes.d.ts +0 -282
- package/dist/lib/errors/codes.js +0 -371
- package/dist/lib/errors/codes.js.map +0 -1
- package/dist/lib/errors/index.d.ts +0 -2
- package/dist/lib/errors/index.js +0 -6
- package/dist/lib/errors/index.js.map +0 -1
- package/dist/lib/errors/zephyr.d.ts +0 -473
- package/dist/lib/errors/zephyr.js +0 -153
- package/dist/lib/errors/zephyr.js.map +0 -1
- package/dist/lib/node-persist/app-deploy-result-cache.d.ts +0 -7
- package/dist/lib/node-persist/app-deploy-result-cache.js +0 -26
- package/dist/lib/node-persist/app-deploy-result-cache.js.map +0 -1
- package/dist/lib/node-persist/application-configuration.d.ts +0 -4
- package/dist/lib/node-persist/application-configuration.js +0 -29
- package/dist/lib/node-persist/application-configuration.js.map +0 -1
- package/dist/lib/node-persist/fs-cache.d.ts +0 -3
- package/dist/lib/node-persist/fs-cache.js +0 -26
- package/dist/lib/node-persist/fs-cache.js.map +0 -1
- package/dist/lib/node-persist/hash-cache.d.ts +0 -7
- package/dist/lib/node-persist/hash-cache.js +0 -26
- package/dist/lib/node-persist/hash-cache.js.map +0 -1
- package/dist/lib/node-persist/partial-assets-map.d.ts +0 -4
- package/dist/lib/node-persist/partial-assets-map.js +0 -31
- package/dist/lib/node-persist/partial-assets-map.js.map +0 -1
- package/dist/lib/node-persist/secret-token.d.ts +0 -2
- package/dist/lib/node-persist/secret-token.js +0 -13
- package/dist/lib/node-persist/secret-token.js.map +0 -1
- package/dist/lib/node-persist/storage-keys.d.ts +0 -10
- package/dist/lib/node-persist/storage-keys.js +0 -15
- package/dist/lib/node-persist/storage-keys.js.map +0 -1
- package/dist/lib/node-persist/token.d.ts +0 -4
- package/dist/lib/node-persist/token.js +0 -36
- package/dist/lib/node-persist/token.js.map +0 -1
- package/dist/lib/node-persist/upload-provider-options.d.ts +0 -21
- package/dist/lib/node-persist/upload-provider-options.js +0 -13
- package/dist/lib/node-persist/upload-provider-options.js.map +0 -1
- package/dist/lib/plugin-options/zephyr-plugin-options.js.map +0 -1
- package/dist/lib/utils/clean-stack.d.ts +0 -7
- package/dist/lib/utils/clean-stack.js +0 -44
- package/dist/lib/utils/clean-stack.js.map +0 -1
- package/dist/lib/utils/create-application-u-i-d.js.map +0 -1
- package/dist/lib/utils/debug-enabled.d.ts +0 -1
- package/dist/lib/utils/debug-enabled.js +0 -9
- package/dist/lib/utils/debug-enabled.js.map +0 -1
- package/dist/lib/utils/debug.d.ts +0 -22
- package/dist/lib/utils/debug.js +0 -36
- package/dist/lib/utils/debug.js.map +0 -1
- package/dist/lib/utils/error-codes-messages.d.ts +0 -206
- package/dist/lib/utils/error-codes-messages.js +0 -203
- package/dist/lib/utils/error-codes-messages.js.map +0 -1
- package/dist/lib/utils/error-formatted-message.d.ts +0 -5
- package/dist/lib/utils/error-formatted-message.js +0 -36
- package/dist/lib/utils/error-formatted-message.js.map +0 -1
- package/dist/lib/utils/picocolor.d.ts +0 -43
- package/dist/lib/utils/picocolor.js +0 -85
- package/dist/lib/utils/picocolor.js.map +0 -1
- package/dist/lib/utils/promise.d.ts +0 -12
- package/dist/lib/utils/promise.js +0 -29
- package/dist/lib/utils/promise.js.map +0 -1
- package/dist/lib/utils/string.js.map +0 -1
- package/dist/lib/utils/strip-ansi.js.map +0 -1
- package/dist/lib/utils/ze-http-request.d.ts +0 -19
- package/dist/lib/utils/ze-http-request.js +0 -157
- package/dist/lib/utils/ze-http-request.js.map +0 -1
- package/test/utils/string.test.ts +0 -96
- /package/dist/lib/plugin-options/{zephyr-plugin-options.d.ts → zephyr-webpack-plugin-options.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,18 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type { PublishRequest, StageZeroPublishRequest } from './lib/edge-api/publish-request';
|
|
1
|
+
export type { PublishRequest, StageZeroPublishRequest, PublishTarget, } from './lib/edge-api/publish-request';
|
|
3
2
|
export type { ZeEnvs, ZeUploadBuildStats } from './lib/edge-api/ze-envs-request';
|
|
4
|
-
export {
|
|
5
|
-
export type { ZeErrorCodes, ZeErrorKeys, ZeErrorType } from './lib/errors';
|
|
6
|
-
export * as appDeployResultCache from './lib/node-persist/app-deploy-result-cache';
|
|
7
|
-
export { getAppConfig, removeAppConfig, saveAppConfig } from './lib/node-persist/application-configuration';
|
|
8
|
-
export * as _fs_cache from './lib/node-persist/fs-cache';
|
|
9
|
-
export * as _hash_cache from './lib/node-persist/hash-cache';
|
|
10
|
-
export { getPartialAssetMap, removePartialAssetMap, savePartialAssetMap } from './lib/node-persist/partial-assets-map';
|
|
11
|
-
export { getSecretToken, hasSecretToken } from './lib/node-persist/secret-token';
|
|
12
|
-
export { cleanTokens, getToken, removeToken, saveToken } from './lib/node-persist/token';
|
|
13
|
-
export * from './lib/node-persist/upload-provider-options';
|
|
14
|
-
export type { ZephyrPluginOptions } from './lib/plugin-options/zephyr-plugin-options';
|
|
3
|
+
export type { ZephyrPluginOptions } from './lib/plugin-options/zephyr-webpack-plugin-options';
|
|
15
4
|
export type { Snapshot, SnapshotAsset, SnapshotMetadata } from './lib/snapshot';
|
|
16
|
-
export {
|
|
17
|
-
export { createSnapshotId } from './lib/utils/create-snapshot-id';
|
|
18
|
-
export
|
|
19
|
-
export * from './lib/utils/debug-enabled';
|
|
20
|
-
export * from './lib/utils/picocolor';
|
|
21
|
-
export * as color from './lib/utils/picocolor';
|
|
22
|
-
export * as ZeUtils from './lib/utils/promise';
|
|
5
|
+
export { createApplicationUid } from './lib/utils/create-application-uid';
|
|
6
|
+
export { createSnapshotId, flatCreateSnapshotId } from './lib/utils/create-snapshot-id';
|
|
7
|
+
export * as ZeUtils from './lib/promise';
|
|
23
8
|
export { safe_json_parse } from './lib/utils/safe-json-parse';
|
|
24
|
-
export { ZeHttpRequest } from './lib/utils/ze-http-request';
|
|
25
|
-
export type { HttpResponse, UrlString } from './lib/utils/ze-http-request';
|
|
26
9
|
export type { ZeApplicationList } from './lib/ze-api/app-list';
|
|
27
10
|
export type { ZeAppVersion, ZeAppVersionResponse } from './lib/ze-api/app-version';
|
|
28
11
|
export type { ConvertedGraph } from './lib/ze-api/converted-graph';
|
|
29
12
|
export type { LocalPackageJson } from './lib/ze-api/local-package-json';
|
|
30
13
|
export type { ZephyrBuildStats } from './lib/zephyr-build-stats';
|
|
31
14
|
export type { Asset, SnapshotUploadRes, Source, UploadableAsset, ZeBuildAsset, ZeBuildAssetsMap, ZeUploadAssetsOptions, } from './lib/zephyr-edge-contract';
|
|
15
|
+
export { ZEPHYR_API_ENDPOINT, ZE_API_ENDPOINT, ZE_IS_PREVIEW, ze_api_gateway, ZE_API_ENDPOINT_HOST, } from './lib/api-contract-negotiation/get-api-contract';
|
|
16
|
+
export { PromiseTuple, isSuccessTuple, PromiseLazyLoad, PromiseWithResolvers, deferred, } from './lib/promise';
|
|
17
|
+
export { type FindTemplates, formatString } from './lib/string/string';
|
|
18
|
+
export { stripAnsi } from './lib/string/strip-ansi';
|
package/dist/index.js
CHANGED
|
@@ -1,54 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* istanbul ignore file */
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
+
exports.stripAnsi = exports.formatString = exports.deferred = exports.PromiseWithResolvers = exports.PromiseLazyLoad = exports.isSuccessTuple = exports.PromiseTuple = exports.ZE_API_ENDPOINT_HOST = exports.ze_api_gateway = exports.ZE_IS_PREVIEW = exports.ZE_API_ENDPOINT = exports.ZEPHYR_API_ENDPOINT = exports.safe_json_parse = exports.ZeUtils = exports.flatCreateSnapshotId = exports.createSnapshotId = exports.createApplicationUid = void 0;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
6
|
+
var create_application_uid_1 = require("./lib/utils/create-application-uid");
|
|
7
|
+
Object.defineProperty(exports, "createApplicationUid", { enumerable: true, get: function () { return create_application_uid_1.createApplicationUid; } });
|
|
8
|
+
var create_snapshot_id_1 = require("./lib/utils/create-snapshot-id");
|
|
9
|
+
Object.defineProperty(exports, "createSnapshotId", { enumerable: true, get: function () { return create_snapshot_id_1.createSnapshotId; } });
|
|
10
|
+
Object.defineProperty(exports, "flatCreateSnapshotId", { enumerable: true, get: function () { return create_snapshot_id_1.flatCreateSnapshotId; } });
|
|
11
|
+
exports.ZeUtils = tslib_1.__importStar(require("./lib/promise"));
|
|
12
|
+
var safe_json_parse_1 = require("./lib/utils/safe-json-parse");
|
|
13
|
+
Object.defineProperty(exports, "safe_json_parse", { enumerable: true, get: function () { return safe_json_parse_1.safe_json_parse; } });
|
|
14
|
+
// api contract negotiation
|
|
5
15
|
var get_api_contract_1 = require("./lib/api-contract-negotiation/get-api-contract");
|
|
6
16
|
Object.defineProperty(exports, "ZEPHYR_API_ENDPOINT", { enumerable: true, get: function () { return get_api_contract_1.ZEPHYR_API_ENDPOINT; } });
|
|
7
17
|
Object.defineProperty(exports, "ZE_API_ENDPOINT", { enumerable: true, get: function () { return get_api_contract_1.ZE_API_ENDPOINT; } });
|
|
8
18
|
Object.defineProperty(exports, "ZE_IS_PREVIEW", { enumerable: true, get: function () { return get_api_contract_1.ZE_IS_PREVIEW; } });
|
|
9
19
|
Object.defineProperty(exports, "ze_api_gateway", { enumerable: true, get: function () { return get_api_contract_1.ze_api_gateway; } });
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports, "
|
|
14
|
-
exports
|
|
15
|
-
|
|
16
|
-
Object.defineProperty(exports, "
|
|
17
|
-
Object.defineProperty(exports, "
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
exports
|
|
21
|
-
var
|
|
22
|
-
Object.defineProperty(exports, "
|
|
23
|
-
Object.defineProperty(exports, "removePartialAssetMap", { enumerable: true, get: function () { return partial_assets_map_1.removePartialAssetMap; } });
|
|
24
|
-
Object.defineProperty(exports, "savePartialAssetMap", { enumerable: true, get: function () { return partial_assets_map_1.savePartialAssetMap; } });
|
|
25
|
-
var secret_token_1 = require("./lib/node-persist/secret-token");
|
|
26
|
-
Object.defineProperty(exports, "getSecretToken", { enumerable: true, get: function () { return secret_token_1.getSecretToken; } });
|
|
27
|
-
Object.defineProperty(exports, "hasSecretToken", { enumerable: true, get: function () { return secret_token_1.hasSecretToken; } });
|
|
28
|
-
var token_1 = require("./lib/node-persist/token");
|
|
29
|
-
Object.defineProperty(exports, "cleanTokens", { enumerable: true, get: function () { return token_1.cleanTokens; } });
|
|
30
|
-
Object.defineProperty(exports, "getToken", { enumerable: true, get: function () { return token_1.getToken; } });
|
|
31
|
-
Object.defineProperty(exports, "removeToken", { enumerable: true, get: function () { return token_1.removeToken; } });
|
|
32
|
-
Object.defineProperty(exports, "saveToken", { enumerable: true, get: function () { return token_1.saveToken; } });
|
|
33
|
-
tslib_1.__exportStar(require("./lib/node-persist/upload-provider-options"), exports);
|
|
34
|
-
var create_application_u_i_d_1 = require("./lib/utils/create-application-u-i-d");
|
|
35
|
-
Object.defineProperty(exports, "createApplicationUID", { enumerable: true, get: function () { return create_application_u_i_d_1.createApplicationUID; } });
|
|
36
|
-
var create_snapshot_id_1 = require("./lib/utils/create-snapshot-id");
|
|
37
|
-
Object.defineProperty(exports, "createSnapshotId", { enumerable: true, get: function () { return create_snapshot_id_1.createSnapshotId; } });
|
|
38
|
-
var debug_1 = require("./lib/utils/debug");
|
|
39
|
-
Object.defineProperty(exports, "brightBlueBgName", { enumerable: true, get: function () { return debug_1.brightBlueBgName; } });
|
|
40
|
-
Object.defineProperty(exports, "brightGreenBgName", { enumerable: true, get: function () { return debug_1.brightGreenBgName; } });
|
|
41
|
-
Object.defineProperty(exports, "brightRedBgName", { enumerable: true, get: function () { return debug_1.brightRedBgName; } });
|
|
42
|
-
Object.defineProperty(exports, "brightYellowBgName", { enumerable: true, get: function () { return debug_1.brightYellowBgName; } });
|
|
43
|
-
Object.defineProperty(exports, "dimmedName", { enumerable: true, get: function () { return debug_1.dimmedName; } });
|
|
44
|
-
Object.defineProperty(exports, "ze_error", { enumerable: true, get: function () { return debug_1.ze_error; } });
|
|
45
|
-
Object.defineProperty(exports, "ze_log", { enumerable: true, get: function () { return debug_1.ze_log; } });
|
|
46
|
-
tslib_1.__exportStar(require("./lib/utils/debug-enabled"), exports);
|
|
47
|
-
tslib_1.__exportStar(require("./lib/utils/picocolor"), exports);
|
|
48
|
-
exports.color = tslib_1.__importStar(require("./lib/utils/picocolor"));
|
|
49
|
-
exports.ZeUtils = tslib_1.__importStar(require("./lib/utils/promise"));
|
|
50
|
-
var safe_json_parse_1 = require("./lib/utils/safe-json-parse");
|
|
51
|
-
Object.defineProperty(exports, "safe_json_parse", { enumerable: true, get: function () { return safe_json_parse_1.safe_json_parse; } });
|
|
52
|
-
var ze_http_request_1 = require("./lib/utils/ze-http-request");
|
|
53
|
-
Object.defineProperty(exports, "ZeHttpRequest", { enumerable: true, get: function () { return ze_http_request_1.ZeHttpRequest; } });
|
|
20
|
+
Object.defineProperty(exports, "ZE_API_ENDPOINT_HOST", { enumerable: true, get: function () { return get_api_contract_1.ZE_API_ENDPOINT_HOST; } });
|
|
21
|
+
// promise proto methods
|
|
22
|
+
var promise_1 = require("./lib/promise");
|
|
23
|
+
Object.defineProperty(exports, "PromiseTuple", { enumerable: true, get: function () { return promise_1.PromiseTuple; } });
|
|
24
|
+
Object.defineProperty(exports, "isSuccessTuple", { enumerable: true, get: function () { return promise_1.isSuccessTuple; } });
|
|
25
|
+
Object.defineProperty(exports, "PromiseLazyLoad", { enumerable: true, get: function () { return promise_1.PromiseLazyLoad; } });
|
|
26
|
+
Object.defineProperty(exports, "PromiseWithResolvers", { enumerable: true, get: function () { return promise_1.PromiseWithResolvers; } });
|
|
27
|
+
Object.defineProperty(exports, "deferred", { enumerable: true, get: function () { return promise_1.deferred; } });
|
|
28
|
+
// string proto methods
|
|
29
|
+
var string_1 = require("./lib/string/string");
|
|
30
|
+
Object.defineProperty(exports, "formatString", { enumerable: true, get: function () { return string_1.formatString; } });
|
|
31
|
+
var strip_ansi_1 = require("./lib/string/strip-ansi");
|
|
32
|
+
Object.defineProperty(exports, "stripAnsi", { enumerable: true, get: function () { return strip_ansi_1.stripAnsi; } });
|
|
54
33
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;;AAY1B,6EAA0E;AAAjE,8HAAA,oBAAoB,OAAA;AAC7B,qEAAwF;AAA/E,sHAAA,gBAAgB,OAAA;AAAE,0HAAA,oBAAoB,OAAA;AAC/C,iEAAyC;AACzC,+DAA8D;AAArD,kHAAA,eAAe,OAAA;AAgBxB,2BAA2B;AAC3B,oFAMyD;AALvD,uHAAA,mBAAmB,OAAA;AACnB,mHAAA,eAAe,OAAA;AACf,iHAAA,aAAa,OAAA;AACb,kHAAA,cAAc,OAAA;AACd,wHAAA,oBAAoB,OAAA;AAGtB,wBAAwB;AACxB,yCAMuB;AALrB,uGAAA,YAAY,OAAA;AACZ,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,+GAAA,oBAAoB,OAAA;AACpB,mGAAA,QAAQ,OAAA;AAGV,uBAAuB;AACvB,8CAAuE;AAA1C,sGAAA,YAAY,OAAA;AACzC,sDAAoD;AAA3C,uGAAA,SAAS,OAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ze_api_gateway = exports.ZE_IS_PREVIEW = exports.ZE_API_ENDPOINT_HOST = exports.ZE_API_ENDPOINT = exports.ZEPHYR_API_ENDPOINT = void 0;
|
|
4
|
+
/* istanbul ignore file */
|
|
4
5
|
const ZEPHYR_API_ENDPOINT = () => { var _a; return (_a = process.env['ZE_API']) !== null && _a !== void 0 ? _a : 'https://api.zephyr-cloud.io'; };
|
|
5
6
|
exports.ZEPHYR_API_ENDPOINT = ZEPHYR_API_ENDPOINT;
|
|
6
7
|
const ZE_API_ENDPOINT = () => { var _a; return (_a = process.env['ZE_API_GATE']) !== null && _a !== void 0 ? _a : 'https://zeapi.zephyrcloud.app'; };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-contract.js","sourceRoot":"","sources":["../../../src/lib/api-contract-negotiation/get-api-contract.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"get-api-contract.js","sourceRoot":"","sources":["../../../src/lib/api-contract-negotiation/get-api-contract.ts"],"names":[],"mappings":";;;AAAA,0BAA0B;AACnB,MAAM,mBAAmB,GAAG,GAAG,EAAE,WACtC,OAAA,MAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,mCAAI,6BAA6B,CAAA,EAAA,CAAC;AAD5C,QAAA,mBAAmB,uBACyB;AAElD,MAAM,eAAe,GAAG,GAAG,EAAE,WAClC,OAAA,MAAA,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,mCAAI,+BAA+B,CAAA,EAAA,CAAC;AADnD,QAAA,eAAe,mBACoC;AAEzD,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAAC,IAAI,GAAG,CAAC,IAAA,uBAAe,GAAE,CAAC,CAAC,IAAI,CAAC;AAA7D,QAAA,oBAAoB,wBAAyC;AAEnE,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,MAAM,CAAC;AAA9D,QAAA,aAAa,iBAAiD;AAE9D,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,UAAU;IACnB,kBAAkB,EAAE,qBAAqB;CAC1C,CAAC"}
|
|
@@ -18,7 +18,7 @@ export interface GatewayPublishRequest {
|
|
|
18
18
|
application_uid: string;
|
|
19
19
|
snapshot_id: string;
|
|
20
20
|
targets: PublishTargets;
|
|
21
|
-
/**
|
|
21
|
+
/** Previously `can_write_jwt` */
|
|
22
22
|
jwt: string;
|
|
23
23
|
}
|
|
24
24
|
export interface StageZeroPublishRequest {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zephyr-webpack-plugin-options.js","sourceRoot":"","sources":["../../../src/lib/plugin-options/zephyr-webpack-plugin-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ES 2023 Promise.withResolvers() polyfill
|
|
3
|
+
*
|
|
4
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
|
|
5
|
+
*/
|
|
6
|
+
export declare function PromiseWithResolvers<T>(): {
|
|
7
|
+
promise: Promise<T>;
|
|
8
|
+
resolve: (value: T | PromiseLike<T>) => void;
|
|
9
|
+
reject: (reason?: unknown) => void;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Creates a deferred promise.
|
|
13
|
+
*
|
|
14
|
+
* @returns A tuple containing the promise, resolve and reject functions in array
|
|
15
|
+
*/
|
|
16
|
+
export declare function deferred<T>(): [
|
|
17
|
+
Promise<T>,
|
|
18
|
+
(value: T | PromiseLike<T>) => void,
|
|
19
|
+
(reason?: unknown) => void
|
|
20
|
+
];
|
|
21
|
+
/**
|
|
22
|
+
* Lazy loads a promise.
|
|
23
|
+
*
|
|
24
|
+
* @link https://github.com/sindresorhus/p-lazy
|
|
25
|
+
*/
|
|
26
|
+
export declare function PromiseLazyLoad<const T, const P = void>(promise: (params: P) => Promise<T>): (params: P) => Promise<T>;
|
|
27
|
+
/** Creates a `[error, value]` tuple value from a promise. */
|
|
28
|
+
export declare function PromiseTuple<P>(maybePromise: PromiseLike<P> | P): Promise<[null, P] | [unknown, undefined]>;
|
|
29
|
+
export declare function isSuccessTuple<P>(tuple: [unknown, P | undefined]): tuple is [null, P];
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isSuccessTuple = exports.PromiseTuple = exports.PromiseLazyLoad = exports.deferred = exports.PromiseWithResolvers = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* ES 2023 Promise.withResolvers() polyfill
|
|
6
|
+
*
|
|
7
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
|
|
8
|
+
*/
|
|
9
|
+
function PromiseWithResolvers() {
|
|
10
|
+
let resolve;
|
|
11
|
+
let reject;
|
|
12
|
+
const promise = new Promise((res, rej) => {
|
|
13
|
+
resolve = res;
|
|
14
|
+
reject = rej;
|
|
15
|
+
});
|
|
16
|
+
return { promise, resolve, reject };
|
|
17
|
+
}
|
|
18
|
+
exports.PromiseWithResolvers = PromiseWithResolvers;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a deferred promise.
|
|
21
|
+
*
|
|
22
|
+
* @returns A tuple containing the promise, resolve and reject functions in array
|
|
23
|
+
*/
|
|
24
|
+
function deferred() {
|
|
25
|
+
let resolve;
|
|
26
|
+
let reject;
|
|
27
|
+
const promise = new Promise((res, rej) => {
|
|
28
|
+
resolve = res;
|
|
29
|
+
reject = rej;
|
|
30
|
+
});
|
|
31
|
+
return [promise, resolve, reject];
|
|
32
|
+
}
|
|
33
|
+
exports.deferred = deferred;
|
|
34
|
+
/**
|
|
35
|
+
* Lazy loads a promise.
|
|
36
|
+
*
|
|
37
|
+
* @link https://github.com/sindresorhus/p-lazy
|
|
38
|
+
*/
|
|
39
|
+
function PromiseLazyLoad(promise) {
|
|
40
|
+
let _data;
|
|
41
|
+
return (params) => {
|
|
42
|
+
if (!_data) {
|
|
43
|
+
_data = promise(params);
|
|
44
|
+
}
|
|
45
|
+
return _data;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.PromiseLazyLoad = PromiseLazyLoad;
|
|
49
|
+
/** Creates a `[error, value]` tuple value from a promise. */
|
|
50
|
+
async function PromiseTuple(maybePromise) {
|
|
51
|
+
try {
|
|
52
|
+
return [null, await maybePromise];
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
return [err, undefined];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.PromiseTuple = PromiseTuple;
|
|
59
|
+
function isSuccessTuple(tuple) {
|
|
60
|
+
return tuple[0] === null;
|
|
61
|
+
}
|
|
62
|
+
exports.isSuccessTuple = isSuccessTuple;
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/promise/index.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,oBAAoB;IAClC,IAAI,OAA6C,CAAC;IAClD,IAAI,MAAmC,CAAC;IAExC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAI,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC1C,OAAO,GAAG,GAAG,CAAC;QACd,MAAM,GAAG,GAAG,CAAC;IACf,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AACtC,CAAC;AAVD,oDAUC;AAED;;;;GAIG;AACH,SAAgB,QAAQ;IAKtB,IAAI,OAA6C,CAAC;IAClD,IAAI,MAAmC,CAAC;IAExC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAI,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC1C,OAAO,GAAG,GAAG,CAAC;QACd,MAAM,GAAG,GAAG,CAAC;IACf,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AACpC,CAAC;AAdD,4BAcC;AAED;;;;GAIG;AACH,SAAgB,eAAe,CAC7B,OAAkC;IAElC,IAAI,KAA6B,CAAC;IAElC,OAAO,CAAC,MAAS,EAAE,EAAE;QACnB,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC1B,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC;AAZD,0CAYC;AAED,6DAA6D;AACtD,KAAK,UAAU,YAAY,CAChC,YAAgC;IAEhC,IAAI,CAAC;QACH,OAAO,CAAC,IAAI,EAAE,MAAM,YAAY,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAC1B,CAAC;AACH,CAAC;AARD,oCAQC;AAED,SAAgB,cAAc,CAAI,KAA+B;IAC/D,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC3B,CAAC;AAFD,wCAEC"}
|
package/dist/lib/snapshot.js
CHANGED
package/dist/lib/snapshot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/lib/snapshot.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/lib/snapshot.ts"],"names":[],"mappings":";AAAA,0BAA0B"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Replaces all occurrences of {{key}} in the string with the value of the key in the
|
|
2
|
+
* Replaces all occurrences of {{key}} in the string with the value of the key in the
|
|
3
|
+
* params object.
|
|
3
4
|
*
|
|
4
5
|
* `{{ example }}` or `{{ example = value }}` to have a default value
|
|
5
6
|
*/
|
|
6
7
|
export declare function formatString<const S extends string>(str: S, params: Record<FindTemplates<S>, string | number | boolean>): string;
|
|
7
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Gets a string like `{{ key }} text {{ key2 }}` and returns an string union with key and
|
|
10
|
+
* key2
|
|
11
|
+
*/
|
|
8
12
|
export type FindTemplates<S extends string> = `${S}` extends `${infer Prefix}{{ ${infer Key} }}${infer Suffix}` ? FindTemplates<Prefix> | Key | FindTemplates<Suffix> : never;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.formatString = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* Replaces all occurrences of {{key}} in the string with the value of the key in the
|
|
5
|
+
* Replaces all occurrences of {{key}} in the string with the value of the key in the
|
|
6
|
+
* params object.
|
|
6
7
|
*
|
|
7
8
|
* `{{ example }}` or `{{ example = value }}` to have a default value
|
|
8
9
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.js","sourceRoot":"","sources":["../../../src/lib/string/string.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,SAAgB,YAAY,CAC1B,GAAM,EACN,MAA2D;IAE3D,OAAO,GAAG,CAAC,OAAO,CAAC,uCAAuC,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;QAC1E,OAAO,MAAM,CAAC,GAAuB,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC;AAPD,oCAOC"}
|
|
@@ -8,7 +8,8 @@ const ANSI_REGEX = new RegExp([
|
|
|
8
8
|
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))',
|
|
9
9
|
].join('|'), 'g');
|
|
10
10
|
/**
|
|
11
|
-
* Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a
|
|
11
|
+
* Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a
|
|
12
|
+
* string.
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
15
|
* ```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strip-ansi.js","sourceRoot":"","sources":["../../../src/lib/string/strip-ansi.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,+DAA+D;;;AAE/D,MAAM,UAAU,GAAG,IAAI,MAAM,CAC3B;IACE,8HAA8H;IAC9H,0DAA0D;CAC3D,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,GAAG,CACJ,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,SAAgB,SAAS,CAAC,MAAc;IACtC,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;AACxC,CAAC;AAFD,8BAEC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createApplicationUid = void 0;
|
|
4
4
|
function replacer(str) {
|
|
5
|
-
return str.replace(/[^a-zA-Z0-9-
|
|
6
|
-
// return str.replace(/\W/gi, '_');
|
|
5
|
+
return str.replace(/[^a-zA-Z0-9-]/gi, '-');
|
|
7
6
|
}
|
|
8
|
-
function
|
|
7
|
+
function createApplicationUid(options) {
|
|
9
8
|
const git_org = replacer(options.org);
|
|
10
9
|
const git_repo = replacer(options.project);
|
|
11
10
|
const app_name = replacer(options.name);
|
|
12
11
|
return [app_name, git_repo, git_org].join('.').toLowerCase();
|
|
13
12
|
}
|
|
14
|
-
exports.
|
|
15
|
-
//# sourceMappingURL=create-application-
|
|
13
|
+
exports.createApplicationUid = createApplicationUid;
|
|
14
|
+
//# sourceMappingURL=create-application-uid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-application-uid.js","sourceRoot":"","sources":["../../../src/lib/utils/create-application-uid.ts"],"names":[],"mappings":";;;AAAA,SAAS,QAAQ,CAAC,GAAW;IAC3B,OAAO,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,OAIpC;IACC,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;AAC/D,CAAC;AATD,oDASC"}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createSnapshotId = void 0;
|
|
4
|
-
const
|
|
3
|
+
exports.flatCreateSnapshotId = exports.createSnapshotId = void 0;
|
|
4
|
+
const create_application_uid_1 = require("./create-application-uid");
|
|
5
5
|
function createSnapshotId(options) {
|
|
6
|
-
const build_id = [options.zeConfig.user, options.zeConfig.buildId]
|
|
7
|
-
|
|
6
|
+
const build_id = [options.zeConfig.user, options.zeConfig.buildId]
|
|
7
|
+
.join('-')
|
|
8
|
+
.replace(/_/gm, '-');
|
|
9
|
+
return [build_id, (0, create_application_uid_1.createApplicationUid)(options.app)].join('.');
|
|
8
10
|
}
|
|
9
11
|
exports.createSnapshotId = createSnapshotId;
|
|
12
|
+
function flatCreateSnapshotId(props) {
|
|
13
|
+
const build_id = [props.username, props.buildId].join('_');
|
|
14
|
+
return [
|
|
15
|
+
build_id,
|
|
16
|
+
(0, create_application_uid_1.createApplicationUid)({
|
|
17
|
+
org: props.org,
|
|
18
|
+
project: props.project,
|
|
19
|
+
name: props.name,
|
|
20
|
+
}),
|
|
21
|
+
].join('.');
|
|
22
|
+
}
|
|
23
|
+
exports.flatCreateSnapshotId = flatCreateSnapshotId;
|
|
10
24
|
//# sourceMappingURL=create-snapshot-id.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-snapshot-id.js","sourceRoot":"","sources":["../../../src/lib/utils/create-snapshot-id.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"create-snapshot-id.js","sourceRoot":"","sources":["../../../src/lib/utils/create-snapshot-id.ts"],"names":[],"mappings":";;;AAAA,qEAAgE;AAEhE,SAAgB,gBAAgB,CAAC,OAGhC;IACC,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;SAC/D,IAAI,CAAC,GAAG,CAAC;SACT,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACvB,OAAO,CAAC,QAAQ,EAAE,IAAA,6CAAoB,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACjE,CAAC;AARD,4CAQC;AAED,SAAgB,oBAAoB,CAAC,KAMpC;IACC,MAAM,QAAQ,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3D,OAAO;QACL,QAAQ;QACR,IAAA,6CAAoB,EAAC;YACnB,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,IAAI,EAAE,KAAK,CAAC,IAAI;SACjB,CAAC;KACH,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC;AAhBD,oDAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safe-json-parse.js","sourceRoot":"","sources":["../../../src/lib/utils/safe-json-parse.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,
|
|
1
|
+
{"version":3,"file":"safe-json-parse.js","sourceRoot":"","sources":["../../../src/lib/utils/safe-json-parse.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAA8B,GAAW;IACtE,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAAC,WAAM,CAAC;QACP,OAAO;IACT,CAAC;AACH,CAAC;AAND,0CAMC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Extracts and returns the license/licenses abbrevations
|
|
3
|
-
*
|
|
4
|
-
* @param
|
|
5
|
-
* @
|
|
2
|
+
* Extracts and returns the license/licenses abbrevations from the respective fields.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} packageJson The package.json file content as object.
|
|
5
|
+
* @returns {String}
|
|
6
6
|
*/
|
|
7
7
|
export interface LocalPackageJson {
|
|
8
8
|
name: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Extracts and returns the license/licenses abbrevations
|
|
4
|
-
*
|
|
5
|
-
* @param
|
|
6
|
-
* @
|
|
3
|
+
* Extracts and returns the license/licenses abbrevations from the respective fields.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} packageJson The package.json file content as object.
|
|
6
|
+
* @returns {String}
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
//# sourceMappingURL=local-package-json.js.map
|
|
@@ -1,87 +1,106 @@
|
|
|
1
|
+
/** Todo: this worst and most outdated model so far, had to be refactored */
|
|
1
2
|
export interface ZephyrBuildStats {
|
|
2
|
-
/** */
|
|
3
|
+
/** @deprecated */
|
|
3
4
|
project: string;
|
|
4
|
-
/**
|
|
5
|
+
/** Application_uid */
|
|
5
6
|
id: string;
|
|
6
|
-
/** */
|
|
7
7
|
name: string;
|
|
8
|
-
/** */
|
|
9
8
|
version: string;
|
|
10
|
-
/**
|
|
9
|
+
/** @deprecated */
|
|
11
10
|
environment: string;
|
|
12
|
-
/** */
|
|
13
11
|
posted?: Date;
|
|
14
|
-
/**
|
|
15
|
-
*/
|
|
12
|
+
/** Default to `remoteEntry.js` unless user defines it */
|
|
16
13
|
remote: string | undefined;
|
|
17
|
-
/**
|
|
14
|
+
/** @deprecated - Never use meta, metadata and other senseless data aggregator names */
|
|
18
15
|
metadata: unknown;
|
|
19
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* This is for understanding what dependencies are being shared and created by the
|
|
18
|
+
* remote
|
|
19
|
+
*
|
|
20
20
|
* @question how are we going to use it in the future ?
|
|
21
21
|
*/
|
|
22
22
|
overrides: ApplicationOverride[];
|
|
23
|
-
/**
|
|
23
|
+
/** The remotes this app is consuming */
|
|
24
24
|
consumes: ApplicationConsumes[];
|
|
25
|
-
/**
|
|
26
|
-
* @description this is the component this app is exposing, includes the component name and file name
|
|
27
|
-
*/
|
|
25
|
+
/** This is the component this app is exposing, includes the component name and file name */
|
|
28
26
|
modules: ApplicationModule[];
|
|
29
|
-
/** */
|
|
27
|
+
/** @deprecated */
|
|
30
28
|
tags: string[];
|
|
31
|
-
/**
|
|
29
|
+
/** Dependencies in package.json */
|
|
32
30
|
dependencies?: RawDependency[];
|
|
33
|
-
/**
|
|
31
|
+
/** OptionalDependencies in package.json */
|
|
34
32
|
optionalDependencies?: RawDependency[];
|
|
35
|
-
/**
|
|
33
|
+
/** PeerDependencies in package.json */
|
|
36
34
|
peerDependencies?: RawDependency[];
|
|
37
|
-
/**
|
|
35
|
+
/** DevDependencies in package.json */
|
|
38
36
|
devDependencies?: RawDependency[];
|
|
39
|
-
/** What does this default means and what it indicates? */
|
|
37
|
+
/** @deprecated - What does this default means and what it indicates? */
|
|
40
38
|
default?: boolean;
|
|
41
|
-
/**
|
|
39
|
+
/** If this is a host app all the remotes goes into here from the mFConfig */
|
|
42
40
|
remotes?: string[];
|
|
43
41
|
app: {
|
|
44
|
-
/**
|
|
42
|
+
/** Name field from package.json */
|
|
45
43
|
name: string;
|
|
46
|
-
/**
|
|
44
|
+
/** Version field form package.json */
|
|
47
45
|
version: string;
|
|
48
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* If the repository's git remote url is https://github.com/ZephyrCloudIO/zephyr-mono,
|
|
48
|
+
* ZephyrCloudIO would be the org field here
|
|
49
|
+
*/
|
|
49
50
|
org: string;
|
|
50
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* If the repository's git remote url is https://github.com/ZephyrCloudIO/zephyr-mono,
|
|
53
|
+
* zephyr-mono would be the project field here
|
|
54
|
+
*/
|
|
51
55
|
project: string;
|
|
52
|
-
/**
|
|
56
|
+
/** This is the user's uuid */
|
|
53
57
|
buildId: string;
|
|
54
58
|
};
|
|
55
59
|
git: {
|
|
56
|
-
/**
|
|
57
|
-
|
|
60
|
+
/**
|
|
61
|
+
* If the local git configuration sets a username this `git.name` would be the `git
|
|
62
|
+
* user.name`, see [ze-util-get-git-info] in zephyr-agent
|
|
63
|
+
*
|
|
64
|
+
* @required To build a successfully through Zephyr user must have this field
|
|
65
|
+
*/
|
|
58
66
|
name: string;
|
|
59
|
-
/**
|
|
60
|
-
|
|
67
|
+
/**
|
|
68
|
+
* If the email of local git config is set this email is the `git user.email`
|
|
69
|
+
*
|
|
70
|
+
* @required To build a successfully through Zephyr user must have this field
|
|
71
|
+
*/
|
|
61
72
|
email: string;
|
|
62
|
-
/**
|
|
63
|
-
|
|
73
|
+
/**
|
|
74
|
+
* If the branch of this repository is set this would be the result after running `git
|
|
75
|
+
* rev-parse --abbrev-ref HEAD`
|
|
76
|
+
*
|
|
77
|
+
* @required To build a successfully through Zephyr user must have this field
|
|
78
|
+
*/
|
|
64
79
|
branch: string;
|
|
65
|
-
/**
|
|
66
|
-
|
|
80
|
+
/**
|
|
81
|
+
* If there has been commit of this repo, this would be the result of `git rev-parse
|
|
82
|
+
* HEAD`
|
|
83
|
+
*
|
|
84
|
+
* @requires To build a successfully through Zephyr user must have this field
|
|
85
|
+
*/
|
|
67
86
|
commit: string;
|
|
68
87
|
};
|
|
69
88
|
context: {
|
|
70
|
-
/** */
|
|
71
|
-
/** */
|
|
72
89
|
username?: string;
|
|
73
90
|
isCI: boolean;
|
|
74
91
|
};
|
|
75
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Become the first part of `remote_host` and `remote_entry_url` in database in
|
|
94
|
+
* `ApplicationTag` table
|
|
76
95
|
*/
|
|
77
96
|
edge: {
|
|
78
97
|
url: string;
|
|
79
98
|
versionUrl?: string;
|
|
80
99
|
};
|
|
81
|
-
/** */
|
|
82
100
|
domain?: string | undefined;
|
|
101
|
+
/** @deprecated */
|
|
83
102
|
platform?: DeploymentIntegrationPlatform | undefined;
|
|
84
|
-
/**
|
|
103
|
+
/** @deprecated */
|
|
85
104
|
type: unknown;
|
|
86
105
|
}
|
|
87
106
|
declare enum DeploymentIntegrationPlatform {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";AAAA,0BAA0B;;AAiH1B,IAAK,6BAMJ;AAND,WAAK,6BAA6B;IAChC,0DAAyB,CAAA;IACzB,4CAAW,CAAA;IACX,oDAAmB,CAAA;IACnB,gDAAe,CAAA;IACf,4CAAW,CAAA;AACb,CAAC,EANI,6BAA6B,KAA7B,6BAA6B,QAMjC"}
|