@micro-lc/preview 0.5.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,18 @@
1
+ {
2
+ "../../node_modules/@micro-lc/composer/dist/lib/logger/errors.js": {
3
+ "file": "assets/errors-PsWGnPGW.js",
4
+ "isDynamicEntry": true,
5
+ "src": "../../node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
6
+ },
7
+ "index.html": {
8
+ "css": [
9
+ "assets/index-NQ4PJ7wv.css"
10
+ ],
11
+ "dynamicImports": [
12
+ "../../node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
13
+ ],
14
+ "file": "assets/index--zmXJhVL.js",
15
+ "isEntry": true,
16
+ "src": "index.html"
17
+ }
18
+ }
@@ -0,0 +1,23 @@
1
+ var ErrorCodes = /* @__PURE__ */ ((ErrorCodes2) => {
2
+ ErrorCodes2["DynamicImportError"] = "0";
3
+ ErrorCodes2["InvalidJSONError"] = "20";
4
+ ErrorCodes2["DigestError"] = "40";
5
+ ErrorCodes2["LexerAnalysisEndedInNormalMode"] = "41";
6
+ ErrorCodes2["InterpolationContextError"] = "42";
7
+ ErrorCodes2["InterpolationJSONError"] = "43";
8
+ return ErrorCodes2;
9
+ })(ErrorCodes || {});
10
+ const COMPOSER = "[micro-lc][composer]";
11
+ const errorMap = {
12
+ 0: (name, err) => "".concat(COMPOSER, ": Dynamic import error while importing ").concat(name, " - ").concat(err),
13
+ 20: (file) => "".concat(COMPOSER, ": Provided JSON is invalid / Wrong 'Content-Type' was provided - ").concat(file),
14
+ 40: (content, err) => "".concat(COMPOSER, ": Something went wrong while hashing content ").concat(content, " - ").concat(err),
15
+ 41: (content, index) => "".concat(COMPOSER, ": Lexer could not parse content ").concat(content, ' due to unexpected char "}" at position ').concat(index),
16
+ 42: (input) => "".concat(COMPOSER, ": Invalid interpolation sequence of keys on input ").concat(input),
17
+ 43: (err) => "".concat(COMPOSER, ": Invalid interpolation sequence while parsing a JSON input - ").concat(err)
18
+ };
19
+ var errors_default = errorMap;
20
+ export {
21
+ ErrorCodes,
22
+ errors_default as default
23
+ };