lyb-js 1.2.7 → 1.2.10

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 (85) hide show
  1. package/README.md +4 -4
  2. package/package.json +13 -26
  3. /package/{dist/Base → Base}/LibJsGetDataType.d.ts +0 -0
  4. /package/{dist/Base → Base}/LibJsGetDataType.js +0 -0
  5. /package/{dist/Base → Base}/LibJsPromiseTimeout.d.ts +0 -0
  6. /package/{dist/Base → Base}/LibJsPromiseTimeout.js +0 -0
  7. /package/{dist/Browser → Browser}/LibJsColorConsole.d.ts +0 -0
  8. /package/{dist/Browser → Browser}/LibJsColorConsole.js +0 -0
  9. /package/{dist/Browser → Browser}/LibJsIsMobile.d.ts +0 -0
  10. /package/{dist/Browser → Browser}/LibJsIsMobile.js +0 -0
  11. /package/{dist/Browser → Browser}/LibJsIsPad.d.ts +0 -0
  12. /package/{dist/Browser → Browser}/LibJsIsPad.js +0 -0
  13. /package/{dist/Browser → Browser}/LibJsObjToUrlParams.d.ts +0 -0
  14. /package/{dist/Browser → Browser}/LibJsObjToUrlParams.js +0 -0
  15. /package/{dist/Browser → Browser}/LibJsPathParams.d.ts +0 -0
  16. /package/{dist/Browser → Browser}/LibJsPathParams.js +0 -0
  17. /package/{dist/Browser → Browser}/LibJsSetTitleIcon.d.ts +0 -0
  18. /package/{dist/Browser → Browser}/LibJsSetTitleIcon.js +0 -0
  19. /package/{dist/Browser → Browser}/LibJsTagTitleTip.d.ts +0 -0
  20. /package/{dist/Browser → Browser}/LibJsTagTitleTip.js +0 -0
  21. /package/{dist/Data → Data}/LibJsChunkArray.d.ts +0 -0
  22. /package/{dist/Data → Data}/LibJsChunkArray.js +0 -0
  23. /package/{dist/Data → Data}/LibJsDeepJSONParse.d.ts +0 -0
  24. /package/{dist/Data → Data}/LibJsDeepJSONParse.js +0 -0
  25. /package/{dist/Data → Data}/LibJsGroupArrayByKey.d.ts +0 -0
  26. /package/{dist/Data → Data}/LibJsGroupArrayByKey.js +0 -0
  27. /package/{dist/Data → Data}/LibJsMatchEmail.d.ts +0 -0
  28. /package/{dist/Data → Data}/LibJsMatchEmail.js +0 -0
  29. /package/{dist/Data → Data}/LibJsShuffleArray.d.ts +0 -0
  30. /package/{dist/Data → Data}/LibJsShuffleArray.js +0 -0
  31. /package/{dist/Data → Data}/LibJsStepArray.d.ts +0 -0
  32. /package/{dist/Data → Data}/LibJsStepArray.js +0 -0
  33. /package/{dist/Data → Data}/LibReverseArrayFromIndex.d.ts +0 -0
  34. /package/{dist/Data → Data}/LibReverseArrayFromIndex.js +0 -0
  35. /package/{dist/File → File}/LibJsDownloadImageLink.d.ts +0 -0
  36. /package/{dist/File → File}/LibJsDownloadImageLink.js +0 -0
  37. /package/{dist/File → File}/LibJsImageOptimizer.d.ts +0 -0
  38. /package/{dist/File → File}/LibJsImageOptimizer.js +0 -0
  39. /package/{dist/File → File}/LibJsSaveJson.d.ts +0 -0
  40. /package/{dist/File → File}/LibJsSaveJson.js +0 -0
  41. /package/{dist/Formatter → Formatter}/LibJsFormatterByte.d.ts +0 -0
  42. /package/{dist/Formatter → Formatter}/LibJsFormatterByte.js +0 -0
  43. /package/{dist/Formatter → Formatter}/LibJsMaskPhoneNumber.d.ts +0 -0
  44. /package/{dist/Formatter → Formatter}/LibJsMaskPhoneNumber.js +0 -0
  45. /package/{dist/Formatter → Formatter}/LibJsNumComma.d.ts +0 -0
  46. /package/{dist/Formatter → Formatter}/LibJsNumComma.js +0 -0
  47. /package/{dist/Formatter → Formatter}/LibJsNumberUnit.d.ts +0 -0
  48. /package/{dist/Formatter → Formatter}/LibJsNumberUnit.js +0 -0
  49. /package/{dist/Formatter → Formatter}/LibJsSecondsFormatterChinese.d.ts +0 -0
  50. /package/{dist/Formatter → Formatter}/LibJsSecondsFormatterChinese.js +0 -0
  51. /package/{dist/Math → Math}/LibJsCalculateExpression.d.ts +0 -0
  52. /package/{dist/Math → Math}/LibJsCalculateExpression.js +0 -0
  53. /package/{dist/Math → Math}/LibJsConvertAngle.d.ts +0 -0
  54. /package/{dist/Math → Math}/LibJsConvertAngle.js +0 -0
  55. /package/{dist/Math → Math}/LibJsCoordsAngle.d.ts +0 -0
  56. /package/{dist/Math → Math}/LibJsCoordsAngle.js +0 -0
  57. /package/{dist/Math → Math}/LibJsCoordsDistance.d.ts +0 -0
  58. /package/{dist/Math → Math}/LibJsCoordsDistance.js +0 -0
  59. /package/{dist/Math → Math}/LibJsDecimal.d.ts +0 -0
  60. /package/{dist/Math → Math}/LibJsDecimal.js +0 -0
  61. /package/{dist/Misc → Misc}/LibJsNumberStepper.d.ts +0 -0
  62. /package/{dist/Misc → Misc}/LibJsNumberStepper.js +0 -0
  63. /package/{dist/Misc → Misc}/LibJsRegFormValidate.d.ts +0 -0
  64. /package/{dist/Misc → Misc}/LibJsRegFormValidate.js +0 -0
  65. /package/{dist/Misc → Misc}/LibJsRetryRequest.d.ts +0 -0
  66. /package/{dist/Misc → Misc}/LibJsRetryRequest.js +0 -0
  67. /package/{dist/Random → Random}/LibJsProbabilityResult.d.ts +0 -0
  68. /package/{dist/Random → Random}/LibJsProbabilityResult.js +0 -0
  69. /package/{dist/Random → Random}/LibJsRandom.d.ts +0 -0
  70. /package/{dist/Random → Random}/LibJsRandom.js +0 -0
  71. /package/{dist/Random → Random}/LibJsRandomColor.d.ts +0 -0
  72. /package/{dist/Random → Random}/LibJsRandomColor.js +0 -0
  73. /package/{dist/Random → Random}/LibJsUniqueRandomNumbers.d.ts +0 -0
  74. /package/{dist/Random → Random}/LibJsUniqueRandomNumbers.js +0 -0
  75. /package/{dist/Time → Time}/LibJsSameTimeCheck.d.ts +0 -0
  76. /package/{dist/Time → Time}/LibJsSameTimeCheck.js +0 -0
  77. /package/{dist/Time → Time}/LibJsTimeAgo.d.ts +0 -0
  78. /package/{dist/Time → Time}/LibJsTimeAgo.js +0 -0
  79. /package/{dist/Time → Time}/LibJsTimeGreeting.d.ts +0 -0
  80. /package/{dist/Time → Time}/LibJsTimeGreeting.js +0 -0
  81. /package/{dist/index.d.ts → index.d.ts} +0 -0
  82. /package/{dist/index.js → index.js} +0 -0
  83. /package/{dist/libJs.d.ts → libJs.d.ts} +0 -0
  84. /package/{dist/libJs.js → libJs.js} +0 -0
  85. /package/{umd/lyb.js → lyb.js} +0 -0
