zephyr-edge-contract 0.0.16 → 0.0.17
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 +18 -19
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/dist/lib/edge-api/publish-request.d.ts +6 -7
- package/dist/lib/node-persist/application-configuration.d.ts +1 -23
- package/dist/lib/node-persist/application-configuration.js.map +1 -1
- package/dist/lib/node-persist/secret-token.d.ts +2 -1
- package/dist/lib/node-persist/secret-token.js +6 -5
- package/dist/lib/node-persist/secret-token.js.map +1 -1
- package/dist/lib/node-persist/token.js +1 -1
- package/dist/lib/node-persist/token.js.map +1 -1
- package/dist/lib/node-persist/upload-provider-options.d.ts +12 -10
- package/dist/lib/node-persist/upload-provider-options.js.map +1 -1
- package/dist/lib/utils/debug.d.ts +2 -1
- package/dist/lib/utils/debug.js +2 -1
- package/dist/lib/utils/debug.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { ZeAppVersion, ZeAppVersionResponse } from './lib/ze-api/app-version';
|
|
4
|
-
export { ZeApplicationList } from './lib/ze-api/app-list';
|
|
5
|
-
export { Snapshot, SnapshotAsset, SnapshotMetadata } from './lib/snapshot';
|
|
1
|
+
export { ZEPHYR_API_ENDPOINT, ZE_API_ENDPOINT, ze_api_gateway } from './lib/api-contract-negotiation/get-api-contract';
|
|
2
|
+
export { PublishRequest, StageZeroPublishRequest } from './lib/edge-api/publish-request';
|
|
6
3
|
export { ZeEnvs, ZeUploadBuildStats } from './lib/edge-api/ze-envs-request';
|
|
7
|
-
export * from './lib/
|
|
8
|
-
export
|
|
4
|
+
export * as appDeployResultCache from './lib/node-persist/app-deploy-result-cache';
|
|
5
|
+
export { getAppConfig, remoteAppConfig, saveAppConfig } from './lib/node-persist/application-configuration';
|
|
9
6
|
export * as _fs_cache from './lib/node-persist/fs-cache';
|
|
10
|
-
export
|
|
11
|
-
export * from './lib/utils/picocolor';
|
|
7
|
+
export * as _hash_cache from './lib/node-persist/hash-cache';
|
|
12
8
|
export { getPartialAssetMap, removePartialAssetMap, savePartialAssetMap } from './lib/node-persist/partial-assets-map';
|
|
13
|
-
export { getSecretToken } from './lib/node-persist/secret-token';
|
|
14
|
-
export {
|
|
9
|
+
export { getSecretToken, hasSecretToken } from './lib/node-persist/secret-token';
|
|
10
|
+
export { cleanTokens, getToken, removeToken, saveToken } from './lib/node-persist/token';
|
|
11
|
+
export * from './lib/node-persist/upload-provider-options';
|
|
15
12
|
export { ZephyrPluginOptions } from './lib/plugin-options/zephyr-plugin-options';
|
|
16
|
-
export {
|
|
17
|
-
export
|
|
13
|
+
export { Snapshot, SnapshotAsset, SnapshotMetadata } from './lib/snapshot';
|
|
14
|
+
export { createApplicationUID } from './lib/utils/create-application-u-i-d';
|
|
15
|
+
export { createSnapshotId } from './lib/utils/create-snapshot-id';
|
|
16
|
+
export { brightBlueBgName, brightGreenBgName, brightRedBgName, brightYellowBgName, dimmedName, ze_error, ze_log } from './lib/utils/debug';
|
|
18
17
|
export * from './lib/utils/debug-enabled';
|
|
19
|
-
export
|
|
18
|
+
export * from './lib/utils/picocolor';
|
|
19
|
+
export * as color from './lib/utils/picocolor';
|
|
20
20
|
export { safe_json_parse } from './lib/utils/safe-json-parse';
|
|
21
21
|
export { request } from './lib/utils/ze-http-request';
|
|
22
|
-
export
|
|
23
|
-
export {
|
|
22
|
+
export { ZeApplicationList } from './lib/ze-api/app-list';
|
|
23
|
+
export { ZeAppVersion, ZeAppVersionResponse } from './lib/ze-api/app-version';
|
|
24
24
|
export { ConvertedGraph } from './lib/ze-api/converted-graph';
|
|
25
|
-
export
|
|
26
|
-
export * as appDeployResultCache from './lib/node-persist/app-deploy-result-cache';
|
|
25
|
+
export { LocalPackageJson } from './lib/ze-api/local-package-json';
|
|
27
26
|
export { ZephyrBuildStats } from './lib/zephyr-build-stats';
|
|
28
|
-
export {
|
|
27
|
+
export { Asset, SnapshotUploadRes, Source, UploadableAsset, ZeBuildAsset, ZeBuildAssetsMap, ZeUploadAssetsOptions, } from './lib/zephyr-edge-contract';
|
package/dist/index.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.request = exports.safe_json_parse = 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.remoteAppConfig = exports.getAppConfig = exports.appDeployResultCache = exports.ze_api_gateway = exports.ZE_API_ENDPOINT = exports.ZEPHYR_API_ENDPOINT = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
tslib_1.
|
|
10
|
-
exports._hash_cache = tslib_1.__importStar(require("./lib/node-persist/hash-cache"));
|
|
11
|
-
exports._fs_cache = tslib_1.__importStar(require("./lib/node-persist/fs-cache"));
|
|
5
|
+
var get_api_contract_1 = require("./lib/api-contract-negotiation/get-api-contract");
|
|
6
|
+
Object.defineProperty(exports, "ZEPHYR_API_ENDPOINT", { enumerable: true, get: function () { return get_api_contract_1.ZEPHYR_API_ENDPOINT; } });
|
|
7
|
+
Object.defineProperty(exports, "ZE_API_ENDPOINT", { enumerable: true, get: function () { return get_api_contract_1.ZE_API_ENDPOINT; } });
|
|
8
|
+
Object.defineProperty(exports, "ze_api_gateway", { enumerable: true, get: function () { return get_api_contract_1.ze_api_gateway; } });
|
|
9
|
+
exports.appDeployResultCache = tslib_1.__importStar(require("./lib/node-persist/app-deploy-result-cache"));
|
|
12
10
|
var application_configuration_1 = require("./lib/node-persist/application-configuration");
|
|
13
11
|
Object.defineProperty(exports, "getAppConfig", { enumerable: true, get: function () { return application_configuration_1.getAppConfig; } });
|
|
14
12
|
Object.defineProperty(exports, "remoteAppConfig", { enumerable: true, get: function () { return application_configuration_1.remoteAppConfig; } });
|
|
15
13
|
Object.defineProperty(exports, "saveAppConfig", { enumerable: true, get: function () { return application_configuration_1.saveAppConfig; } });
|
|
16
|
-
tslib_1.
|
|
14
|
+
exports._fs_cache = tslib_1.__importStar(require("./lib/node-persist/fs-cache"));
|
|
15
|
+
exports._hash_cache = tslib_1.__importStar(require("./lib/node-persist/hash-cache"));
|
|
17
16
|
var partial_assets_map_1 = require("./lib/node-persist/partial-assets-map");
|
|
18
17
|
Object.defineProperty(exports, "getPartialAssetMap", { enumerable: true, get: function () { return partial_assets_map_1.getPartialAssetMap; } });
|
|
19
18
|
Object.defineProperty(exports, "removePartialAssetMap", { enumerable: true, get: function () { return partial_assets_map_1.removePartialAssetMap; } });
|
|
20
19
|
Object.defineProperty(exports, "savePartialAssetMap", { enumerable: true, get: function () { return partial_assets_map_1.savePartialAssetMap; } });
|
|
21
20
|
var secret_token_1 = require("./lib/node-persist/secret-token");
|
|
22
21
|
Object.defineProperty(exports, "getSecretToken", { enumerable: true, get: function () { return secret_token_1.getSecretToken; } });
|
|
22
|
+
Object.defineProperty(exports, "hasSecretToken", { enumerable: true, get: function () { return secret_token_1.hasSecretToken; } });
|
|
23
23
|
var token_1 = require("./lib/node-persist/token");
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "cleanTokens", { enumerable: true, get: function () { return token_1.cleanTokens; } });
|
|
25
25
|
Object.defineProperty(exports, "getToken", { enumerable: true, get: function () { return token_1.getToken; } });
|
|
26
26
|
Object.defineProperty(exports, "removeToken", { enumerable: true, get: function () { return token_1.removeToken; } });
|
|
27
|
-
Object.defineProperty(exports, "
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(exports, "
|
|
31
|
-
|
|
32
|
-
exports
|
|
33
|
-
tslib_1.__exportStar(require("./lib/utils/debug-enabled"), exports);
|
|
27
|
+
Object.defineProperty(exports, "saveToken", { enumerable: true, get: function () { return token_1.saveToken; } });
|
|
28
|
+
tslib_1.__exportStar(require("./lib/node-persist/upload-provider-options"), exports);
|
|
29
|
+
var create_application_u_i_d_1 = require("./lib/utils/create-application-u-i-d");
|
|
30
|
+
Object.defineProperty(exports, "createApplicationUID", { enumerable: true, get: function () { return create_application_u_i_d_1.createApplicationUID; } });
|
|
31
|
+
var create_snapshot_id_1 = require("./lib/utils/create-snapshot-id");
|
|
32
|
+
Object.defineProperty(exports, "createSnapshotId", { enumerable: true, get: function () { return create_snapshot_id_1.createSnapshotId; } });
|
|
34
33
|
var debug_1 = require("./lib/utils/debug");
|
|
35
|
-
Object.defineProperty(exports, "ze_log", { enumerable: true, get: function () { return debug_1.ze_log; } });
|
|
36
|
-
Object.defineProperty(exports, "ze_error", { enumerable: true, get: function () { return debug_1.ze_error; } });
|
|
37
34
|
Object.defineProperty(exports, "brightBlueBgName", { enumerable: true, get: function () { return debug_1.brightBlueBgName; } });
|
|
35
|
+
Object.defineProperty(exports, "brightGreenBgName", { enumerable: true, get: function () { return debug_1.brightGreenBgName; } });
|
|
38
36
|
Object.defineProperty(exports, "brightRedBgName", { enumerable: true, get: function () { return debug_1.brightRedBgName; } });
|
|
39
37
|
Object.defineProperty(exports, "brightYellowBgName", { enumerable: true, get: function () { return debug_1.brightYellowBgName; } });
|
|
40
38
|
Object.defineProperty(exports, "dimmedName", { enumerable: true, get: function () { return debug_1.dimmedName; } });
|
|
39
|
+
Object.defineProperty(exports, "ze_error", { enumerable: true, get: function () { return debug_1.ze_error; } });
|
|
40
|
+
Object.defineProperty(exports, "ze_log", { enumerable: true, get: function () { return debug_1.ze_log; } });
|
|
41
|
+
tslib_1.__exportStar(require("./lib/utils/debug-enabled"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./lib/utils/picocolor"), exports);
|
|
43
|
+
exports.color = tslib_1.__importStar(require("./lib/utils/picocolor"));
|
|
41
44
|
var safe_json_parse_1 = require("./lib/utils/safe-json-parse");
|
|
42
45
|
Object.defineProperty(exports, "safe_json_parse", { enumerable: true, get: function () { return safe_json_parse_1.safe_json_parse; } });
|
|
43
46
|
var ze_http_request_1 = require("./lib/utils/ze-http-request");
|
|
44
47
|
Object.defineProperty(exports, "request", { enumerable: true, get: function () { return ze_http_request_1.request; } });
|
|
45
|
-
exports.colors = tslib_1.__importStar(require("./lib/utils/picocolor"));
|
|
46
|
-
tslib_1.__exportStar(require("./lib/node-persist/upload-provider-options"), exports);
|
|
47
|
-
exports.appDeployResultCache = tslib_1.__importStar(require("./lib/node-persist/app-deploy-result-cache"));
|
|
48
48
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,oFAAuH;AAA9G,uHAAA,mBAAmB,OAAA;AAAE,mHAAA,eAAe,OAAA;AAAE,kHAAA,cAAc,OAAA;AAG7D,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,+DAA8D;AAArD,kHAAA,eAAe,OAAA;AACxB,+DAAsD;AAA7C,0GAAA,OAAO,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface PublishTarget {
|
|
1
|
+
export interface PublishTarget {
|
|
2
2
|
url: string;
|
|
3
3
|
hostname: string;
|
|
4
4
|
}
|
|
@@ -13,16 +13,15 @@ export interface PublishRequest {
|
|
|
13
13
|
username: string;
|
|
14
14
|
can_write: boolean;
|
|
15
15
|
targets: {
|
|
16
|
-
version
|
|
17
|
-
tags
|
|
18
|
-
|
|
19
|
-
cnames
|
|
16
|
+
version: PublishTarget;
|
|
17
|
+
tags: PublishTarget[];
|
|
18
|
+
envs: PublishTarget[];
|
|
19
|
+
cnames: PublishTarget[];
|
|
20
20
|
};
|
|
21
21
|
jwt: string;
|
|
22
22
|
}
|
|
23
23
|
export interface StageZeroPublishRequest {
|
|
24
24
|
application_uid: string;
|
|
25
25
|
snapshot_id: string;
|
|
26
|
-
|
|
26
|
+
targets: PublishTarget[];
|
|
27
27
|
}
|
|
28
|
-
export {};
|
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface NetlifyIntegrationConfig {
|
|
3
|
-
api_token: string;
|
|
4
|
-
site_id: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ZeApplicationConfig {
|
|
7
|
-
user_uuid: string;
|
|
8
|
-
username: string;
|
|
9
|
-
email: string;
|
|
10
|
-
AUTH0_CLIENT_ID: string;
|
|
11
|
-
AUTH0_DOMAIN: string;
|
|
12
|
-
BUILD_ID_ENDPOINT: string;
|
|
13
|
-
EDGE_URL: string;
|
|
14
|
-
DOMAIN?: string;
|
|
15
|
-
INTEGRATION_CONFIG?: NetlifyIntegrationConfig & {
|
|
16
|
-
type?: 'worker' | 'pages';
|
|
17
|
-
};
|
|
18
|
-
PLATFORM: 'cloudflare' | 'netlify';
|
|
19
|
-
jwt: string;
|
|
20
|
-
uploadConfig: UploadProviderConfig;
|
|
21
|
-
application_uid: string;
|
|
22
|
-
fetched_at?: number;
|
|
23
|
-
}
|
|
1
|
+
import type { ZeApplicationConfig } from './upload-provider-options';
|
|
24
2
|
export declare function saveAppConfig(application_uid: string, json: ZeApplicationConfig): Promise<void>;
|
|
25
3
|
export declare function getAppConfig(application_uid: string): Promise<ZeApplicationConfig | undefined>;
|
|
26
4
|
export declare function remoteAppConfig(application_uid: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-configuration.js","sourceRoot":"","sources":["../../../src/lib/node-persist/application-configuration.ts"],"names":[],"mappings":";;;;AAAA,+CAAkE;AAClE,qCAAkC;AAClC,yCAAiC;
|
|
1
|
+
{"version":3,"file":"application-configuration.js","sourceRoot":"","sources":["../../../src/lib/node-persist/application-configuration.ts"],"names":[],"mappings":";;;;AAAA,+CAAkE;AAClE,qCAAkC;AAClC,yCAAiC;AACjC,iDAAsD;AAGtD,MAAM,OAAO,GAAG,IAAA,mBAAI,EAAC;IACnB,GAAG,EAAE,IAAA,gBAAI,EAAC,IAAA,iBAAO,GAAE,EAAE,sBAAO,CAAC;CAC9B,CAAC,CAAC;AAEH,SAAS,OAAO,CAAC,eAAuB;IACtC,OAAO,uEAAkC,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtE,CAAC;AAED,SAAsB,aAAa,CAAC,eAAuB,EAAE,IAAyB;;QACpF,MAAM,OAAO,CAAC;QACd,KAAK,CAAC,MAAM,IAAA,sBAAO,EAAC,OAAO,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC;IAC/E,CAAC;CAAA;AAHD,sCAGC;AAED,SAAsB,YAAY,CAAC,eAAuB;;QACxD,MAAM,OAAO,CAAC;QACd,OAAO,IAAA,sBAAO,EAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;IAC3C,CAAC;CAAA;AAHD,oCAGC;AAED,SAAsB,eAAe,CAAC,eAAuB;;QAC3D,MAAM,OAAO,CAAC;QACd,MAAM,IAAA,yBAAU,EAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7C,CAAC;CAAA;AAHD,0CAGC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare function getSecretToken():
|
|
1
|
+
export declare function getSecretToken(): string | undefined;
|
|
2
|
+
export declare function hasSecretToken(): boolean;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSecretToken = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
3
|
+
exports.hasSecretToken = exports.getSecretToken = void 0;
|
|
5
4
|
function getSecretToken() {
|
|
6
|
-
return
|
|
7
|
-
return process.env["ZE_SECRET_TOKEN" /* StorageKeys.ze_secret_token */];
|
|
8
|
-
});
|
|
5
|
+
return process.env["ZE_SECRET_TOKEN" /* StorageKeys.ze_secret_token */];
|
|
9
6
|
}
|
|
10
7
|
exports.getSecretToken = getSecretToken;
|
|
8
|
+
function hasSecretToken() {
|
|
9
|
+
return !!getSecretToken();
|
|
10
|
+
}
|
|
11
|
+
exports.hasSecretToken = hasSecretToken;
|
|
11
12
|
//# sourceMappingURL=secret-token.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-token.js","sourceRoot":"","sources":["../../../src/lib/node-persist/secret-token.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"secret-token.js","sourceRoot":"","sources":["../../../src/lib/node-persist/secret-token.ts"],"names":[],"mappings":";;;AAEA,SAAgB,cAAc;IAC5B,OAAO,OAAO,CAAC,GAAG,qDAA6B,CAAC;AAClD,CAAC;AAFD,wCAEC;AAED,SAAgB,cAAc;IAC5B,OAAO,CAAC,CAAC,cAAc,EAAE,CAAC;AAC5B,CAAC;AAFD,wCAEC"}
|
|
@@ -13,7 +13,7 @@ const storage = (0, node_persist_1.init)({
|
|
|
13
13
|
function saveToken(token) {
|
|
14
14
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
15
|
yield storage;
|
|
16
|
-
|
|
16
|
+
yield (0, node_persist_1.setItem)("ze-auth-token" /* StorageKeys.ze_auth_token */, token);
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
exports.saveToken = saveToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../src/lib/node-persist/token.ts"],"names":[],"mappings":";;;;AAAA,+CAAyE;AACzE,qCAAkC;AAClC,yCAAiC;AACjC,iDAAsD;AACtD,iDAAgD;AAEhD,MAAM,OAAO,GAAG,IAAA,mBAAI,EAAC;IACnB,GAAG,EAAE,IAAA,gBAAI,EAAC,IAAA,iBAAO,GAAE,EAAE,sBAAO,CAAC;CAC9B,CAAC,CAAC;AAEH,SAAsB,SAAS,CAAC,KAAa;;QAC3C,MAAM,OAAO,CAAC;QACd,
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../src/lib/node-persist/token.ts"],"names":[],"mappings":";;;;AAAA,+CAAyE;AACzE,qCAAkC;AAClC,yCAAiC;AACjC,iDAAsD;AACtD,iDAAgD;AAEhD,MAAM,OAAO,GAAG,IAAA,mBAAI,EAAC;IACnB,GAAG,EAAE,IAAA,gBAAI,EAAC,IAAA,iBAAO,GAAE,EAAE,sBAAO,CAAC;CAC9B,CAAC,CAAC;AAEH,SAAsB,SAAS,CAAC,KAAa;;QAC3C,MAAM,OAAO,CAAC;QACd,MAAM,IAAA,sBAAO,mDAA4B,KAAK,CAAC,CAAC;IAClD,CAAC;CAAA;AAHD,8BAGC;AAED,SAAsB,QAAQ;;QAC5B,MAAM,YAAY,GAAG,MAAM,IAAA,6BAAc,GAAE,CAAC;QAC5C,IAAI,YAAY,EAAE,CAAC;YACjB,OAAO,YAAY,CAAC;QACtB,CAAC;QACD,MAAM,OAAO,CAAC;QACd,OAAO,IAAA,sBAAO,kDAA2B,CAAC;IAC5C,CAAC;CAAA;AAPD,4BAOC;AAED,SAAsB,WAAW;;QAC/B,MAAM,OAAO,CAAC;QACd,MAAM,IAAA,yBAAU,kDAA2B,CAAC;IAC9C,CAAC;CAAA;AAHD,kCAGC;AAED,SAAsB,WAAW;;QAC/B,MAAM,OAAO,CAAC;QACd,MAAM,IAAA,oBAAK,GAAE,CAAC;IAChB,CAAC;CAAA;AAHD,kCAGC"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export interface ZeApplicationConfig {
|
|
2
|
+
application_uid: string;
|
|
3
|
+
AUTH0_CLIENT_ID: string;
|
|
4
|
+
AUTH0_DOMAIN: string;
|
|
5
|
+
BUILD_ID_ENDPOINT: string;
|
|
6
|
+
EDGE_URL: string;
|
|
7
|
+
email: string;
|
|
8
|
+
fetched_at?: number;
|
|
9
|
+
jwt: string;
|
|
10
|
+
PLATFORM: UploadProviderType;
|
|
11
|
+
user_uuid: string;
|
|
12
|
+
username: string;
|
|
4
13
|
}
|
|
5
14
|
export declare enum UploadProviderType {
|
|
6
15
|
CLOUDFLARE = "cloudflare",
|
|
@@ -9,10 +18,3 @@ export declare enum UploadProviderType {
|
|
|
9
18
|
AZURE = "azure",
|
|
10
19
|
GCP = "gcp"
|
|
11
20
|
}
|
|
12
|
-
export interface CloudflareOptions {
|
|
13
|
-
edgeUrl: string;
|
|
14
|
-
api_token: string;
|
|
15
|
-
accountId: string;
|
|
16
|
-
projectName?: string;
|
|
17
|
-
}
|
|
18
|
-
export type IntegrationConfig = CloudflareOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-provider-options.js","sourceRoot":"","sources":["../../../src/lib/node-persist/upload-provider-options.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"upload-provider-options.js","sourceRoot":"","sources":["../../../src/lib/node-persist/upload-provider-options.ts"],"names":[],"mappings":";;;AAeA,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,+CAAyB,CAAA;IACzB,iCAAW,CAAA;IACX,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,iCAAW,CAAA;AACb,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Errors } from './error-codes-messages';
|
|
1
|
+
import type { Errors } from './error-codes-messages';
|
|
2
2
|
export declare const dimmedName: string;
|
|
3
3
|
export declare const brightBlueBgName: string;
|
|
4
4
|
export declare const brightYellowBgName: string;
|
|
5
|
+
export declare const brightGreenBgName: string;
|
|
5
6
|
export declare const brightRedBgName: string;
|
|
6
7
|
declare function print_error_with_docs<K extends keyof typeof Errors>(errMsg?: K, ...args: unknown[]): void;
|
|
7
8
|
export declare const ze_log: import("debug").Debugger;
|
package/dist/lib/utils/debug.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ze_error = exports.ze_log = exports.brightRedBgName = exports.brightYellowBgName = exports.brightBlueBgName = exports.dimmedName = void 0;
|
|
3
|
+
exports.ze_error = exports.ze_log = exports.brightRedBgName = exports.brightGreenBgName = exports.brightYellowBgName = exports.brightBlueBgName = exports.dimmedName = void 0;
|
|
4
4
|
// light weight utils for decorated console.error + able to toggle different parts of whole module's logging result
|
|
5
5
|
const debug_1 = require("debug");
|
|
6
6
|
const picocolor_1 = require("./picocolor");
|
|
@@ -12,6 +12,7 @@ const name = ' ZEPHYR ';
|
|
|
12
12
|
exports.dimmedName = (0, picocolor_1.dim)(name);
|
|
13
13
|
exports.brightBlueBgName = (0, picocolor_1.bold)((0, picocolor_1.bgCyanBright)((0, picocolor_1.black)(name)));
|
|
14
14
|
exports.brightYellowBgName = (0, picocolor_1.bold)((0, picocolor_1.bgYellowBright)((0, picocolor_1.black)(name)));
|
|
15
|
+
exports.brightGreenBgName = (0, picocolor_1.bold)((0, picocolor_1.bgGreenBright)((0, picocolor_1.black)(name)));
|
|
15
16
|
exports.brightRedBgName = (0, picocolor_1.bold)((0, picocolor_1.bgRedBright)((0, picocolor_1.black)(name)));
|
|
16
17
|
function print_error_with_docs(errMsg, ...args) {
|
|
17
18
|
errMsg ? console.log(`${exports.brightRedBgName} ${(0, error_formatted_message_1.err)(errMsg)} ${args} \n`) : console.log(exports.brightRedBgName, (0, picocolor_1.redBright)('Unknown error'), args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../src/lib/utils/debug.ts"],"names":[],"mappings":";;;AAAA,mHAAmH;AACnH,iCAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../src/lib/utils/debug.ts"],"names":[],"mappings":";;;AAAA,mHAAmH;AACnH,iCAA8B;AAC9B,2CAAoH;AACpH,mDAAmD;AACnD,uEAAgD;AAGhD,uDAAuD;AACvD,wDAAwD;AACxD,MAAM,IAAI,GAAG,UAAU,CAAC;AAEX,QAAA,UAAU,GAAG,IAAA,eAAG,EAAC,IAAI,CAAC,CAAC;AAEvB,QAAA,gBAAgB,GAAG,IAAA,gBAAI,EAAC,IAAA,wBAAY,EAAC,IAAA,iBAAK,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEnD,QAAA,kBAAkB,GAAG,IAAA,gBAAI,EAAC,IAAA,0BAAc,EAAC,IAAA,iBAAK,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEvD,QAAA,iBAAiB,GAAG,IAAA,gBAAI,EAAC,IAAA,yBAAa,EAAC,IAAA,iBAAK,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAErD,QAAA,eAAe,GAAG,IAAA,gBAAI,EAAC,IAAA,uBAAW,EAAC,IAAA,iBAAK,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAE9D,SAAS,qBAAqB,CAAgC,MAAU,EAAE,GAAG,IAAe;IAC1F,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,uBAAe,IAAI,IAAA,6BAAG,EAAC,MAAM,CAAC,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAe,EAAE,IAAA,qBAAS,EAAC,eAAe,CAAC,EAAE,IAAI,CAAC,CAAC;AACxI,CAAC;AAEY,QAAA,MAAM,GAAG,IAAA,aAAK,EAAC,YAAY,CAAC,CAAC;AAC1C,qEAAqE;AACrE,wDAAwD;AACxD;;;;;;;GAOG;AACU,QAAA,QAAQ,GAAG,gCAAgB,CAAC,CAAC,CAAC,IAAA,aAAK,EAAC,cAAc,CAAC,CAAC,CAAC,CAAE,qBAAsD,CAAC"}
|
package/dist/package.json
CHANGED