@aicupa/plugin-cut 1.0.2 → 1.0.4

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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aicupa/plugin-cut",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Cut and paste tree nodes",
5
5
  "main": "./service",
6
- "view": "./view",
6
+ "view": "",
7
7
  "pluginContributes": {
8
8
  "contextMenus": [
9
9
  {
@@ -24,7 +24,7 @@
24
24
  "access": "public"
25
25
  },
26
26
  "license": "MIT",
27
- "dependencies": {
28
- "@aicupa/api": "^1.0.1"
27
+ "devDependencies": {
28
+ "@aicupa/api": "^1.0.2"
29
29
  }
30
30
  }
package/service.js CHANGED
@@ -1,6 +1,8 @@
1
- const { createPlugin } = require("@aicupa/api");
2
-
3
- module.exports = createPlugin((api) => {
1
+ /**
2
+ * @param {import('@aicupa/api').PluginApi} api
3
+ * @returns {import('@aicupa/api').Plugin}
4
+ */
5
+ module.exports = (api) => {
4
6
  let cutBuffer = null;
5
7
 
6
8
  return {
@@ -55,7 +57,7 @@ module.exports = createPlugin((api) => {
55
57
  return { ok: true };
56
58
  },
57
59
  };
58
- });
60
+ };
59
61
 
60
62
  function findNode(tree, key) {
61
63
  if (!Array.isArray(tree)) return null;
@@ -1,21 +0,0 @@
1
- name: Npm Publish
2
-
3
- on:
4
- push:
5
- tags:
6
- - 'v*.*.*'
7
-
8
- jobs:
9
- Npm-Publish:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - name: Checkout
13
- uses: actions/checkout@v2.3.4
14
-
15
- - name: Install Deps
16
- run: yarn install
17
-
18
- - name: publish with latest tag
19
- uses: JS-DevTools/npm-publish@v1
20
- with:
21
- token: ${{ secrets.NPM_AUTH_TOKEN }}
package/view/index.html DELETED
@@ -1,5 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head><meta charset="UTF-8"><title>Cut Plugin</title></head>
4
- <body><p>Cut plugin has no standalone view.</p></body>
5
- </html>