package/README.md CHANGED
@@ -20,7 +20,7 @@ console.log(t); //"string"
20
20
  > 按需引入,打包时就不会把整个库打进去
21
21
 
22
22
  ```ts
23
- import { libJsGetDataType } from "lyb-js/dist/Base/LibJsGetDataType";
23
+ import { libJsGetDataType } from "lyb-js/Base/LibJsGetDataType";
24
24
 
25
25
  const t = libJsGetDataType("Hellow World!");
26
26
  console.log(t); //"string"
@@ -30,8 +30,8 @@ console.log(t); //"string"
30
30
 
31
31
  ```ts
32
32
  //你的公共工具函数文件 utils.ts
33
- export * from "lyb-js/dist/Base/LibJsGetDataType";
34
- export * from "lyb-js/dist/Math/LibJsCalculateExpression";
33
+ export * from "lyb-js/Base/LibJsGetDataType";
34
+ export * from "lyb-js/Math/LibJsCalculateExpression";
35
35
 
36
36
  //你的项目文件 index.ts
37
37
  import { libJsGetDataType,libJsCalculateExpression } from "utils";
@@ -48,7 +48,7 @@ conosle.log(v); //0.6
48
48
  > 你可以借助 `script` 标签直接通过 `CDN` 来使用 `LibJs`
