@oeos-components/utils 0.0.17 → 0.0.19
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 +4 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +4 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -819,6 +819,9 @@ function getVariable(propertyName) {
|
|
|
819
819
|
let res = getComputedStyle(document.documentElement).getPropertyValue(propertyName).trim();
|
|
820
820
|
return res;
|
|
821
821
|
}
|
|
822
|
+
function test() {
|
|
823
|
+
return "\u54C8\u54C8\u54C8" + /* @__PURE__ */ new Date();
|
|
824
|
+
}
|
|
822
825
|
|
|
823
826
|
exports.$toast = $toast;
|
|
824
827
|
exports.asyncWrapper = asyncWrapper;
|
|
@@ -848,6 +851,7 @@ exports.processWidth = processWidth;
|
|
|
848
851
|
exports.random = random;
|
|
849
852
|
exports.setStorage = setStorage;
|
|
850
853
|
exports.sleep = sleep;
|
|
854
|
+
exports.test = test;
|
|
851
855
|
exports.throttle = throttle;
|
|
852
856
|
exports.toFixed = toFixed;
|
|
853
857
|
exports.toLine = toLine;
|
package/dist/index.d.cts
CHANGED
|
@@ -399,5 +399,6 @@ declare function formatNewLines(str: any): any;
|
|
|
399
399
|
* getVariable('--blue');
|
|
400
400
|
* */
|
|
401
401
|
declare function getVariable(propertyName: any): string;
|
|
402
|
+
declare function test(): string;
|
|
402
403
|
|
|
403
|
-
export { $toast, asyncWrapper, clearStorage, clone, confirm, copy, debounce, formatBytes, formatBytesConvert, formatDurationTime, formatImg, formatNewLines, formatThousands, formatTime, getStorage, getType, getVariable, isEmpty, isNumber, isString, isStringNumber, log, merge, notEmpty, processWidth, random, setStorage, sleep, throttle, toFixed, toLine, tryCatch, uuid, validForm, validate, validateTrigger };
|
|
404
|
+
export { $toast, asyncWrapper, clearStorage, clone, confirm, copy, debounce, formatBytes, formatBytesConvert, formatDurationTime, formatImg, formatNewLines, formatThousands, formatTime, getStorage, getType, getVariable, isEmpty, isNumber, isString, isStringNumber, log, merge, notEmpty, processWidth, random, setStorage, sleep, test, throttle, toFixed, toLine, tryCatch, uuid, validForm, validate, validateTrigger };
|
package/dist/index.d.mts
CHANGED
|
@@ -399,5 +399,6 @@ declare function formatNewLines(str: any): any;
|
|
|
399
399
|
* getVariable('--blue');
|
|
400
400
|
* */
|
|
401
401
|
declare function getVariable(propertyName: any): string;
|
|
402
|
+
declare function test(): string;
|
|
402
403
|
|
|
403
|
-
export { $toast, asyncWrapper, clearStorage, clone, confirm, copy, debounce, formatBytes, formatBytesConvert, formatDurationTime, formatImg, formatNewLines, formatThousands, formatTime, getStorage, getType, getVariable, isEmpty, isNumber, isString, isStringNumber, log, merge, notEmpty, processWidth, random, setStorage, sleep, throttle, toFixed, toLine, tryCatch, uuid, validForm, validate, validateTrigger };
|
|
404
|
+
export { $toast, asyncWrapper, clearStorage, clone, confirm, copy, debounce, formatBytes, formatBytesConvert, formatDurationTime, formatImg, formatNewLines, formatThousands, formatTime, getStorage, getType, getVariable, isEmpty, isNumber, isString, isStringNumber, log, merge, notEmpty, processWidth, random, setStorage, sleep, test, throttle, toFixed, toLine, tryCatch, uuid, validForm, validate, validateTrigger };
|
package/dist/index.d.ts
CHANGED
|
@@ -399,5 +399,6 @@ declare function formatNewLines(str: any): any;
|
|
|
399
399
|
* getVariable('--blue');
|
|
400
400
|
* */
|
|
401
401
|
declare function getVariable(propertyName: any): string;
|
|
402
|
+
declare function test(): string;
|
|
402
403
|
|
|
403
|
-
export { $toast, asyncWrapper, clearStorage, clone, confirm, copy, debounce, formatBytes, formatBytesConvert, formatDurationTime, formatImg, formatNewLines, formatThousands, formatTime, getStorage, getType, getVariable, isEmpty, isNumber, isString, isStringNumber, log, merge, notEmpty, processWidth, random, setStorage, sleep, throttle, toFixed, toLine, tryCatch, uuid, validForm, validate, validateTrigger };
|
|
404
|
+
export { $toast, asyncWrapper, clearStorage, clone, confirm, copy, debounce, formatBytes, formatBytesConvert, formatDurationTime, formatImg, formatNewLines, formatThousands, formatTime, getStorage, getType, getVariable, isEmpty, isNumber, isString, isStringNumber, log, merge, notEmpty, processWidth, random, setStorage, sleep, test, throttle, toFixed, toLine, tryCatch, uuid, validForm, validate, validateTrigger };
|
package/dist/index.mjs
CHANGED
|
@@ -816,5 +816,8 @@ function getVariable(propertyName) {
|
|
|
816
816
|
let res = getComputedStyle(document.documentElement).getPropertyValue(propertyName).trim();
|
|
817
817
|
return res;
|
|
818
818
|
}
|
|
819
|
+
function test() {
|
|
820
|
+
return "\u54C8\u54C8\u54C8" + /* @__PURE__ */ new Date();
|
|
821
|
+
}
|
|
819
822
|
|
|
820
|
-
export { $toast, asyncWrapper, clearStorage, clone, confirm, copy, debounce, formatBytes, formatBytesConvert, formatDurationTime, formatImg, formatNewLines, formatThousands, formatTime, getStorage, getType, getVariable, isEmpty, isNumber, isString, isStringNumber, log, merge, notEmpty, processWidth, random, setStorage, sleep, throttle, toFixed, toLine, tryCatch, uuid, validForm, validate, validateTrigger };
|
|
823
|
+
export { $toast, asyncWrapper, clearStorage, clone, confirm, copy, debounce, formatBytes, formatBytesConvert, formatDurationTime, formatImg, formatNewLines, formatThousands, formatTime, getStorage, getType, getVariable, isEmpty, isNumber, isString, isStringNumber, log, merge, notEmpty, processWidth, random, setStorage, sleep, test, throttle, toFixed, toLine, tryCatch, uuid, validForm, validate, validateTrigger };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oeos-components/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "utils of oeos-components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"stub": "npx unbuild --stub",
|
|
19
19
|
"version": "git add . && git commit -am \"chore: release v$npm_package_version\"",
|
|
20
20
|
"postversion": "git push && git push origin --tags && npm publish",
|
|
21
|
-
"release": "npx unbuild && npm version patch &&
|
|
21
|
+
"release": "npx unbuild && npm version patch && git add . && git commit -m \"chore: release @oeos-components/utils v$(npm pkg get version | sed 's/\"//g')\" && git push && git push origin && npm publish"
|
|
22
22
|
},
|
|
23
23
|
"author": "",
|
|
24
24
|
"dependencies": {
|