@ivujs/i-utils 1.1.12 → 1.1.13

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @ivujs/i-utils v1.1.12
2
+ * @ivujs/i-utils v1.1.13
3
3
  * Copyright 2021-2026, <gao911222@163.com>
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @ivujs/i-utils v1.1.12
2
+ * @ivujs/i-utils v1.1.13
3
3
  * Copyright 2021-2026, <gao911222@163.com>
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @ivujs/i-utils v1.1.12
2
+ * @ivujs/i-utils v1.1.13
3
3
  * Copyright 2021-2026, <gao911222@163.com>
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @ivujs/i-utils v1.1.12
2
+ * @ivujs/i-utils v1.1.13
3
3
  * Copyright 2021-2026, <gao911222@163.com>
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @ivujs/i-utils v1.1.12
2
+ * @ivujs/i-utils v1.1.13
3
3
  * Copyright 2021-2026, <gao911222@163.com>
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @ivujs/i-utils v1.1.12
2
+ * @ivujs/i-utils v1.1.13
3
3
  * Copyright 2021-2026, <gao911222@163.com>
4
4
  * Released under the MIT License.
5
5
  */
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * 解析器数据配置文件
5
+ */
6
+ const resolverConfig = {
7
+ // 提供给自动导入插件的包名
8
+ from: "@ivujs/i-utils",
9
+ // 提供给自动导入插件用的方法签名
10
+ apis: [
11
+ "getUUID",
12
+ "getGUID",
13
+ "loadedTestUtils",
14
+ "MyClass",
15
+ "Stock",
16
+ "MarketQuote",
17
+ "doMain",
18
+ "MY_CONFIG",
19
+ "getUserInfo",
20
+ "getStockInfo" ],
21
+ // 提供给自动导入插件用的类型签名
22
+ types: [
23
+ "BaseStock",
24
+ "HighStock",
25
+ "StockQuote" ]
26
+ };
27
+
28
+ exports.resolverConfig = resolverConfig;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 解析器数据配置文件
3
+ */
4
+ const resolverConfig = {
5
+ // 提供给自动导入插件的包名
6
+ from: "@ivujs/i-utils",
7
+ // 提供给自动导入插件用的方法签名
8
+ apis: [
9
+ "getUUID",
10
+ "getGUID",
11
+ "loadedTestUtils",
12
+ "MyClass",
13
+ "Stock",
14
+ "MarketQuote",
15
+ "doMain",
16
+ "MY_CONFIG",
17
+ "getUserInfo",
18
+ "getStockInfo" ],
19
+ // 提供给自动导入插件用的类型签名
20
+ types: [
21
+ "BaseStock",
22
+ "HighStock",
23
+ "StockQuote" ]
24
+ };
25
+
26
+ export { resolverConfig };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var resolverJson = require('./index.json');
3
+ var autoImports = require('./auto-imports.cjs');
4
4
 
5
5
  /**
6
6
  * 提供自动导入插件的解析器
@@ -22,7 +22,7 @@ var resolverJson = require('./index.json');
22
22
  */
23
23
  function IUtilsResolver(options) {
24
24
  // 读取默认配置
25
- const defaultApis = resolverJson.apis || [];
25
+ const defaultApis = autoImports.resolverConfig.apis || [];
26
26
  // api配置
27
27
  let finalApis = [...defaultApis];
28
28
  // 参数为数组
@@ -52,7 +52,7 @@ function IUtilsResolver(options) {
52
52
  if (finalApis.includes(name)) {
53
53
  return {
54
54
  name,
55
- from: resolverJson.from,
55
+ from: autoImports.resolverConfig.from,
56
56
  };
57
57
  }
58
58
  };
@@ -1,4 +1,4 @@
1
- import resolverJson from './index.json' with { type: 'json' };
1
+ import { resolverConfig } from './auto-imports.mjs';
2
2
 
3
3
  /**
4
4
  * 提供自动导入插件的解析器
@@ -20,7 +20,7 @@ import resolverJson from './index.json' with { type: 'json' };
20
20
  */
21
21
  function IUtilsResolver(options) {
22
22
  // 读取默认配置
23
- const defaultApis = resolverJson.apis || [];
23
+ const defaultApis = resolverConfig.apis || [];
24
24
  // api配置
25
25
  let finalApis = [...defaultApis];
26
26
  // 参数为数组
@@ -50,7 +50,7 @@ function IUtilsResolver(options) {
50
50
  if (finalApis.includes(name)) {
51
51
  return {
52
52
  name,
53
- from: resolverJson.from,
53
+ from: resolverConfig.from,
54
54
  };
55
55
  }
56
56
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ivujs/i-utils",
3
3
  "moduleName": "iUtils",
4
- "version": "1.1.12",
4
+ "version": "1.1.13",
5
5
  "type": "module",
6
6
  "description": "前端模块化 JavaScript 工具库",
7
7
  "author": "<gao911222@163.com>",
@@ -1,20 +0,0 @@
1
- {
2
- "from": "@ivujs/i-utils",
3
- "apis": [
4
- "getUUID",
5
- "getGUID",
6
- "loadedTestUtils",
7
- "MyClass",
8
- "Stock",
9
- "MarketQuote",
10
- "doMain",
11
- "MY_CONFIG",
12
- "getUserInfo",
13
- "getStockInfo"
14
- ],
15
- "types": [
16
- "BaseStock",
17
- "HighStock",
18
- "StockQuote"
19
- ]
20
- }