ranuts 0.1.0-alpha.11 → 0.1.0-alpha.12

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 (97) hide show
  1. package/dist/index.d.ts +5 -3
  2. package/dist/index.js +25 -16
  3. package/dist/{mimeType-Clvz2Teb.js → mimeType-eRf1TlBb.js} +4 -9
  4. package/dist/{reactify-C4cesbXi.js → reactify-Z-V9Vblb.js} +3 -8
  5. package/dist/{ml.js → src/ml/index.js} +19 -24
  6. package/dist/src/node/appendFile.d.ts +1 -0
  7. package/dist/src/node/fileInfo.d.ts +1 -0
  8. package/dist/src/node/fs.d.ts +1 -0
  9. package/dist/src/node/index.d.ts +3 -2
  10. package/dist/src/node/index.js +54 -0
  11. package/dist/src/node/watchFile.d.ts +2 -1
  12. package/dist/src/node/websocket.d.ts +2 -2
  13. package/dist/src/node/writeFile.d.ts +1 -0
  14. package/dist/src/optimize/index.d.ts +3 -3
  15. package/dist/src/react/index.js +4 -0
  16. package/dist/src/utils/behavior.d.ts +1 -1
  17. package/dist/src/utils/bom.d.ts +7 -7
  18. package/dist/src/utils/device.d.ts +9 -3
  19. package/dist/src/utils/dom.d.ts +87 -2
  20. package/dist/src/utils/img.d.ts +1 -1
  21. package/dist/src/utils/index.d.ts +8 -4
  22. package/dist/src/utils/index.js +4021 -0
  23. package/dist/src/utils/number.d.ts +1 -1
  24. package/dist/src/utils/obj.d.ts +10 -3
  25. package/dist/src/utils/storage.d.ts +2 -0
  26. package/dist/src/utils/subscribe.d.ts +34 -4
  27. package/dist/src/utils/totp/sha/common.d.ts +151 -0
  28. package/dist/src/utils/totp/sha/converters.d.ts +88 -0
  29. package/dist/src/utils/totp/sha/custom_types.d.ts +60 -0
  30. package/dist/src/utils/totp/sha/primitives_32.d.ts +98 -0
  31. package/dist/src/utils/totp/sha/primitives_64.d.ts +116 -0
  32. package/dist/src/utils/totp/sha/sha.d.ts +103 -0
  33. package/dist/src/utils/totp/sha/sha1.d.ts +18 -0
  34. package/dist/src/utils/totp/sha/sha256.d.ts +20 -0
  35. package/dist/src/utils/totp/sha/sha3.d.ts +53 -0
  36. package/dist/src/utils/totp/sha/sha512.d.ts +21 -0
  37. package/dist/src/utils/totp/totp.d.ts +23 -0
  38. package/dist/src/utils/visual/demo/index.d.ts +1 -0
  39. package/dist/src/utils/visual/demo/sankey.d.ts +2 -0
  40. package/dist/src/utils/visual/enums.d.ts +21 -0
  41. package/dist/src/utils/visual/event/boundary.d.ts +22 -0
  42. package/dist/src/utils/visual/event/event.d.ts +14 -0
  43. package/dist/src/utils/visual/event/index.d.ts +3 -0
  44. package/dist/src/utils/visual/event/types.d.ts +31 -0
  45. package/dist/src/utils/visual/graphics/graphics.d.ts +106 -0
  46. package/dist/src/utils/visual/graphics/graphicsData.d.ts +9 -0
  47. package/dist/src/utils/visual/graphics/graphicsGeometry.d.ts +15 -0
  48. package/dist/src/utils/visual/graphics/index.d.ts +3 -0
  49. package/dist/src/utils/visual/index.d.ts +9 -0
  50. package/dist/src/utils/visual/math/bezier.d.ts +2 -0
  51. package/dist/src/utils/visual/math/enums.d.ts +2 -0
  52. package/dist/src/utils/visual/math/index.d.ts +4 -0
  53. package/dist/src/utils/visual/math/matrix.d.ts +32 -0
  54. package/dist/src/utils/visual/math/transform.d.ts +27 -0
  55. package/dist/src/utils/visual/render/canvasRenderer.d.ts +9 -0
  56. package/dist/src/utils/visual/render/index.d.ts +6 -0
  57. package/dist/src/utils/visual/render/render.d.ts +10 -0
  58. package/dist/src/utils/visual/render/webGlRenderer.d.ts +7 -0
  59. package/dist/src/utils/visual/shape/circle.d.ts +11 -0
  60. package/dist/src/utils/visual/shape/ellipse.d.ts +12 -0
  61. package/dist/src/utils/visual/shape/index.d.ts +5 -0
  62. package/dist/src/utils/visual/shape/polygon.d.ts +25 -0
  63. package/dist/src/utils/visual/shape/rectangle.d.ts +22 -0
  64. package/dist/src/utils/visual/shape/shape.d.ts +7 -0
  65. package/dist/src/utils/visual/style/fill.d.ts +8 -0
  66. package/dist/src/utils/visual/style/index.d.ts +2 -0
  67. package/dist/src/utils/visual/style/line.d.ts +9 -0
  68. package/dist/src/utils/visual/types.d.ts +16 -0
  69. package/dist/src/utils/visual/vertex/application.d.ts +13 -0
  70. package/dist/src/utils/visual/vertex/container.d.ts +38 -0
  71. package/dist/src/utils/visual/vertex/index.d.ts +4 -0
  72. package/dist/src/utils/visual/vertex/point.d.ts +18 -0
  73. package/dist/src/utils/visual/vertex/vertex.d.ts +36 -0
  74. package/dist/src/vnode/chainDom.d.ts +47 -0
  75. package/dist/{wasm.js → src/wasm/index.js} +4 -8
  76. package/dist/test/websocket.test.d.ts +1 -0
  77. package/dist/test/writeFile.test.d.ts +1 -0
  78. package/dist/tsconfig.json +1 -0
  79. package/dist/umd/index.umd.cjs +1 -1
  80. package/dist/umd/ml/ml.umd.cjs +1 -1
  81. package/dist/umd/node/node.umd.cjs +1 -1
  82. package/dist/umd/react/react.umd.cjs +1 -1
  83. package/dist/umd/utils/utils.umd.cjs +1 -1
  84. package/dist/{ws-DoSbcWWZ.js → ws-CQA-0Bzm.js} +31 -53
  85. package/package.json +18 -16
  86. package/readme.md +5 -1
  87. package/typings.d.ts +4 -10
  88. package/dist/node.js +0 -27
  89. package/dist/react.js +0 -4
  90. package/dist/utils.js +0 -2092
  91. /package/dist/{test/file/writeFile.test.d.ts → src/cache/expires.d.ts} +0 -0
  92. /package/dist/test/{server/encodeUrl.test.d.ts → encodeUrl.test.d.ts} +0 -0
  93. /package/dist/test/{server/escapeHtml.test.d.ts → escapeHtml.test.d.ts} +0 -0
  94. /package/dist/test/{server/mimeType.test.d.ts → mimeType.test.d.ts} +0 -0
  95. /package/dist/test/{server/server.test.d.ts → server.test.d.ts} +0 -0
  96. /package/dist/test/{server/status.test.d.ts → status.test.d.ts} +0 -0
  97. /package/dist/test/{server/websocket.test.d.ts → totp.test.d.ts} +0 -0
