picgo 1.6.6 → 1.8.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/AGENTS.md +42 -0
- package/README.md +50 -14
- package/dist/__tests__/unit/uploaderConfigManager.spec.d.ts +1 -0
- package/dist/core/PicGo.d.ts +2 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/UploaderConfigManager.d.ts +25 -0
- package/dist/plugins/commander/uploader.d.ts +2 -0
- package/dist/types/index.d.ts +25 -16
- package/dist/utils/interfaces.d.ts +0 -13
- package/dist/utils/uuid.d.ts +1 -0
- package/package.json +8 -15
- package/dist/plugins/commander/init.d.ts +0 -3
- package/dist/utils/initUtils.d.ts +0 -26
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IPicGo, IOptions } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Generate template files to destination files.
|
|
4
|
-
* @param {PicGo} ctx
|
|
5
|
-
* @param {IOptions} options
|
|
6
|
-
*/
|
|
7
|
-
declare const generate: (ctx: IPicGo, options: IOptions) => Promise<any>;
|
|
8
|
-
/**
|
|
9
|
-
* Return the filters' result
|
|
10
|
-
* @param ctx PicGo
|
|
11
|
-
* @param exp condition expression
|
|
12
|
-
* @param data options data
|
|
13
|
-
*/
|
|
14
|
-
declare const filters: (ctx: IPicGo, exp: any, data: any) => boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Render files to a virtual tree object
|
|
17
|
-
* @param {array} files
|
|
18
|
-
*/
|
|
19
|
-
declare const render: (files: string[], source: string, options: any) => any;
|
|
20
|
-
/**
|
|
21
|
-
* Write rendered files' content to real file
|
|
22
|
-
* @param {string} dir
|
|
23
|
-
* @param {object} files
|
|
24
|
-
*/
|
|
25
|
-
declare const writeFileTree: (dir: string, files: any) => void;
|
|
26
|
-
export { filters, generate, render, writeFileTree };
|