zephyr-edge-contract 0.1.2 → 0.1.3-next.2
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 +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/api-contract-negotiation/get-api-contract.d.ts +1 -0
- package/dist/lib/api-contract-negotiation/get-api-contract.js +3 -1
- package/dist/lib/api-contract-negotiation/get-api-contract.js.map +1 -1
- package/dist/lib/zephyr-build-stats.d.ts +2 -0
- package/dist/lib/zephyr-build-stats.js.map +1 -1
- package/dist/package.json +9 -1
- package/package.json +9 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ export type { ZeApplicationList } from './lib/ze-api/app-list';
|
|
|
11
11
|
export type { ZeAppVersion, ZeAppVersionResponse } from './lib/ze-api/app-version';
|
|
12
12
|
export type { ConvertedGraph } from './lib/ze-api/converted-graph';
|
|
13
13
|
export type { LocalPackageJson } from './lib/ze-api/local-package-json';
|
|
14
|
-
export type { ZephyrBuildStats, ZephyrDependency } from './lib/zephyr-build-stats';
|
|
14
|
+
export type { ApplicationConsumes, ZephyrBuildStats, ZephyrDependency, } from './lib/zephyr-build-stats';
|
|
15
15
|
export type { Asset, SnapshotUploadRes, Source, UploadableAsset, ZeBuildAsset, ZeBuildAssetsMap, ZeUploadAssetsOptions, } from './lib/zephyr-edge-contract';
|
|
16
16
|
export { ZEPHYR_MANIFEST_FILENAME, ZEPHYR_MANIFEST_VERSION, type ZephyrManifest, } from './lib/zephyr-manifest';
|
|
17
|
-
export { ZE_API_ENDPOINT, ZE_API_ENDPOINT_HOST, ze_api_gateway, ZE_IS_PREVIEW, ZEPHYR_API_ENDPOINT, } from './lib/api-contract-negotiation/get-api-contract';
|
|
17
|
+
export { ZE_API_ENDPOINT, ZE_API_ENDPOINT_HOST, ze_api_gateway, ZE_IS_PREVIEW, ZEPHYR_API_ENDPOINT, ZE_ENV, } from './lib/api-contract-negotiation/get-api-contract';
|
|
18
18
|
export { deferred, forEachLimit, isSuccessTuple, PromiseLazyLoad, PromiseTuple, PromiseWithResolvers, } from './lib/promise';
|
|
19
19
|
export { formatString, type FindTemplates } from './lib/string/string';
|
|
20
20
|
export { stripAnsi } from './lib/string/strip-ansi';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.stripAnsi = exports.formatString = exports.PromiseWithResolvers = exports.PromiseTuple = exports.PromiseLazyLoad = exports.isSuccessTuple = exports.forEachLimit = exports.deferred = exports.ZEPHYR_API_ENDPOINT = exports.ZE_IS_PREVIEW = exports.ze_api_gateway = exports.ZE_API_ENDPOINT_HOST = exports.ZE_API_ENDPOINT = exports.ZEPHYR_MANIFEST_VERSION = exports.ZEPHYR_MANIFEST_FILENAME = exports.safe_json_parse = exports.normalize_app_name = exports.flatCreateSnapshotId = exports.createSnapshotId = exports.createApplicationUid = exports.ZeUtils = void 0;
|
|
4
|
+
exports.stripAnsi = exports.formatString = exports.PromiseWithResolvers = exports.PromiseTuple = exports.PromiseLazyLoad = exports.isSuccessTuple = exports.forEachLimit = exports.deferred = exports.ZE_ENV = exports.ZEPHYR_API_ENDPOINT = exports.ZE_IS_PREVIEW = exports.ze_api_gateway = exports.ZE_API_ENDPOINT_HOST = exports.ZE_API_ENDPOINT = exports.ZEPHYR_MANIFEST_VERSION = exports.ZEPHYR_MANIFEST_FILENAME = exports.safe_json_parse = exports.normalize_app_name = exports.flatCreateSnapshotId = exports.createSnapshotId = exports.createApplicationUid = exports.ZeUtils = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
exports.ZeUtils = tslib_1.__importStar(require("./lib/promise"));
|
|
7
7
|
var create_application_uid_1 = require("./lib/utils/create-application-uid");
|
|
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "ZE_API_ENDPOINT_HOST", { enumerable: true, get:
|
|
|
23
23
|
Object.defineProperty(exports, "ze_api_gateway", { enumerable: true, get: function () { return get_api_contract_1.ze_api_gateway; } });
|
|
24
24
|
Object.defineProperty(exports, "ZE_IS_PREVIEW", { enumerable: true, get: function () { return get_api_contract_1.ZE_IS_PREVIEW; } });
|
|
25
25
|
Object.defineProperty(exports, "ZEPHYR_API_ENDPOINT", { enumerable: true, get: function () { return get_api_contract_1.ZEPHYR_API_ENDPOINT; } });
|
|
26
|
+
Object.defineProperty(exports, "ZE_ENV", { enumerable: true, get: function () { return get_api_contract_1.ZE_ENV; } });
|
|
26
27
|
// promise proto methods
|
|
27
28
|
var promise_1 = require("./lib/promise");
|
|
28
29
|
Object.defineProperty(exports, "deferred", { enumerable: true, get: function () { return promise_1.deferred; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;;AAa1B,iEAAyC;AAEzC,6EAA0E;AAAjE,8HAAA,oBAAoB,OAAA;AAC7B,qEAAwF;AAA/E,sHAAA,gBAAgB,OAAA;AAAE,0HAAA,oBAAoB,OAAA;AAC/C,2EAAgG;AAAvF,2HAAA,qBAAqB,OAAsB;AACpD,+DAA8D;AAArD,kHAAA,eAAe,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;;AAa1B,iEAAyC;AAEzC,6EAA0E;AAAjE,8HAAA,oBAAoB,OAAA;AAC7B,qEAAwF;AAA/E,sHAAA,gBAAgB,OAAA;AAAE,0HAAA,oBAAoB,OAAA;AAC/C,2EAAgG;AAAvF,2HAAA,qBAAqB,OAAsB;AACpD,+DAA8D;AAArD,kHAAA,eAAe,OAAA;AAmBxB,yDAI+B;AAH7B,2HAAA,wBAAwB,OAAA;AACxB,0HAAA,uBAAuB,OAAA;AAIzB,2BAA2B;AAC3B,oFAOyD;AANvD,mHAAA,eAAe,OAAA;AACf,wHAAA,oBAAoB,OAAA;AACpB,kHAAA,cAAc,OAAA;AACd,iHAAA,aAAa,OAAA;AACb,uHAAA,mBAAmB,OAAA;AACnB,0GAAA,MAAM,OAAA;AAGR,wBAAwB;AACxB,yCAOuB;AANrB,mGAAA,QAAQ,OAAA;AACR,uGAAA,YAAY,OAAA;AACZ,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,uGAAA,YAAY,OAAA;AACZ,+GAAA,oBAAoB,OAAA;AAGtB,uBAAuB;AACvB,8CAAuE;AAA9D,sGAAA,YAAY,OAAA;AACrB,sDAAoD;AAA3C,uGAAA,SAAS,OAAA"}
|
|
@@ -2,6 +2,7 @@ export declare const ZEPHYR_API_ENDPOINT: () => string;
|
|
|
2
2
|
export declare const ZE_API_ENDPOINT: () => string;
|
|
3
3
|
export declare const ZE_API_ENDPOINT_HOST: () => string;
|
|
4
4
|
export declare const ZE_IS_PREVIEW: () => boolean;
|
|
5
|
+
export declare const ZE_ENV: () => string | undefined;
|
|
5
6
|
export declare const ze_api_gateway: {
|
|
6
7
|
logs: string;
|
|
7
8
|
build_stats: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ze_api_gateway = exports.ZE_IS_PREVIEW = exports.ZE_API_ENDPOINT_HOST = exports.ZE_API_ENDPOINT = exports.ZEPHYR_API_ENDPOINT = void 0;
|
|
3
|
+
exports.ze_api_gateway = exports.ZE_ENV = exports.ZE_IS_PREVIEW = exports.ZE_API_ENDPOINT_HOST = exports.ZE_API_ENDPOINT = exports.ZEPHYR_API_ENDPOINT = void 0;
|
|
4
4
|
/* istanbul ignore file */
|
|
5
5
|
const ZEPHYR_API_ENDPOINT = () => { var _a; return ((_a = process.env['ZE_API']) === null || _a === void 0 ? void 0 : _a.length) ? process.env['ZE_API'] : 'https://api.zephyr-cloud.io'; };
|
|
6
6
|
exports.ZEPHYR_API_ENDPOINT = ZEPHYR_API_ENDPOINT;
|
|
@@ -15,6 +15,8 @@ const ZE_API_ENDPOINT_HOST = () => new URL((0, exports.ZE_API_ENDPOINT)()).host;
|
|
|
15
15
|
exports.ZE_API_ENDPOINT_HOST = ZE_API_ENDPOINT_HOST;
|
|
16
16
|
const ZE_IS_PREVIEW = () => process.env['ZE_IS_PREVIEW'] === 'true';
|
|
17
17
|
exports.ZE_IS_PREVIEW = ZE_IS_PREVIEW;
|
|
18
|
+
const ZE_ENV = () => process.env['ZE_ENV'];
|
|
19
|
+
exports.ZE_ENV = ZE_ENV;
|
|
18
20
|
exports.ze_api_gateway = {
|
|
19
21
|
logs: '/logs',
|
|
20
22
|
build_stats: '/build-stats',
|
|
@@ -1 +1 @@
|
|
|
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,CAAA,MAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,0CAAE,MAAM,EAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAA,EAAA,CAAC;AAD3E,QAAA,mBAAmB,uBACwD;AAEjF,MAAM,eAAe,GAAG,GAAG,EAAE;;IAClC,OAAA,CAAA,MAAA,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,0CAAE,MAAM;QAChC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;QAC5B,CAAC,CAAC,+BAA+B,CAAA;CAAA,CAAC;AAHzB,QAAA,eAAe,mBAGU;AAE/B,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAAC,IAAI,GAAG,CAAC,IAAA,uBAAe,GAAE,CAAC,CAAC,IAAI,CAAC;AAA7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,EAAE,UAAU;IACnB,kBAAkB,EAAE,qBAAqB;IACzC,SAAS,EAAE,YAAY;IACvB,gCAAgC,EAAE,kCAAkC;CACrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";AAAA,0BAA0B;;
|
|
1
|
+
{"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";AAAA,0BAA0B;;AAyI1B,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"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-edge-contract",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Edge contract for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
"url": "https://github.com/ZephyrCloudIO"
|
|
14
14
|
},
|
|
15
15
|
"type": "commonjs",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"require": "./dist/index.js",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
16
24
|
"main": "dist/index.js",
|
|
17
25
|
"types": "dist/index.d.ts",
|
|
18
26
|
"scripts": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-edge-contract",
|
|
3
|
-
"version": "0.1.2",
|
|
3
|
+
"version": "0.1.3-next.2",
|
|
4
4
|
"description": "Edge contract for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
"url": "https://github.com/ZephyrCloudIO"
|
|
14
14
|
},
|
|
15
15
|
"type": "commonjs",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"require": "./dist/index.js",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
16
24
|
"main": "dist/index.js",
|
|
17
25
|
"types": "dist/index.d.ts",
|
|
18
26
|
"dependencies": {
|