needle-cloud 0.2.0-alpha → 0.3.0-alpha

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.
@@ -57,6 +57,15 @@ export function getUploads(opts: AuthData & ({
57
57
  page: number;
58
58
  limit: number;
59
59
  })): Promise<Array<Upload>>;
60
+ /**
61
+ * @param {AuthData & { offset?:number, limit?: number }} opts
62
+ * @returns {Promise<Array<Deployment>>}
63
+ * @typedef {{ name: string, url: string }} Deployment
64
+ */
65
+ export function getDeployments(opts: AuthData & {
66
+ offset?: number;
67
+ limit?: number;
68
+ }): Promise<Array<Deployment>>;
60
69
  export type AuthData = {
61
70
  token: string;
62
71
  endpoint?: string;
@@ -90,3 +99,7 @@ export type Upload = {
90
99
  additional_size?: number;
91
100
  }>;
92
101
  };
102
+ export type Deployment = {
103
+ name: string;
104
+ url: string;
105
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "needle-cloud",
3
- "version": "0.2.0-alpha",
3
+ "version": "0.3.0-alpha",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "needle-cloud": "./bin/cli.js"
@@ -13,9 +13,11 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@caporal/core": "^2.0.7",
16
+ "@logto/node": "^2.5.8",
16
17
  "@web-std/file": "^3.0.3",
17
18
  "buffer": "^6.0.3",
18
19
  "dotenv": "^16.4.5",
20
+ "express": "^4.21.1",
19
21
  "node-fetch": "^3.3.2",
20
22
  "ora": "^8.0.1"
21
23
  },
@@ -50,4 +52,4 @@
50
52
  "access": "public",
51
53
  "registry": "https://registry.npmjs.org/"
52
54
  }
53
- }
55
+ }