@bhsd/common 0.6.2 → 0.6.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/dist/index.d.ts CHANGED
@@ -2,6 +2,11 @@ export declare const CDN = "https://testingcf.jsdelivr.net";
2
2
  declare global {
3
3
  const define: unknown;
4
4
  }
5
+ /**
6
+ * 解码HTML实体
7
+ * @param str 要解码的字符串
8
+ */
9
+ export declare const decodeHTML: (str: string) => string;
5
10
  /**
6
11
  * PHP的`rawurldecode`函数的JavaScript实现
7
12
  * @param str 要解码的字符串
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ var src_exports = {};
20
20
  __export(src_exports, {
21
21
  CDN: () => CDN,
22
22
  compareVersion: () => compareVersion,
23
+ decodeHTML: () => decodeHTML,
23
24
  getObject: () => getObject,
24
25
  loadScript: () => loadScript,
25
26
  normalizeTitle: () => normalizeTitle,
package/dist/index.mjs CHANGED
@@ -67,6 +67,7 @@ const compareVersion = (version, baseVersion) => {
67
67
  export {
68
68
  CDN,
69
69
  compareVersion,
70
+ decodeHTML,
70
71
  getObject,
71
72
  loadScript,
72
73
  normalizeTitle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/common",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "license": "MIT",
5
5
  "author": "Bhsd",
6
6
  "files": [