@bhsd/common 0.9.3 → 0.9.4
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/eslintrc.dist.cjs +2 -5
- package/package.json +4 -4
- package/stylelintrc.cjs +1 -0
package/dist/index.js
CHANGED
|
@@ -78,7 +78,7 @@ const loadScript = (src, globalConst, amd) => {
|
|
|
78
78
|
return loading.get(src);
|
|
79
79
|
}
|
|
80
80
|
const promise = new Promise((resolve) => {
|
|
81
|
-
const path = `${CDN}/${src}`;
|
|
81
|
+
const path = /^https?:\/\//iu.test(src) ? src : `${CDN}/${src}`;
|
|
82
82
|
let obj = globalThis;
|
|
83
83
|
for (const prop of globalConst.split(".")) {
|
|
84
84
|
obj = obj?.[prop];
|
package/dist/index.mjs
CHANGED
|
@@ -41,7 +41,7 @@ const loadScript = (src, globalConst, amd) => {
|
|
|
41
41
|
return loading.get(src);
|
|
42
42
|
}
|
|
43
43
|
const promise = new Promise((resolve) => {
|
|
44
|
-
const path = `${CDN}/${src}`;
|
|
44
|
+
const path = /^https?:\/\//iu.test(src) ? src : `${CDN}/${src}`;
|
|
45
45
|
let obj = globalThis;
|
|
46
46
|
for (const prop of globalConst.split(".")) {
|
|
47
47
|
obj = obj?.[prop];
|
package/eslintrc.dist.cjs
CHANGED
|
@@ -7,16 +7,13 @@ module.exports = {
|
|
|
7
7
|
es2024: true,
|
|
8
8
|
},
|
|
9
9
|
plugins: ['es-x'],
|
|
10
|
-
extends: ['plugin:es-x/restrict-to-
|
|
10
|
+
extends: ['plugin:es-x/restrict-to-es2020'],
|
|
11
11
|
parserOptions: {
|
|
12
12
|
ecmaVersion: 'latest',
|
|
13
13
|
},
|
|
14
14
|
rules: {
|
|
15
|
-
'es-x/no-global-this': 0,
|
|
16
|
-
'es-x/no-import-meta': 0,
|
|
17
|
-
'es-x/no-promise-all-settled': 0,
|
|
18
15
|
'es-x/no-regexp-lookbehind-assertions': 2,
|
|
19
|
-
'es-x/no-
|
|
16
|
+
'es-x/no-regexp-unicode-property-escapes-2020': 2,
|
|
20
17
|
},
|
|
21
18
|
settings: {
|
|
22
19
|
'es-x': {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/common",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Bhsd",
|
|
6
6
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lint": "npm run lint:ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"stylelint-config-recommended": "^
|
|
42
|
+
"stylelint-config-recommended": "^16.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@stylistic/eslint-plugin": "^3.1.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
62
62
|
"http-server": "^14.1.1",
|
|
63
63
|
"mocha": "^11.1.0",
|
|
64
|
-
"stylelint": "^16.
|
|
64
|
+
"stylelint": "^16.19.1",
|
|
65
65
|
"typescript": "^5.8.2",
|
|
66
|
-
"wikiparser-node": "^1.
|
|
66
|
+
"wikiparser-node": "^1.20.1"
|
|
67
67
|
}
|
|
68
68
|
}
|
package/stylelintrc.cjs
CHANGED
|
@@ -17,6 +17,7 @@ module.exports = {
|
|
|
17
17
|
'declaration-block-single-line-max-declarations': 1,
|
|
18
18
|
'number-max-precision': 2,
|
|
19
19
|
'alpha-value-notation': 'number',
|
|
20
|
+
'color-function-alias-notation': 'without-alpha',
|
|
20
21
|
'color-function-notation': 'legacy',
|
|
21
22
|
'color-hex-length': 'short',
|
|
22
23
|
'font-weight-notation': 'named-where-possible',
|