zephyr-edge-contract 0.0.25 → 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.
Files changed (102) hide show
  1. package/dist/index.d.ts +17 -28
  2. package/dist/index.js +24 -45
  3. package/dist/index.js.map +1 -1
  4. package/dist/lib/api-contract-negotiation/get-api-contract.js +1 -0
  5. package/dist/lib/api-contract-negotiation/get-api-contract.js.map +1 -1
  6. package/dist/lib/edge-api/publish-request.d.ts +1 -1
  7. package/dist/lib/plugin-options/{zephyr-plugin-options.js → zephyr-webpack-plugin-options.js} +1 -1
  8. package/dist/lib/plugin-options/zephyr-webpack-plugin-options.js.map +1 -0
  9. package/dist/lib/promise/index.d.ts +29 -0
  10. package/dist/lib/promise/index.js +63 -0
  11. package/dist/lib/promise/index.js.map +1 -0
  12. package/dist/lib/snapshot.js +1 -0
  13. package/dist/lib/snapshot.js.map +1 -1
  14. package/dist/lib/{utils → string}/string.d.ts +6 -2
  15. package/dist/lib/{utils → string}/string.js +2 -1
  16. package/dist/lib/string/string.js.map +1 -0
  17. package/dist/lib/{utils → string}/strip-ansi.d.ts +2 -1
  18. package/dist/lib/{utils → string}/strip-ansi.js +2 -1
  19. package/dist/lib/string/strip-ansi.js.map +1 -0
  20. package/dist/lib/utils/{create-application-u-i-d.d.ts → create-application-uid.d.ts} +1 -1
  21. package/dist/lib/utils/{create-application-u-i-d.js → create-application-uid.js} +5 -6
  22. package/dist/lib/utils/create-application-uid.js.map +1 -0
  23. package/dist/lib/utils/create-snapshot-id.d.ts +7 -0
  24. package/dist/lib/utils/create-snapshot-id.js +18 -4
  25. package/dist/lib/utils/create-snapshot-id.js.map +1 -1
  26. package/dist/lib/utils/safe-json-parse.js.map +1 -1
  27. package/dist/lib/ze-api/local-package-json.d.ts +4 -4
  28. package/dist/lib/ze-api/local-package-json.js +4 -4
  29. package/dist/lib/zephyr-build-stats.d.ts +58 -39
  30. package/dist/lib/zephyr-build-stats.js +1 -0
  31. package/dist/lib/zephyr-build-stats.js.map +1 -1
  32. package/dist/lib/zephyr-edge-contract.d.ts +18 -40
  33. package/dist/lib/zephyr-edge-contract.js +1 -0
  34. package/dist/lib/zephyr-edge-contract.js.map +1 -1
  35. package/dist/package.json +5 -8
  36. package/package.json +5 -8
  37. package/dist/lib/errors/codes.d.ts +0 -276
  38. package/dist/lib/errors/codes.js +0 -349
  39. package/dist/lib/errors/codes.js.map +0 -1
  40. package/dist/lib/errors/index.d.ts +0 -2
  41. package/dist/lib/errors/index.js +0 -6
  42. package/dist/lib/errors/index.js.map +0 -1
  43. package/dist/lib/errors/zephyr.d.ts +0 -463
  44. package/dist/lib/errors/zephyr.js +0 -153
  45. package/dist/lib/errors/zephyr.js.map +0 -1
  46. package/dist/lib/node-persist/app-deploy-result-cache.d.ts +0 -7
  47. package/dist/lib/node-persist/app-deploy-result-cache.js +0 -33
  48. package/dist/lib/node-persist/app-deploy-result-cache.js.map +0 -1
  49. package/dist/lib/node-persist/application-configuration.d.ts +0 -4
  50. package/dist/lib/node-persist/application-configuration.js +0 -36
  51. package/dist/lib/node-persist/application-configuration.js.map +0 -1
  52. package/dist/lib/node-persist/fs-cache.d.ts +0 -3
  53. package/dist/lib/node-persist/fs-cache.js +0 -33
  54. package/dist/lib/node-persist/fs-cache.js.map +0 -1
  55. package/dist/lib/node-persist/hash-cache.d.ts +0 -7
  56. package/dist/lib/node-persist/hash-cache.js +0 -33
  57. package/dist/lib/node-persist/hash-cache.js.map +0 -1
  58. package/dist/lib/node-persist/partial-assets-map.d.ts +0 -4
  59. package/dist/lib/node-persist/partial-assets-map.js +0 -38
  60. package/dist/lib/node-persist/partial-assets-map.js.map +0 -1
  61. package/dist/lib/node-persist/secret-token.d.ts +0 -2
  62. package/dist/lib/node-persist/secret-token.js +0 -12
  63. package/dist/lib/node-persist/secret-token.js.map +0 -1
  64. package/dist/lib/node-persist/storage-keys.d.ts +0 -10
  65. package/dist/lib/node-persist/storage-keys.js +0 -5
  66. package/dist/lib/node-persist/storage-keys.js.map +0 -1
  67. package/dist/lib/node-persist/token.d.ts +0 -4
  68. package/dist/lib/node-persist/token.js +0 -45
  69. package/dist/lib/node-persist/token.js.map +0 -1
  70. package/dist/lib/node-persist/upload-provider-options.d.ts +0 -20
  71. package/dist/lib/node-persist/upload-provider-options.js +0 -12
  72. package/dist/lib/node-persist/upload-provider-options.js.map +0 -1
  73. package/dist/lib/plugin-options/zephyr-plugin-options.js.map +0 -1
  74. package/dist/lib/utils/clean-stack.d.ts +0 -7
  75. package/dist/lib/utils/clean-stack.js +0 -44
  76. package/dist/lib/utils/clean-stack.js.map +0 -1
  77. package/dist/lib/utils/create-application-u-i-d.js.map +0 -1
  78. package/dist/lib/utils/debug-enabled.d.ts +0 -1
  79. package/dist/lib/utils/debug-enabled.js +0 -9
  80. package/dist/lib/utils/debug-enabled.js.map +0 -1
  81. package/dist/lib/utils/debug.d.ts +0 -22
  82. package/dist/lib/utils/debug.js +0 -36
  83. package/dist/lib/utils/debug.js.map +0 -1
  84. package/dist/lib/utils/error-codes-messages.d.ts +0 -218
  85. package/dist/lib/utils/error-codes-messages.js +0 -215
  86. package/dist/lib/utils/error-codes-messages.js.map +0 -1
  87. package/dist/lib/utils/error-formatted-message.d.ts +0 -5
  88. package/dist/lib/utils/error-formatted-message.js +0 -36
  89. package/dist/lib/utils/error-formatted-message.js.map +0 -1
  90. package/dist/lib/utils/picocolor.d.ts +0 -43
  91. package/dist/lib/utils/picocolor.js +0 -85
  92. package/dist/lib/utils/picocolor.js.map +0 -1
  93. package/dist/lib/utils/promise.d.ts +0 -12
  94. package/dist/lib/utils/promise.js +0 -32
  95. package/dist/lib/utils/promise.js.map +0 -1
  96. package/dist/lib/utils/string.js.map +0 -1
  97. package/dist/lib/utils/strip-ansi.js.map +0 -1
  98. package/dist/lib/utils/ze-http-request.d.ts +0 -19
  99. package/dist/lib/utils/ze-http-request.js +0 -156
  100. package/dist/lib/utils/ze-http-request.js.map +0 -1
  101. package/test/utils/string.test.ts +0 -96
  102. /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,29 +1,18 @@
