piclist 2.3.4 → 2.4.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/package.json CHANGED
@@ -1,16 +1,26 @@
1
1
  {
2
2
  "name": "piclist",
3
- "version": "2.3.4",
3
+ "version": "2.4.0",
4
4
  "description": "Modified PicGo core, A tool for picture uploading",
5
- "author": {
6
- "name": "Kuingsmile",
7
- "email": "pkukuing@gmail.com"
8
- },
5
+ "keywords": [
6
+ "picture",
7
+ "upload",
8
+ "util"
9
+ ],
9
10
  "homepage": "https://piclist.cn",
10
11
  "bugs": {
11
12
  "url": "https://github.com/Kuingsmile/PicList-core/issues",
12
13
  "email": "pkukuing@gmail.com"
13
14
  },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/Kuingsmile/PicList-Core.git"
18
+ },
19
+ "license": "MIT",
20
+ "author": {
21
+ "name": "Kuingsmile",
22
+ "email": "pkukuing@gmail.com"
23
+ },
14
24
  "type": "module",
15
25
  "main": "dist/index.js",
16
26
  "module": "dist/index.js",
@@ -19,26 +29,26 @@
19
29
  "picgo": "./bin/picgo",
20
30
  "picgo-server": "./bin/picgo-server"
21
31
  },
22
- "publishConfig": {
23
- "access": "public"
24
- },
25
32
  "scripts": {
26
- "start": "node ./bin/picgo",
27
- "server": "node ./bin/picgo-server",
28
- "lint": "eslint",
29
- "lint:fix": "eslint src/**/*.ts --fix",
30
- "lint:dpdm": "dpdm -T --tsconfig ./tsconfig.json --no-tree --no-warning --exit-code circular:1 src/index.ts",
31
- "dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
32
33
  "build": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js",
33
34
  "cz": "git-cz",
35
+ "dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
36
+ "lint": "eslint",
37
+ "lint:dpdm": "dpdm -T --tsconfig ./tsconfig.json --no-tree --no-warning --exit-code circular:1 src/index.ts",
38
+ "lint:fix": "eslint src/**/*.ts --fix",
39
+ "publish:npm": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js && npm publish",
34
40
  "release": "bump-version",
35
- "publish:npm": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js && npm publish"
41
+ "server": "node ./bin/picgo-server",
42
+ "start": "node ./bin/picgo",
43
+ "test": "vitest run",
44
+ "test:coverage": "vitest run --coverage",
45
+ "test:watch": "vitest"
46
+ },
47
+ "commitlint": {
48
+ "extends": [
49
+ "./node_modules/node-bump-version/dist/commitlint-node/index.js"
50
+ ]
36
51
  },
37
- "keywords": [
38
- "picture",
39
- "upload",
40
- "util"
41
- ],
42
52
  "config": {
43
53
  "commitizen": {
44
54
  "path": "./node_modules/cz-customizable"
@@ -47,76 +57,35 @@
47
57
  "config": "./node_modules/node-bump-version/.cz-config.cjs"
48
58
  }
49
59
  },
