zephyr-edge-contract 0.0.12 → 0.0.14

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 (102) hide show
  1. package/LICENSE +39 -0
  2. package/{src → dist}/index.d.ts +10 -5
  3. package/{src → dist}/index.js +14 -3
  4. package/dist/index.js.map +1 -0
  5. package/dist/lib/api-contract-negotiation/get-api-contract.js.map +1 -0
  6. package/dist/lib/edge-api/ze-envs-request.js.map +1 -0
  7. package/{src → dist}/lib/node-persist/application-configuration.d.ts +13 -0
  8. package/dist/lib/node-persist/application-configuration.js.map +1 -0
  9. package/dist/lib/node-persist/fs-cache.d.ts +3 -0
  10. package/dist/lib/node-persist/fs-cache.js +33 -0
  11. package/dist/lib/node-persist/fs-cache.js.map +1 -0
  12. package/dist/lib/node-persist/hash-cache.d.ts +7 -0
  13. package/dist/lib/node-persist/hash-cache.js +33 -0
  14. package/dist/lib/node-persist/hash-cache.js.map +1 -0
  15. package/dist/lib/node-persist/partial-assets-map.js.map +1 -0
  16. package/dist/lib/node-persist/secret-token.d.ts +1 -0
  17. package/dist/lib/node-persist/secret-token.js +11 -0
  18. package/dist/lib/node-persist/secret-token.js.map +1 -0
  19. package/{src → dist}/lib/node-persist/storage-keys.d.ts +4 -1
  20. package/dist/lib/node-persist/storage-keys.js.map +1 -0
  21. package/{src → dist}/lib/node-persist/token.js +3 -3
  22. package/dist/lib/node-persist/token.js.map +1 -0
  23. package/dist/lib/node-persist/upload-provider-options.d.ts +18 -0
  24. package/dist/lib/node-persist/upload-provider-options.js +12 -0
  25. package/dist/lib/node-persist/upload-provider-options.js.map +1 -0
  26. package/{src/lib/plugin-options/ze-webpack-plugin-options.d.ts → dist/lib/plugin-options/zephyr-plugin-options.d.ts} +4 -3
  27. package/dist/lib/plugin-options/zephyr-plugin-options.js.map +1 -0
  28. package/{src → dist}/lib/snapshot.d.ts +5 -2
  29. package/dist/lib/snapshot.js.map +1 -0
  30. package/{src/lib/utils/create-full-app-name.d.ts → dist/lib/utils/create-application-u-i-d.d.ts} +1 -1
  31. package/{src/lib/utils/create-full-app-name.js → dist/lib/utils/create-application-u-i-d.js} +4 -4
  32. package/dist/lib/utils/create-application-u-i-d.js.map +1 -0
  33. package/{src → dist}/lib/utils/create-snapshot-id.js +2 -2
  34. package/dist/lib/utils/create-snapshot-id.js.map +1 -0
  35. package/dist/lib/utils/debug.d.ts +29 -0
  36. package/dist/lib/utils/debug.js +66 -0
  37. package/dist/lib/utils/debug.js.map +1 -0
  38. package/dist/lib/utils/error-types.d.ts +38 -0
  39. package/dist/lib/utils/error-types.js +69 -0
  40. package/dist/lib/utils/error-types.js.map +1 -0
  41. package/dist/lib/utils/picocolor.d.ts +42 -0
  42. package/dist/lib/utils/picocolor.js +91 -0
  43. package/dist/lib/utils/picocolor.js.map +1 -0
  44. package/dist/lib/utils/safe-json-parse.js.map +1 -0
  45. package/{src → dist}/lib/utils/ze-http-request.js +11 -7
  46. package/dist/lib/utils/ze-http-request.js.map +1 -0
  47. package/dist/lib/ze-api/app-list.js.map +1 -0
  48. package/dist/lib/ze-api/app-version.js.map +1 -0
  49. package/dist/lib/ze-api/converted-graph.js.map +1 -0
  50. package/dist/lib/ze-api/local-package-json.js.map +1 -0
  51. package/{src → dist}/lib/zephyr-edge-contract.d.ts +5 -3
  52. package/dist/lib/zephyr-edge-contract.js.map +1 -0
  53. package/dist/package.json +21 -0
  54. package/package.json +8 -7
  55. package/src/index.js.map +0 -1
  56. package/src/lib/api-contract-negotiation/get-api-contract.js.map +0 -1
  57. package/src/lib/edge-api/ze-envs-request.js.map +0 -1
  58. package/src/lib/node-persist/application-configuration.js.map +0 -1
  59. package/src/lib/node-persist/partial-assets-map.js.map +0 -1
  60. package/src/lib/node-persist/storage-keys.js.map +0 -1
  61. package/src/lib/node-persist/token.js.map +0 -1
  62. package/src/lib/plugin-options/ze-webpack-plugin-options.js +0 -3
  63. package/src/lib/plugin-options/ze-webpack-plugin-options.js.map +0 -1
  64. package/src/lib/plugin-options/zephyr-plugin-options.d.ts +0 -8
  65. package/src/lib/plugin-options/zephyr-plugin-options.js.map +0 -1
  66. package/src/lib/snapshot.js.map +0 -1
  67. package/src/lib/utils/create-full-app-name.js.map +0 -1
  68. package/src/lib/utils/create-snapshot-id.js.map +0 -1
  69. package/src/lib/utils/debug.d.ts +0 -6
  70. package/src/lib/utils/debug.js +0 -15
  71. package/src/lib/utils/debug.js.map +0 -1
  72. package/src/lib/utils/safe-json-parse.js.map +0 -1
  73. package/src/lib/utils/ze-http-request.js.map +0 -1
  74. package/src/lib/ze-api/app-list.js.map +0 -1
  75. package/src/lib/ze-api/app-version.js.map +0 -1
  76. package/src/lib/ze-api/converted-graph.js.map +0 -1
  77. package/src/lib/ze-api/local-package-json.js.map +0 -1
  78. package/src/lib/zephyr-edge-contract.js.map +0 -1
  79. /package/{src → dist}/lib/api-contract-negotiation/get-api-contract.d.ts +0 -0
  80. /package/{src → dist}/lib/api-contract-negotiation/get-api-contract.js +0 -0
  81. /package/{src → dist}/lib/edge-api/ze-envs-request.d.ts +0 -0
  82. /package/{src → dist}/lib/edge-api/ze-envs-request.js +0 -0
  83. /package/{src → dist}/lib/node-persist/application-configuration.js +0 -0
  84. /package/{src → dist}/lib/node-persist/partial-assets-map.d.ts +0 -0
  85. /package/{src → dist}/lib/node-persist/partial-assets-map.js +0 -0
  86. /package/{src → dist}/lib/node-persist/storage-keys.js +0 -0
  87. /package/{src → dist}/lib/node-persist/token.d.ts +0 -0
  88. /package/{src → dist}/lib/plugin-options/zephyr-plugin-options.js +0 -0
  89. /package/{src → dist}/lib/snapshot.js +0 -0
  90. /package/{src → dist}/lib/utils/create-snapshot-id.d.ts +0 -0
  91. /package/{src → dist}/lib/utils/safe-json-parse.d.ts +0 -0
  92. /package/{src → dist}/lib/utils/safe-json-parse.js +0 -0
  93. /package/{src → dist}/lib/utils/ze-http-request.d.ts +0 -0
  94. /package/{src → dist}/lib/ze-api/app-list.d.ts +0 -0
  95. /package/{src → dist}/lib/ze-api/app-list.js +0 -0
  96. /package/{src → dist}/lib/ze-api/app-version.d.ts +0 -0
  97. /package/{src → dist}/lib/ze-api/app-version.js +0 -0
  98. /package/{src → dist}/lib/ze-api/converted-graph.d.ts +0 -0
  99. /package/{src → dist}/lib/ze-api/converted-graph.js +0 -0
  100. /package/{src → dist}/lib/ze-api/local-package-json.d.ts +0 -0
  101. /package/{src → dist}/lib/ze-api/local-package-json.js +0 -0
  102. /package/{src → dist}/lib/zephyr-edge-contract.js +0 -0
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.errorMessages = exports.runtimeErrorMessages = exports.deployErrorMessages = exports.buildErrorMessages = exports.docsPrefix = void 0;
4
+ // ! If anyone is adding new errors to this file please make sure the description and debugging for users are sync with documentation's error page
5
+ exports.docsPrefix = "https://docs.zephyr-cloud.io/guide/error";
6
+ /**
7
+ * A collection of error types and the error code during local/build stage*/
8
+ exports.buildErrorMessages = {
9
+ /** package.json not found error */
10
+ BU10010: "Package.json not found",
11
+ /** Package.json is not in a valid json format*/
12
+ BU10011: "Package.json is not in a valid json format.",
13
+ /** Webpack config error*/
14
+ BU10012: "Webpack config error.", // TODO: we don't detect this error yet, will we be able to separate them?
15
+ /** Package.json must have a name and version field. */
16
+ BU10013: "Package.json must have a name and version field.",
17
+ /** Git remote origin is not configured properly.*/
18
+ BU10014: "Git remote origin is not configured properly.",
19
+ /** Git username or email is not configured. */
20
+ BU10015: "Git username or email is not configured.",
21
+ /** Could not get git info */
22
+ BU10016: "Could not get git info.",
23
+ /** application_uid missing. */
24
+ BU10017: "`application_uid` missing.",
25
+ /** Auth error */
26
+ BU10018: "Auth error.",
27
+ /** Could not get build id. */
28
+ BU10019: "Could not get build id.",
29
+ /**Could not initialize Zephyr Agent. */
30
+ BU10020: "Could not initialize Zephyr Agent.",
31
+ /**Failed to get application hash list. */
32
+ BU10021: "Failed to get application hash list.",
33
+ };
34
+ /** Happens when users are able to "deploy" -> there'd be edge url show up in their terminal. but when they click on that link it will show them this error. */
35
+ exports.deployErrorMessages = {
36
+ /** Assets not found. */
37
+ DE20010: "Assets not found.",
38
+ /** Assets not found in snapshot. */
39
+ DE20011: "Assets not found in snapshot.",
40
+ /** `application_uid` is required. */
41
+ DE20012: "`application_uid` is required.",
42
+ /** Missing file hash */
43
+ DE20013: "Missing file hash.",
44
+ /** Failed to load application configuration. */
45
+ DE20014: "Failed to load application configuration.",
46
+ /**Failed to upload build stats. */
47
+ DE20015: "Failed to upload build stats.",
48
+ /** Did not receive envs from build stats upload */
49
+ DE20016: "Did not receive envs from build stats upload.",
50
+ /** Failed to upload assets. */
51
+ DE20017: "Failed to upload assets.",
52
+ /** Failed to upload snapshots. */
53
+ DE20018: "Failed to upload snapshots.",
54
+ /** Snapshot uploads gave no results. */
55
+ DE20019: "Snapshot uploads gave no results.",
56
+ /**Failed to get application hash list */
57
+ DE20020: "Failed to get application hash list.",
58
+ /** Could not resolve ${name} with verson ${version} */
59
+ DE20021: "Could not resolve application name with version.",
60
+ /** Could not get build id */
61
+ DE20022: "Could not get build id."
62
+ };
63
+ exports.runtimeErrorMessages = {};
64
+ exports.errorMessages = {
65
+ buildErrorMessages: exports.buildErrorMessages,
66
+ deployErrorMessages: exports.deployErrorMessages,
67
+ runtimeErrorMessages: exports.runtimeErrorMessages
68
+ };
69
+ //# sourceMappingURL=error-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-types.js","sourceRoot":"","sources":["../../../src/lib/utils/error-types.ts"],"names":[],"mappings":";;;AACA,kJAAkJ;AACrI,QAAA,UAAU,GAAG,0CAA0C,CAAA;AAyBpE;4EAC4E;AAC/D,QAAA,kBAAkB,GAA0B;IACvD,mCAAmC;IACnC,OAAO,EAAE,wBAAwB;IACjC,gDAAgD;IAChD,OAAO,EAAE,6CAA6C;IACtD,0BAA0B;IAC1B,OAAO,EAAE,uBAAuB,EAAE,0EAA0E;IAC5G,uDAAuD;IACvD,OAAO,EAAE,kDAAkD;IAC3D,mDAAmD;IACnD,OAAO,EAAE,+CAA+C;IACxD,+CAA+C;IAC/C,OAAO,EAAE,0CAA0C;IACnD,6BAA6B;IAC7B,OAAO,EAAE,yBAAyB;IAClC,+BAA+B;IAC/B,OAAO,EAAE,4BAA4B;IACrC,iBAAiB;IACjB,OAAO,EAAE,aAAa;IACtB,8BAA8B;IAC9B,OAAO,EAAE,yBAAyB;IAClC,wCAAwC;IACxC,OAAO,EAAE,oCAAoC;IAC7C,0CAA0C;IAC1C,OAAO,EAAE,sCAAsC;CAGhD,CAAA;AAOD,+JAA+J;AAClJ,QAAA,mBAAmB,GAA2B;IACzD,wBAAwB;IACxB,OAAO,EAAE,mBAAmB;IAC5B,oCAAoC;IACpC,OAAO,EAAE,+BAA+B;IACxC,qCAAqC;IACrC,OAAO,EAAE,gCAAgC;IACzC,wBAAwB;IACxB,OAAO,EAAE,oBAAoB;IAC7B,gDAAgD;IAChD,OAAO,EAAE,2CAA2C;IACpD,mCAAmC;IACnC,OAAO,EAAE,+BAA+B;IACxC,mDAAmD;IACnD,OAAO,EAAE,+CAA+C;IACxD,+BAA+B;IAC/B,OAAO,EAAE,0BAA0B;IACnC,kCAAkC;IAClC,OAAO,EAAE,6BAA6B;IACtC,wCAAwC;IACxC,OAAO,EAAE,mCAAmC;IAC5C,yCAAyC;IACzC,OAAO,EAAE,sCAAsC;IAC/C,uDAAuD;IACvD,OAAO,EAAE,kDAAkD;IAC3D,6BAA6B;IAC7B,OAAO,EAAE,yBAAyB;CACnC,CAAA;AAQY,QAAA,oBAAoB,GAA4B,EAE5D,CAAA;AAQY,QAAA,aAAa,GAAoB;IAC5C,kBAAkB,EAAlB,0BAAkB;IAClB,mBAAmB,EAAnB,2BAAmB;IACnB,oBAAoB,EAApB,4BAAoB;CACrB,CAAA"}
@@ -0,0 +1,42 @@
1
+ export declare const reset: (s: string) => string;
2
+ export declare const bold: (input: string) => string;
3
+ export declare const dim: (input: string) => string;
4
+ export declare const italic: (input: string) => string;
5
+ export declare const underline: (input: string) => string;
6
+ export declare const inverse: (input: string) => string;
7
+ export declare const hidden: (input: string) => string;
8
+ export declare const strikethrough: (input: string) => string;
9
+ export declare const black: (input: string) => string;
10
+ export declare const red: (input: string) => string;
11
+ export declare const green: (input: string) => string;
12
+ export declare const yellow: (input: string) => string;
13
+ export declare const blue: (input: string) => string;
14
+ export declare const magenta: (input: string) => string;
15
+ export declare const purple: (input: string) => string;
16
+ export declare const cyan: (input: string) => string;
17
+ export declare const white: (input: string) => string;
18
+ export declare const gray: (input: string) => string;
19
+ export declare const bgBlack: (input: string) => string;
20
+ export declare const bgRed: (input: string) => string;
21
+ export declare const bgGreen: (input: string) => string;
22
+ export declare const bgYellow: (input: string) => string;
23
+ export declare const bgBlue: (input: string) => string;
24
+ export declare const bgMagenta: (input: string) => string;
25
+ export declare const bgCyan: (input: string) => string;
26
+ export declare const bgWhite: (input: string) => string;
27
+ export declare const blackBright: (input: string) => string;
28
+ export declare const redBright: (input: string) => string;
29
+ export declare const greenBright: (input: string) => string;
30
+ export declare const yellowBright: (input: string) => string;
31
+ export declare const blueBright: (input: string) => string;
32
+ export declare const magentaBright: (input: string) => string;
33
+ export declare const cyanBright: (input: string) => string;
34
+ export declare const whiteBright: (input: string) => string;
35
+ export declare const bgBlackBright: (input: string) => string;
36
+ export declare const bgRedBright: (input: string) => string;
37
+ export declare const bgGreenBright: (input: string) => string;
38
+ export declare const bgYellowBright: (input: string) => string;
39
+ export declare const bgBlueBright: (input: string) => string;
40
+ export declare const bgMagentaBright: (input: string) => string;
41
+ export declare const bgCyanBright: (input: string) => string;
42
+ export declare const bgWhiteBright: (input: string) => string;
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ // ISC License
3
+ var _a;
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.bgWhiteBright = exports.bgCyanBright = exports.bgMagentaBright = exports.bgBlueBright = exports.bgYellowBright = exports.bgGreenBright = exports.bgRedBright = exports.bgBlackBright = exports.whiteBright = exports.cyanBright = exports.magentaBright = exports.blueBright = exports.yellowBright = exports.greenBright = exports.redBright = exports.blackBright = exports.bgWhite = exports.bgCyan = exports.bgMagenta = exports.bgBlue = exports.bgYellow = exports.bgGreen = exports.bgRed = exports.bgBlack = exports.gray = exports.white = exports.cyan = exports.purple = exports.magenta = exports.blue = exports.yellow = exports.green = exports.red = exports.black = exports.strikethrough = exports.hidden = exports.inverse = exports.underline = exports.italic = exports.dim = exports.bold = exports.reset = void 0;
6
+ // Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov
7
+ // Permission to use, copy, modify, and/or distribute this software for any
8
+ // purpose with or without fee is hereby granted, provided that the above
9
+ // copyright notice and this permission notice appear in all copies.
10
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
+ // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
+ // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
+ // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+ //
18
+ // https://github.com/alexeyraspopov/picocolors/blob/b6261487e7b81aaab2440e397a356732cad9e342/picocolors.js#L1
19
+ const { env, stdout } = (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.process) !== null && _a !== void 0 ? _a : {};
20
+ // const enabled =
21
+ // env &&
22
+ // !env.NO_COLOR &&
23
+ // (env.FORCE_COLOR || (stdout?.isTTY && !env.CI && env.TERM !== 'dumb'))
24
+ const enabled = env;
25
+ const replaceClose = (str, close, replace, index) => {
26
+ const start = str.substring(0, index) + replace;
27
+ const end = str.substring(index + close.length);
28
+ const nextIndex = end.indexOf(close);
29
+ return ~nextIndex
30
+ ? start + replaceClose(end, close, replace, nextIndex)
31
+ : start + end;
32
+ };
33
+ const formatter = (open, close, replace = open) => {
34
+ if (!enabled)
35
+ return String;
36
+ return (input) => {
37
+ const string = '' + input;
38
+ const index = string.indexOf(close, open.length);
39
+ return ~index
40
+ ? open + replaceClose(string, close, replace, index) + close
41
+ : open + string + close;
42
+ };
43
+ };
44
+ // text styles
45
+ exports.reset = enabled ? (s) => `\x1b[0m${s}\x1b[0m` : String;
46
+ exports.bold = formatter('\x1b[1m', '\x1b[22m', '\x1b[22m\x1b[1m');
47
+ exports.dim = formatter('\x1b[2m', '\x1b[22m', '\x1b[22m\x1b[2m');
48
+ exports.italic = formatter('\x1b[3m', '\x1b[23m');
49
+ exports.underline = formatter('\x1b[4m', '\x1b[24m');
50
+ exports.inverse = formatter('\x1b[7m', '\x1b[27m');
51
+ exports.hidden = formatter('\x1b[8m', '\x1b[28m');
52
+ exports.strikethrough = formatter('\x1b[9m', '\x1b[29m');
53
+ // text colors
54
+ exports.black = formatter('\x1b[30m', '\x1b[39m');
55
+ exports.red = formatter('\x1b[31m', '\x1b[39m');
56
+ exports.green = formatter('\x1b[32m', '\x1b[39m');
57
+ exports.yellow = formatter('\x1b[33m', '\x1b[39m');
58
+ exports.blue = formatter('\x1b[34m', '\x1b[39m');
59
+ exports.magenta = formatter('\x1b[35m', '\x1b[39m');
60
+ exports.purple = formatter('\x1b[38;2;173;127;168m', '\x1b[39m');
61
+ exports.cyan = formatter('\x1b[36m', '\x1b[39m');
62
+ exports.white = formatter('\x1b[37m', '\x1b[39m');
63
+ exports.gray = formatter('\x1b[90m', '\x1b[39m');
64
+ // background colors
65
+ exports.bgBlack = formatter('\x1b[40m', '\x1b[49m');
66
+ exports.bgRed = formatter('\x1b[41m', '\x1b[49m');
67
+ exports.bgGreen = formatter('\x1b[42m', '\x1b[49m');
68
+ exports.bgYellow = formatter('\x1b[43m', '\x1b[49m');
69
+ exports.bgBlue = formatter('\x1b[44m', '\x1b[49m');
70
+ exports.bgMagenta = formatter('\x1b[45m', '\x1b[49m');
71
+ exports.bgCyan = formatter('\x1b[46m', '\x1b[49m');
72
+ exports.bgWhite = formatter('\x1b[47m', '\x1b[49m');
73
+ // special text colors
74
+ exports.blackBright = formatter("\x1b[90m", "\x1b[39m");
75
+ exports.redBright = formatter("\x1b[91m", "\x1b[39m");
76
+ exports.greenBright = formatter("\x1b[92m", "\x1b[39m");
77
+ exports.yellowBright = formatter("\x1b[93m", "\x1b[39m");
78
+ exports.blueBright = formatter("\x1b[94m", "\x1b[39m");
79
+ exports.magentaBright = formatter("\x1b[95m", "\x1b[39m");
80
+ exports.cyanBright = formatter("\x1b[96m", "\x1b[39m");
81
+ exports.whiteBright = formatter("\x1b[97m", "\x1b[39m");
82
+ // special background colors
83
+ exports.bgBlackBright = formatter("\x1b[100m", "\x1b[49m");
84
+ exports.bgRedBright = formatter("\x1b[101m", "\x1b[49m");
85
+ exports.bgGreenBright = formatter("\x1b[102m", "\x1b[49m");
86
+ exports.bgYellowBright = formatter("\x1b[103m", "\x1b[49m");
87
+ exports.bgBlueBright = formatter("\x1b[104m", "\x1b[49m");
88
+ exports.bgMagentaBright = formatter("\x1b[105m", "\x1b[49m");
89
+ exports.bgCyanBright = formatter("\x1b[106m", "\x1b[49m");
90
+ exports.bgWhiteBright = formatter("\x1b[107m", "\x1b[49m");
91
+ //# sourceMappingURL=picocolor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"picocolor.js","sourceRoot":"","sources":["../../../src/lib/utils/picocolor.ts"],"names":[],"mappings":";AAAA,cAAc;;;;AAEd,wEAAwE;AAExE,2EAA2E;AAC3E,yEAAyE;AACzE,oEAAoE;AAEpE,2EAA2E;AAC3E,mEAAmE;AACnE,0EAA0E;AAC1E,yEAAyE;AACzE,wEAAwE;AACxE,0EAA0E;AAC1E,iEAAiE;AACjE,EAAE;AACF,8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S,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA;AAClD,QAAA,WAAW,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA;AAChD,QAAA,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA;AAClD,QAAA,cAAc,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA;AACnD,QAAA,YAAY,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA;AACjD,QAAA,eAAe,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA;AACpD,QAAA,YAAY,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA;AACjD,QAAA,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safe-json-parse.js","sourceRoot":"","sources":["../../../src/lib/utils/safe-json-parse.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAC7B,GAAW;IAEX,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAAC,WAAM,CAAC;QACP,OAAO;IACT,CAAC;AACH,CAAC;AARD,0CAQC"}
@@ -7,10 +7,14 @@ const https = tslib_1.__importStar(require("node:https"));
7
7
  const debug_1 = require("./debug");
