vitejs-plugin-console-releases 0.0.1 → 0.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.
- package/README.md +28 -0
- package/dist/index.js +7 -7
- package/dist/index.mjs +791 -790
- package/package.json +5 -4
- package/types/index.d.ts +28 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitejs-plugin-console-releases",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
-
"types": "
|
|
6
|
+
"types": "types/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./dist/index.mjs",
|
|
10
10
|
"require": "./dist/index.js",
|
|
11
|
-
"types": "./
|
|
11
|
+
"types": "./types/index.d.ts"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"packageManager": "pnpm@10.18.3",
|
|
21
21
|
"files": [
|
|
22
|
-
"dist"
|
|
22
|
+
"dist",
|
|
23
|
+
"types"
|
|
23
24
|
],
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"@types/lodash": "^4.17.21",
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AES-256-GCM 加密
|
|
3
|
+
*/
|
|
4
|
+
export declare function aesEncrypt(text: string, secret: string): string;
|
|
5
|
+
export declare function aesDecrypt(encryptedHex: string, secret: string): string;
|
|
6
|
+
export declare function getGitInfo(): {
|
|
7
|
+
branch: string;
|
|
8
|
+
commitHash: string;
|
|
9
|
+
commitShortHash: string;
|
|
10
|
+
commitMessage: string;
|
|
11
|
+
authorName: string;
|
|
12
|
+
authorEmail: string;
|
|
13
|
+
commitDate: string;
|
|
14
|
+
repoUrl: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function reverseString(str: string): string;
|
|
17
|
+
export type Config = {
|
|
18
|
+
tag: string | null;
|
|
19
|
+
title: string | null;
|
|
20
|
+
version: string | null;
|
|
21
|
+
reg: RegExp;
|
|
22
|
+
secret: string | null | ((commit: string) => Promise<string> | string);
|
|
23
|
+
};
|
|
24
|
+
export declare const defaultConfig: Partial<Config>;
|
|
25
|
+
declare const release: (config: Partial<Config>) => Promise<{
|
|
26
|
+
transform(code: any, id: any): Promise<string>;
|
|
27
|
+
}>;
|
|
28
|
+
export default release;
|