zephyr-edge-contract 0.1.3-next.4 → 0.1.3-next.6
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 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/snapshot.d.ts +1 -0
- package/dist/lib/utils/global.d.ts +12 -0
- package/dist/lib/utils/global.js +11 -0
- package/dist/lib/utils/global.js.map +1 -0
- package/eslint.config.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * as ZeUtils from './lib/promise';
|
|
|
5
5
|
export type { Snapshot, SnapshotAsset, SnapshotMetadata } from './lib/snapshot';
|
|
6
6
|
export { createApplicationUid } from './lib/utils/create-application-uid';
|
|
7
7
|
export { createSnapshotId, flatCreateSnapshotId } from './lib/utils/create-snapshot-id';
|
|
8
|
+
export { getGlobal } from './lib/utils/global';
|
|
8
9
|
export { normalize_js_var_name as normalize_app_name } from './lib/utils/normalize-js-var-name';
|
|
9
10
|
export { safe_json_parse } from './lib/utils/safe-json-parse';
|
|
10
11
|
export type { ZeApplicationList } from './lib/ze-api/app-list';
|
|
@@ -14,7 +15,7 @@ export type { LocalPackageJson } from './lib/ze-api/local-package-json';
|
|
|
14
15
|
export type { ApplicationConsumes, ZephyrBuildStats, ZephyrDependency, } from './lib/zephyr-build-stats';
|
|
15
16
|
export type { Asset, SnapshotUploadRes, Source, UploadableAsset, ZeBuildAsset, ZeBuildAssetsMap, ZeUploadAssetsOptions, } from './lib/zephyr-edge-contract';
|
|
16
17
|
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,
|
|
18
|
+
export { ZE_API_ENDPOINT, ZE_API_ENDPOINT_HOST, ze_api_gateway, ZE_ENV, ZE_IS_PREVIEW, ZEPHYR_API_ENDPOINT, } from './lib/api-contract-negotiation/get-api-contract';
|
|
18
19
|
export { deferred, forEachLimit, isSuccessTuple, PromiseLazyLoad, PromiseTuple, PromiseWithResolvers, } from './lib/promise';
|
|
19
20
|
export { formatString, type FindTemplates } from './lib/string/string';
|
|
20
21
|
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.
|
|
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_ENV = 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.getGlobal = 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");
|
|
@@ -9,6 +9,8 @@ Object.defineProperty(exports, "createApplicationUid", { enumerable: true, get:
|
|
|
9
9
|
var create_snapshot_id_1 = require("./lib/utils/create-snapshot-id");
|
|
10
10
|
Object.defineProperty(exports, "createSnapshotId", { enumerable: true, get: function () { return create_snapshot_id_1.createSnapshotId; } });
|
|
11
11
|
Object.defineProperty(exports, "flatCreateSnapshotId", { enumerable: true, get: function () { return create_snapshot_id_1.flatCreateSnapshotId; } });
|
|
12
|
+
var global_1 = require("./lib/utils/global");
|
|
13
|
+
Object.defineProperty(exports, "getGlobal", { enumerable: true, get: function () { return global_1.getGlobal; } });
|
|
12
14
|
var normalize_js_var_name_1 = require("./lib/utils/normalize-js-var-name");
|
|
13
15
|
Object.defineProperty(exports, "normalize_app_name", { enumerable: true, get: function () { return normalize_js_var_name_1.normalize_js_var_name; } });
|
|
14
16
|
var safe_json_parse_1 = require("./lib/utils/safe-json-parse");
|
|
@@ -21,9 +23,9 @@ var get_api_contract_1 = require("./lib/api-contract-negotiation/get-api-contrac
|
|
|
21
23
|
Object.defineProperty(exports, "ZE_API_ENDPOINT", { enumerable: true, get: function () { return get_api_contract_1.ZE_API_ENDPOINT; } });
|
|
22
24
|
Object.defineProperty(exports, "ZE_API_ENDPOINT_HOST", { enumerable: true, get: function () { return get_api_contract_1.ZE_API_ENDPOINT_HOST; } });
|
|
23
25
|
Object.defineProperty(exports, "ze_api_gateway", { enumerable: true, get: function () { return get_api_contract_1.ze_api_gateway; } });
|
|
26
|
+
Object.defineProperty(exports, "ZE_ENV", { enumerable: true, get: function () { return get_api_contract_1.ZE_ENV; } });
|
|
24
27
|
Object.defineProperty(exports, "ZE_IS_PREVIEW", { enumerable: true, get: function () { return get_api_contract_1.ZE_IS_PREVIEW; } });
|
|
25
28
|
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; } });
|
|
27
29
|
// promise proto methods
|
|
28
30
|
var promise_1 = require("./lib/promise");
|
|
29
31
|
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;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;
|
|
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,6CAA+C;AAAtC,mGAAA,SAAS,OAAA;AAClB,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,0GAAA,MAAM,OAAA;AACN,iHAAA,aAAa,OAAA;AACb,uHAAA,mBAAmB,OAAA;AAGrB,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"}
|
package/dist/lib/snapshot.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type augmentation for global variables Augments both global and globalThis with
|
|
3
|
+
* specific properties
|
|
4
|
+
*/
|
|
5
|
+
declare global {
|
|
6
|
+
var NX_GRAPH_CREATION: boolean | undefined;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Returns the global object (globalThis is the standard cross-environment global) The
|
|
10
|
+
* returned object includes type-safe access to augmented properties
|
|
11
|
+
*/
|
|
12
|
+
export declare function getGlobal(): typeof globalThis;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGlobal = getGlobal;
|
|
4
|
+
/**
|
|
5
|
+
* Returns the global object (globalThis is the standard cross-environment global) The
|
|
6
|
+
* returned object includes type-safe access to augmented properties
|
|
7
|
+
*/
|
|
8
|
+
function getGlobal() {
|
|
9
|
+
return globalThis;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=global.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../../src/lib/utils/global.ts"],"names":[],"mappings":";;AAaA,8BAEC;AAND;;;GAGG;AACH,SAAgB,SAAS;IACvB,OAAO,UAAU,CAAC;AACpB,CAAC"}
|