@domql/report 2.5.186 → 3.0.0
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/cjs/index.js +4 -5
- package/dist/esm/index.js +1 -2
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var index_exports = {};
|
|
20
|
+
__export(index_exports, {
|
|
21
21
|
ERRORS_REGISTRY: () => ERRORS_REGISTRY,
|
|
22
22
|
report: () => report
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(index_exports);
|
|
25
25
|
const ERRORS_REGISTRY = {
|
|
26
26
|
en: {
|
|
27
27
|
DocumentNotDefined: {
|
|
@@ -77,8 +77,7 @@ const ERRORS_REGISTRY = {
|
|
|
77
77
|
const report = (err, arg, element) => {
|
|
78
78
|
const currentLang = "en";
|
|
79
79
|
let errObj;
|
|
80
|
-
if (err && typeof err === "string")
|
|
81
|
-
errObj = ERRORS_REGISTRY[currentLang][err];
|
|
80
|
+
if (err && typeof err === "string") errObj = ERRORS_REGISTRY[currentLang][err];
|
|
82
81
|
return new Error(
|
|
83
82
|
`"${err}", "${arg}"
|
|
84
83
|
|
package/dist/esm/index.js
CHANGED
|
@@ -53,8 +53,7 @@ const ERRORS_REGISTRY = {
|
|
|
53
53
|
const report = (err, arg, element) => {
|
|
54
54
|
const currentLang = "en";
|
|
55
55
|
let errObj;
|
|
56
|
-
if (err && typeof err === "string")
|
|
57
|
-
errObj = ERRORS_REGISTRY[currentLang][err];
|
|
56
|
+
if (err && typeof err === "string") errObj = ERRORS_REGISTRY[currentLang][err];
|
|
58
57
|
return new Error(
|
|
59
58
|
`"${err}", "${arg}"
|
|
60
59
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/report",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"build": "rimraf -I dist; npm run build:cjs; npm run build:esm",
|
|
26
26
|
"prepublish": "rimraf -I dist && npm run build && npm run copy:package:cjs"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "bcbdc271a602b958de6a60ab387ea7715a935dc1"
|
|
29
29
|
}
|