zephyr-edge-contract 0.0.0-canary-20241122020244 → 0.0.0-canary-20241122025316

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 (98) hide show
  1. package/dist/index.d.ts +9 -22
  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/plugin-options/{zephyr-plugin-options.js → zephyr-webpack-plugin-options.js} +1 -1
  7. package/dist/lib/plugin-options/zephyr-webpack-plugin-options.js.map +1 -0
  8. package/dist/lib/promise/index.d.ts +29 -0
  9. package/dist/lib/promise/index.js +63 -0
  10. package/dist/lib/promise/index.js.map +1 -0
  11. package/dist/lib/snapshot.js +1 -0
  12. package/dist/lib/snapshot.js.map +1 -1
  13. package/dist/lib/{utils → string}/string.d.ts +6 -2
  14. package/dist/lib/{utils → string}/string.js +2 -1
  15. package/dist/lib/string/string.js.map +1 -0
  16. package/dist/lib/{utils → string}/strip-ansi.d.ts +2 -1
  17. package/dist/lib/{utils → string}/strip-ansi.js +2 -1
  18. package/dist/lib/string/strip-ansi.js.map +1 -0
  19. package/dist/lib/utils/{create-application-u-i-d.d.ts → create-application-uid.d.ts} +1 -1
  20. package/dist/lib/utils/{create-application-u-i-d.js → create-application-uid.js} +5 -6
  21. package/dist/lib/utils/create-application-uid.js.map +1 -0
  22. package/dist/lib/utils/create-snapshot-id.d.ts +7 -0
  23. package/dist/lib/utils/create-snapshot-id.js +18 -4
  24. package/dist/lib/utils/create-snapshot-id.js.map +1 -1
  25. package/dist/lib/zephyr-build-stats.d.ts +30 -12
  26. package/dist/lib/zephyr-build-stats.js +1 -0
  27. package/dist/lib/zephyr-build-stats.js.map +1 -1
  28. package/dist/lib/zephyr-edge-contract.d.ts +12 -4
  29. package/dist/lib/zephyr-edge-contract.js +1 -0
  30. package/dist/lib/zephyr-edge-contract.js.map +1 -1
  31. package/dist/package.json +3 -7
  32. package/package.json +3 -7
  33. package/dist/lib/errors/codes.d.ts +0 -308
  34. package/dist/lib/errors/codes.js +0 -406
  35. package/dist/lib/errors/codes.js.map +0 -1
  36. package/dist/lib/errors/index.d.ts +0 -2
  37. package/dist/lib/errors/index.js +0 -6
  38. package/dist/lib/errors/index.js.map +0 -1
  39. package/dist/lib/errors/zephyr.d.ts +0 -513
  40. package/dist/lib/errors/zephyr.js +0 -153
  41. package/dist/lib/errors/zephyr.js.map +0 -1
  42. package/dist/lib/node-persist/app-deploy-result-cache.d.ts +0 -7
  43. package/dist/lib/node-persist/app-deploy-result-cache.js +0 -26
  44. package/dist/lib/node-persist/app-deploy-result-cache.js.map +0 -1
  45. package/dist/lib/node-persist/application-configuration.d.ts +0 -4
  46. package/dist/lib/node-persist/application-configuration.js +0 -29
  47. package/dist/lib/node-persist/application-configuration.js.map +0 -1
  48. package/dist/lib/node-persist/fs-cache.d.ts +0 -3
  49. package/dist/lib/node-persist/fs-cache.js +0 -26
  50. package/dist/lib/node-persist/fs-cache.js.map +0 -1
  51. package/dist/lib/node-persist/hash-cache.d.ts +0 -7
  52. package/dist/lib/node-persist/hash-cache.js +0 -26
  53. package/dist/lib/node-persist/hash-cache.js.map +0 -1
  54. package/dist/lib/node-persist/partial-assets-map.d.ts +0 -4
  55. package/dist/lib/node-persist/partial-assets-map.js +0 -31
  56. package/dist/lib/node-persist/partial-assets-map.js.map +0 -1
  57. package/dist/lib/node-persist/secret-token.d.ts +0 -2
  58. package/dist/lib/node-persist/secret-token.js +0 -13
  59. package/dist/lib/node-persist/secret-token.js.map +0 -1
  60. package/dist/lib/node-persist/storage-keys.d.ts +0 -10
  61. package/dist/lib/node-persist/storage-keys.js +0 -15
  62. package/dist/lib/node-persist/storage-keys.js.map +0 -1
  63. package/dist/lib/node-persist/token.d.ts +0 -4
  64. package/dist/lib/node-persist/token.js +0 -36
  65. package/dist/lib/node-persist/token.js.map +0 -1
  66. package/dist/lib/node-persist/upload-provider-options.d.ts +0 -22
  67. package/dist/lib/node-persist/upload-provider-options.js +0 -13
  68. package/dist/lib/node-persist/upload-provider-options.js.map +0 -1
  69. package/dist/lib/plugin-options/zephyr-plugin-options.js.map +0 -1
  70. package/dist/lib/utils/clean-stack.d.ts +0 -7
  71. package/dist/lib/utils/clean-stack.js +0 -44
  72. package/dist/lib/utils/clean-stack.js.map +0 -1
  73. package/dist/lib/utils/create-application-u-i-d.js.map +0 -1
  74. package/dist/lib/utils/debug-enabled.d.ts +0 -1
  75. package/dist/lib/utils/debug-enabled.js +0 -9
  76. package/dist/lib/utils/debug-enabled.js.map +0 -1
  77. package/dist/lib/utils/debug.d.ts +0 -22
  78. package/dist/lib/utils/debug.js +0 -36
  79. package/dist/lib/utils/debug.js.map +0 -1
  80. package/dist/lib/utils/error-codes-messages.d.ts +0 -206
  81. package/dist/lib/utils/error-codes-messages.js +0 -203
  82. package/dist/lib/utils/error-codes-messages.js.map +0 -1
  83. package/dist/lib/utils/error-formatted-message.d.ts +0 -5
  84. package/dist/lib/utils/error-formatted-message.js +0 -36
  85. package/dist/lib/utils/error-formatted-message.js.map +0 -1
  86. package/dist/lib/utils/picocolor.d.ts +0 -43
  87. package/dist/lib/utils/picocolor.js +0 -85
  88. package/dist/lib/utils/picocolor.js.map +0 -1
  89. package/dist/lib/utils/promise.d.ts +0 -12
  90. package/dist/lib/utils/promise.js +0 -29
  91. package/dist/lib/utils/promise.js.map +0 -1
  92. package/dist/lib/utils/string.js.map +0 -1
  93. package/dist/lib/utils/strip-ansi.js.map +0 -1
  94. package/dist/lib/utils/ze-http-request.d.ts +0 -19
  95. package/dist/lib/utils/ze-http-request.js +0 -157
  96. package/dist/lib/utils/ze-http-request.js.map +0 -1
  97. package/test/utils/string.test.ts +0 -96
  98. /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 { ZEPHYR_API_ENDPOINT, ZE_API_ENDPOINT, ZE_IS_PREVIEW, ze_api_gateway } from './lib/api-contract-negotiation/get-api-contract';
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 { ZeErrorCategories, ZeErrors, ZephyrError } from './lib/errors';
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 { createApplicationUID } from './lib/utils/create-application-u-i-d';
17
- export { createSnapshotId } from './lib/utils/create-snapshot-id';
18
- export { brightBlueBgName, brightGreenBgName, brightRedBgName, brightYellowBgName, dimmedName, ze_error, ze_log } from './lib/utils/debug';
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.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,uCAAwE;AAA/D,2GAAA,iBAAiB,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAAE,qGAAA,WAAW,OAAA;AAEjD,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,+DAA4D;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"}
@@ -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('-').replace(/_/gm, '-');
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('-').replace(/_/gm, '-');
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,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACjG,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,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC/E,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,16 +1,21 @@
1
+ /** Todo: this worst and most outdated model so far, had to be refactored */
1
2
  export interface ZephyrBuildStats {
3
+ /** @deprecated */
2
4
  project: string;
3
5
  /** Application_uid */
4
6
  id: string;
5
7
  name: string;
6
8
  version: string;
9
+ /** @deprecated */
7
10
  environment: string;
8
11
  posted?: Date;
9
12
  /** Default to `remoteEntry.js` unless user defines it */
10
13
  remote: string | undefined;
14
+ /** @deprecated - Never use meta, metadata and other senseless data aggregator names */
11
15
  metadata: unknown;
12
16
  /**
13
- * This is for understanding what dependencies are being shared and created by the remote
17
+ * This is for understanding what dependencies are being shared and created by the
18
+ * remote
14
19
  *
15
20
  * @question how are we going to use it in the future ?
16
21
  */
@@ -19,6 +24,7 @@ export interface ZephyrBuildStats {
19
24
  consumes: ApplicationConsumes[];
20
25
  /** This is the component this app is exposing, includes the component name and file name */
21
26
  modules: ApplicationModule[];
27
+ /** @deprecated */
22
28
  tags: string[];
23
29
  /** Dependencies in package.json */
24
30
  dependencies?: RawDependency[];
@@ -28,7 +34,7 @@ export interface ZephyrBuildStats {
28
34
  peerDependencies?: RawDependency[];
29
35
  /** DevDependencies in package.json */
30
36
  devDependencies?: RawDependency[];
31
- /** What does this default means and what it indicates? */
37
+ /** @deprecated - What does this default means and what it indicates? */
32
38
  default?: boolean;
33
39
  /** If this is a host app all the remotes goes into here from the mFConfig */
34
40
  remotes?: string[];
@@ -37,17 +43,23 @@ export interface ZephyrBuildStats {
37
43
  name: string;
38
44
  /** Version field form package.json */
39
45
  version: string;
40
- /** 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
+ */
41
50
  org: string;
42
- /** 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
+ */
43
55
  project: string;
44
56
  /** This is the user's uuid */
45
57
  buildId: string;
46
58
  };
47
59
  git: {
48
60
  /**
49
- * If the local git configuration sets a username this `git.name` would be the `git user.name`, see [ze-util-get-git-info] in
50
- * zephyr-agent
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
51
63
  *
52
64
  * @required To build a successfully through Zephyr user must have this field
53
65
  */
@@ -59,13 +71,15 @@ export interface ZephyrBuildStats {
59
71
  */
60
72
  email: string;
61
73
  /**
62
- * If the branch of this repository is set this would be the result after running `git rev-parse --abbrev-ref HEAD`
74
+ * If the branch of this repository is set this would be the result after running `git
75
+ * rev-parse --abbrev-ref HEAD`
63
76
  *
64
77
  * @required To build a successfully through Zephyr user must have this field
65
78
  */
66
79
  branch: string;
67
80
  /**
68
- * If there has been commit of this repo, this would be the result of `git rev-parse HEAD`
81
+ * If there has been commit of this repo, this would be the result of `git rev-parse
82
+ * HEAD`
69
83
  *
70
84
  * @requires To build a successfully through Zephyr user must have this field
71
85
  */
@@ -75,17 +89,21 @@ export interface ZephyrBuildStats {
75
89
  username?: string;
76
90
  isCI: boolean;
77
91
  };
78
- /** 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
95
+ */
79
96
  edge: {
80
97
  url: string;
81
98
  versionUrl?: string;
82
99
  };
83
- /** Unused legacy field */
100
+ domain?: string | undefined;
101
+ /** @deprecated */
84
102
  platform?: DeploymentIntegrationPlatform | undefined;
85
- /** //TODO: remove this field, unused */
86
- type?: unknown;
87
103
  /** The target platform of the build */
88
104
  build_target?: string;
105
+ /** @deprecated */
106
+ type: unknown;
89
107
  }
90
108
  declare enum DeploymentIntegrationPlatform {
91
109
  CLOUDFLARE = "cloudflare",
@@ -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) {
@@ -1 +1 @@
1
- {"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";;AAgGA,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"}
1
+ {"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";AAAA,0BAA0B;;AAmH1B,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"}
@@ -20,17 +20,26 @@ interface KnownAssetInfo {
20
20
  modulehash?: string | string[];
21
21
  /** The value(s) of the content hash used for this asset */
22
22
  contenthash?: string | string[];
23
- /** When asset was created from a source file (potentially transformed), the original filename relative to compilation context */
23
+ /**
24
+ * When asset was created from a source file (potentially transformed), the original
25
+ * filename relative to compilation context
26
+ */
24
27
  sourceFilename?: string;
25
28
  /** Size in bytes, only set after asset has been emitted */
26
29
  size?: number;
27
- /** True, when asset is only used for development and doesn't count towards user-facing assets */
30
+ /**
31
+ * True, when asset is only used for development and doesn't count towards user-facing
32
+ * assets
33
+ */
28
34
  development?: boolean;
29
35
  /** True, when asset ships data for updating an existing application (HMR) */
30
36
  hotModuleReplacement?: boolean;
31
37
  /** True, when asset is javascript and an ESM */
32
38
  javascriptModule?: boolean;
33
- /** Object of pointers to other assets, keyed by type of relation (only points from parent to child) */
39
+ /**
40
+ * Object of pointers to other assets, keyed by type of relation (only points from
41
+ * parent to child)
42
+ */
34
43
  related?: Record<string, string | string[]>;
35
44
  }
36
45
  export interface Source {
@@ -47,7 +56,6 @@ export interface UploadableAsset {
47
56
  }
48
57
  export interface ZeUploadAssetsOptions {
49
58
  missingAssets: ZeBuildAsset[];
50
- count: number;
51
59
  assetsMap: {
52
60
  [key: string]: ZeBuildAsset;
53
61
  };
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
+ /* istanbul ignore file */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  //# sourceMappingURL=zephyr-edge-contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"zephyr-edge-contract.js","sourceRoot":"","sources":["../../src/lib/zephyr-edge-contract.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"zephyr-edge-contract.js","sourceRoot":"","sources":["../../src/lib/zephyr-edge-contract.ts"],"names":[],"mappings":";AAAA,0BAA0B"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-edge-contract",
3
- "version": "0.0.26",
3
+ "version": "0.0.30",
4
4
  "license": "Apache-2.0",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -11,13 +11,9 @@
11
11
  "patch-version": "pnpm version"
12
12
  },
13
13
  "dependencies": {
14
- "tslib": "^2.3.0",
15
- "debug": "^4.3.4",
16
- "node-persist": "^4.0.1"
14
+ "tslib": "^2.3.0"
17
15
  },
18
16
  "devDependencies": {
19
- "@types/node": "^20.11.19",
20
- "@types/node-persist": "^3.1.8",
21
- "@types/debug": "^4.1.12"
17
+ "@types/node": "^20.11.19"
22
18
  }
23
19
  }