picgo 2.0.0 → 2.0.2

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.
@@ -3,7 +3,7 @@ export declare class PluginHandler implements IPluginHandler {
3
3
  private readonly ctx;
4
4
  constructor(ctx: IPicGo);
5
5
  install(plugins: string[], options?: IPluginHandlerOptions, env?: IProcessEnv): Promise<IPluginHandlerResult<boolean>>;
6
- uninstall(plugins: string[]): Promise<IPluginHandlerResult<boolean>>;
6
+ uninstall(plugins: string[], env?: IProcessEnv): Promise<IPluginHandlerResult<boolean>>;
7
7
  update(plugins: string[], options?: IPluginHandlerOptions, env?: IProcessEnv): Promise<IPluginHandlerResult<boolean>>;
8
8
  private execCommand;
9
9
  }
@@ -502,7 +502,7 @@ export interface IPluginProcessResult {
502
502
  export interface IPluginHandler {
503
503
  install: (plugins: string[], options: IPluginHandlerOptions, env?: IProcessEnv) => Promise<IPluginHandlerResult<boolean>>;
504
504
  update: (plugins: string[], options: IPluginHandlerOptions, env?: IProcessEnv) => Promise<IPluginHandlerResult<boolean>>;
505
- uninstall: (plugins: string[]) => Promise<IPluginHandlerResult<boolean>>;
505
+ uninstall: (plugins: string[], env?: IProcessEnv) => Promise<IPluginHandlerResult<boolean>>;
506
506
  }
507
507
  export interface IPluginHandlerResult<T> {
508
508
  success: T;
package/package.json CHANGED
@@ -1,16 +1,32 @@
1
1
  {
2
2
  "name": "picgo",
3
- "version": "2.0.0",
4
- "description": "A tool for picture uploading",
3
+ "version": "2.0.2",
4
+ "description": "A tool for image uploading",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "typings": "dist/index.d.ts",
8
+ "homepage": "https://picgo.app/",
8
9
  "bin": {
9
10
  "picgo": "./bin/picgo"
10
11
  },
11
12
  "publishConfig": {
12
13
  "access": "public"
13
14
  },
15
+ "scripts": {
16
+ "start": "node ./bin/picgo",
17
+ "lint": "pnpm lint:dpdm && tsc --noEmit && eslint src --ext .ts",
18
+ "test": "vitest run",
19
+ "build": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js",
20
+ "dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
21
+ "patch": "npm version patch && git push origin master && git push origin --tags",
22
+ "minor": "npm version minor && git push origin master && git push origin --tags",
23
+ "major": "npm version major && git push origin master && git push origin --tags",
24
+ "cz": "git-cz",
25
+ "release": "bump-version",
26
+ "prepare": "husky",
27
+ "commitlint": "commitlint --edit",
28
+ "lint:dpdm": "dpdm -T --tsconfig ./tsconfig.json --no-tree --no-warning --exit-code circular:1 src/index.ts"
29
+ },
14
30
  "keywords": [
15
31
  "picture",
16
32
  "upload",
@@ -106,7 +122,7 @@
106
122
  },
107
123
  "repository": {
108
124
  "type": "git",
109
- "url": "git+https://github.com/PicGo/PicGo-Core.git"
125
+ "url": "https://github.com/PicGo/PicGo-Core"
110
126
  },
111
127
  "picBed": {
112
128
  "current": "smms"
@@ -114,19 +130,5 @@
114
130
  "plugins": {},
115
131
  "engines": {
116
132
  "node": ">= 20.19.0"
117
- },
118
- "scripts": {
119
- "start": "node ./bin/picgo",
120
- "lint": "pnpm lint:dpdm && tsc --noEmit && eslint src --ext .ts",
121
- "test": "vitest run",
122
- "build": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js",
123
- "dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
124
- "patch": "npm version patch && git push origin master && git push origin --tags",
125
- "minor": "npm version minor && git push origin master && git push origin --tags",
126
- "major": "npm version major && git push origin master && git push origin --tags",
127
- "cz": "git-cz",
128
- "release": "bump-version",
129
- "commitlint": "commitlint --edit",
130
- "lint:dpdm": "dpdm -T --tsconfig ./tsconfig.json --no-tree --no-warning --exit-code circular:1 src/index.ts"
131
133
  }
132
- }
134
+ }