@initx-plugin/cp 0.0.11 → 0.0.13
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 +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<h1 align="center">
|
|
1
|
+
<h1 align="center">initx ⚙️</h1>
|
|
2
2
|
|
|
3
|
-
<p align="center"><code>initx</code>
|
|
3
|
+
<p align="center"><code>initx</code> A more convenient scripting engine</p>
|
|
4
4
|
|
|
5
5
|
<pre align="center">npx <b>initx <something></b></pre>
|
|
6
6
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InitxHandler,
|
|
1
|
+
import { InitxHandler, InitxCtx } from '@initx-plugin/core';
|
|
2
2
|
|
|
3
3
|
declare enum CpType {
|
|
4
4
|
SSH = "ssh"
|
|
@@ -9,7 +9,7 @@ declare class CpHandler extends InitxHandler {
|
|
|
9
9
|
matching: string;
|
|
10
10
|
description: string;
|
|
11
11
|
}[];
|
|
12
|
-
handle(
|
|
12
|
+
handle(_ctx: InitxCtx, cpType: CpType, ...others: string[]): Promise<void>;
|
|
13
13
|
[CpType.SSH](): Promise<void>;
|
|
14
14
|
private copy;
|
|
15
15
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InitxHandler,
|
|
1
|
+
import { InitxHandler, InitxCtx } from '@initx-plugin/core';
|
|
2
2
|
|
|
3
3
|
declare enum CpType {
|
|
4
4
|
SSH = "ssh"
|
|
@@ -9,7 +9,7 @@ declare class CpHandler extends InitxHandler {
|
|
|
9
9
|
matching: string;
|
|
10
10
|
description: string;
|
|
11
11
|
}[];
|
|
12
|
-
handle(
|
|
12
|
+
handle(_ctx: InitxCtx, cpType: CpType, ...others: string[]): Promise<void>;
|
|
13
13
|
[CpType.SSH](): Promise<void>;
|
|
14
14
|
private copy;
|
|
15
15
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ class CpHandler extends InitxHandler {
|
|
|
26
26
|
}
|
|
27
27
|
]);
|
|
28
28
|
}
|
|
29
|
-
async handle(
|
|
29
|
+
async handle(_ctx, cpType, ...others) {
|
|
30
30
|
if (!cpType || typeof this[cpType] !== "function") {
|
|
31
31
|
const typeList = CpType;
|
|
32
32
|
log.error(`Please enter the copy type, Available types: ${Object.keys(typeList).map((key) => typeList[key])}`);
|
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.13",
|
|
5
5
|
"description": "initx plugin, copy some text to clipboard",
|
|
6
6
|
"author": "imba97",
|
|
7
7
|
"license": "MIT",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"clipboardy": "^4.0.0",
|
|
27
|
-
"@initx-plugin/
|
|
28
|
-
"@initx-plugin/
|
|
27
|
+
"@initx-plugin/core": "0.0.13",
|
|
28
|
+
"@initx-plugin/utils": "0.0.13"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"stub": "unbuild --stub",
|