8
8
  const token_1 = require("../node-persist/token");
9
9
  const safe_json_parse_1 = require("./safe-json-parse");
10
+ const debug_2 = require("./debug");
11
+ const picocolor_1 = require("./picocolor");
10
12
  function _redact(str) {
13
+ if (!str)
14
+ return '';
11
15
  return str
12
- .replace(/Bearer ([^"]+)/gi, 'Bearer [REDACTED]')
13
- .replace(/jwt":"([^"]+)/gi, 'jwt":"[REDACTED]');
16
+ .replace(/Bearer ([^"|']+)/gi, 'Bearer [REDACTED]')
17
+ .replace(/"?jwt"?:["|\W']{0,2}([^"|']+)(["|'])/gi, 'jwt: [REDACTED]');
14
18
  }
15
19
  function request(url, options, data) {
16
20
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
@@ -21,7 +25,7 @@ function request(url, options, data) {
21
25
  const req = _https.request(url, options !== null && options !== void 0 ? options : {}, (res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
22
26
  if (res.statusCode === 401 || res.statusCode === 403) {
23
27
  yield (0, token_1.cleanTokens)();
24
- const err = new Error('[zephyr]: auth error, please try to build again');
28
+ const err = new Error(`${debug_2.brightRedBgName} ${(0, picocolor_1.red)(`Error [BU10018]: auth error, please sign in to https://app.zephyr-cloud.io then try to build again. See documentation https://docs.zephyr-cloud.io/guide/error/bu10018`)}`);
25
29
  err.stack = void 0;
26
30
  throw err;
27
31
  }
@@ -35,7 +39,6 @@ function request(url, options, data) {
35
39
  ? ` - ${(((_b = data.length) !== null && _b !== void 0 ? _b : 0) / 1024).toFixed(2)}kb`
36
40
  : '') +
37
41
  (_response ? `\n response: ${_response}` : '') +
38
- ((data === null || data === void 0 ? void 0 : data.length) ? `\n payload: ${data}` : '') +
39
42
  (_options_str ? `\n options: ${_options_str}` : ''));
40
43
  if (_response === 'Not Implemented')
41
44
  return reject(message);
@@ -43,14 +46,15 @@ function request(url, options, data) {
43
46
  if ((typeof res.statusCode === 'number' && res.statusCode > 299) ||
44
47
  (typeof (parsed_response === null || parsed_response === void 0 ? void 0 : parsed_response.status) === 'number' &&
45
48
  (parsed_response === null || parsed_response === void 0 ? void 0 : parsed_response.status) > 299)) {
46
- return reject(`[zephyr]: Error from ${url}: \n ${(_c = parsed_response === null || parsed_response === void 0 ? void 0 : parsed_response.message) !== null && _c !== void 0 ? _c : _response}`);
49
+ return reject(`${debug_2.brightRedBgName} Error from ${url}: \n ${(_c = parsed_response === null || parsed_response === void 0 ? void 0 : parsed_response.message) !== null && _c !== void 0 ? _c : _response}`);
47
50
  }
48
- (0, debug_1.ze_log)(message);
51
+ if (url.pathname.indexOf('application/logs') === -1)
52
+ (0, debug_1.ze_log)(message);
49
53
  resolve((_d = parsed_response) !== null && _d !== void 0 ? _d : _response);
50
54
  });
51
55
  }));
52
56
  req.on('error', (e) => {
53
- (0, debug_1.ze_error)(`[${(options === null || options === void 0 ? void 0 : options.method) || 'GET'}][${url}]: ${Date.now() - req_start}ms \n ${_options_str}`, e);
57
+ (0, debug_1.ze_error)("", `[${(options === null || options === void 0 ? void 0 : options.method) || 'GET'}][${url}]: ${Date.now() - req_start}ms \n ${_options_str} \n Error: ${e}`);
54
58
  reject(e);
55
59
  });
56
60
  if (data) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ze-http-request.js","sourceRoot":"","sources":["../../../src/lib/utils/ze-http-request.ts"],"names":[],"mappings":";;;;AACA,wDAAkC;AAClC,0DAAoC;AACpC,mCAA2C;AAC3C,iDAAoD;AACpD,uDAAoD;AACpD,mCAA0C;AAC1C,2CAAkC;AAElC,SAAS,OAAO,CAAC,GAAuB;IACtC,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,OAAO,GAAG;SACP,OAAO,CAAC,oBAAoB,EAAE,mBAAmB,CAAC;SAClD,OAAO,CAAC,wCAAwC,EAAE,iBAAiB,CAAC,CAAC;AAC1E,CAAC;AAED,SAAsB,OAAO,CAC3B,GAAQ,EACR,OAA2B,EAC3B,IAA+C;;QAE/C,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;QACxD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAC7B,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;YAEtD,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CACxB,GAAG,EACH,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,CAAO,GAAyB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ED,GAAG,CAAC,GAAG,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAxED,0BAwEC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-list.js","sourceRoot":"","sources":["../../../src/lib/ze-api/app-list.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-version.js","sourceRoot":"","sources":["../../../src/lib/ze-api/app-version.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"converted-graph.js","sourceRoot":"","sources":["../../../src/lib/ze-api/converted-graph.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-package-json.js","sourceRoot":"","sources":["../../../src/lib/ze-api/local-package-json.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -76,7 +76,7 @@ export interface UploadableAsset {
76
76
  buffer: Buffer | string;
77
77
  }
78
78
  export interface ZeUploadAssetsOptions {
79
- missingAssets: SnapshotUploadRes | undefined;
79
+ missingAssets: ZeBuildAsset[];
80
80
  count: number;
81
81
  assetsMap: {
82
82
  [key: string]: ZeBuildAsset;
@@ -93,8 +93,10 @@ export interface ZeBuildAssetsMap {
93
93
  [key: string]: ZeBuildAsset;
94
94
  }
95
95
  export interface SnapshotUploadRes {
96
- id: string;
97
96
  assets: ZeBuildAsset[];
98
- message: string;
97
+ assets_v2?: ZeBuildAsset[];
98
+ asset_time?: number;
99
+ asset_v2_time?: number;
100
+ message?: string;
99
101
  }
100
102
  export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zephyr-edge-contract.js","sourceRoot":"","sources":["../../src/lib/zephyr-edge-contract.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "zephyr-edge-contract",
3
+ "version": "0.0.14",
4
+ "license": "Apache-2.0",
5
+ "type": "commonjs",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "scripts": {
9
+ "build": "nx build zephyr-edge-contract"
10
+ },
11
+ "dependencies": {
12
+ "tslib": "^2.3.0",
13
+ "debug": "^4.3.4",
14
+ "node-persist": "^4.0.1"
15
+ },
16
+ "devDependencies": {
17
+ "@types/node": "^20.11.19",
18
+ "@types/node-persist": "^3.1.8",
19
+ "@types/debug": "^4.1.12"
20
+ }
21
+ }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "zephyr-edge-contract",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "license": "Apache-2.0",
5
- "scripts": {
6
- "build": "nx build zephyr-edge-contract"
7
- },
5
+ "type": "commonjs",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
8
  "dependencies": {
9
9
  "tslib": "^2.3.0",
10
10
  "debug": "^4.3.4",
@@ -15,6 +15,7 @@
15
15
  "@types/node-persist": "^3.1.8",
16
16
  "@types/debug": "^4.1.12"
17
17
  },
18
- "main": "./src/index.js",
19
- "type": "commonjs"
20
- }
18
+ "scripts": {
19
+ "build": "nx build zephyr-edge-contract"
20
+ }
21
+ }
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/zephyr-edge-contract/src/index.ts"],"names":[],"mappings":";;;;AAAA,yEAAqE;AAA5D,yHAAA,iBAAiB,OAAA;AAC1B,qEAAkE;AAAzD,sHAAA,gBAAgB,OAAA;AAOzB,qEAA2C;AAE3C,0FAKsD;AAHpD,yHAAA,YAAY,OAAA;AACZ,4HAAA,eAAe,OAAA;AACf,0HAAA,aAAa,OAAA;AAGf,4EAI+C;AAH7C,wHAAA,kBAAkB,OAAA;AAClB,2HAAA,qBAAqB,OAAA;AACrB,yHAAA,mBAAmB,OAAA;AAGrB,kDAKkC;AAJhC,kGAAA,SAAS,OAAA;AACT,iGAAA,QAAQ,OAAA;AACR,oGAAA,WAAW,OAAA;AACX,oGAAA,WAAW,OAAA;AAMb,oFAGyD;AAFvD,uHAAA,mBAAmB,OAAA;AACnB,gHAAA,YAAY,OAAA;AAGd,2CAAuE;AAA9D,+FAAA,MAAM,OAAA;AAAE,iGAAA,QAAQ,OAAA;AAAE,yGAAA,gBAAgB,OAAA;AAC3C,+DAA8D;AAArD,kHAAA,eAAe,OAAA;AACxB,+DAAsD;AAA7C,0GAAA,OAAO,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-api-contract.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/api-contract-negotiation/get-api-contract.ts"],"names":[],"mappings":";;;AAAO,MAAM,mBAAmB,GAAG,GAAG,EAAE,WACtC,OAAA,MAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,mCAAI,6BAA6B,CAAA,EAAA,CAAC;AAD5C,QAAA,mBAAmB,uBACyB;AAE5C,QAAA,YAAY,GAAG;IAC1B,gBAAgB,EAAE,sBAAsB;IACxC,cAAc,EAAE,uDAAuD;IACvE,uBAAuB,EAAE,gCAAgC;IACzD,cAAc,EAAE,oBAAoB;IACpC,yBAAyB,EAAE,6CAA6C;CACzE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ze-envs-request.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/edge-api/ze-envs-request.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"application-configuration.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/node-persist/application-configuration.ts"],"names":[],"mappings":";;;;AAAA,+CAAkE;AAClE,qCAAkC;AAClC,yCAAiC;AACjC,iDAAsD;AAatD,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,CACjC,eAAuB,EACvB,IAAyB;;QAEzB,MAAM,OAAO,CAAC;QACd,KAAK,CAAC,MAAM,IAAA,sBAAO,EAAC,OAAO,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD,CAAC;CAAA;AAND,sCAMC;AAED,SAAsB,YAAY,CAChC,eAAuB;;QAEvB,MAAM,OAAO,CAAC;QACd,OAAO,IAAA,sBAAO,EAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;IAC3C,CAAC;CAAA;AALD,oCAKC;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 +0,0 @@
1
- {"version":3,"file":"partial-assets-map.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/node-persist/partial-assets-map.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,wEAAuC,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3E,CAAC;AAED,SAAsB,mBAAmB,CACvC,eAAuB,EACvB,WAAmB,EACnB,QAA0B;;QAE1B,MAAM,OAAO,CAAC;QACd,MAAM,GAAG,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;QACrC,MAAM,iBAAiB,GAAG,MAAM,IAAA,sBAAO,EAAC,GAAG,CAAC,CAAC;QAC7C,KAAK,CAAC,MAAM,IAAA,sBAAO,EACjB,GAAG,EACH,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,iBAAiB,IAAI,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,CAAC,CACxE,CAAC,CAAC;IACL,CAAC;CAAA;AAZD,kDAYC;AAED,SAAsB,kBAAkB,CACtC,eAAuB;;QAEvB,MAAM,OAAO,CAAC;QACd,OAAO,IAAA,sBAAO,EAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;IAC3C,CAAC;CAAA;AALD,gDAKC;AAED,SAAsB,qBAAqB,CACzC,eAAuB;;QAEvB,MAAM,OAAO,CAAC;QACd,MAAM,IAAA,yBAAU,EAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7C,CAAC;CAAA;AALD,sDAKC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage-keys.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/node-persist/storage-keys.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/node-persist/token.ts"],"names":[],"mappings":";;;;AAAA,+CAAyE;AACzE,qCAAkC;AAClC,yCAAiC;AACjC,iDAAsD;AAEtD,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,KAAK,CAAC,MAAM,IAAA,sBAAO,wCAAsB,KAAK,CAAC,CAAC,CAAC;IACnD,CAAC;CAAA;AAHD,8BAGC;AAED,SAAsB,QAAQ;;QAC5B,MAAM,OAAO,CAAC;QACd,OAAO,IAAA,sBAAO,uCAAqB,CAAC;IACtC,CAAC;CAAA;AAHD,4BAGC;AAED,SAAsB,WAAW;;QAC/B,MAAM,OAAO,CAAC;QACd,MAAM,IAAA,yBAAU,uCAAqB,CAAC;IACxC,CAAC;CAAA;AAHD,kCAGC;AAED,SAAsB,WAAW;;QAC/B,MAAM,OAAO,CAAC;QACd,MAAM,IAAA,oBAAK,GAAE,CAAC;IAChB,CAAC;CAAA;AAHD,kCAGC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ze-webpack-plugin-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ze-webpack-plugin-options.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/plugin-options/ze-webpack-plugin-options.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export interface ZephyrPluginOptions {
2
- name?: string;
3
- filename?: string;
4
- shared?: string[];
5
- exposes?: string[];
6
- remotes?: string[];
7
- wait_for_index_html?: boolean;
8
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"zephyr-plugin-options.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/plugin-options/zephyr-plugin-options.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../../libs/zephyr-edge-contract/src/lib/snapshot.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-full-app-name.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/utils/create-full-app-name.ts"],"names":[],"mappings":";;;AAAA,SAAS,QAAQ,CAAC,GAAW;IAC3B,OAAO,GAAG,CAAC,OAAO,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;IAC5C,mCAAmC;AACrC,CAAC;AAED,SAAgB,iBAAiB,CAAC,OAIjC;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;AACjD,CAAC;AATD,8CASC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-snapshot-id.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/utils/create-snapshot-id.ts"],"names":[],"mappings":";;;AAAA,iEAA2D;AAE3D,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;IAC7E,OAAO,CAAC,QAAQ,EAAE,IAAA,wCAAiB,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC9D,CAAC;AAND,4CAMC"}
@@ -1,6 +0,0 @@
1
- export declare const is_debug_enabled: boolean;
2
- export declare const ze_log: import("debug").Debugger;
3
- export declare const ze_error: {
4
- (...data: any[]): void;
5
- (message?: any, ...optionalParams: any[]): void;
6
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var _a, _b;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ze_error = exports.ze_log = exports.is_debug_enabled = void 0;
5
- const tslib_1 = require("tslib");
6
- const debug_1 = require("debug");
7
- const process = tslib_1.__importStar(require("node:process"));
8
- const name = 'zephyr';
9
- exports.is_debug_enabled = (_b = ((_a = process.env['DEBUG']) !== null && _a !== void 0 ? _a : '')
10
- .indexOf('zephyr:*') !== -1) !== null && _b !== void 0 ? _b : false;
11
- exports.ze_log = (0, debug_1.debug)(`${name}:log`);
12
- exports.ze_error = exports.is_debug_enabled
13
- ? (0, debug_1.debug)(`${name}:error`)
14
- : console.error.bind(console);
15
- //# sourceMappingURL=debug.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/utils/debug.ts"],"names":[],"mappings":";;;;;AAAA,iCAA8B;AAC9B,8DAAwC;AAExC,MAAM,IAAI,GAAG,QAAQ,CAAC;AAET,QAAA,gBAAgB,GAAG,MAAA,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,mCAAI,EAAE,CAAC;KACzD,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,mCAAI,KAAK,CAAC;AAE1B,QAAA,MAAM,GAAG,IAAA,aAAK,EAAC,GAAG,IAAI,MAAM,CAAC,CAAC;AAC9B,QAAA,QAAQ,GAAG,wBAAgB;IACtC,CAAC,CAAC,IAAA,aAAK,EAAC,GAAG,IAAI,QAAQ,CAAC;IACxB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"safe-json-parse.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/utils/safe-json-parse.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAC7B,GAAW;IAEX,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAAC,WAAM,CAAC;QACP,OAAO;IACT,CAAC;AACH,CAAC;AARD,0CAQC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ze-http-request.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/utils/ze-http-request.ts"],"names":[],"mappings":";;;;AACA,wDAAkC;AAClC,0DAAoC;AACpC,mCAA2C;AAC3C,iDAAoD;AACpD,uDAAoD;AAEpD,SAAS,OAAO,CAAC,GAAW;IAC1B,OAAO,GAAG;SACP,OAAO,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;SAChD,OAAO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CAAC;oBAChB,OAAO,CAAC,MAAC,eAAqB,mCAAK,SAAoB,CAAC,CAAC;gBAC3D,CAAC,CAAC,CAAC;YACL,CAAC,CAAA,CACF,CAAC;YAEF,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAU,EAAE,EAAE;gBAC7B,IAAA,gBAAQ,EACN,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,KAAI,KAAK,KAAK,GAAG,MAAM,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,SAAS,YAAY,EAAE,EACvF,CAAC,CACF,CAAC;gBACF,MAAM,CAAC,CAAC,CAAC,CAAC;YACZ,CAAC,CAAC,CAAC;YAEH,IAAI,IAAI,EAAE,CAAC;gBACT,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC;YAED,GAAG,CAAC,GAAG,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAzED,0BAyEC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-list.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/ze-api/app-list.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-version.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/ze-api/app-version.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"converted-graph.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/ze-api/converted-graph.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-package-json.js","sourceRoot":"","sources":["../../../../../../libs/zephyr-edge-contract/src/lib/ze-api/local-package-json.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"zephyr-edge-contract.js","sourceRoot":"","sources":["../../../../../libs/zephyr-edge-contract/src/lib/zephyr-edge-contract.ts"],"names":[],"mappings":""}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes