@shgysk8zer0/polyfills 0.1.2 → 0.2.1
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/CHANGELOG.md +12 -0
- package/all.min.js +1 -1
- package/all.min.js.map +1 -1
- package/assets/sanitizerUtils.js +1 -1
- package/package.json +18 -8
package/assets/sanitizerUtils.js
CHANGED
|
@@ -11,7 +11,7 @@ export const nativeSupport = supported();
|
|
|
11
11
|
|
|
12
12
|
export const setHTML = function setHTML(el, input, opts = defaultConfig) {
|
|
13
13
|
const doc = safeParseHTML(input, opts);
|
|
14
|
-
el.
|
|
14
|
+
el.replaceChildren(documentToFragment(doc));
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
const allowProtocols = ['https:'];
|
package/package.json
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shgysk8zer0/polyfills",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A collection of JavaScript polyfills",
|
|
7
|
-
"main": "all.min.js",
|
|
8
|
-
"module": "all.js",
|
|
7
|
+
"main": "./all.min.js",
|
|
8
|
+
"module": "./all.js",
|
|
9
|
+
"unpkg": "./all.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./all.js",
|
|
13
|
+
"require": "./all.min.js"
|
|
14
|
+
},
|
|
15
|
+
"./*": {
|
|
16
|
+
"import": "./*.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
9
19
|
"config": {
|
|
10
20
|
"serve": {
|
|
11
21
|
"domain": "localhost",
|
|
@@ -29,11 +39,11 @@
|
|
|
29
39
|
"lint:js": "eslint .",
|
|
30
40
|
"lint:html": "htmlhint \"**/*.html\"",
|
|
31
41
|
"build:js": "rollup -c rollup.config.js",
|
|
32
|
-
"create:lock": "npm i --package-lock-only --ignore-scripts",
|
|
42
|
+
"create:lock": "npm i --package-lock-only --ignore-scripts --no-audit --no-fund",
|
|
33
43
|
"version:bump": "npm run version:bump:patch",
|
|
34
|
-
"version:bump:patch": "npm version --no-git-tag-version patch",
|
|
35
|
-
"version:bump:minor": "npm version --no-git-tag-version minor",
|
|
36
|
-
"version:bump:major": "npm version --no-git-tag-version major"
|
|
44
|
+
"version:bump:patch": "npm version --no-git-tag-version patch && npm run create:lock",
|
|
45
|
+
"version:bump:minor": "npm version --no-git-tag-version minor && npm run create:lock",
|
|
46
|
+
"version:bump:major": "npm version --no-git-tag-version major && npm run create:lock"
|
|
37
47
|
},
|
|
38
48
|
"repository": {
|
|
39
49
|
"type": "git",
|
|
@@ -50,7 +60,7 @@
|
|
|
50
60
|
},
|
|
51
61
|
"homepage": "https://github.com/shgysk8zer0/polyfills#readme",
|
|
52
62
|
"devDependencies": {
|
|
53
|
-
"@shgysk8zer0/js-utils": "^1.0.
|
|
63
|
+
"@shgysk8zer0/js-utils": "^1.0.1",
|
|
54
64
|
"htmlhint": "^1.1.4",
|
|
55
65
|
"http-server": "^14.1.1"
|
|
56
66
|
}
|