1
- export { ZEPHYR_API_ENDPOINT, ZE_API_ENDPOINT, ZE_IS_PREVIEW, ze_api_gateway } from './lib/api-contract-negotiation/get-api-contract';
2
- export { PublishRequest, StageZeroPublishRequest } from './lib/edge-api/publish-request';
3
- export { ZeEnvs, ZeUploadBuildStats } from './lib/edge-api/ze-envs-request';
4
- export { ZeErrorCategories, ZeErrorCodes, ZeErrorKeys, ZeErrorType, ZeErrors, ZephyrError } from './lib/errors';
5
- export * as appDeployResultCache from './lib/node-persist/app-deploy-result-cache';
6
- export { getAppConfig, removeAppConfig, saveAppConfig } from './lib/node-persist/application-configuration';
7
- export * as _fs_cache from './lib/node-persist/fs-cache';
8
- export * as _hash_cache from './lib/node-persist/hash-cache';
9
- export { getPartialAssetMap, removePartialAssetMap, savePartialAssetMap } from './lib/node-persist/partial-assets-map';
10
- export { getSecretToken, hasSecretToken } from './lib/node-persist/secret-token';
11
- export { cleanTokens, getToken, removeToken, saveToken } from './lib/node-persist/token';
12
- export * from './lib/node-persist/upload-provider-options';
13
- export { ZephyrPluginOptions } from './lib/plugin-options/zephyr-plugin-options';
14
- export { Snapshot, SnapshotAsset, SnapshotMetadata } from './lib/snapshot';
15
- export { createApplicationUID } from './lib/utils/create-application-u-i-d';
16
- export { createSnapshotId } from './lib/utils/create-snapshot-id';
17
- export { brightBlueBgName, brightGreenBgName, brightRedBgName, brightYellowBgName, dimmedName, ze_error, ze_log } from './lib/utils/debug';
18
- export * from './lib/utils/debug-enabled';
19
- export * from './lib/utils/picocolor';
20
- export * as color from './lib/utils/picocolor';
21
- export * as ZeUtils from './lib/utils/promise';
1
+ export type { PublishRequest, StageZeroPublishRequest, PublishTarget, } from './lib/edge-api/publish-request';
2
+ export type { ZeEnvs, ZeUploadBuildStats } from './lib/edge-api/ze-envs-request';
3
+ export type { ZephyrPluginOptions } from './lib/plugin-options/zephyr-webpack-plugin-options';
4
+ export type { Snapshot, SnapshotAsset, SnapshotMetadata } from './lib/snapshot';
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';
22
8
  export { safe_json_parse } from './lib/utils/safe-json-parse';