49
49
 
50
50
  ```html
51
- <script src="https://unpkg.com/lyb-js/umd/lyb.js"></script>
51
+ <script src="https://unpkg.com/lyb-js/lyb.js"></script>
52
52
 
53
53
  <script>
54
54
  const t = LibJs.Base.libJsGetDataType("Hellow World!");
package/package.json CHANGED
@@ -1,32 +1,23 @@
1
1
  {
2
2
  "name": "lyb-js",
3
- "version": "1.2.7",
3
+ "version": "1.2.10",
4
4
  "description": "自用JS方法库",
5
5
  "license": "ISC",
6
6
  "type": "module",
7
- "types": "./dist/index.d.ts",
8
- "main": "./dist/index.js",
9
- "scripts": {
10
- "build": "vite build & tsc"
11
- },
7
+ "types": "./index.d.ts",
8
+ "main": "./index.js",
12
9
  "exports": {
13
- ".": "./dist/index.js",
14
- "./Base/*": "./dist/Base/*",
15
- "./Browser/*": "./dist/Browser/*",
16
- "./Data/*": "./dist/Data/*",
17
- "./File/*": "./dist/File/*",
18
- "./Formatter/*": "./dist/Formatter/*",
19
- "./Math/*": "./dist/Math/*",
20
- "./Misc/*": "./dist/Misc/*",
21
- "./Random/*": "./dist/Random/*",
22
- "./Time/*": "./dist/Time/*"
10
+ ".": "./index.js",
11
+ "./Base/*": "./Base/*",
12
+ "./Browser/*": "./Browser/*",
13
+ "./Data/*": "./Data/*",
14
+ "./File/*": "./File/*",
15
+ "./Formatter/*": "./Formatter/*",
16
+ "./Math/*": "./Math/*",
17
+ "./Misc/*": "./Misc/*",
18
+ "./Random/*": "./Random/*",
19
+ "./Time/*": "./Time/*"
23
20
  },
24
- "files": [
25
- "dist",
26
- "README.md",
27
- "package.json",
28
- "umd"
29
- ],
30
21
  "author": {
31
22
  "name": "冷弋白",
32
23
  "email": "1329670984@qq.com"
@@ -41,10 +32,6 @@
41
32
  "lyb",
42
33
  "lyb-js"
43
34
  ],
44
- "devDependencies": {
45
- "@types/node": "^22.10.5",
46
- "typescript": "^5.7.2"
47
- },
48
35
  "dependencies": {
49
36
  "dayjs": "^1.11.13",
50
37
  "decimal.js": "^10.4.3",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes