@odinlin/utils 1.0.0 → 1.0.1

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/browser/browser.cjs +2 -0
  3. package/dist/browser/browser.d.ts +2 -1
  4. package/dist/browser/browser.js +2 -1
  5. package/dist/browser/promise/delay.cjs +8 -0
  6. package/dist/browser/promise/delay.d.ts +5 -0
  7. package/dist/browser/promise/delay.d.ts.map +1 -0
  8. package/dist/browser/promise/delay.js +8 -0
  9. package/dist/browser/promise/delay.js.map +1 -0
  10. package/dist/browser/promise/index.cjs +2 -0
  11. package/dist/browser/promise/index.d.ts +2 -1
  12. package/dist/browser/promise/index.js +2 -1
  13. package/dist/browser/string/className.d.ts.map +1 -1
  14. package/dist/noExternal/browser.esm.js +7 -1
  15. package/dist/noExternal/browser.esm.min.js +7 -7
  16. package/dist/noExternal/browser.esm.min.js.map +1 -1
  17. package/dist/noExternal/browser.umd.js +7 -0
  18. package/dist/noExternal/browser.umd.min.js +9 -9
  19. package/dist/noExternal/browser.umd.min.js.map +1 -1
  20. package/dist/noExternal/node.cjs.js +3624 -1
  21. package/dist/noExternal/node.cjs.min.js +37 -0
  22. package/dist/noExternal/node.cjs.min.js.map +1 -1
  23. package/dist/noExternal/node.esm.js +7 -1
  24. package/dist/noExternal/node.esm.min.js +15 -15
  25. package/dist/noExternal/node.esm.min.js.map +1 -1
  26. package/dist/node/node.cjs +2 -0
  27. package/dist/node/node.d.ts +2 -1
  28. package/dist/node/node.js +2 -1
  29. package/dist/node/promise/delay.cjs +8 -0
  30. package/dist/node/promise/delay.d.ts +5 -0
  31. package/dist/node/promise/delay.d.ts.map +1 -0
  32. package/dist/node/promise/delay.js +8 -0
  33. package/dist/node/promise/delay.js.map +1 -0
  34. package/dist/node/promise/index.cjs +2 -0
  35. package/dist/node/promise/index.d.ts +2 -1
  36. package/dist/node/promise/index.js +2 -1
  37. package/dist/node/string/className.d.ts.map +1 -1
  38. package/dist/version.js +1 -1
  39. package/dist/version.js.map +1 -1
  40. package/package.json +14 -15
@@ -7745,6 +7745,12 @@ var require_await_to_js_umd = /* @__PURE__ */ __commonJS({ "../../node_modules/.
7745
7745
  var import_await_to_js_umd = require_await_to_js_umd();
7746
7746
  const promiseAwaitTo = import_await_to_js_umd.to;
7747
7747
 
7748
+ //#endregion
7749
+ //#region src/promise/delay.ts
7750
+ async function promiseDelay(ms) {
7751
+ return new Promise((resolve) => setTimeout(resolve, ms));
7752
+ }
7753
+
7748
7754
  //#endregion
7749
7755
  //#region ../../node_modules/.pnpm/yocto-queue@1.2.2/node_modules/yocto-queue/index.js
7750
7756
  var Node = class {
@@ -21724,4 +21730,4 @@ function treeGenerate(items, options) {
21724
21730
  }
21725
21731
 
21726
21732
  //#endregion
21727
- export { Buffer$1 as Buffer, CONSTANT_EMPTY_ARRAY, CONSTANT_EMPTY_OBJECT, CONSTANT_NOOP, DOMParser, FileBuffer, FileTypeParser, Request, XMLSerializer, anyRule1, anyRule10, anyRule11, anyRule12, anyRule13, anyRule14, anyRule15, anyRule16, anyRule17, anyRule18, anyRule19, anyRule2, anyRule20, anyRule21, anyRule22, anyRule23, anyRule24, anyRule25, anyRule26, anyRule27, anyRule28, anyRule29, anyRule3, anyRule30, anyRule31, anyRule32, anyRule33, anyRule34, anyRule35, anyRule36, anyRule37, anyRule38, anyRule39, anyRule4, anyRule40, anyRule41, anyRule42, anyRule43, anyRule44, anyRule45, anyRule46, anyRule47, anyRule48, anyRule49, anyRule5, anyRule50, anyRule51, anyRule52, anyRule53, anyRule54, anyRule55, anyRule56, anyRule57, anyRule58, anyRule59, anyRule6, anyRule60, anyRule61, anyRule62, anyRule63, anyRule64, anyRule65, anyRule66, anyRule67, anyRule68, anyRule69, anyRule7, anyRule70, anyRule71, anyRule72, anyRule73, anyRule74, anyRule75, anyRule76, anyRule77, anyRule78, anyRule79, anyRule8, anyRule80, anyRule81, anyRule82, anyRule83, anyRule84, anyRule9, anyRuleWithBrace, anyRuleWithBracket, arrayCast, datePrettyMs, dateTimeAgoFormat, dateTimeAgoLocale, dateTimeAgoRender, dateTimeAgoRenderCancel, fileBytes, fileTypeFromBlob, fileTypeFromBuffer, fileTypeFromStream, fileTypeFromTokenizer, fileTypeStream, fileTypeSupportedExtensions, fileTypeSupportedMimeTypes, functionDebounce, functionThrottle, isArray, isBigInt, isBoolean, isBooleanLike, isBrowser, isDate, isEmpty, isError, isFunction, isJSONArray, isJSONObject, isJSONString, isJSONValue, isMap, isNil, isNode, isNotNumber, isNull, isNumber, isNumberLike, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isStringLike, isSymbol, isTagOf, isTypeOf, isTypeOfResult, isUndefined, isWeakMap, isWeakSet, objectClone, presetInterceptorWithRequestAuth, presetInterceptorWithRequestLog, presetInterceptorWithResponseJSON, presetInterceptorWithResponseLog, promiseAwaitTo, promiseLimit, promiseLimitFunction, stringClsn, stringClsx, stringReplaceParametersWithObj, stringSliceParametersWithSort, treeFilter, treeFlatten, treeGenerate };
21733
+ export { Buffer$1 as Buffer, CONSTANT_EMPTY_ARRAY, CONSTANT_EMPTY_OBJECT, CONSTANT_NOOP, DOMParser, FileBuffer, FileTypeParser, Request, XMLSerializer, anyRule1, anyRule10, anyRule11, anyRule12, anyRule13, anyRule14, anyRule15, anyRule16, anyRule17, anyRule18, anyRule19, anyRule2, anyRule20, anyRule21, anyRule22, anyRule23, anyRule24, anyRule25, anyRule26, anyRule27, anyRule28, anyRule29, anyRule3, anyRule30, anyRule31, anyRule32, anyRule33, anyRule34, anyRule35, anyRule36, anyRule37, anyRule38, anyRule39, anyRule4, anyRule40, anyRule41, anyRule42, anyRule43, anyRule44, anyRule45, anyRule46, anyRule47, anyRule48, anyRule49, anyRule5, anyRule50, anyRule51, anyRule52, anyRule53, anyRule54, anyRule55, anyRule56, anyRule57, anyRule58, anyRule59, anyRule6, anyRule60, anyRule61, anyRule62, anyRule63, anyRule64, anyRule65, anyRule66, anyRule67, anyRule68, anyRule69, anyRule7, anyRule70, anyRule71, anyRule72, anyRule73, anyRule74, anyRule75, anyRule76, anyRule77, anyRule78, anyRule79, anyRule8, anyRule80, anyRule81, anyRule82, anyRule83, anyRule84, anyRule9, anyRuleWithBrace, anyRuleWithBracket, arrayCast, datePrettyMs, dateTimeAgoFormat, dateTimeAgoLocale, dateTimeAgoRender, dateTimeAgoRenderCancel, fileBytes, fileTypeFromBlob, fileTypeFromBuffer, fileTypeFromStream, fileTypeFromTokenizer, fileTypeStream, fileTypeSupportedExtensions, fileTypeSupportedMimeTypes, functionDebounce, functionThrottle, isArray, isBigInt, isBoolean, isBooleanLike, isBrowser, isDate, isEmpty, isError, isFunction, isJSONArray, isJSONObject, isJSONString, isJSONValue, isMap, isNil, isNode, isNotNumber, isNull, isNumber, isNumberLike, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isStringLike, isSymbol, isTagOf, isTypeOf, isTypeOfResult, isUndefined, isWeakMap, isWeakSet, objectClone, presetInterceptorWithRequestAuth, presetInterceptorWithRequestLog, presetInterceptorWithResponseJSON, presetInterceptorWithResponseLog, promiseAwaitTo, promiseDelay, promiseLimit, promiseLimitFunction, stringClsn, stringClsx, stringReplaceParametersWithObj, stringSliceParametersWithSort, treeFilter, treeFlatten, treeGenerate };