go-core 0.1.60 → 0.1.64

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 CHANGED
@@ -1,22 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 ws
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
1
+ MIT License
2
+
3
+ Copyright (c) 2022 ws
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md CHANGED
@@ -1,22 +1,22 @@
1
- <!--
2
- * @Author: your name
3
- * @Date: 2021-12-13 21:08:55
4
- * @LastEditTime: 2022-05-09 14:01:36
5
- * @LastEditors: your name
6
- * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7
- * @FilePath: /配置平台/tscore/code/README.md
8
- -->
9
-
10
-
11
- ### 生成补丁
12
-
13
- 修改dom-to-image生成图片加载再次加载所有字体的问题
14
-
15
- 生成新补丁方式
16
- ```js
17
- # npm 方式
18
- npx patch-package dom-to-image
19
-
20
- # yarn 方式
21
- yarn patch-package dom-to-image
22
- ```
1
+ <!--
2
+ * @Author: your name
3
+ * @Date: 2021-12-13 21:08:55
4
+ * @LastEditTime: 2022-05-09 14:01:36
5
+ * @LastEditors: your name
6
+ * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7
+ * @FilePath: /配置平台/tscore/code/README.md
8
+ -->
9
+
10
+
11
+ ### 生成补丁
12
+
13
+ 修改dom-to-image生成图片加载再次加载所有字体的问题
14
+
15
+ 生成新补丁方式
16
+ ```js
17
+ # npm 方式
18
+ npx patch-package dom-to-image
19
+
20
+ # yarn 方式
21
+ yarn patch-package dom-to-image
22
+ ```
package/package.json CHANGED
@@ -1,153 +1,161 @@
1
- {
2
- "name": "go-core",
3
- "version": "0.1.60",
4
- "description": "anov-go 配置平台通信库",
5
- "keywords": [],
6
- "main": "dist/code.umd.js",
7
- "module": "dist/code.es5.js",
8
- "typings": "dist/types/code.d.ts",
9
- "files": [
10
- "dist/code.umd.js",
11
- "dist/code.es5.js"
12
- ],
13
- "author": "ws",
14
- "repository": {
15
- "type": "git",
16
- "url": "https://gitee.com/wangdashuai/go-core.git"
17
- },
18
- "license": "MIT",
19
- "engines": {
20
- "node": ">=6.0.0"
21
- },
22
- "scripts": {
23
- "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
24
- "clearyarn": "rimraf dist",
25
- "build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
26
- "start": "rollup -c rollup.config.ts -w",
27
- "test": "jest --coverage",
28
- "test:watch": "jest --coverage --watch",
29
- "test:prod": "npm run lint && npm run test -- --no-cache",
30
- "deploy-docs": "ts-node tools/gh-pages-publish",
31
- "report-coverage": "cat ./coverage/lcov.info | coveralls",
32
- "commit": "git-cz",
33
- "semantic-release": "semantic-release",
34
- "semantic-release-prepare": "ts-node tools/semantic-release-prepare",
35
- "precommit": "lint-staged",
36
- "travis-deploy-once": "travis-deploy-once",
37
- "prepush": "npm run test:prod && npm run build",
38
- "commitmsg": "commitlint -E HUSKY_GIT_PARAMS",
39
- "postinstall": "patch-package"
40
- },
41
- "lint-staged": {
42
- "{src,test}/**/*.ts": [
43
- "prettier --write",
44
- "git add"
45
- ]
46
- },
47
- "config": {
48
- "commitizen": {
49
- "path": "node_modules/cz-conventional-changelog"
50
- }
51
- },
52
- "jest": {
53
- "transform": {
54
- ".(ts|tsx)": "ts-jest"
55
- },
56
- "testEnvironment": "node",
57
- "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
58
- "moduleFileExtensions": [
59
- "ts",
60
- "tsx",
61
- "js"
62
- ],
63
- "coveragePathIgnorePatterns": [
64
- "/node_modules/",
65
- "/test/"
66
- ],
67
- "coverageThreshold": {
68
- "global": {
69
- "branches": 90,
70
- "functions": 95,
71
- "lines": 95,
72
- "statements": 95
73
- }
74
- },
75
- "collectCoverageFrom": [
76
- "src/*.{jsx}"
77
- ]
78
- },
79
- "prettier": {
80
- "semi": false,
81
- "singleQuote": true
82
- },
83
- "commitlint": {
84
- "extends": [
85
- "@commitlint/config-conventional"
86
- ]
87
- },
88
- "devDependencies": {
89
- "@commitlint/cli": "^7.1.2",
90
- "@commitlint/config-conventional": "^7.1.2",
91
- "@types/crypto-js": "^4.1.1",
92
- "@types/dom-to-image": "^2.6.4",
93
- "@types/esprima": "^4.0.3",
94
- "@types/estraverse": "^5.1.2",
95
- "@types/jest": "^23.3.2",
96
- "@types/lodash": "^4.14.186",
97
- "@types/node": "^10.11.0",
98
- "colors": "^1.3.2",
99
- "commitizen": "^3.0.0",
100
- "coveralls": "^3.0.2",
101
- "cross-env": "^5.2.0",
102
- "cz-conventional-changelog": "^2.1.0",
103
- "jest": "^23.6.0",
104
- "jest-config": "^23.6.0",
105
- "lint-staged": "^8.0.0",
106
- "lodash.camelcase": "^4.3.0",
107
- "prettier": "^1.14.3",
108
- "prompt": "^1.3.0",
109
- "replace-in-file": "^3.4.2",
110
- "rimraf": "^2.6.2",
111
- "rollup": "^2.79.1",
112
- "rollup-plugin-cleanup": "^3.2.1",
113
- "rollup-plugin-commonjs": "^10.1.0",
114
- "rollup-plugin-json": "^4.0.0",
115
- "rollup-plugin-node-resolve": "^3.4.0",
116
- "rollup-plugin-sourcemaps": "^0.4.2",
117
- "rollup-plugin-terser": "^7.0.2",
118
- "rollup-plugin-typescript2": "^0.34.1",
119
- "semantic-release": "^15.9.16",
120
- "shelljs": "^0.8.5",
121
- "travis-deploy-once": "^5.0.9",
122
- "ts-jest": "^23.10.2",
123
- "ts-node": "^10.9.1",
124
- "tslint": "^5.11.0",
125
- "tslint-config-prettier": "^1.15.0",
126
- "tslint-config-standard": "^8.0.1",
127
- "typedoc": "^0.23.15",
128
- "typescript": "^4.8.4"
129
- },
130
- "dependencies": {
131
- "@pansy/watermark": "^2.1.0",
132
- "@types/file-saver": "^2.0.4",
133
- "@types/moment": "^2.13.0",
134
- "axios": "^0.24.0",
135
- "crypto-js": "^4.1.1",
136
- "dom-to-image": "^2.6.0",
137
- "esprima": "^4.0.1",
138
- "estraverse": "^5.3.0",
139
- "file-saver": "^2.0.5",
140
- "gsap": "^3.11.3",
141
- "immer": "^10.0.2",
142
- "indexdb-store": "^1.0.1",
143
- "jsdoc": "^3.6.11",
144
- "jsencrypt": "^3.2.1",
145
- "lodash": "^4.17.21",
146
- "mitt": "^3.0.0",
147
- "moment": "^2.29.4",
148
- "patch-package": "^6.5.0",
149
- "rollup-plugin-node-builtins": "^2.1.2",
150
- "rollup-plugin-node-globals": "^1.4.0",
151
- "tslib": "^2.4.0"
152
- }
153
- }
1
+ {
2
+ "name": "go-core",
3
+ "version": "0.1.64",
4
+ "description": "ANOV-GO配置平台核心库",
5
+ "keywords": [
6
+ "anov",
7
+ "anov-go",
8
+ "core"
9
+ ],
10
+ "main": "dist/code.umd.js",
11
+ "module": "dist/code.es5.js",
12
+ "typings": "dist/types/code.d.ts",
13
+ "files": [
14
+ "dist/code.umd.js",
15
+ "dist/code.es5.js"
16
+ ],
17
+ "author": "ws",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://gitee.com/wangdashuai/go-core.git"
21
+ },
22
+ "license": "MIT",
23
+ "engines": {
24
+ "node": ">=6.0.0"
25
+ },
26
+ "scripts": {
27
+ "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
28
+ "clearyarn": "rimraf dist",
29
+ "build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
30
+ "start": "rollup -c rollup.config.ts -w",
31
+ "test": "jest --coverage",
32
+ "test:watch": "jest --coverage --watch",
33
+ "test:prod": "npm run lint && npm run test -- --no-cache",
34
+ "deploy-docs": "ts-node tools/gh-pages-publish",
35
+ "report-coverage": "cat ./coverage/lcov.info | coveralls",
36
+ "commit": "git-cz",
37
+ "semantic-release": "semantic-release",
38
+ "semantic-release-prepare": "ts-node tools/semantic-release-prepare",
39
+ "precommit": "lint-staged",
40
+ "travis-deploy-once": "travis-deploy-once",
41
+ "prepush": "npm run test:prod && npm run build",
42
+ "commitmsg": "commitlint -E HUSKY_GIT_PARAMS",
43
+ "postinstall": "patch-package"
44
+ },
45
+ "lint-staged": {
46
+ "{src,test}/**/*.ts": [
47
+ "prettier --write",
48
+ "git add"
49
+ ]
50
+ },
51
+ "config": {
52
+ "commitizen": {
53
+ "path": "node_modules/cz-conventional-changelog"
54
+ }
55
+ },
56
+ "publishConfig": {
57
+ "access": "public",
58
+ "registry": "https://registry.npmjs.org/"
59
+ },
60
+ "jest": {
61
+ "transform": {
62
+ ".(ts|tsx)": "ts-jest"
63
+ },
64
+ "testEnvironment": "node",
65
+ "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
66
+ "moduleFileExtensions": [
67
+ "ts",
68
+ "tsx",
69
+ "js"
70
+ ],
71
+ "coveragePathIgnorePatterns": [
72
+ "/node_modules/",
73
+ "/test/"
74
+ ],
75
+ "coverageThreshold": {
76
+ "global": {
77
+ "branches": 90,
78
+ "functions": 95,
79
+ "lines": 95,
80
+ "statements": 95
81
+ }
82
+ },
83
+ "collectCoverageFrom": [
84
+ "src/*.{jsx}"
85
+ ]
86
+ },
87
+ "prettier": {
88
+ "semi": false,
89
+ "singleQuote": true
90
+ },
91
+ "commitlint": {
92
+ "extends": [
93
+ "@commitlint/config-conventional"
94
+ ]
95
+ },
96
+ "devDependencies": {
97
+ "@commitlint/cli": "^7.1.2",
98
+ "@commitlint/config-conventional": "^7.1.2",
99
+ "@types/crypto-js": "^4.1.1",
100
+ "@types/dom-to-image": "^2.6.4",
101
+ "@types/esprima": "^4.0.3",
102
+ "@types/estraverse": "^5.1.2",
103
+ "@types/jest": "^23.3.2",
104
+ "@types/lodash": "^4.14.186",
105
+ "@types/node": "^10.11.0",
106
+ "colors": "^1.3.2",
107
+ "commitizen": "^3.0.0",
108
+ "coveralls": "^3.0.2",
109
+ "cross-env": "^5.2.0",
110
+ "cz-conventional-changelog": "^2.1.0",
111
+ "jest": "^23.6.0",
112
+ "jest-config": "^23.6.0",
113
+ "lint-staged": "^8.0.0",
114
+ "lodash.camelcase": "^4.3.0",
115
+ "prettier": "^1.14.3",
116
+ "prompt": "^1.3.0",
117
+ "replace-in-file": "^3.4.2",
118
+ "rimraf": "^2.6.2",
119
+ "rollup": "^2.79.1",
120
+ "rollup-plugin-cleanup": "^3.2.1",
121
+ "rollup-plugin-commonjs": "^10.1.0",
122
+ "rollup-plugin-json": "^4.0.0",
123
+ "rollup-plugin-node-resolve": "^3.4.0",
124
+ "rollup-plugin-sourcemaps": "^0.4.2",
125
+ "rollup-plugin-terser": "^7.0.2",
126
+ "rollup-plugin-typescript2": "^0.34.1",
127
+ "semantic-release": "^15.9.16",
128
+ "shelljs": "^0.8.5",
129
+ "travis-deploy-once": "^5.0.9",
130
+ "ts-jest": "^23.10.2",
131
+ "ts-node": "^10.9.1",
132
+ "tslint": "^5.11.0",
133
+ "tslint-config-prettier": "^1.15.0",
134
+ "tslint-config-standard": "^8.0.1",
135
+ "typedoc": "^0.23.15",
136
+ "typescript": "^4.8.4"
137
+ },
138
+ "dependencies": {
139
+ "@pansy/watermark": "^2.1.0",
140
+ "@types/file-saver": "^2.0.4",
141
+ "@types/moment": "^2.13.0",
142
+ "axios": "^0.24.0",
143
+ "crypto-js": "^4.1.1",
144
+ "dom-to-image": "^2.6.0",
145
+ "esprima": "^4.0.1",
146
+ "estraverse": "^5.3.0",
147
+ "file-saver": "^2.0.5",
148
+ "gsap": "^3.11.3",
149
+ "immer": "^10.0.2",
150
+ "indexdb-store": "^1.0.1",
151
+ "jsdoc": "^3.6.11",
152
+ "jsencrypt": "^3.2.1",
153
+ "lodash": "^4.17.21",
154
+ "mitt": "^3.0.0",
155
+ "moment": "^2.29.4",
156
+ "patch-package": "^6.5.0",
157
+ "rollup-plugin-node-builtins": "^2.1.2",
158
+ "rollup-plugin-node-globals": "^1.4.0",
159
+ "tslib": "^2.4.0"
160
+ }
161
+ }