@initx-plugin/cp 0.0.15 → 0.0.16

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
@@ -1,15 +1,15 @@
1
- import { InitxHandler, InitxCtx } from '@initx-plugin/core';
1
+ import { InitxPlugin, InitxContext } from '@initx-plugin/core';
2
2
 
3
3
  declare enum CpType {
4
4
  SSH = "ssh"
5
5
  }
6
6
 
7
- declare class CpHandler extends InitxHandler {
7
+ declare class CpHandler extends InitxPlugin {
8
8
  matchers: {
9
9
  matching: string;
10
10
  description: string;
11
11
  }[];
12
- handle(_ctx: InitxCtx, cpType: CpType, ...others: string[]): Promise<void>;
12
+ handle(_ctx: InitxContext, 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,15 +1,15 @@
1
- import { InitxHandler, InitxCtx } from '@initx-plugin/core';
1
+ import { InitxPlugin, InitxContext } from '@initx-plugin/core';
2
2
 
3
3
  declare enum CpType {
4
4
  SSH = "ssh"
5
5
  }
6
6
 
7
- declare class CpHandler extends InitxHandler {
7
+ declare class CpHandler extends InitxPlugin {
8
8
  matchers: {
9
9
  matching: string;
10
10
  description: string;
11
11
  }[];
12
- handle(_ctx: InitxCtx, cpType: CpType, ...others: string[]): Promise<void>;
12
+ handle(_ctx: InitxContext, cpType: CpType, ...others: string[]): Promise<void>;
13
13
  [CpType.SSH](): Promise<void>;
14
14
  private copy;
15
15
  }
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import os from 'node:os';
2
2
  import { existsSync, readdirSync, readFileSync } from 'node:fs';
3
3
  import { resolve } from 'node:path';
4
4
  import clipboard from 'clipboardy';
5
- import { InitxHandler } from '@initx-plugin/core';
5
+ import { InitxPlugin } from '@initx-plugin/core';
6
6
  import { log, inquirer } from '@initx-plugin/utils';
7
7
 
8
8
  var CpType = /* @__PURE__ */ ((CpType2) => {
@@ -16,7 +16,7 @@ var __publicField = (obj, key, value) => {
16
16
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
17
17
  return value;
18
18
  };
19
- class CpHandler extends InitxHandler {
19
+ class CpHandler extends InitxPlugin {
20
20
  constructor() {
21
21
  super(...arguments);
22
22
  __publicField(this, "matchers", [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@initx-plugin/cp",
3
3
  "type": "module",
4
- "version": "0.0.15",
4
+ "version": "0.0.16",
5
5
  "description": "initx plugin, copy some text to clipboard",
6
6
  "author": "imba97",
7
7
  "license": "MIT",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@imba97/eslint-config": "^0.0.4",
33
- "@types/node": "^22.8.6",
34
- "bumpp": "^9.8.0",
35
- "eslint": "^9.13.0",
33
+ "@types/node": "^22.9.0",
34
+ "bumpp": "^9.8.1",
35
+ "eslint": "^9.14.0",
36
36
  "lint-staged": "^15.2.10",
37
37
  "simple-git-hooks": "^2.11.1",
38
38
  "typescript": "5.5.4",