50
- "commitlint": {
51
- "extends": [
52
- "./node_modules/node-bump-version/dist/commitlint-node/index.js"
53
- ]
54
- },
55
- "license": "MIT",
56
- "devDependencies": {
57
- "@eslint/js": "^9.39.2",
58
- "@rollup/plugin-commonjs": "^29.0.0",
59
- "@rollup/plugin-json": "^6.1.0",
60
- "@rollup/plugin-node-resolve": "^16.0.3",
61
- "@rollup/plugin-replace": "^6.0.3",
62
- "@rollup/plugin-terser": "^0.4.4",
63
- "@rollup/plugin-typescript": "^12.3.0",
64
- "@types/cross-spawn": "^6.0.6",
65
- "@types/fs-extra": "^11.0.4",
66
- "@types/heic-convert": "^2.1.0",
67
- "@types/image-size": "^0.8.0",
68
- "@types/inquirer": "^0.0.42",
69
- "@types/js-yaml": "^4.0.9",
70
- "@types/lodash-es": "^4.17.12",
71
- "@types/node": "24.10.0",
72
- "@types/resolve": "^1.20.6",
73
- "@types/text-to-svg": "^3.1.4",
74
- "@types/tunnel": "^0.0.7",
75
- "cross-env": "^10.1.0",
76
- "dpdm": "^3.14.0",
77
- "eslint": "^9.39.2",
78
- "eslint-config-prettier": "^10.1.8",
79
- "eslint-plugin-jsonc": "^2.21.0",
80
- "eslint-plugin-prettier": "^5.5.4",
81
- "eslint-plugin-simple-import-sort": "^12.1.1",
82
- "eslint-plugin-unicorn": "^62.0.0",
83
- "husky": "^9.1.7",
84
- "jsonc-eslint-parser": "^2.4.2",
85
- "node-bump-version": "^2.0.0",
86
- "prettier": "^3.7.4",
87
- "rimraf": "^6.1.2",
88
- "rollup": "^4.55.1",
89
- "rollup-plugin-copy": "^3.5.0",
90
- "rollup-plugin-string": "^3.0.0",
91
- "typescript": "^5.8.3",
92
- "typescript-eslint": "^8.52.0"
60
+ "resolutions": {
61
+ "baseline-browser-mapping": "^2.9.13"
93
62
  },
94
63
  "dependencies": {
95
- "@aws-sdk/client-s3": "3.965.0",
96
- "@aws-sdk/lib-storage": "3.965.0",
97
- "@aws-sdk/s3-request-presigner": "3.965.0",
64
+ "@aws-sdk/client-s3": "3.1042.0",
65
+ "@aws-sdk/lib-storage": "3.1042.0",
66
+ "@aws-sdk/s3-request-presigner": "3.1042.0",
98
67
  "@piclist/i18n": "^2.0.0",
99
68
  "@piclist/store": "^3.0.1",
100
- "@smithy/node-http-handler": "4.4.7",
101
- "axios": "^1.13.2",
69
+ "@smithy/node-http-handler": "4.6.1",
70
+ "axios": "^1.16.0",
102
71
  "chalk": "^5.6.2",
103
72
  "commander": "^8.1.0",
104
73
  "cross-spawn": "^7.0.6",
105
- "dayjs": "^1.11.19",
106
- "dotenv": "^17.2.3",
107
- "file-type": "21.3.0",
74
+ "dayjs": "^1.11.20",
75
+ "dotenv": "^17.4.2",
76
+ "file-type": "22.0.1",
108
77
  "form-data": "^4.0.5",
109
- "fs-extra": "^11.3.3",
78
+ "fs-extra": "^11.3.4",
110
79
  "heic-convert": "^2.1.0",
111
80
  "hpagent": "1.2.0",
112
81
  "image-size": "^2.0.2",
113
82
  "inquirer": "^6.0.0",
114
83
  "is-wsl": "^3.1.0",
115
84
  "js-yaml": "^4.1.1",
116
- "lodash-es": "^4.17.22",
85
+ "lodash-es": "^4.18.1",
117
86
  "mime": "4.1.0",
118
87
  "minimist": "^1.2.8",
119
- "multer": "^2.0.2",
88
+ "multer": "^2.1.1",
120
89
  "node-ssh-no-cpu-features": "^2.0.0",
121
90
  "qiniu": "7.14.0",
122
91
  "resolve": "^1.22.11",
@@ -124,17 +93,55 @@
124
93
  "text-to-svg": "^3.1.5",
125
94
  "tunnel": "^0.0.6",
126
95
  "uuid": "^13.0.0",
127
- "webdav": "^5.8.0"
96
+ "webdav": "^5.10.0"
128
97
  },
129
- "repository": {
130
- "type": "git",
131
- "url": "git+https://github.com/Kuingsmile/PicList-Core.git"
98
+ "devDependencies": {
99
+ "@eslint/js": "^10.0.1",
100
+ "@rollup/plugin-commonjs": "^29.0.2",
101
+ "@rollup/plugin-json": "^6.1.0",
102
+ "@rollup/plugin-node-resolve": "^16.0.3",
103
+ "@rollup/plugin-replace": "^6.0.3",
104
+ "@rollup/plugin-terser": "^1.0.0",
105
+ "@rollup/plugin-typescript": "^12.3.0",
106
+ "@types/cross-spawn": "^6.0.6",
107
+ "@types/fs-extra": "^11.0.4",
108
+ "@types/heic-convert": "^2.1.0",
109
+ "@types/inquirer": "^0.0.42",
110
+ "@types/js-yaml": "^4.0.9",
111
+ "@types/lodash-es": "^4.17.12",
112
+ "@types/node": "25.5.0",
113
+ "@types/resolve": "^1.20.6",
114
+ "@types/text-to-svg": "^3.1.4",
115
+ "@types/tunnel": "^0.0.7",
116
+ "@vitest/coverage-v8": "^4.1.0",
117
+ "cross-env": "^10.1.0",
118
+ "dpdm": "^4.0.1",
119
+ "eslint": "^10.3.0",
120
+ "eslint-config-prettier": "^10.1.8",
121
+ "eslint-plugin-jsonc": "^3.1.2",
122
+ "eslint-plugin-prettier": "^5.5.5",
123
+ "eslint-plugin-simple-import-sort": "^13.0.0",
124
+ "eslint-plugin-unicorn": "^64.0.0",
125
+ "husky": "^9.1.7",
126
+ "jsonc-eslint-parser": "^3.1.0",
127
+ "node-bump-version": "^2.0.0",
128
+ "prettier": "^3.8.1",
129
+ "rimraf": "^6.1.3",
130
+ "rollup": "^4.60.0",
131
+ "rollup-plugin-copy": "^3.5.0",
132
+ "rollup-plugin-string": "^3.0.0",
133
+ "typescript": "^6.0.3",
134
+ "typescript-eslint": "^8.59.2",
135
+ "vitest": "^4.1.0"
136
+ },
137
+ "engines": {
138
+ "node": ">=22.0.0"
139
+ },
140
+ "publishConfig": {
141
+ "access": "public"
132
142
  },
133
143
  "picBed": {
134
144
  "current": "smms"
135
145
  },
136
- "plugins": {},
137
- "engines": {
138
- "node": ">=20.0.0"
139
- }
146
+ "plugins": {}
140
147
  }
@@ -1,52 +0,0 @@
1
- name: Build and Push Docker Image
2
-
3
- on:
4
- push:
5
- tags:
6
- - '*'
7
- workflow_dispatch:
8
- inputs:
9
- enable_push:
10
- description: 'Enable push to Docker Hub'
11
- required: true
12
- type: choice
13
- options:
14
- - 'true'
15
- - 'false'
16
- default: 'false'
17
-
18
-
19
- jobs:
20
- build-and-push:
21
- runs-on: ubuntu-latest
22
- steps:
23
- - name: Checkout Repository
24
- uses: actions/checkout@v6
25
-
26
- - name: Set up Docker Buildx
27
- uses: docker/setup-buildx-action@v3
28
-
29
- - name: Login to Docker Hub
30
- uses: docker/login-action@v3
31
- with:
32
- username: ${{ secrets.DOCKERHUB_USERNAME }}
33
- password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
34
-
35
- - name: Build and Push Docker Image
36
- uses: docker/build-push-action@v6
37
- with:
38
- context: .
39
- file: ./Dockerfile
40
- push: ${{ github.event.inputs.enable_push == 'true' }}
41
- tags: kuingsmile/piclist:latest
42
- platforms: linux/amd64,linux/arm64
43
-
44
- - name: Build and Push Docker Image with Tag
45
- if: startsWith(github.ref, 'refs/tags/')
46
- uses: docker/build-push-action@v6
47
- with:
48
- context: .
49
- file: ./Dockerfile
50
- push: true
51
- tags: kuingsmile/piclist:${{ github.ref_name }}
52
- platforms: linux/amd64,linux/arm64
package/.prettierrc DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "arrowParens": "avoid",
3
- "bracketSpacing": true,
4
- "htmlWhitespaceSensitivity": "css",
5
- "insertPragma": false,
6
- "jsxBracketSameLine": false,
7
- "jsxSingleQuote": true,
8
- "printWidth": 120,
9
- "proseWrap": "always",
10
- "quoteProps": "as-needed",
11
- "requirePragma": false,
12
- "semi": false,
13
- "singleQuote": true,
14
- "tabWidth": 2,
15
- "trailingComma": "all",
16
- "useTabs": false
17
- }