@ivujs/i-utils 1.1.5 → 1.1.6
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.cjs → cjs/id/index.cjs} +0 -4
- package/dist/cjs/index.cjs +9 -0
- package/dist/{index.js → es/id/index.mjs} +1 -5
- package/dist/es/index.mjs +9 -0
- package/dist/lib/index.full.cjs.js +19 -0
- package/dist/lib/index.full.cjs.min.js +2 -0
- package/dist/lib/index.full.cjs.min.js.map +1 -0
- package/dist/lib/index.full.esm.js +19 -0
- package/dist/lib/index.full.esm.min.js +2 -0
- package/dist/lib/index.full.esm.min.js.map +1 -0
- package/dist/lib/index.full.umd.js +23 -0
- package/dist/lib/index.full.umd.min.js +2 -0
- package/dist/lib/index.full.umd.min.js.map +1 -0
- package/dist/resolvers.d.ts +2 -6
- package/dist/resolves.cjs +14 -0
- package/dist/resolves.mjs +14 -0
- package/package.json +4 -4
- /package/dist/{resolvers.cjs → cjs/resolvers/index.cjs} +0 -0
- /package/dist/{resolvers.js → es/resolvers/index.mjs} +0 -0
|
@@ -25,9 +25,5 @@ function getGUID() {
|
|
|
25
25
|
};
|
|
26
26
|
return s4() + s4() + "-" + s4() + "-" + s4() + "-" + s4() + "-" + s4() + s4() + s4();
|
|
27
27
|
}
|
|
28
|
-
function loadedTest() {
|
|
29
|
-
console.log("Nice, iUtils loaded successfully!");
|
|
30
|
-
}
|
|
31
28
|
exports.getGUID = getGUID;
|
|
32
29
|
exports.getUUID = getUUID;
|
|
33
|
-
exports.loadedTest = loadedTest;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const index = require("./id/index.cjs");
|
|
4
|
+
function loadedTest() {
|
|
5
|
+
console.log("Nice, iUtils loaded successfully!");
|
|
6
|
+
}
|
|
7
|
+
exports.getGUID = index.getGUID;
|
|
8
|
+
exports.getUUID = index.getUUID;
|
|
9
|
+
exports.loadedTest = loadedTest;
|
|
@@ -23,11 +23,7 @@ function getGUID() {
|
|
|
23
23
|
};
|
|
24
24
|
return s4() + s4() + "-" + s4() + "-" + s4() + "-" + s4() + "-" + s4() + s4() + s4();
|
|
25
25
|
}
|
|
26
|
-
function loadedTest() {
|
|
27
|
-
console.log("Nice, iUtils loaded successfully!");
|
|
28
|
-
}
|
|
29
26
|
export {
|
|
30
27
|
getGUID,
|
|
31
|
-
getUUID
|
|
32
|
-
loadedTest
|
|
28
|
+
getUUID
|
|
33
29
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @ivujs/i-utils v1.1.6
|
|
3
|
+
* Copyright 2021-2026, <gao911222@163.com>
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
"use strict";
|
|
7
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
8
|
+
function IUtilsResolver(options = {}) {
|
|
9
|
+
const api = ["getUUID", "getGUID", "loadTest"];
|
|
10
|
+
return (name) => {
|
|
11
|
+
if (api.includes(name)) {
|
|
12
|
+
return {
|
|
13
|
+
name,
|
|
14
|
+
from: "@ivujs/i-utils"
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
exports.IUtilsResolver = IUtilsResolver;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.full.cjs.min.js","sources":["../../src/resolvers/index.ts"],"sourcesContent":["import type { Resolver, Options } from \"unplugin-auto-import/types\";\r\n\r\nexport function IUtilsResolver(options: Options = {}): Resolver {\r\n const api = [\"getUUID\", \"getGUID\", \"loadTest\"];\r\n return (name: string) => {\r\n if (api.includes(name)) {\r\n return {\r\n name,\r\n from: \"@ivujs/i-utils\",\r\n };\r\n }\r\n };\r\n}\r\n"],"names":["options","api","name","includes","from"],"mappings":"uGAEO,SAAwBA,EAAmB,IAChD,MAAMC,EAAM,CAAC,UAAW,UAAW,YACnC,OAAQC,IACN,GAAID,EAAIE,SAASD,GACf,MAAO,CACLA,OACAE,KAAM,iBAEV,CAEJ"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @ivujs/i-utils v1.1.6
|
|
3
|
+
* Copyright 2021-2026, <gao911222@163.com>
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
function IUtilsResolver(options = {}) {
|
|
7
|
+
const api = ["getUUID", "getGUID", "loadTest"];
|
|
8
|
+
return (name) => {
|
|
9
|
+
if (api.includes(name)) {
|
|
10
|
+
return {
|
|
11
|
+
name,
|
|
12
|
+
from: "@ivujs/i-utils"
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
IUtilsResolver
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.full.esm.min.js","sources":["../../src/resolvers/index.ts"],"sourcesContent":["import type { Resolver, Options } from \"unplugin-auto-import/types\";\r\n\r\nexport function IUtilsResolver(options: Options = {}): Resolver {\r\n const api = [\"getUUID\", \"getGUID\", \"loadTest\"];\r\n return (name: string) => {\r\n if (api.includes(name)) {\r\n return {\r\n name,\r\n from: \"@ivujs/i-utils\",\r\n };\r\n }\r\n };\r\n}\r\n"],"names":["IUtilsResolver","options","api","name","includes","from"],"mappings":"AAEO,SAASA,EAAeC,EAAmB,IAChD,MAAMC,EAAM,CAAC,UAAW,UAAW,YACnC,OAAQC,IACN,GAAID,EAAIE,SAASD,GACf,MAAO,CACLA,OACAE,KAAM,iBAEV,CAEJ"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @ivujs/i-utils v1.1.6
|
|
3
|
+
* Copyright 2021-2026, <gao911222@163.com>
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
(function(global, factory) {
|
|
7
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.iUtils = {}));
|
|
8
|
+
})(this, (function(exports2) {
|
|
9
|
+
"use strict";
|
|
10
|
+
function IUtilsResolver(options = {}) {
|
|
11
|
+
const api = ["getUUID", "getGUID", "loadTest"];
|
|
12
|
+
return (name) => {
|
|
13
|
+
if (api.includes(name)) {
|
|
14
|
+
return {
|
|
15
|
+
name,
|
|
16
|
+
from: "@ivujs/i-utils"
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
exports2.IUtilsResolver = IUtilsResolver;
|
|
22
|
+
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
23
|
+
}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).iUtils={})}(this,(function(e){"use strict";e.IUtilsResolver=function(e={}){const t=["getUUID","getGUID","loadTest"];return e=>{if(t.includes(e))return{name:e,from:"@ivujs/i-utils"}}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
2
|
+
//# sourceMappingURL=index.full.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.full.umd.min.js","sources":["../../src/resolvers/index.ts"],"sourcesContent":["import type { Resolver, Options } from \"unplugin-auto-import/types\";\r\n\r\nexport function IUtilsResolver(options: Options = {}): Resolver {\r\n const api = [\"getUUID\", \"getGUID\", \"loadTest\"];\r\n return (name: string) => {\r\n if (api.includes(name)) {\r\n return {\r\n name,\r\n from: \"@ivujs/i-utils\",\r\n };\r\n }\r\n };\r\n}\r\n"],"names":["options","api","name","includes","from"],"mappings":"+PAEO,SAAwBA,EAAmB,IAChD,MAAMC,EAAM,CAAC,UAAW,UAAW,YACnC,OAAQC,IACN,GAAID,EAAIE,SAASD,GACf,MAAO,CACLA,OACAE,KAAM,iBAEV,CAEJ"}
|
package/dist/resolvers.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import { Options } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare function IUtilsResolver(options?: Options): Resolver;
|
|
5
|
-
|
|
6
|
-
export { }
|
|
1
|
+
import type { Resolver, Options } from "unplugin-auto-import/types";
|
|
2
|
+
export declare function IUtilsResolver(options?: Options): Resolver;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function IUtilsResolver(options = {}) {
|
|
4
|
+
const api = ["getUUID", "getGUID", "loadTest"];
|
|
5
|
+
return (name) => {
|
|
6
|
+
if (api.includes(name)) {
|
|
7
|
+
return {
|
|
8
|
+
name,
|
|
9
|
+
from: "@ivujs/i-utils"
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
exports.IUtilsResolver = IUtilsResolver;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivujs/i-utils",
|
|
3
3
|
"moduleName": "iUtils",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "前端模块化 JavaScript 工具库",
|
|
7
7
|
"author": "<gao911222@163.com>",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"require": "./dist/cjs/index.cjs"
|
|
25
25
|
},
|
|
26
26
|
"./resolvers": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
27
|
+
"types": "./dist/resolvers.d.ts",
|
|
28
|
+
"import": "./dist/resolvers.mjs",
|
|
29
|
+
"require": "./dist/resolvers.cjs"
|
|
30
30
|
},
|
|
31
31
|
"./es": {
|
|
32
32
|
"types": "./dist/es/index.d.ts",
|
|
File without changes
|
|
File without changes
|