n8n-nodes-krova 0.1.4 → 0.1.6

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 CHANGED
@@ -29,7 +29,7 @@ Every operation authenticates with a **Krova Cloud API** credential.
29
29
  2. In n8n, add a new **Krova Cloud API** credential.
30
30
  3. Paste the key into **API Key** — it is sent to the API in the `X-API-KEY` header and stored encrypted by n8n.
31
31
  4. Leave **Base URL** at its default `https://krova.cloud/api/v1` (override only for self-hosted or test endpoints).
32
- 5. Click **Test**. n8n calls `GET /regions` to confirm the key and endpoint are reachable.
32
+ 5. Click **Test**. n8n calls `GET /space` (an authenticated endpoint) to confirm the key is valid and the endpoint is reachable — an invalid or revoked key fails here.
33
33
 
34
34
  | Field | Required | Default | Notes |
35
35
  | --- | --- | --- | --- |
@@ -99,7 +99,7 @@ Krova Cloud ships first-party tooling across the ecosystem:
99
99
 
100
100
  - [Krova Cloud](https://krova.cloud)
101
101
  - [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
102
- - [Report an issue](https://github.com/krovacloud/n8n-nodes-krova/issues)
102
+ - [Report an issue](https://github.com/krovacloud/krova-node/issues)
103
103
  - [Changelog](./CHANGELOG.md)
104
104
 
105
105
  ## License
@@ -32,10 +32,15 @@ class KrovaApi {
32
32
  },
33
33
  },
34
34
  };
35
+ // Validate against an AUTHENTICATED endpoint. `/space` resolves the Space the
36
+ // key is scoped to and requires a valid X-API-KEY, so a missing/invalid/
37
+ // revoked key fails the test. (The catalog endpoints — /regions, /images,
38
+ // /pricing — are public and would report success for any key, even an empty
39
+ // one.)
35
40
  this.test = {
36
41
  request: {
37
42
  baseURL: '={{ $credentials.baseUrl }}',
38
- url: '/regions',
43
+ url: '/space',
39
44
  method: 'GET',
40
45
  },
41
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"KrovaApi.credentials.js","sourceRoot":"","sources":["../../credentials/KrovaApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,QAAQ;IAArB;QACC,SAAI,GAAG,UAAU,CAAC;QAElB,gBAAW,GAAG,iBAAiB,CAAC;QAEhC,qBAAgB,GAAG,qBAAqB,CAAC;QAEzC,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EACV,uFAAuF;aACxF;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,4BAA4B;gBACrC,WAAW,EAAE,gFAAgF;aAC7F;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,4BAA4B;iBACzC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,6BAA6B;gBACtC,GAAG,EAAE,UAAU;gBACf,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AA3CD,4BA2CC"}
1
+ {"version":3,"file":"KrovaApi.credentials.js","sourceRoot":"","sources":["../../credentials/KrovaApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,QAAQ;IAArB;QACC,SAAI,GAAG,UAAU,CAAC;QAElB,gBAAW,GAAG,iBAAiB,CAAC;QAEhC,qBAAgB,GAAG,qBAAqB,CAAC;QAEzC,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EACV,uFAAuF;aACxF;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,4BAA4B;gBACrC,WAAW,EAAE,gFAAgF;aAC7F;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,4BAA4B;iBACzC;aACD;SACD,CAAC;QAEF,8EAA8E;QAC9E,yEAAyE;QACzE,0EAA0E;QAC1E,4EAA4E;QAC5E,QAAQ;QACR,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,6BAA6B;gBACtC,GAAG,EAAE,QAAQ;gBACb,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAhDD,4BAgDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-krova",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "n8n community node for Krova Cloud — create, sleep, wake, list, and delete Cubes (Firecracker microVMs) and read regions, images, and pricing via the Krova Cloud API.",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -21,30 +21,22 @@
21
21
  "automation"
22
22
  ],
23
23
  "license": "MIT",
24
- "homepage": "https://krova.cloud",
24
+ "homepage": "https://github.com/krovacloud/krova-node/tree/main/packages/n8n-node#readme",
25
25
  "author": {
26
26
  "name": "Krova Inc.",
27
27
  "email": "support@krova.cloud"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
31
- "url": "git+https://github.com/krovacloud/n8n-nodes-krova.git"
31
+ "url": "git+https://github.com/krovacloud/krova-node.git",
32
+ "directory": "packages/n8n-node"
32
33
  },
33
34
  "bugs": {
34
- "url": "https://github.com/krovacloud/n8n-nodes-krova/issues"
35
+ "url": "https://github.com/krovacloud/krova-node/issues"
35
36
  },
36
37
  "engines": {
37
38
  "node": ">=20.15"
38
39
  },
39
- "scripts": {
40
- "build": "tsc && node scripts/copy-icons.mjs",
41
- "dev": "tsc --watch",
42
- "format": "prettier nodes credentials --write",
43
- "lint": "eslint nodes credentials package.json",
44
- "lint:fix": "eslint nodes credentials package.json --fix",
45
- "test": "node --test",
46
- "prepublishOnly": "pnpm build && pnpm lint"
47
- },
48
40
  "files": [
49
41
  "dist"
50
42
  ],
@@ -66,9 +58,17 @@
66
58
  "n8n-core": "2.16.1",
67
59
  "n8n-workflow": "2.16.0",
68
60
  "prettier": "3.9.4",
69
- "typescript": "5.9.3"
61
+ "typescript": "^6.0.3"
70
62
  },
71
63
  "peerDependencies": {
72
64
  "n8n-workflow": "*"
65
+ },
66
+ "scripts": {
67
+ "build": "tsc && node scripts/copy-icons.mjs",
68
+ "dev": "tsc --watch",
69
+ "format": "prettier nodes credentials --write",
70
+ "lint": "eslint nodes credentials package.json",
71
+ "lint:fix": "eslint nodes credentials package.json --fix",
72
+ "test": "node --test"
73
73
  }
74
- }
74
+ }