@domql/report 3.1.1 → 3.2.3
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/index.js +18 -10
- package/package.json +7 -7
package/index.js
CHANGED
|
@@ -8,39 +8,47 @@ export const ERRORS_REGISTRY = {
|
|
|
8
8
|
},
|
|
9
9
|
OverwriteToBuiltin: {
|
|
10
10
|
title: 'Overwriting to builtin method',
|
|
11
|
-
description:
|
|
11
|
+
description:
|
|
12
|
+
'Overwriting a builtin method in the window define is not possible, please choose different name'
|
|
12
13
|
},
|
|
13
14
|
BrowserNotDefined: {
|
|
14
|
-
title:
|
|
15
|
-
description:
|
|
15
|
+
title: "Can't recognize environment",
|
|
16
|
+
description:
|
|
17
|
+
'Environment should be browser application, that can run Javascript'
|
|
16
18
|
},
|
|
17
19
|
SetQuickPreferancesIsNotObject: {
|
|
18
20
|
title: 'Quick preferances object is required',
|
|
19
|
-
description:
|
|
21
|
+
description:
|
|
22
|
+
'Please pass a plain object with "lang", "culture" and "area" properties'
|
|
20
23
|
},
|
|
21
24
|
InvalidParams: {
|
|
22
25
|
title: 'Params are invalid',
|
|
23
|
-
description:
|
|
26
|
+
description:
|
|
27
|
+
'Please pass a plain object with "lang", "culture" and "area" properties'
|
|
24
28
|
},
|
|
25
29
|
CantCreateWithoutNode: {
|
|
26
30
|
title: 'You must provide node',
|
|
27
|
-
description:
|
|
31
|
+
description: "Can't create DOM element without setting node or text"
|
|
28
32
|
},
|
|
29
33
|
HTMLInvalidTag: {
|
|
30
34
|
title: 'Element tag name (or DOM nodeName) is invalid',
|
|
31
|
-
description:
|
|
35
|
+
description:
|
|
36
|
+
'To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/'
|
|
32
37
|
},
|
|
33
38
|
HTMLInvalidAttr: {
|
|
34
39
|
title: 'Attibutes object is invalid',
|
|
35
|
-
description:
|
|
40
|
+
description:
|
|
41
|
+
'Please pass a valid plain object to apply as an attributes for a DOM node'
|
|
36
42
|
},
|
|
37
43
|
HTMLInvalidData: {
|
|
38
44
|
title: 'Data object is invalid',
|
|
39
|
-
description:
|
|
45
|
+
description:
|
|
46
|
+
'Please pass a valid plain object to apply as an dataset for a DOM node'
|
|
40
47
|
},
|
|
41
48
|
HTMLInvalidStyles: {
|
|
42
49
|
title: 'Styles object is invalid',
|
|
43
|
-
description:
|
|
50
|
+
description:
|
|
51
|
+
'Please pass a valid plain object to apply as an style for a DOM node'
|
|
44
52
|
},
|
|
45
53
|
HTMLInvalidText: {
|
|
46
54
|
title: 'Text string is invalid',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/report",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"source": "index.js",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"default": "./dist/esm/index.js",
|
|
12
11
|
"import": "./dist/esm/index.js",
|
|
13
|
-
"require": "./dist/cjs/index.js"
|
|
12
|
+
"require": "./dist/cjs/index.js",
|
|
13
|
+
"default": "./dist/esm/index.js"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"copy:package:cjs": "cp ../../build/package-cjs.json dist/cjs/package.json",
|
|
22
|
-
"build:esm": "npx esbuild *.js --target=es2017 --format=esm --outdir=dist/esm",
|
|
23
|
-
"build:cjs": "npx esbuild *.js --target=node16 --format=cjs --outdir=dist/cjs",
|
|
24
|
-
"build:iife": "npx esbuild *.js --target=node16 --format=iife --outdir=dist/iife",
|
|
22
|
+
"build:esm": "npx cross-env NODE_ENV=$NODE_ENV npx esbuild *.js --target=es2017 --format=esm --outdir=dist/esm",
|
|
23
|
+
"build:cjs": "npx cross-env NODE_ENV=$NODE_ENV npx esbuild *.js --target=node16 --format=cjs --outdir=dist/cjs",
|
|
24
|
+
"build:iife": "npx cross-env NODE_ENV=$NODE_ENV npx esbuild *.js --target=node16 --format=iife --outdir=dist/iife",
|
|
25
25
|
"build": "npx rimraf -I dist; npm run build:cjs; npm run build:esm",
|
|
26
26
|
"prepublish": "npx rimraf -I dist && npm run build && npm run copy:package:cjs"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681"
|
|
29
29
|
}
|