sculp-js 0.0.2 → 1.0.0
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/LICENSE.md +1 -1
- package/README.md +22 -1
- package/lib/cjs/array.js +32 -55
- package/lib/cjs/async.js +3 -3
- package/lib/cjs/clipboard.js +3 -3
- package/lib/cjs/cookie.js +5 -5
- package/lib/cjs/date.js +142 -24
- package/lib/cjs/dom.js +24 -10
- package/lib/cjs/download.js +9 -9
- package/lib/cjs/easing.js +1 -1
- package/lib/cjs/file.js +5 -4
- package/lib/cjs/func.js +160 -0
- package/lib/cjs/index.js +28 -2
- package/lib/cjs/number.js +82 -0
- package/lib/cjs/object.js +13 -11
- package/lib/cjs/path.js +1 -1
- package/lib/cjs/qs.js +5 -5
- package/lib/cjs/random.js +72 -0
- package/lib/cjs/string.js +40 -7
- package/lib/cjs/type.js +12 -2
- package/lib/cjs/unique.js +83 -0
- package/lib/cjs/url.js +1 -1
- package/lib/cjs/watermark.js +8 -9
- package/lib/es/array.js +33 -55
- package/lib/es/async.js +3 -3
- package/lib/es/clipboard.js +3 -3
- package/lib/es/cookie.js +5 -5
- package/lib/es/date.js +139 -25
- package/lib/es/dom.js +24 -11
- package/lib/es/download.js +9 -9
- package/lib/es/easing.js +1 -1
- package/lib/es/file.js +5 -4
- package/lib/es/func.js +154 -0
- package/lib/es/index.js +10 -6
- package/lib/es/number.js +77 -0
- package/lib/es/object.js +12 -10
- package/lib/es/path.js +1 -1
- package/lib/es/qs.js +5 -5
- package/lib/es/random.js +67 -0
- package/lib/es/string.js +40 -8
- package/lib/es/type.js +12 -3
- package/lib/es/unique.js +79 -0
- package/lib/es/url.js +1 -1
- package/lib/es/watermark.js +8 -9
- package/lib/index.d.ts +254 -80
- package/lib/umd/index.js +637 -132
- package/package.json +36 -12
package/package.json
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sculp-js",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "js工具库",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
"build": "
|
|
7
|
+
"prepare": "husky install",
|
|
8
|
+
"build": "NODE_OPTIONS=--max-old-space-size=2048 rollup --bundleConfigAsCjs --config rollup.config.js",
|
|
9
|
+
"build:terser": "node scripts/build.js",
|
|
9
10
|
"test:unit": "jest",
|
|
10
11
|
"test": "jest --coverage",
|
|
11
|
-
"
|
|
12
|
+
"lint": "eslint ./src --ext .vue,.js,jsx,.ts,tsx",
|
|
13
|
+
"lint:fix": "eslint --fix ./src --ext .vue,.js,jsx,.ts,tsx",
|
|
14
|
+
"prettier": "prettier -c --write \"**/*.{vue,ts,js,jsx,css,less,scss,json}\"",
|
|
15
|
+
"release:patch": "standard-version --release-as patch",
|
|
16
|
+
"release:minor": "standard-version --release-as minor",
|
|
17
|
+
"release:major": "standard-version --release-as major",
|
|
18
|
+
"commit": "git-cz"
|
|
12
19
|
},
|
|
13
20
|
"author": "chendq <deqiaochen@foxmail.com>",
|
|
14
21
|
"main": "lib/cjs/index.js",
|
|
15
22
|
"module": "lib/es/index.js",
|
|
16
23
|
"browser": "lib/umd/index.js",
|
|
17
24
|
"types": "lib/index.d.ts",
|
|
18
|
-
"
|
|
25
|
+
"typings": "lib/index.d.ts",
|
|
19
26
|
"exports": {
|
|
20
27
|
".": {
|
|
21
28
|
"import": "./lib/es/index.js",
|
|
@@ -25,9 +32,7 @@
|
|
|
25
32
|
},
|
|
26
33
|
"sideEffects": false,
|
|
27
34
|
"files": [
|
|
28
|
-
"lib"
|
|
29
|
-
"lib/cjs",
|
|
30
|
-
"lib/index.d.ts"
|
|
35
|
+
"lib"
|
|
31
36
|
],
|
|
32
37
|
"keywords": [
|
|
33
38
|
"js-utils",
|
|
@@ -54,8 +59,10 @@
|
|
|
54
59
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
55
60
|
"@types/jest": "^29.5.5",
|
|
56
61
|
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
|
57
|
-
"@typescript-eslint/parser": "^6.
|
|
62
|
+
"@typescript-eslint/parser": "^6.8.0",
|
|
63
|
+
"commitizen": "^4.3.0",
|
|
58
64
|
"cross-env": "^7.0.3",
|
|
65
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
59
66
|
"eslint": "^8.51.0",
|
|
60
67
|
"eslint-config-prettier": "^9.0.0",
|
|
61
68
|
"eslint-config-standard": "^17.1.0",
|
|
@@ -73,11 +80,28 @@
|
|
|
73
80
|
"rollup-plugin-clear": "^2.0.7",
|
|
74
81
|
"rollup-plugin-dts": "^6.1.0",
|
|
75
82
|
"rollup-plugin-subpath-externals": "^3.4.0",
|
|
76
|
-
"
|
|
83
|
+
"standard-version": "^9.5.0",
|
|
84
|
+
"stylelint": "14.16",
|
|
77
85
|
"stylelint-config-css-modules": "^4.3.0",
|
|
78
86
|
"stylelint-config-prettier": "^9.0.5",
|
|
79
|
-
"stylelint-config-standard": "^
|
|
87
|
+
"stylelint-config-standard": "^20.0.0",
|
|
80
88
|
"ts-loader": "^9.5.0",
|
|
81
|
-
"typescript": "
|
|
89
|
+
"typescript": "5.0.4"
|
|
90
|
+
},
|
|
91
|
+
"config": {
|
|
92
|
+
"commitizen": {
|
|
93
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"lint-staged": {
|
|
97
|
+
"*.[tj]s?(x)": [
|
|
98
|
+
"eslint --fix"
|
|
99
|
+
],
|
|
100
|
+
"*.vue": [
|
|
101
|
+
"eslint --fix"
|
|
102
|
+
],
|
|
103
|
+
"*.{css,less,scss,json,md}": [
|
|
104
|
+
"prettier --write"
|
|
105
|
+
]
|
|
82
106
|
}
|
|
83
107
|
}
|