@@ -1,12 +1,15 @@
1
1
  import { AudioRecorder } from '@/utils/audioRecorder';
2
2
  import { audioVendor, canvasVendor, webglVendor } from '@/utils/behavior';
3
+ import { TOTP } from '@/utils/totp/totp';
4
+ import { localStorageGetItem, localStorageSetItem } from '@/utils/storage';
3
5
  import { appendUrl, connection, createObjectURL, durationHandler, encodeUrl, getAllQueryString, getCookie, getCookieByName, getFrame, getHost, getPixelRatio, getWindow, imageRequest, networkSpeed, removeGhosting, requestUrlToBuffer, retain } from '@/utils/bom';
4
6
  import { Color, ColorScheme, FMT, Hsl, Hsla, Rgb, Rgba, componentToHex, hexToRgb, hsbToRgb, hslToRgb, hsvToHsl, hsvToRgb, hue2rgb, randomColor, rgbToHex, rgbToHsb, rgbToHsl } from '@/utils/color';
5
7
  import { compose } from '@/utils/compose';
6
8
  import { handleConsole } from '@/utils/console';
7
9
  import { debounce } from '@/utils/debounce';
8
- import { currentDevice, isClient, isMobile, isWeiXin } from '@/utils/device';
9
- import { addClassToElement, createDocumentFragment, escapeHtml, removeClassToElement } from '@/utils/dom';
10
+ import { currentDevice, isBangDevice, isClient, isMobile, isWeiXin } from '@/utils/device';
11
+ import type { CurrentDevice } from '@/utils/device';
12
+ import { Chain, addClassToElement, create, createDocumentFragment, escapeHtml, removeClassToElement, setFontSize2html } from '@/utils/dom';
10
13
  import { handleError } from '@/utils/error';
11
14
  import { convertImageToBase64, isImageSize } from '@/utils/img';
12
15
  import { memoize } from '@/utils/memoize';
@@ -15,7 +18,7 @@ import { Monitor } from '@/utils/monitor';
15
18
  import { getStatus, status } from '@/utils/network';
16
19
  import { noop } from '@/utils/noop';
17
20
  import { Mathjs, mathjs, perToNum, range } from '@/utils/number';
18
- import { filterObj, formatJson, merge, mergeExports, querystring, replaceOld } from '@/utils/obj';
21
+ import { filterObj, formatJson, merge, mergeExports, querystring, replaceOld, setAttributeByGlobal } from '@/utils/obj';
19
22
  import { getPerformance } from '@/utils/performance';
20
23
  import { QuestQueue } from '@/utils/queue';
21
24
  import { createData, report } from '@/utils/report';
@@ -25,4 +28,5 @@ import { changeHumpToLowerCase, clearBr, clearStr, isString, randomString, str2X
25
28
  import { SyncHook } from '@/utils/subscribe';
26
29
  import { generateThrottle, requestAnimation, throttle } from '@/utils/throttle';
27
30
  import { performanceTime, timeFormat, timestampToTime } from '@/utils/time';
28
- export { performanceTime, timeFormat, timestampToTime, generateThrottle, requestAnimation, throttle, SyncHook, changeHumpToLowerCase, clearBr, clearStr, isString, randomString, str2Xml, strParse, scriptOnLoad, handleFetchHook, createData, report, QuestQueue, noop, getPerformance, querystring, formatJson, filterObj, merge, replaceOld, mergeExports, perToNum, range, Mathjs, mathjs, getStatus, status, Monitor, MimeType, setMime, getMime, memoize, isImageSize, convertImageToBase64, handleError, addClassToElement, removeClassToElement, createDocumentFragment, escapeHtml, isClient, isWeiXin, isMobile, debounce, currentDevice, handleConsole, compose, Color, FMT, Hsl, Hsla, Rgb, Rgba, randomColor, hexToRgb, componentToHex, rgbToHex, rgbToHsl, hue2rgb, hslToRgb, rgbToHsb, hsbToRgb, hsvToRgb, hsvToHsl, ColorScheme, AudioRecorder, webglVendor, canvasVendor, audioVendor, retain, getCookie, requestUrlToBuffer, getPixelRatio, createObjectURL, getFrame, getHost, getAllQueryString, appendUrl, removeGhosting, getCookieByName, getWindow, connection, encodeUrl, imageRequest, durationHandler, networkSpeed, };
31
+ export { performanceTime, timeFormat, timestampToTime, generateThrottle, requestAnimation, throttle, SyncHook, changeHumpToLowerCase, clearBr, clearStr, isString, randomString, str2Xml, strParse, scriptOnLoad, handleFetchHook, createData, report, QuestQueue, noop, getPerformance, querystring, formatJson, filterObj, merge, replaceOld, mergeExports, perToNum, range, Mathjs, mathjs, getStatus, status, Monitor, MimeType, setMime, getMime, memoize, isImageSize, convertImageToBase64, handleError, addClassToElement, removeClassToElement, createDocumentFragment, escapeHtml, isClient, isWeiXin, isMobile, debounce, currentDevice, handleConsole, compose, Color, FMT, Hsl, Hsla, Rgb, Rgba, randomColor, hexToRgb, componentToHex, rgbToHex, rgbToHsl, hue2rgb, hslToRgb, rgbToHsb, hsbToRgb, hsvToRgb, hsvToHsl, ColorScheme, AudioRecorder, webglVendor, canvasVendor, audioVendor, retain, getCookie, requestUrlToBuffer, getPixelRatio, createObjectURL, getFrame, getHost, getAllQueryString, appendUrl, removeGhosting, getCookieByName, getWindow, connection, encodeUrl, imageRequest, durationHandler, networkSpeed, TOTP, isBangDevice, localStorageGetItem, localStorageSetItem, setAttributeByGlobal, setFontSize2html, Chain, create, };
32
+ export type { CurrentDevice };