@domql/event 2.5.52 → 2.5.82
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/can.js +2 -3
- package/dist/cjs/can.js +3 -4
- package/package.json +3 -3
package/can.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { report } from '@domql/report'
|
|
4
4
|
import { isValidHtmlTag } from '@domql/utils'
|
|
5
5
|
|
|
6
|
-
export const
|
|
7
|
-
|
|
8
|
-
return isValidHtmlTag(tag) || report('HTMLInvalidTag')
|
|
6
|
+
export const canRenderTag = (tag) => {
|
|
7
|
+
return isValidHtmlTag(tag || 'div') || report('HTMLInvalidTag')
|
|
9
8
|
}
|
package/dist/cjs/can.js
CHANGED
|
@@ -18,12 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var can_exports = {};
|
|
20
20
|
__export(can_exports, {
|
|
21
|
-
|
|
21
|
+
canRenderTag: () => canRenderTag
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(can_exports);
|
|
24
24
|
var import_report = require("@domql/report");
|
|
25
25
|
var import_utils = require("@domql/utils");
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
return (0, import_utils.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
|
|
26
|
+
const canRenderTag = (tag) => {
|
|
27
|
+
return (0, import_utils.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
|
|
29
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/event",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.82",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
22
|
"copy:package:cjs": "cp ../../build/package-cjs.json dist/cjs/package.json",
|
|
23
|
-
"build:esm": "npx esbuild *.js --target=
|
|
23
|
+
"build:esm": "npx esbuild *.js --target=es2017 --format=esm --outdir=dist/esm",
|
|
24
24
|
"build:cjs": "npx esbuild *.js --target=node16 --format=cjs --outdir=dist/cjs",
|
|
25
25
|
"build:iife": "npx esbuild *.js --target=node16 --format=iife --outdir=dist/iife",
|
|
26
26
|
"build": "yarn build:cjs",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"@domql/report": "latest",
|
|
33
33
|
"@domql/utils": "latest"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "d459c82294b8af698a706e4310cce67878e0969f"
|
|
36
36
|
}
|