23
- export { HttpResponse, UrlString, ZeHttpRequest } from './lib/utils/ze-http-request';
24
- export { ZeApplicationList } from './lib/ze-api/app-list';
25
- export { ZeAppVersion, ZeAppVersionResponse } from './lib/ze-api/app-version';
26
- export { ConvertedGraph } from './lib/ze-api/converted-graph';
27
- export { LocalPackageJson } from './lib/ze-api/local-package-json';
28
- export { ZephyrBuildStats } from './lib/zephyr-build-stats';
29
- export { Asset, SnapshotUploadRes, Source, UploadableAsset, ZeBuildAsset, ZeBuildAssetsMap, ZeUploadAssetsOptions, } from './lib/zephyr-edge-contract';
9
+ export type { ZeApplicationList } from './lib/ze-api/app-list';
10
+ export type { ZeAppVersion, ZeAppVersionResponse } from './lib/ze-api/app-version';
11
+ export type { ConvertedGraph } from './lib/ze-api/converted-graph';
12
+ export type { LocalPackageJson } from './lib/ze-api/local-package-json';
13
+ export type { ZephyrBuildStats } from './lib/zephyr-build-stats';
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.ZeHttpRequest = exports.safe_json_parse = exports.ZeUtils = exports.color = exports.ze_log = exports.ze_error = exports.dimmedName = exports.brightYellowBgName = exports.brightRedBgName = exports.brightGreenBgName = exports.brightBlueBgName = exports.createSnapshotId = exports.createApplicationUID = exports.saveToken = exports.removeToken = exports.getToken = exports.cleanTokens = exports.hasSecretToken = exports.getSecretToken = exports.savePartialAssetMap = exports.removePartialAssetMap = exports.getPartialAssetMap = exports._hash_cache = exports._fs_cache = exports.saveAppConfig = exports.removeAppConfig = exports.getAppConfig = exports.appDeployResultCache = exports.ZephyrError = exports.ZeErrors = exports.ZeErrorCategories = exports.ze_api_gateway = exports.ZE_IS_PREVIEW = exports.ZE_API_ENDPOINT = exports.ZEPHYR_API_ENDPOINT = void 0;
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
- var errors_1 = require("./lib/errors");
11
- Object.defineProperty(exports, "ZeErrorCategories", { enumerable: true, get: function () { return errors_1.ZeErrorCategories; } });
12
- Object.defineProperty(exports, "ZeErrors", { enumerable: true, get: function () { return errors_1.ZeErrors; } });
13
- Object.defineProperty(exports, "ZephyrError", { enumerable: true, get: function () { return errors_1.ZephyrError; } });
14
- exports.appDeployResultCache = tslib_1.__importStar(require("./lib/node-persist/app-deploy-result-cache"));
15
- var application_configuration_1 = require("./lib/node-persist/application-configuration");
16
- Object.defineProperty(exports, "getAppConfig", { enumerable: true, get: function () { return application_configuration_1.getAppConfig; } });
17
- Object.defineProperty(exports, "removeAppConfig", { enumerable: true, get: function () { return application_configuration_1.removeAppConfig; } });
18
- Object.defineProperty(exports, "saveAppConfig", { enumerable: true, get: function () { return application_configuration_1.saveAppConfig; } });
19
- exports._fs_cache = tslib_1.__importStar(require("./lib/node-persist/fs-cache"));
20
- exports._hash_cache = tslib_1.__importStar(require("./lib/node-persist/hash-cache"));
21
- var partial_assets_map_1 = require("./lib/node-persist/partial-assets-map");
22
- Object.defineProperty(exports, "getPartialAssetMap", { enumerable: true, get: function () { return partial_assets_map_1.getPartialAssetMap; } });
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":";;;;AAAA,oFAAsI;AAA7H,uHAAA,mBAAmB,OAAA;AAAE,mHAAA,eAAe,OAAA;AAAE,iHAAA,aAAa,OAAA;AAAE,kHAAA,cAAc,OAAA;AAG5E,uCAAgH;AAAvG,2GAAA,iBAAiB,OAAA;AAA0C,kGAAA,QAAQ,OAAA;AAAE,qGAAA,WAAW,OAAA;AACzF,2GAAmF;AACnF,0FAA4G;AAAnG,yHAAA,YAAY,OAAA;AAAE,4HAAA,eAAe,OAAA;AAAE,0HAAA,aAAa,OAAA;AACrD,iFAAyD;AACzD,qFAA6D;AAC7D,4EAAuH;AAA9G,wHAAA,kBAAkB,OAAA;AAAE,2HAAA,qBAAqB,OAAA;AAAE,yHAAA,mBAAmB,OAAA;AACvE,gEAAiF;AAAxE,8GAAA,cAAc,OAAA;AAAE,8GAAA,cAAc,OAAA;AACvC,kDAAyF;AAAhF,oGAAA,WAAW,OAAA;AAAE,iGAAA,QAAQ,OAAA;AAAE,oGAAA,WAAW,OAAA;AAAE,kGAAA,SAAS,OAAA;AACtD,qFAA2D;AAG3D,iFAA4E;AAAnE,gIAAA,oBAAoB,OAAA;AAC7B,qEAAkE;AAAzD,sHAAA,gBAAgB,OAAA;AACzB,2CAA2I;AAAlI,yGAAA,gBAAgB,OAAA;AAAE,0GAAA,iBAAiB,OAAA;AAAE,wGAAA,eAAe,OAAA;AAAE,2GAAA,kBAAkB,OAAA;AAAE,mGAAA,UAAU,OAAA;AAAE,iGAAA,QAAQ,OAAA;AAAE,+FAAA,MAAM,OAAA;AAC/G,oEAA0C;AAC1C,gEAAsC;AACtC,uEAA+C;AAC/C,uEAA+C;AAC/C,+DAA8D;AAArD,kHAAA,eAAe,OAAA;AACxB,+DAAqF;AAAnD,gHAAA,aAAa,OAAA"}
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":";;;AAAO,MAAM,mBAAmB,GAAG,GAAG,EAAE,WAAC,OAAA,MAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,mCAAI,6BAA6B,CAAA,EAAA,CAAC;AAAnF,QAAA,mBAAmB,uBAAgE;AAEzF,MAAM,eAAe,GAAG,GAAG,EAAE,WAAC,OAAA,MAAA,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,mCAAI,+BAA+B,CAAA,EAAA,CAAC;AAAtF,QAAA,eAAe,mBAAuE;AAE5F,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"}
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
- /** previously `can_write_jwt` */
21
+ /** Previously `can_write_jwt` */
22
22
  jwt: string;
