zephyr-edge-contract 0.0.26 → 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.
- package/dist/index.d.ts +9 -22
- package/dist/index.js +24 -45
- package/dist/index.js.map +1 -1
- package/dist/lib/api-contract-negotiation/get-api-contract.js +1 -0
- package/dist/lib/api-contract-negotiation/get-api-contract.js.map +1 -1
- package/dist/lib/edge-api/publish-request.d.ts +1 -1
- package/dist/lib/plugin-options/{zephyr-plugin-options.js → zephyr-webpack-plugin-options.js} +1 -1
- package/dist/lib/plugin-options/zephyr-webpack-plugin-options.js.map +1 -0
- package/dist/lib/promise/index.d.ts +29 -0
- package/dist/lib/promise/index.js +63 -0
- package/dist/lib/promise/index.js.map +1 -0
- package/dist/lib/snapshot.js +1 -0
- package/dist/lib/snapshot.js.map +1 -1
- package/dist/lib/{utils → string}/string.d.ts +6 -2
- package/dist/lib/{utils → string}/string.js +2 -1
- package/dist/lib/string/string.js.map +1 -0
- package/dist/lib/{utils → string}/strip-ansi.d.ts +2 -1
- package/dist/lib/{utils → string}/strip-ansi.js +2 -1
- package/dist/lib/string/strip-ansi.js.map +1 -0
- package/dist/lib/utils/{create-application-u-i-d.d.ts → create-application-uid.d.ts} +1 -1
- package/dist/lib/utils/{create-application-u-i-d.js → create-application-uid.js} +5 -6
- package/dist/lib/utils/create-application-uid.js.map +1 -0
- package/dist/lib/utils/create-snapshot-id.d.ts +7 -0
- package/dist/lib/utils/create-snapshot-id.js +18 -4
- package/dist/lib/utils/create-snapshot-id.js.map +1 -1
- package/dist/lib/utils/safe-json-parse.js.map +1 -1
- package/dist/lib/ze-api/local-package-json.d.ts +4 -4
- package/dist/lib/ze-api/local-package-json.js +4 -4
- package/dist/lib/zephyr-build-stats.d.ts +58 -39
- package/dist/lib/zephyr-build-stats.js +1 -0
- package/dist/lib/zephyr-build-stats.js.map +1 -1
- package/dist/lib/zephyr-edge-contract.d.ts +18 -40
- package/dist/lib/zephyr-edge-contract.js +1 -0
- package/dist/lib/zephyr-edge-contract.js.map +1 -1
- package/dist/package.json +5 -8
- package/package.json +5 -8
- package/dist/lib/errors/codes.d.ts +0 -282
- package/dist/lib/errors/codes.js +0 -371
- package/dist/lib/errors/codes.js.map +0 -1
- package/dist/lib/errors/index.d.ts +0 -2
- package/dist/lib/errors/index.js +0 -6
- package/dist/lib/errors/index.js.map +0 -1
- package/dist/lib/errors/zephyr.d.ts +0 -473
- package/dist/lib/errors/zephyr.js +0 -153
- package/dist/lib/errors/zephyr.js.map +0 -1
- package/dist/lib/node-persist/app-deploy-result-cache.d.ts +0 -7
- package/dist/lib/node-persist/app-deploy-result-cache.js +0 -26
- package/dist/lib/node-persist/app-deploy-result-cache.js.map +0 -1
- package/dist/lib/node-persist/application-configuration.d.ts +0 -4
- package/dist/lib/node-persist/application-configuration.js +0 -29
- package/dist/lib/node-persist/application-configuration.js.map +0 -1
- package/dist/lib/node-persist/fs-cache.d.ts +0 -3
- package/dist/lib/node-persist/fs-cache.js +0 -26
- package/dist/lib/node-persist/fs-cache.js.map +0 -1
- package/dist/lib/node-persist/hash-cache.d.ts +0 -7
- package/dist/lib/node-persist/hash-cache.js +0 -26
- package/dist/lib/node-persist/hash-cache.js.map +0 -1
- package/dist/lib/node-persist/partial-assets-map.d.ts +0 -4
- package/dist/lib/node-persist/partial-assets-map.js +0 -31
- package/dist/lib/node-persist/partial-assets-map.js.map +0 -1
- package/dist/lib/node-persist/secret-token.d.ts +0 -2
- package/dist/lib/node-persist/secret-token.js +0 -13
- package/dist/lib/node-persist/secret-token.js.map +0 -1
- package/dist/lib/node-persist/storage-keys.d.ts +0 -10
- package/dist/lib/node-persist/storage-keys.js +0 -15
- package/dist/lib/node-persist/storage-keys.js.map +0 -1
- package/dist/lib/node-persist/token.d.ts +0 -4
- package/dist/lib/node-persist/token.js +0 -36
- package/dist/lib/node-persist/token.js.map +0 -1
- package/dist/lib/node-persist/upload-provider-options.d.ts +0 -21
- package/dist/lib/node-persist/upload-provider-options.js +0 -13
- package/dist/lib/node-persist/upload-provider-options.js.map +0 -1
- package/dist/lib/plugin-options/zephyr-plugin-options.js.map +0 -1
- package/dist/lib/utils/clean-stack.d.ts +0 -7
- package/dist/lib/utils/clean-stack.js +0 -44
- package/dist/lib/utils/clean-stack.js.map +0 -1
- package/dist/lib/utils/create-application-u-i-d.js.map +0 -1
- package/dist/lib/utils/debug-enabled.d.ts +0 -1
- package/dist/lib/utils/debug-enabled.js +0 -9
- package/dist/lib/utils/debug-enabled.js.map +0 -1
- package/dist/lib/utils/debug.d.ts +0 -22
- package/dist/lib/utils/debug.js +0 -36
- package/dist/lib/utils/debug.js.map +0 -1
- package/dist/lib/utils/error-codes-messages.d.ts +0 -206
- package/dist/lib/utils/error-codes-messages.js +0 -203
- package/dist/lib/utils/error-codes-messages.js.map +0 -1
- package/dist/lib/utils/error-formatted-message.d.ts +0 -5
- package/dist/lib/utils/error-formatted-message.js +0 -36
- package/dist/lib/utils/error-formatted-message.js.map +0 -1
- package/dist/lib/utils/picocolor.d.ts +0 -43
- package/dist/lib/utils/picocolor.js +0 -85
- package/dist/lib/utils/picocolor.js.map +0 -1
- package/dist/lib/utils/promise.d.ts +0 -12
- package/dist/lib/utils/promise.js +0 -29
- package/dist/lib/utils/promise.js.map +0 -1
- package/dist/lib/utils/string.js.map +0 -1
- package/dist/lib/utils/strip-ansi.js.map +0 -1
- package/dist/lib/utils/ze-http-request.d.ts +0 -19
- package/dist/lib/utils/ze-http-request.js +0 -157
- package/dist/lib/utils/ze-http-request.js.map +0 -1
- package/test/utils/string.test.ts +0 -96
- /package/dist/lib/plugin-options/{zephyr-plugin-options.d.ts → zephyr-webpack-plugin-options.d.ts} +0 -0
|
@@ -1,473 +0,0 @@
|
|
|
1
|
-
import { FindTemplates } from '../utils/string';
|
|
2
|
-
import { ZeErrorCode, type ZeErrorCodes, type ZeErrorKeys, ZeErrors, ZeErrorType } from './codes';
|
|
3
|
-
/** Options to construct {@linkcode ZephyrError}. */
|
|
4
|
-
export type ZephyrErrorOpts<T extends ZeErrorType> = {
|
|
5
|
-
cause?: unknown;
|
|
6
|
-
data?: Record<string, unknown>;
|
|
7
|
-
} & Record<FindTemplates<T['message']>, string | number | boolean>;
|
|
8
|
-
export declare const docsUrl = "https://docs.zephyr-cloud.io/errors";
|
|
9
|
-
export declare const discordUrl = "https://zephyr-cloud.io/discord";
|
|
10
|
-
/**
|
|
11
|
-
* ZephyrError is the base class for every error thrown by our builder plugins.
|
|
12
|
-
*
|
|
13
|
-
* Some messages have templates that mus be replaced with the `data` object. Use `{{ example }}` or `{{ example = value }}` to have a
|
|
14
|
-
* default value
|
|
15
|
-
*
|
|
16
|
-
* It's a subclass of Error, so it can be used in try/catch blocks.
|
|
17
|
-
*/
|
|
18
|
-
export declare class ZephyrError<K extends ZeErrorKeys, T extends (typeof ZeErrors)[K] = (typeof ZeErrors)[K]> extends Error {
|
|
19
|
-
readonly code: ZeErrorCode<K>;
|
|
20
|
-
/** Additional data to be used in the error message */
|
|
21
|
-
data?: Record<string, unknown>;
|
|
22
|
-
/** Data used when templating the message */
|
|
23
|
-
readonly template?: Omit<ZephyrErrorOpts<T>, 'cause' | 'data'>;
|
|
24
|
-
/**
|
|
25
|
-
* Indicates the specific original cause of the error.
|
|
26
|
-
*
|
|
27
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause
|
|
28
|
-
*/
|
|
29
|
-
readonly cause?: unknown;
|
|
30
|
-
/** Returns {@linkcode cause} if it's a `ZephyrError`, otherwise creates a new `ZephyrError` for the provided type. */
|
|
31
|
-
constructor(type: T, opts?: ZephyrErrorOpts<T>);
|
|
32
|
-
/** Checks if the given error is a ZephyrError and optionally matches the given code. */
|
|
33
|
-
static is<K extends ZeErrorKeys>(err: unknown, codeOrType?: (typeof ZeErrors)[K]): err is ZephyrError<K>;
|
|
34
|
-
/** Formats a Zephyr error code. */
|
|
35
|
-
static toZeCode<K extends ZeErrorKeys>({ id, kind }: (typeof ZeErrors)[K]): `ZE${{
|
|
36
|
-
readonly unknown: "00";
|
|
37
|
-
readonly build: "10";
|
|
38
|
-
readonly deploy: "20";
|
|
39
|
-
readonly browser: "30";
|
|
40
|
-
readonly config: "40";
|
|
41
|
-
}[{
|
|
42
|
-
readonly ERR_UNKNOWN: {
|
|
43
|
-
readonly id: "000";
|
|
44
|
-
readonly message: "\nUnknown error: {{ message }}\n\n";
|
|
45
|
-
readonly kind: "unknown";
|
|
46
|
-
};
|
|
47
|
-
readonly ERR_PACKAGE_JSON_NOT_FOUND: {
|
|
48
|
-
/** Data used when templating the message */
|
|
49
|
-
readonly id: "010";
|
|
50
|
-
readonly message: "package.json not found";
|
|
51
|
-
readonly kind: "build";
|
|
52
|
-
};
|
|
53
|
-
readonly ERR_PACKAGE_JSON_NOT_VALID: {
|
|
54
|
-
readonly id: "011";
|
|
55
|
-
readonly message: "Package.json is not in a valid json format.";
|
|
56
|
-
readonly kind: "build";
|
|
57
|
-
};
|
|
58
|
-
readonly ERR_WEBPACK_CONFIG: {
|
|
59
|
-
readonly id: "012";
|
|
60
|
-
readonly message: "Webpack config error.";
|
|
61
|
-
readonly kind: "build";
|
|
62
|
-
};
|
|
63
|
-
readonly ERR_PACKAGE_JSON_MUST_HAVE_NAME_VERSION: {
|
|
64
|
-
readonly id: "013";
|
|
65
|
-
readonly message: "Zephyr need package.json to have name and version field to map your application configuration in deployment. Please ensure these fields exists in your package.json.";
|
|
66
|
-
readonly kind: "build";
|
|
67
|
-
};
|
|
68
|
-
readonly ERR_GIT_REMOTE_ORIGIN: {
|
|
69
|
-
readonly id: "014";
|
|
70
|
-
readonly message: "\nCould not detect a git remote called 'origin'. This is required for Zephyr to work properly.\n\nPlease set the git remote origin by running the following command:\n\n```sh\ngit init\ngit remote add origin <url>\n```\n";
|
|
71
|
-
readonly kind: "build";
|
|
72
|
-
};
|
|
73
|
-
readonly ERR_NO_GIT_USERNAME_EMAIL: {
|
|
74
|
-
readonly id: "015";
|
|
75
|
-
readonly message: "\nGit username or email is not configured:\n- please set valid 'git config user.name' and 'git config user.email'\n- or provide ZE_USER_TOKEN as environment variable\n";
|
|
76
|
-
readonly kind: "build";
|
|
77
|
-
};
|
|
78
|
-
readonly ERR_NO_GIT_INFO: {
|
|
79
|
-
readonly id: "016";
|
|
80
|
-
readonly message: "\n\nFailed to load git information:\n\n{{ message }}\n\n";
|
|
81
|
-
readonly kind: "build";
|
|
82
|
-
};
|
|
83
|
-
readonly ERR_MISSING_APPLICATION_UID: {
|
|
84
|
-
readonly id: "017";
|
|
85
|
-
readonly message: "`application_uid` missing.";
|
|
86
|
-
readonly kind: "build";
|
|
87
|
-
};
|
|
88
|
-
readonly ERR_AUTH_ERROR: {
|
|
89
|
-
readonly id: "018";
|
|
90
|
-
readonly message: "\nFailed to authenticate with Zephyr.\n\nPlease make sure you have a valid Zephyr account and you are logged in.\n\n{{ message }}\n";
|
|
91
|
-
readonly kind: "build";
|
|
92
|
-
};
|
|
93
|
-
readonly ERR_GET_BUILD_ID: {
|
|
94
|
-
readonly id: "019";
|
|
95
|
-
readonly message: "\nCould not generate Build ID. Ensure you meet the following requirements:\n\n1. Your Zephyr Account ({{ username }}) has write access to {{ application_uid }}\n2. You own the repository or is a collaborator with write access.\n3. This repository has commit history and has a proper git remote origin url.\n\nWhen trying out public examples, make sure to fork the repository to your account so you can have write access.\n\n";
|
|
96
|
-
readonly kind: "build";
|
|
97
|
-
};
|
|
98
|
-
readonly ERR_INITIALIZE_ZEPHYR_AGENT: {
|
|
99
|
-
readonly id: "020";
|
|
100
|
-
readonly message: "Could not initialize Zephyr Agent.";
|
|
101
|
-
readonly kind: "build";
|
|
102
|
-
};
|
|
103
|
-
readonly ERR_UNABLE_CREATE_DIST_FOLDER: {
|
|
104
|
-
readonly id: "021";
|
|
105
|
-
readonly message: "Error creating dist folder.";
|
|
106
|
-
readonly kind: "build";
|
|
107
|
-
};
|
|
108
|
-
readonly ERR_AUTH_FORBIDDEN_ERROR: {
|
|
109
|
-
readonly id: "022";
|
|
110
|
-
readonly message: "\nUser not allowed to access the requested resource.\n\nPlease make sure you are logged in with the correct Zephyr account.\n\n{{ message }}\n";
|
|
111
|
-
readonly kind: "build";
|
|
112
|
-
};
|
|
113
|
-
readonly ERR_ASSETS_NOT_FOUND: {
|
|
114
|
-
readonly id: "010";
|
|
115
|
-
readonly message: "Assets not found.";
|
|
116
|
-
readonly kind: "deploy";
|
|
117
|
-
};
|
|
118
|
-
readonly ERR_ASSETS_NOT_FOUND_IN_SNAPSHOT: {
|
|
119
|
-
readonly id: "011";
|
|
120
|
-
readonly message: "Assets not found in snapshot.";
|
|
121
|
-
readonly kind: "deploy";
|
|
122
|
-
};
|
|
123
|
-
readonly ERR_DEPLOY_MISSING_APPLICATION_UID: {
|
|
124
|
-
readonly id: "012";
|
|
125
|
-
readonly message: "`application_uid` is required.";
|
|
126
|
-
readonly kind: "deploy";
|
|
127
|
-
};
|
|
128
|
-
readonly ERR_MISSING_FILE_HASH: {
|
|
129
|
-
readonly id: "013";
|
|
130
|
-
readonly message: "Missing file hash.";
|
|
131
|
-
readonly kind: "deploy";
|
|
132
|
-
};
|
|
133
|
-
readonly ERR_LOAD_APP_CONFIG: {
|
|
134
|
-
readonly id: "014";
|
|
135
|
-
readonly message: "\n\nFailed to load Application Configuration for {{ application_uid }}.\n\nTry to remove ~/.zephyr folder and try again.\n\n ";
|
|
136
|
-
readonly kind: "deploy";
|
|
137
|
-
};
|
|
138
|
-
readonly ERR_NOT_RECEIVE_ENVS_FROM_BUILD_STATS: {
|
|
139
|
-
readonly id: "016";
|
|
140
|
-
readonly message: "Did not receive envs from build stats upload.";
|
|
141
|
-
readonly kind: "deploy";
|
|
142
|
-
};
|
|
143
|
-
readonly ERR_FAILED_UPLOAD: {
|
|
144
|
-
readonly id: "017";
|
|
145
|
-
readonly message: "\n\nCould not upload {{ type }} to your Edge Provider. This error will affect your tags and environments and it might fail deployments to custom domains.\n\nPlease check your network connection and try again.\n\n ";
|
|
146
|
-
readonly kind: "deploy";
|
|
147
|
-
};
|
|
148
|
-
readonly ERR_SNAPSHOT_UPLOADS_NO_RESULTS: {
|
|
149
|
-
readonly id: "019";
|
|
150
|
-
readonly message: "Snapshot uploads gave no results.";
|
|
151
|
-
readonly kind: "deploy";
|
|
152
|
-
};
|
|
153
|
-
readonly ERR_GET_APPLICATION_HASH_LIST: {
|
|
154
|
-
readonly id: "020";
|
|
155
|
-
readonly message: "Failed to get application hash list.";
|
|
156
|
-
readonly kind: "deploy";
|
|
157
|
-
};
|
|
158
|
-
readonly ERR_SNAPSHOT_ID_NOT_FOUND: {
|
|
159
|
-
readonly id: "022";
|
|
160
|
-
readonly message: "`snapshot_id` not found.";
|
|
161
|
-
readonly kind: "deploy";
|
|
162
|
-
};
|
|
163
|
-
readonly ERR_SNAPSHOT_NOT_FOUND: {
|
|
164
|
-
readonly id: "023";
|
|
165
|
-
readonly message: "Snapshot not found.";
|
|
166
|
-
readonly kind: "deploy";
|
|
167
|
-
};
|
|
168
|
-
readonly ERR_DEPLOY_LOCAL_BUILD: {
|
|
169
|
-
readonly id: "024";
|
|
170
|
-
readonly message: "Failed to deploy local build.";
|
|
171
|
-
readonly kind: "deploy";
|
|
172
|
-
};
|
|
173
|
-
readonly ERR_WRANGLER_DEPENDENCY: {
|
|
174
|
-
readonly id: "025";
|
|
175
|
-
readonly message: "Wrangler dependency is needed for Cloudflare deployment. Please install dependencies without --no-optional flag.";
|
|
176
|
-
readonly kind: "deploy";
|
|
177
|
-
};
|
|
178
|
-
readonly ERR_CONVERT_GRAPH_TO_DASHBOARD: {
|
|
179
|
-
readonly id: "026";
|
|
180
|
-
readonly message: "\nFailed to convert federation configuration to needed information. We are reading your Module Federation configuration to understand your shared dependencies:\n\n- host application's name\n- remote application's name\n- shared dependencies.\n\nPlease refer to the official Module Federation guide https://module-federation.io/configure/index.html to make sure your have required inputs.\n";
|
|
181
|
-
readonly kind: "browser";
|
|
182
|
-
};
|
|
183
|
-
readonly ERR_UPLOAD_TO_CLOUDFLARE_PAGES: {
|
|
184
|
-
readonly id: "027";
|
|
185
|
-
readonly message: "Error upload to Cloudflare pages.";
|
|
186
|
-
readonly kind: "deploy";
|
|
187
|
-
};
|
|
188
|
-
readonly ERR_USER_IDENTITY: {
|
|
189
|
-
readonly id: "036";
|
|
190
|
-
readonly message: "\nGit username or email is not configured\n - please set valid 'git config user.name' and 'git config user.email'\n - or provide ZE_USER_TOKEN as environment variable\n";
|
|
191
|
-
readonly kind: "deploy";
|
|
192
|
-
};
|
|
193
|
-
readonly ERR_TLS_CERT_ALTNAME_INVALID: {
|
|
194
|
-
readonly id: "034";
|
|
195
|
-
readonly message: "You domain's TLS Certificate is invalid. Have you updated your domain settings with your Registrar?";
|
|
196
|
-
readonly kind: "deploy";
|
|
197
|
-
};
|
|
198
|
-
readonly ERR_HTTP_ERROR: {
|
|
199
|
-
readonly id: "035";
|
|
200
|
-
readonly message: "\n\nHTTP request for {{ method }} {{ url }} failed with status code {{ status }}.\n\nPlease check your network connection and try again.\n\n{{ content }}\n\n";
|
|
201
|
-
readonly kind: "config";
|
|
202
|
-
};
|
|
203
|
-
readonly ERR_NO_WRANGLER: {
|
|
204
|
-
readonly id: "028";
|
|
205
|
-
readonly message: "Wrangler is not installed. It's needed for Cloudflare deployment. Please install dependencies without --no-optional flag.";
|
|
206
|
-
readonly kind: "build";
|
|
207
|
-
};
|
|
208
|
-
readonly ERR_CREATE_DIST_FOLDER: {
|
|
209
|
-
readonly id: "029";
|
|
210
|
-
readonly message: "Error on creating dist folder. Zephyr is unable to create dist folder for your application's configuration.";
|
|
211
|
-
readonly kind: "build";
|
|
212
|
-
};
|
|
213
|
-
readonly ERR_NO_RESPONSE_FOR_APP_CONFIG: {
|
|
214
|
-
readonly id: "030";
|
|
215
|
-
readonly message: "Failed to load application configuration.";
|
|
216
|
-
readonly kind: "build";
|
|
217
|
-
};
|
|
218
|
-
readonly ERR_NO_JWT: {
|
|
219
|
-
readonly id: "031";
|
|
220
|
-
readonly message: "You don't have valid JWT token. Try to log out from the dashboard and log in again. https://app.zephyr-cloud.io";
|
|
221
|
-
readonly kind: "build";
|
|
222
|
-
};
|
|
223
|
-
readonly ERR_JWT_INVALID: {
|
|
224
|
-
readonly id: "032";
|
|
225
|
-
readonly message: "Your JWT token is invalid. Try to log out from the dashboard and log in again. https://app.zephyr-cloud.io";
|
|
226
|
-
readonly kind: "build";
|
|
227
|
-
};
|
|
228
|
-
readonly ERR_WEBSOCKET_CONNECTION: {
|
|
229
|
-
readonly id: "034";
|
|
230
|
-
readonly message: "Websocket connection error during login.";
|
|
231
|
-
readonly kind: "build";
|
|
232
|
-
};
|
|
233
|
-
readonly ERR_GET_APP_CONFIG: {
|
|
234
|
-
readonly id: "035";
|
|
235
|
-
readonly message: "Error when getting application configuration from API. Could not find application configuration. Please try again after removing ~/.zephyr folder.";
|
|
236
|
-
readonly kind: "build";
|
|
237
|
-
};
|
|
238
|
-
readonly ERR_GIT_COMMIT_HASH: {
|
|
239
|
-
readonly id: "036";
|
|
240
|
-
readonly message: "Failed to get git commit hash. Can you make sure this git repository has commit history?";
|
|
241
|
-
readonly kind: "build";
|
|
242
|
-
};
|
|
243
|
-
readonly ERR_RESOLVE_REMOTES: {
|
|
244
|
-
readonly id: "001";
|
|
245
|
-
readonly message: "\nPlease build {{ appUid }} with Zephyr first or add as Unmanaged applications.\n\nNote: you can read application uid as follows:\n- {{ appName }} - project.json 'name' field of remote application\n- {{ projectName }} - git repository name\n- {{ orgName }} - git organization name\n\n";
|
|
246
|
-
readonly kind: "config";
|
|
247
|
-
};
|
|
248
|
-
readonly ERR_CANNOT_RESOLVE_APP_NAME_WITH_VERSION: {
|
|
249
|
-
readonly id: "003";
|
|
250
|
-
readonly message: "\nIs the remote application being built? We are not able to find your remote application based on application_uid and remote name in configuration.\nNote that we typically map your remote based on below values\n\n- git username\n- git repository name\n- name in package.json\n- name in micro-frontend configuration.\n\nWe have a complete checklist for Micro-Frontend application configuration here: https://docs.zephyr-cloud.io/how-to/mf-guide\n ";
|
|
251
|
-
readonly kind: "config";
|
|
252
|
-
};
|
|
253
|
-
}[K]["kind"]]}${{
|
|
254
|
-
readonly ERR_UNKNOWN: {
|
|
255
|
-
readonly id: "000";
|
|
256
|
-
readonly message: "\nUnknown error: {{ message }}\n\n";
|
|
257
|
-
readonly kind: "unknown";
|
|
258
|
-
};
|
|
259
|
-
readonly ERR_PACKAGE_JSON_NOT_FOUND: {
|
|
260
|
-
/** Data used when templating the message */
|
|
261
|
-
readonly id: "010";
|
|
262
|
-
readonly message: "package.json not found";
|
|
263
|
-
readonly kind: "build";
|
|
264
|
-
};
|
|
265
|
-
readonly ERR_PACKAGE_JSON_NOT_VALID: {
|
|
266
|
-
readonly id: "011";
|
|
267
|
-
readonly message: "Package.json is not in a valid json format.";
|
|
268
|
-
readonly kind: "build";
|
|
269
|
-
};
|
|
270
|
-
readonly ERR_WEBPACK_CONFIG: {
|
|
271
|
-
readonly id: "012";
|
|
272
|
-
readonly message: "Webpack config error.";
|
|
273
|
-
readonly kind: "build";
|
|
274
|
-
};
|
|
275
|
-
readonly ERR_PACKAGE_JSON_MUST_HAVE_NAME_VERSION: {
|
|
276
|
-
readonly id: "013";
|
|
277
|
-
readonly message: "Zephyr need package.json to have name and version field to map your application configuration in deployment. Please ensure these fields exists in your package.json.";
|
|
278
|
-
readonly kind: "build";
|
|
279
|
-
};
|
|
280
|
-
readonly ERR_GIT_REMOTE_ORIGIN: {
|
|
281
|
-
readonly id: "014";
|
|
282
|
-
readonly message: "\nCould not detect a git remote called 'origin'. This is required for Zephyr to work properly.\n\nPlease set the git remote origin by running the following command:\n\n```sh\ngit init\ngit remote add origin <url>\n```\n";
|
|
283
|
-
readonly kind: "build";
|
|
284
|
-
};
|
|
285
|
-
readonly ERR_NO_GIT_USERNAME_EMAIL: {
|
|
286
|
-
readonly id: "015";
|
|
287
|
-
readonly message: "\nGit username or email is not configured:\n- please set valid 'git config user.name' and 'git config user.email'\n- or provide ZE_USER_TOKEN as environment variable\n";
|
|
288
|
-
readonly kind: "build";
|
|
289
|
-
};
|
|
290
|
-
readonly ERR_NO_GIT_INFO: {
|
|
291
|
-
readonly id: "016";
|
|
292
|
-
readonly message: "\n\nFailed to load git information:\n\n{{ message }}\n\n";
|
|
293
|
-
readonly kind: "build";
|
|
294
|
-
};
|
|
295
|
-
readonly ERR_MISSING_APPLICATION_UID: {
|
|
296
|
-
readonly id: "017";
|
|
297
|
-
readonly message: "`application_uid` missing.";
|
|
298
|
-
readonly kind: "build";
|
|
299
|
-
};
|
|
300
|
-
readonly ERR_AUTH_ERROR: {
|
|
301
|
-
readonly id: "018";
|
|
302
|
-
readonly message: "\nFailed to authenticate with Zephyr.\n\nPlease make sure you have a valid Zephyr account and you are logged in.\n\n{{ message }}\n";
|
|
303
|
-
readonly kind: "build";
|
|
304
|
-
};
|
|
305
|
-
readonly ERR_GET_BUILD_ID: {
|
|
306
|
-
readonly id: "019";
|
|
307
|
-
readonly message: "\nCould not generate Build ID. Ensure you meet the following requirements:\n\n1. Your Zephyr Account ({{ username }}) has write access to {{ application_uid }}\n2. You own the repository or is a collaborator with write access.\n3. This repository has commit history and has a proper git remote origin url.\n\nWhen trying out public examples, make sure to fork the repository to your account so you can have write access.\n\n";
|
|
308
|
-
readonly kind: "build";
|
|
309
|
-
};
|
|
310
|
-
readonly ERR_INITIALIZE_ZEPHYR_AGENT: {
|
|
311
|
-
readonly id: "020";
|
|
312
|
-
readonly message: "Could not initialize Zephyr Agent.";
|
|
313
|
-
readonly kind: "build";
|
|
314
|
-
};
|
|
315
|
-
readonly ERR_UNABLE_CREATE_DIST_FOLDER: {
|
|
316
|
-
readonly id: "021";
|
|
317
|
-
readonly message: "Error creating dist folder.";
|
|
318
|
-
readonly kind: "build";
|
|
319
|
-
};
|
|
320
|
-
readonly ERR_AUTH_FORBIDDEN_ERROR: {
|
|
321
|
-
readonly id: "022";
|
|
322
|
-
readonly message: "\nUser not allowed to access the requested resource.\n\nPlease make sure you are logged in with the correct Zephyr account.\n\n{{ message }}\n";
|
|
323
|
-
readonly kind: "build";
|
|
324
|
-
};
|
|
325
|
-
readonly ERR_ASSETS_NOT_FOUND: {
|
|
326
|
-
readonly id: "010";
|
|
327
|
-
readonly message: "Assets not found.";
|
|
328
|
-
readonly kind: "deploy";
|
|
329
|
-
};
|
|
330
|
-
readonly ERR_ASSETS_NOT_FOUND_IN_SNAPSHOT: {
|
|
331
|
-
readonly id: "011";
|
|
332
|
-
readonly message: "Assets not found in snapshot.";
|
|
333
|
-
readonly kind: "deploy";
|
|
334
|
-
};
|
|
335
|
-
readonly ERR_DEPLOY_MISSING_APPLICATION_UID: {
|
|
336
|
-
readonly id: "012";
|
|
337
|
-
readonly message: "`application_uid` is required.";
|
|
338
|
-
readonly kind: "deploy";
|
|
339
|
-
};
|
|
340
|
-
readonly ERR_MISSING_FILE_HASH: {
|
|
341
|
-
readonly id: "013";
|
|
342
|
-
readonly message: "Missing file hash.";
|
|
343
|
-
readonly kind: "deploy";
|
|
344
|
-
};
|
|
345
|
-
readonly ERR_LOAD_APP_CONFIG: {
|
|
346
|
-
readonly id: "014";
|
|
347
|
-
readonly message: "\n\nFailed to load Application Configuration for {{ application_uid }}.\n\nTry to remove ~/.zephyr folder and try again.\n\n ";
|
|
348
|
-
readonly kind: "deploy";
|
|
349
|
-
};
|
|
350
|
-
readonly ERR_NOT_RECEIVE_ENVS_FROM_BUILD_STATS: {
|
|
351
|
-
readonly id: "016";
|
|
352
|
-
readonly message: "Did not receive envs from build stats upload.";
|
|
353
|
-
readonly kind: "deploy";
|
|
354
|
-
};
|
|
355
|
-
readonly ERR_FAILED_UPLOAD: {
|
|
356
|
-
readonly id: "017";
|
|
357
|
-
readonly message: "\n\nCould not upload {{ type }} to your Edge Provider. This error will affect your tags and environments and it might fail deployments to custom domains.\n\nPlease check your network connection and try again.\n\n ";
|
|
358
|
-
readonly kind: "deploy";
|
|
359
|
-
};
|
|
360
|
-
readonly ERR_SNAPSHOT_UPLOADS_NO_RESULTS: {
|
|
361
|
-
readonly id: "019";
|
|
362
|
-
readonly message: "Snapshot uploads gave no results.";
|
|
363
|
-
readonly kind: "deploy";
|
|
364
|
-
};
|
|
365
|
-
readonly ERR_GET_APPLICATION_HASH_LIST: {
|
|
366
|
-
readonly id: "020";
|
|
367
|
-
readonly message: "Failed to get application hash list.";
|
|
368
|
-
readonly kind: "deploy";
|
|
369
|
-
};
|
|
370
|
-
readonly ERR_SNAPSHOT_ID_NOT_FOUND: {
|
|
371
|
-
readonly id: "022";
|
|
372
|
-
readonly message: "`snapshot_id` not found.";
|
|
373
|
-
readonly kind: "deploy";
|
|
374
|
-
};
|
|
375
|
-
readonly ERR_SNAPSHOT_NOT_FOUND: {
|
|
376
|
-
readonly id: "023";
|
|
377
|
-
readonly message: "Snapshot not found.";
|
|
378
|
-
readonly kind: "deploy";
|
|
379
|
-
};
|
|
380
|
-
readonly ERR_DEPLOY_LOCAL_BUILD: {
|
|
381
|
-
readonly id: "024";
|
|
382
|
-
readonly message: "Failed to deploy local build.";
|
|
383
|
-
readonly kind: "deploy";
|
|
384
|
-
};
|
|
385
|
-
readonly ERR_WRANGLER_DEPENDENCY: {
|
|
386
|
-
readonly id: "025";
|
|
387
|
-
readonly message: "Wrangler dependency is needed for Cloudflare deployment. Please install dependencies without --no-optional flag.";
|
|
388
|
-
readonly kind: "deploy";
|
|
389
|
-
};
|
|
390
|
-
readonly ERR_CONVERT_GRAPH_TO_DASHBOARD: {
|
|
391
|
-
readonly id: "026";
|
|
392
|
-
readonly message: "\nFailed to convert federation configuration to needed information. We are reading your Module Federation configuration to understand your shared dependencies:\n\n- host application's name\n- remote application's name\n- shared dependencies.\n\nPlease refer to the official Module Federation guide https://module-federation.io/configure/index.html to make sure your have required inputs.\n";
|
|
393
|
-
readonly kind: "browser";
|
|
394
|
-
};
|
|
395
|
-
readonly ERR_UPLOAD_TO_CLOUDFLARE_PAGES: {
|
|
396
|
-
readonly id: "027";
|
|
397
|
-
readonly message: "Error upload to Cloudflare pages.";
|
|
398
|
-
readonly kind: "deploy";
|
|
399
|
-
};
|
|
400
|
-
readonly ERR_USER_IDENTITY: {
|
|
401
|
-
readonly id: "036";
|
|
402
|
-
readonly message: "\nGit username or email is not configured\n - please set valid 'git config user.name' and 'git config user.email'\n - or provide ZE_USER_TOKEN as environment variable\n";
|
|
403
|
-
readonly kind: "deploy";
|
|
404
|
-
};
|
|
405
|
-
readonly ERR_TLS_CERT_ALTNAME_INVALID: {
|
|
406
|
-
readonly id: "034";
|
|
407
|
-
readonly message: "You domain's TLS Certificate is invalid. Have you updated your domain settings with your Registrar?";
|
|
408
|
-
readonly kind: "deploy";
|
|
409
|
-
};
|
|
410
|
-
readonly ERR_HTTP_ERROR: {
|
|
411
|
-
readonly id: "035";
|
|
412
|
-
readonly message: "\n\nHTTP request for {{ method }} {{ url }} failed with status code {{ status }}.\n\nPlease check your network connection and try again.\n\n{{ content }}\n\n";
|
|
413
|
-
readonly kind: "config";
|
|
414
|
-
};
|
|
415
|
-
readonly ERR_NO_WRANGLER: {
|
|
416
|
-
readonly id: "028";
|
|
417
|
-
readonly message: "Wrangler is not installed. It's needed for Cloudflare deployment. Please install dependencies without --no-optional flag.";
|
|
418
|
-
readonly kind: "build";
|
|
419
|
-
};
|
|
420
|
-
readonly ERR_CREATE_DIST_FOLDER: {
|
|
421
|
-
readonly id: "029";
|
|
422
|
-
readonly message: "Error on creating dist folder. Zephyr is unable to create dist folder for your application's configuration.";
|
|
423
|
-
readonly kind: "build";
|
|
424
|
-
};
|
|
425
|
-
readonly ERR_NO_RESPONSE_FOR_APP_CONFIG: {
|
|
426
|
-
readonly id: "030";
|
|
427
|
-
readonly message: "Failed to load application configuration.";
|
|
428
|
-
readonly kind: "build";
|
|
429
|
-
};
|
|
430
|
-
readonly ERR_NO_JWT: {
|
|
431
|
-
readonly id: "031";
|
|
432
|
-
readonly message: "You don't have valid JWT token. Try to log out from the dashboard and log in again. https://app.zephyr-cloud.io";
|
|
433
|
-
readonly kind: "build";
|
|
434
|
-
};
|
|
435
|
-
readonly ERR_JWT_INVALID: {
|
|
436
|
-
readonly id: "032";
|
|
437
|
-
readonly message: "Your JWT token is invalid. Try to log out from the dashboard and log in again. https://app.zephyr-cloud.io";
|
|
438
|
-
readonly kind: "build";
|
|
439
|
-
};
|
|
440
|
-
readonly ERR_WEBSOCKET_CONNECTION: {
|
|
441
|
-
readonly id: "034";
|
|
442
|
-
readonly message: "Websocket connection error during login.";
|
|
443
|
-
readonly kind: "build";
|
|
444
|
-
};
|
|
445
|
-
readonly ERR_GET_APP_CONFIG: {
|
|
446
|
-
readonly id: "035";
|
|
447
|
-
readonly message: "Error when getting application configuration from API. Could not find application configuration. Please try again after removing ~/.zephyr folder.";
|
|
448
|
-
readonly kind: "build";
|
|
449
|
-
};
|
|
450
|
-
readonly ERR_GIT_COMMIT_HASH: {
|
|
451
|
-
readonly id: "036";
|
|
452
|
-
readonly message: "Failed to get git commit hash. Can you make sure this git repository has commit history?";
|
|
453
|
-
readonly kind: "build";
|
|
454
|
-
};
|
|
455
|
-
readonly ERR_RESOLVE_REMOTES: {
|
|
456
|
-
readonly id: "001";
|
|
457
|
-
readonly message: "\nPlease build {{ appUid }} with Zephyr first or add as Unmanaged applications.\n\nNote: you can read application uid as follows:\n- {{ appName }} - project.json 'name' field of remote application\n- {{ projectName }} - git repository name\n- {{ orgName }} - git organization name\n\n";
|
|
458
|
-
readonly kind: "config";
|
|
459
|
-
};
|
|
460
|
-
readonly ERR_CANNOT_RESOLVE_APP_NAME_WITH_VERSION: {
|
|
461
|
-
readonly id: "003";
|
|
462
|
-
readonly message: "\nIs the remote application being built? We are not able to find your remote application based on application_uid and remote name in configuration.\nNote that we typically map your remote based on below values\n\n- git username\n- git repository name\n- name in package.json\n- name in micro-frontend configuration.\n\nWe have a complete checklist for Micro-Frontend application configuration here: https://docs.zephyr-cloud.io/how-to/mf-guide\n ";
|
|
463
|
-
readonly kind: "config";
|
|
464
|
-
};
|
|
465
|
-
}[K]["id"]}`;
|
|
466
|
-
/**
|
|
467
|
-
* Parses a Zephyr error code into a ZeErrorType.
|
|
468
|
-
*
|
|
469
|
-
* Returns {@linkcode ZeErrors.ERR_UNKNOWN} if the code could not be resolved.
|
|
470
|
-
*/
|
|
471
|
-
static fromZeCode(code: ZeErrorCodes): ZeErrorType;
|
|
472
|
-
static format(error: unknown): string;
|
|
473
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZephyrError = exports.discordUrl = exports.docsUrl = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const fs = tslib_1.__importStar(require("node:fs"));
|
|
6
|
-
const os = tslib_1.__importStar(require("node:os"));
|
|
7
|
-
const path = tslib_1.__importStar(require("node:path"));
|
|
8
|
-
const util = tslib_1.__importStar(require("node:util"));
|
|
9
|
-
const picocolor_1 = require("../utils/picocolor");
|
|
10
|
-
const string_1 = require("../utils/string");
|
|
11
|
-
const strip_ansi_1 = require("../utils/strip-ansi");
|
|
12
|
-
const codes_1 = require("./codes");
|
|
13
|
-
exports.docsUrl = 'https://docs.zephyr-cloud.io/errors';
|
|
14
|
-
exports.discordUrl = 'https://zephyr-cloud.io/discord';
|
|
15
|
-
/**
|
|
16
|
-
* ZephyrError is the base class for every error thrown by our builder plugins.
|
|
17
|
-
*
|
|
18
|
-
* Some messages have templates that mus be replaced with the `data` object. Use `{{ example }}` or `{{ example = value }}` to have a
|
|
19
|
-
* default value
|
|
20
|
-
*
|
|
21
|
-
* It's a subclass of Error, so it can be used in try/catch blocks.
|
|
22
|
-
*/
|
|
23
|
-
class ZephyrError extends Error {
|
|
24
|
-
/** Returns {@linkcode cause} if it's a `ZephyrError`, otherwise creates a new `ZephyrError` for the provided type. */
|
|
25
|
-
constructor(type, opts) {
|
|
26
|
-
if (ZephyrError.is(opts === null || opts === void 0 ? void 0 : opts.cause)) {
|
|
27
|
-
// Unwraps ERR_UNKNOWN if cause is known
|
|
28
|
-
if ((0, codes_1.isZeErrorEqual)(type, codes_1.ZeErrors.ERR_UNKNOWN)) {
|
|
29
|
-
return opts.cause;
|
|
30
|
-
}
|
|
31
|
-
// Use cause's data if none is provided
|
|
32
|
-
if (!opts.data && opts.cause.data) {
|
|
33
|
-
opts.data = opts.cause.data;
|
|
34
|
-
opts.cause.data = undefined;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
let message = type.message;
|
|
38
|
-
// replace all the templates
|
|
39
|
-
if (opts) {
|
|
40
|
-
message = (0, string_1.formatString)(type.message, opts);
|
|
41
|
-
}
|
|
42
|
-
super(message.trim());
|
|
43
|
-
this.code = ZephyrError.toZeCode(type);
|
|
44
|
-
if (opts) {
|
|
45
|
-
const { cause, data } = opts, template = tslib_1.__rest(opts, ["cause", "data"]);
|
|
46
|
-
this.template = template;
|
|
47
|
-
this.data = opts.data;
|
|
48
|
-
this.cause = opts.cause;
|
|
49
|
-
}
|
|
50
|
-
// Simpler stack traces in VIte
|
|
51
|
-
if (process.env['VITE']) {
|
|
52
|
-
this._stack = this.stack;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
/** Checks if the given error is a ZephyrError and optionally matches the given code. */
|
|
56
|
-
static is(err, codeOrType) {
|
|
57
|
-
if (!(err instanceof ZephyrError)) {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
// No kind to filter
|
|
61
|
-
if (!codeOrType) {
|
|
62
|
-
return true;
|
|
63
|
-
}
|
|
64
|
-
return ZephyrError.toZeCode(codeOrType) === err.code;
|
|
65
|
-
}
|
|
66
|
-
/** Formats a Zephyr error code. */
|
|
67
|
-
static toZeCode({ id, kind }) {
|
|
68
|
-
const prefix = codes_1.ZeErrorCategories[kind];
|
|
69
|
-
// we have less categories and more errors, so make sense to be ZEPPIII
|
|
70
|
-
// where ZE is a constant, PP is the category, and I is the error id
|
|
71
|
-
const paddedId = id.toString().padStart(3, '0');
|
|
72
|
-
const paddedPrefix = prefix.toString().padStart(2, '0');
|
|
73
|
-
return `ZE${paddedPrefix}${paddedId}`;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Parses a Zephyr error code into a ZeErrorType.
|
|
77
|
-
*
|
|
78
|
-
* Returns {@linkcode ZeErrors.ERR_UNKNOWN} if the code could not be resolved.
|
|
79
|
-
*/
|
|
80
|
-
static fromZeCode(code) {
|
|
81
|
-
// ZEPPIII -> ZE PP III -> ZE (2) (3)
|
|
82
|
-
const prefix = code.slice(2, 4);
|
|
83
|
-
const id = code.slice(4);
|
|
84
|
-
let category;
|
|
85
|
-
for (const errorCategory of Object.keys(codes_1.ZeErrorCategories)) {
|
|
86
|
-
if (codes_1.ZeErrorCategories[errorCategory] === prefix) {
|
|
87
|
-
category = errorCategory;
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (!category) {
|
|
92
|
-
return codes_1.ZeErrors.ERR_UNKNOWN;
|
|
93
|
-
}
|
|
94
|
-
for (const error of Object.values(codes_1.ZeErrors)) {
|
|
95
|
-
if (+error.id === +id && error.kind === category) {
|
|
96
|
-
return error;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return codes_1.ZeErrors.ERR_UNKNOWN;
|
|
100
|
-
}
|
|
101
|
-
static format(error) {
|
|
102
|
-
const zeError = ZephyrError.is(error)
|
|
103
|
-
? error
|
|
104
|
-
: new ZephyrError(codes_1.ZeErrors.ERR_UNKNOWN, { message: (error === null || error === void 0 ? void 0 : error.message) || String(error), cause: error });
|
|
105
|
-
const tmpFile = write_error_file(zeError);
|
|
106
|
-
// Strings don't need to be inspected.
|
|
107
|
-
const inspected = typeof zeError.data === 'object' ? util.inspect(zeError.data, false, 5, true) : zeError.data;
|
|
108
|
-
const messages = [
|
|
109
|
-
`${(0, picocolor_1.bold)((0, picocolor_1.underline)(zeError.code))}: ${zeError.message}`,
|
|
110
|
-
`
|
|
111
|
-
|
|
112
|
-
Visit ${(0, picocolor_1.cyanBright)(`${exports.docsUrl}/${zeError.code}`)} for more information
|
|
113
|
-
Or join our ${(0, picocolor_1.blue)('Discord')} server at ${(0, picocolor_1.cyanBright)(exports.discordUrl)}
|
|
114
|
-
|
|
115
|
-
`.trim(),
|
|
116
|
-
inspected !== '{}' && inspected,
|
|
117
|
-
tmpFile && (0, picocolor_1.blackBright)(`Complete error details available at ${(0, picocolor_1.whiteBright)(tmpFile)}`),
|
|
118
|
-
];
|
|
119
|
-
return messages
|
|
120
|
-
.filter((x) => !!x)
|
|
121
|
-
.map((x) => x.trim())
|
|
122
|
-
.join('\n\n');
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
exports.ZephyrError = ZephyrError;
|
|
126
|
-
/** Attempts to write the error to a file in the temp directory. */
|
|
127
|
-
function write_error_file(zeError) {
|
|
128
|
-
try {
|
|
129
|
-
const tempPath = path.join(os.tmpdir(), `ze${Math.round(Math.random() * 10e9)}.json`);
|
|
130
|
-
fs.writeFileSync(tempPath, JSON.stringify(format_error(zeError)), 'utf8');
|
|
131
|
-
return tempPath;
|
|
132
|
-
}
|
|
133
|
-
catch (_a) {
|
|
134
|
-
return undefined;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
function format_error(error) {
|
|
138
|
-
if (!error) {
|
|
139
|
-
return undefined;
|
|
140
|
-
}
|
|
141
|
-
return Object.assign(Object.assign(Object.assign(Object.assign({}, error), { template: undefined }), error === null || error === void 0 ? void 0 : error.template), { data: error === null || error === void 0 ? void 0 : error.data, message: error === null || error === void 0 ? void 0 : error.message, stack: split_stack(error.stack, error.message), cause: format_error(error.cause) });
|
|
142
|
-
}
|
|
143
|
-
function split_stack(stack, message) {
|
|
144
|
-
if (!stack) {
|
|
145
|
-
return undefined;
|
|
146
|
-
}
|
|
147
|
-
// removes message from stack
|
|
148
|
-
if (message) {
|
|
149
|
-
stack = stack.slice(`Error: ${message}\n`.length);
|
|
150
|
-
}
|
|
151
|
-
return stack.split('\n').map((line) => (0, strip_ansi_1.stripAnsi)(line.trim()));
|
|
152
|
-
}
|
|
153
|
-
//# sourceMappingURL=zephyr.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zephyr.js","sourceRoot":"","sources":["../../../src/lib/errors/zephyr.ts"],"names":[],"mappings":";;;;AAAA,oDAA8B;AAC9B,oDAA8B;AAC9B,wDAAkC;AAClC,wDAAkC;AAClC,kDAAiG;AACjG,4CAA8D;AAC9D,oDAAgD;AAChD,mCAAqI;AAQxH,QAAA,OAAO,GAAG,qCAAqC,CAAC;AAChD,QAAA,UAAU,GAAG,iCAAiC,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAa,WAA0F,SAAQ,KAAK;IAgBlH,sHAAsH;IACtH,YAAY,IAAO,EAAE,IAAyB;QAC5C,IAAI,WAAW,CAAC,EAAE,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,EAAE,CAAC;YAChC,wCAAwC;YACxC,IAAI,IAAA,sBAAc,EAAC,IAAI,EAAE,gBAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gBAC/C,OAAO,IAAI,CAAC,KAAuB,CAAC;YACtC,CAAC;YAED,uCAAuC;YACvC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;gBAClC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;gBAC5B,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;YAC9B,CAAC;QACH,CAAC;QAED,IAAI,OAAO,GAAW,IAAI,CAAC,OAAO,CAAC;QAEnC,4BAA4B;QAC5B,IAAI,IAAI,EAAE,CAAC;YACT,OAAO,GAAG,IAAA,qBAAY,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC7C,CAAC;QAED,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QAEtB,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AC,YAAY,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;QAE1E,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,KAAU;IAC9B,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,mEACM,KAAa,KACjB,QAAQ,EAAE,SAAS,KAChB,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,KAClB,IAAI,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EACjB,OAAO,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,EACvB,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EAC9C,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,IAChC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAc,EAAE,OAAgB;IACnD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,6BAA6B;IAC7B,IAAI,OAAO,EAAE,CAAC;QACZ,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,sBAAS,EAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function setAppDeployResult(application_uid: string, value: {
|
|
2
|
-
urls: string[];
|
|
3
|
-
}): Promise<void>;
|
|
4
|
-
export declare function getAppDeployResult(application_uid: string): Promise<{
|
|
5
|
-
urls: string[];
|
|
6
|
-
} | undefined>;
|
|
7
|
-
export declare function removeAppDeployResult(application_uid: string): Promise<void>;
|