@bhsd/common 0.14.2 → 0.15.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/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare type ConfigGetter = () => Promise<ConfigData>;
|
|
|
5
5
|
declare global {
|
|
6
6
|
const define: unknown;
|
|
7
7
|
}
|
|
8
|
-
export declare const CDN = "https://testingcf.jsdelivr.net";
|
|
8
|
+
export declare const CDN = "https://testingcf.jsdelivr.net", wmf = "wiktionary|wiki(?:pedia|books|news|quote|source|versity|voyage)";
|
|
9
9
|
/**
|
|
10
10
|
* 解码HTML实体
|
|
11
11
|
* @param str 要解码的字符串
|
package/dist/index.js
CHANGED
|
@@ -34,11 +34,12 @@ __export(index_exports, {
|
|
|
34
34
|
sanitizeInlineStyle: () => sanitizeInlineStyle,
|
|
35
35
|
setI18N: () => setI18N,
|
|
36
36
|
setObject: () => setObject,
|
|
37
|
-
splitColors: () => splitColors
|
|
37
|
+
splitColors: () => splitColors,
|
|
38
|
+
wmf: () => wmf
|
|
38
39
|
});
|
|
39
40
|
module.exports = __toCommonJS(index_exports);
|
|
40
41
|
var define_LANGS_default = ["zh-hans", "zh-hant"];
|
|
41
|
-
const CDN = "https://testingcf.jsdelivr.net";
|
|
42
|
+
const CDN = "https://testingcf.jsdelivr.net", wmf = "wiktionary|wiki(?:pedia|books|news|quote|source|versity|voyage)";
|
|
42
43
|
const textarea = /* @__PURE__ */ (() => typeof document === "object" ? document.createElement("textarea") : void 0)();
|
|
43
44
|
const decodeHTML = (str) => {
|
|
44
45
|
textarea.innerHTML = str;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var define_LANGS_default = ["zh-hans", "zh-hant"];
|
|
2
|
-
const CDN = "https://testingcf.jsdelivr.net";
|
|
2
|
+
const CDN = "https://testingcf.jsdelivr.net", wmf = "wiktionary|wiki(?:pedia|books|news|quote|source|versity|voyage)";
|
|
3
3
|
const textarea = /* @__PURE__ */ (() => typeof document === "object" ? document.createElement("textarea") : void 0)();
|
|
4
4
|
const decodeHTML = (str) => {
|
|
5
5
|
textarea.innerHTML = str;
|
|
@@ -169,5 +169,6 @@ export {
|
|
|
169
169
|
sanitizeInlineStyle,
|
|
170
170
|
setI18N,
|
|
171
171
|
setObject,
|
|
172
|
-
splitColors
|
|
172
|
+
splitColors,
|
|
173
|
+
wmf
|
|
173
174
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Bhsd",
|
|
6
6
|
"files": [
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
63
63
|
"stylelint": "^16.21.1",
|
|
64
64
|
"typescript": "^5.8.2",
|
|
65
|
-
"wikiparser-node": "^1.21.
|
|
65
|
+
"wikiparser-node": "^1.21.3"
|
|
66
66
|
}
|
|
67
67
|
}
|