@micro-lc/preview 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/dist/handlebars.d.ts +2 -0
- package/dist/handlebars.js +130 -0
- package/dist/index.d.ts +94 -0
- package/dist/index.js +115 -0
- package/package.json +39 -0
- package/website/assets/errors-af3a2945.js +1 -0
- package/website/assets/index-6ec597d3.js +15 -0
- package/website/development/assets/errors-5a0ccde7.js +23 -0
- package/website/development/assets/index-b0710783.js +6224 -0
- package/website/development/index.html +22 -0
- package/website/development/manifest.json +15 -0
- package/website/index.html +22 -0
- package/website/manifest.json +15 -0
@@ -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) => `${COMPOSER}: Dynamic import error while importing ${name} - ${err}`,
|
13
|
+
20: (file) => `${COMPOSER}: Provided JSON is invalid / Wrong 'Content-Type' was provided - ${file}`,
|
14
|
+
40: (content, err) => `${COMPOSER}: Something went wrong while hashing content ${content} - ${err}`,
|
15
|
+
41: (content, index) => `${COMPOSER}: Lexer could not parse content ${content} due to unexpected char "}" at position ${index}`,
|
16
|
+
42: (input) => `${COMPOSER}: Invalid interpolation sequence of keys on input ${input}`,
|
17
|
+
43: (err) => `${COMPOSER}: Invalid interpolation sequence while parsing a JSON input - ${err}`
|
18
|
+
};
|
19
|
+
var errors_default = errorMap;
|
20
|
+
export {
|
21
|
+
ErrorCodes,
|
22
|
+
errors_default as default
|
23
|
+
};
|