23
23
  }
24
24
  export interface StageZeroPublishRequest {
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=zephyr-plugin-options.js.map
3
+ //# sourceMappingURL=zephyr-webpack-plugin-options.js.map
@@ -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"}
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
+ /* istanbul ignore file */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  //# sourceMappingURL=snapshot.js.map
@@ -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 params object.
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
- /** Gets a string like `{{ key }} text {{ key2 }}` and returns an string union with key and key2 */
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 params object.
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"}
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
2
+ * Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a
3
+ * string.
3
4
  *
4
5
  * @example
5
6
  * ```
@@ -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 string.
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,4 +1,4 @@
1
- export declare function createApplicationUID(options: {
1
+ export declare function createApplicationUid(options: {
2
2
  org: string;
3
3
  project: string;
4
4
  name: string;
@@ -1,15 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createApplicationUID = void 0;
3
+ exports.createApplicationUid = void 0;
4
4
  function replacer(str) {
5
- return str.replace(/[^a-zA-Z0-9-_]/gi, '_');
6
- // return str.replace(/\W/gi, '_');
5
+ return str.replace(/[^a-zA-Z0-9-]/gi, '-');
7
6
  }
8
- function createApplicationUID(options) {
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.createApplicationUID = createApplicationUID;
15
- //# sourceMappingURL=create-application-u-i-d.js.map
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"}
@@ -9,3 +9,10 @@ export declare function createSnapshotId(options: {
9
9
  buildId: string;
10
10
  };
11
11
  }): string;
12
+ export declare function flatCreateSnapshotId(props: {
13
+ org: string;
14
+ project: string;
15
+ name: string;
16
+ username: string;
17
+ buildId: string;
18
+ }): string;
@@ -1,10 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSnapshotId = void 0;
4
- const create_application_u_i_d_1 = require("./create-application-u-i-d");
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].join('_');
7
- return [build_id, (0, create_application_u_i_d_1.createApplicationUID)(options.app)].join('.');
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,yEAAkE;AAElE,SAAgB,gBAAgB,CAAC,OAGhC;IACC,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7E,OAAO,CAAC,QAAQ,EAAE,IAAA,+CAAoB,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACjE,CAAC;AAND,4CAMC"}
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,CAC7B,GAAW;IAEX,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAAC,WAAM,CAAC;QACP,OAAO;IACT,CAAC;AACH,CAAC;AARD,0CAQC"}
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
- * from the respective fields.
4
- * @param {Object} packageJson The package.json file content as object.
5
- * @return {String}
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
- * from the respective fields.
5
- * @param {Object} packageJson The package.json file content as object.
6
- * @return {String}
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
- /** @description application_uid */
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
- /** @description default to `remoteEntry.js` unless user defines it
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
- /** @description this is for understanding what dependencies are being shared and created by the remote
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
- /** @description the remotes this app is consuming */
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
- /** @description dependencies in package.json */
29
+ /** Dependencies in package.json */
32
30
  dependencies?: RawDependency[];
33
- /** @description optionalDependencies in package.json */
31
+ /** OptionalDependencies in package.json */
34
32
  optionalDependencies?: RawDependency[];
35
- /** @description peerDependencies in package.json */
33
+ /** PeerDependencies in package.json */
36
34
  peerDependencies?: RawDependency[];
37
- /** @description devDependencies in package.json */
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
- /** @description if this is a host app all the remotes goes into here from the mFConfig*/
39
+ /** If this is a host app all the remotes goes into here from the mFConfig */
42
40
  remotes?: string[];
43
41
  app: {
44
- /** @description name field from package.json */
42
+ /** Name field from package.json */
45
43
  name: string;
46
- /** @description version field form package.json */
44
+ /** Version field form package.json */
47
45
  version: string;
48
- /** @description if the repository's git remote url is https://github.com/ZephyrCloudIO/zephyr-mono, ZephyrCloudIO would be the org field here */
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
- /** @description if the repository's git remote url is https://github.com/ZephyrCloudIO/zephyr-mono, zephyr-mono would be the project field here */
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
- /** @description this is the user's uuid */
56
+ /** This is the user's uuid */
53
57
  buildId: string;
54
58
  };
55
59
  git: {
56
- /** @required To build a successfully through Zephyr user must have this field
57
- @description if the local git configuration sets a username this `git.name` would be the `git user.name`, see [ze-util-get-git-info] in zephyr-agent */
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
- /** @required To build a successfully through Zephyr user must have this field
60
- @description if the email of local git config is set this email is the `git user.email` */
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
- /** @required To build a successfully through Zephyr user must have this field
63
- @description if the branch of this repository is set this would be the result after running `git rev-parse --abbrev-ref HEAD` */
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
- /** @requires To build a successfully through Zephyr user must have this field
66
- @description if there has been commit of this repo, this would be the result of `git rev-parse HEAD` */
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
- /** @description become the first part of `remote_host` and `remote_entry_url` in database in `ApplicationTag` table
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,4 +1,5 @@
1
1
  "use strict";
2
+ /* istanbul ignore file */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  var DeploymentIntegrationPlatform;
4
5
  (function (DeploymentIntegrationPlatform) {