@initx-plugin/cp 0.0.20 → 0.0.21
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/dist/index.d.mts +2 -5
- package/dist/index.d.ts +2 -5
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InitxPlugin, InitxContext } from '@initx-plugin/core';
|
|
1
|
+
import { InitxPlugin, InitxMatcherRules, InitxContext } from '@initx-plugin/core';
|
|
2
2
|
|
|
3
3
|
declare enum CpType {
|
|
4
4
|
SSH = "ssh",
|
|
@@ -7,10 +7,7 @@ declare enum CpType {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare class CpPlugin extends InitxPlugin {
|
|
10
|
-
rules:
|
|
11
|
-
matching: string;
|
|
12
|
-
description: string;
|
|
13
|
-
}[];
|
|
10
|
+
rules: InitxMatcherRules;
|
|
14
11
|
handle(_ctx: InitxContext, cpType: CpType, ...others: string[]): Promise<void>;
|
|
15
12
|
[CpType.SSH](): Promise<void>;
|
|
16
13
|
[CpType.GPG](): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InitxPlugin, InitxContext } from '@initx-plugin/core';
|
|
1
|
+
import { InitxPlugin, InitxMatcherRules, InitxContext } from '@initx-plugin/core';
|
|
2
2
|
|
|
3
3
|
declare enum CpType {
|
|
4
4
|
SSH = "ssh",
|
|
@@ -7,10 +7,7 @@ declare enum CpType {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare class CpPlugin extends InitxPlugin {
|
|
10
|
-
rules:
|
|
11
|
-
matching: string;
|
|
12
|
-
description: string;
|
|
13
|
-
}[];
|
|
10
|
+
rules: InitxMatcherRules;
|
|
14
11
|
handle(_ctx: InitxContext, cpType: CpType, ...others: string[]): Promise<void>;
|
|
15
12
|
[CpType.SSH](): Promise<void>;
|
|
16
13
|
[CpType.GPG](): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@initx-plugin/cp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.21",
|
|
5
5
|
"description": "initx plugin, copy some text to clipboard",
|
|
6
6
|
"author": "imba97",
|
|
7
7
|
"license": "MIT",
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@initx-plugin/core": "^0.0.
|
|
28
|
-
"@initx-plugin/utils": "^0.0.
|
|
27
|
+
"@initx-plugin/core": "^0.0.30",
|
|
28
|
+
"@initx-plugin/utils": "^0.0.30",
|
|
29
29
|
"clipboardy": "^4.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@imba97/eslint-config": "^0.0.5",
|
|
33
|
-
"@types/node": "^22.
|
|
34
|
-
"bumpp": "^
|
|
35
|
-
"eslint": "^9.
|
|
36
|
-
"lint-staged": "^15.3
|
|
33
|
+
"@types/node": "^22.13.9",
|
|
34
|
+
"bumpp": "^10.0.3",
|
|
35
|
+
"eslint": "^9.21.0",
|
|
36
|
+
"lint-staged": "^15.4.3",
|
|
37
37
|
"simple-git-hooks": "^2.11.1",
|
|
38
|
-
"typescript": "^5.
|
|
39
|
-
"unbuild": "^3.
|
|
40
|
-
"vitest": "^
|
|
38
|
+
"typescript": "^5.8.2",
|
|
39
|
+
"unbuild": "^3.5.0",
|
|
40
|
+
"vitest": "^3.0.8"
|
|
41
41
|
},
|
|
42
42
|
"simple-git-hooks": {
|
|
43
43
|
"pre-commit": "pnpm lint-staged"
|