@initx-plugin/cp 0.0.7 → 0.0.9

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 CHANGED
@@ -5,7 +5,10 @@ declare enum CpType {
5
5
  }
6
6
 
7
7
  declare class CpHandler extends InitxHandler {
8
- matchers: string;
8
+ matchers: {
9
+ matching: string;
10
+ description: string;
11
+ }[];
9
12
  handle(_options: InitxOptions, cpType: CpType, ...others: string[]): Promise<void>;
10
13
  [CpType.SSH](): Promise<void>;
11
14
  private copy;
package/dist/index.d.ts CHANGED
@@ -5,7 +5,10 @@ declare enum CpType {
5
5
  }
6
6
 
7
7
  declare class CpHandler extends InitxHandler {
8
- matchers: string;
8
+ matchers: {
9
+ matching: string;
10
+ description: string;
11
+ }[];
9
12
  handle(_options: InitxOptions, cpType: CpType, ...others: string[]): Promise<void>;
10
13
  [CpType.SSH](): Promise<void>;
11
14
  private copy;
package/dist/index.mjs CHANGED
@@ -19,7 +19,12 @@ var __publicField = (obj, key, value) => {
19
19
  class CpHandler extends InitxHandler {
20
20
  constructor() {
21
21
  super(...arguments);
22
- __publicField(this, "matchers", "cp");
22
+ __publicField(this, "matchers", [
23
+ {
24
+ matching: "cp",
25
+ description: "Copy SSH public key"
26
+ }
27
+ ]);
23
28
  }
24
29
  async handle(_options, cpType, ...others) {
25
30
  if (!cpType || typeof this[cpType] !== "function") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@initx-plugin/cp",
3
3
  "type": "module",
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
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/utils": "0.0.7",
28
- "@initx-plugin/core": "0.0.7"
27
+ "@initx-plugin/core": "0.0.9",
28
+ "@initx-plugin/utils": "0.0.9"
29
29
  },
30
30
  "scripts": {
31
31
  "stub": "unbuild --stub",