needle-cloud 0.4.0-alpha.9 → 1.0.0

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.
@@ -41,9 +41,8 @@ export function uploadFiles(files: Array<Filelike>, opts: AuthData & {
41
41
  * created_at: string,
42
42
  * updated_at: string,
43
43
  * name? :string,
44
- * url:string,
44
+ * url:string | null,
45
45
  * size: number,
46
- * additional_size?: number,
47
46
  * }>}} Upload
48
47
  */
49
48
  /**
@@ -94,9 +93,8 @@ export type Upload = {
94
93
  created_at: string;
95
94
  updated_at: string;
96
95
  name?: string;
97
- url: string;
96
+ url: string | null;
98
97
  size: number;
99
- additional_size?: number;
100
98
  }>;
101
99
  };
102
100
  export type Deployment = {
package/package.json CHANGED
@@ -1,56 +1,61 @@
1
- {
2
- "name": "needle-cloud",
3
- "version": "0.4.0-alpha.9",
4
- "type": "module",
5
- "bin": {
6
- "needle-cloud": "./bin/cli.js"
7
- },
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- "import": "./dist/index.esm.js",
11
- "types": "./dist/index.d.ts",
12
- "node": "./dist/cli.esm.js"
13
- },
14
- "dependencies": {
15
- "@caporal/core": "^2.0.7",
16
- "@logto/node": "^2.5.8",
17
- "@web-std/file": "^3.0.3",
18
- "buffer": "^6.0.3",
19
- "dotenv": "^16.4.5",
20
- "express": "^4.21.1",
21
- "node-fetch": "^3.3.2",
22
- "ora": "^8.0.1"
23
- },
24
- "devDependencies": {
25
- "@needle-tools/cloud-sdk": "file:../needle-share-sdk",
26
- "concurrently": "^9.0.1",
27
- "microbundle": "^0.15.1",
28
- "vitest": "^2.1.1"
29
- },
30
- "engines": {
31
- "node": ">= 18"
32
- },
33
- "scripts": {
34
- "test": "vitest",
35
- "deploy": "npm run dist -- --compress & npm publish --access public && npm dist-tag add dev",
36
- "deploy:dry": "npm run deploy -- --dry-run",
37
- "bump:tag:main": "npm dist-tag add needle-cloud@0.4.0-alpha main",
38
- "dev": "concurrently --kill-others \"npm run dev:web\" \"npm run dev:node\"",
39
- "dev:web": "microbundle watch -i ./src/index.js -o dist/index.js --format esm --generateTypes --target web --no-compress",
40
- "dev:node": "microbundle watch -i ./src/cli.js -o dist/cli.js --format esm --target node --no-compress",
41
- "dist": "npx --yes rimraf dist && npm run dist:web && npm run dist:node",
42
- "dist:web": "microbundle -i ./src/index.js -o dist/index.js --format esm --generateTypes --target web --sourcemap true --compress true --define api_endpoint=https://cloud.needle.tools/api,cloud_base_url=https://cloud.needle.tools",
43
- "dist:node": "microbundle -i ./src/cli.js -o dist/cli.js --format esm --generateTypes --target node --sourcemap false --compress --define api_endpoint=https://cloud-staging.needle.tools/api,cloud_base_url=https://cloud-staging.needle.tools"
44
- },
45
- "files": [
46
- "bin/",
47
- "dist/",
48
- "README.md",
49
- "CHANGELOG.md",
50
- "package-lock.json"
51
- ],
52
- "publishConfig": {
53
- "access": "public",
54
- "registry": "https://registry.npmjs.org/"
55
- }
56
- }
1
+ {
2
+ "name": "needle-cloud",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "bin": {
6
+ "needle-cloud": "./bin/cli.js"
7
+ },
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ "import": "./dist/index.esm.js",
11
+ "types": "./dist/index.d.ts",
12
+ "node": "./dist/cli.esm.js"
13
+ },
14
+ "dependencies": {
15
+ "@caporal/core": "^2.0.7",
16
+ "@logto/node": "^2.5.8",
17
+ "@web-std/file": "^3.0.3",
18
+ "body-parser": "^1.20.3",
19
+ "buffer": "^6.0.3",
20
+ "dotenv": "^16.4.5",
21
+ "express": "^4.21.1",
22
+ "node-fetch": "^3.3.2",
23
+ "node-machine-id": "^1.1.12",
24
+ "open": "^10.1.0",
25
+ "ora": "^8.0.1"
26
+ },
27
+ "devDependencies": {
28
+ "@needle-tools/cloud-sdk": "file:../needle-share-sdk",
29
+ "concurrently": "^9.0.1",
30
+ "microbundle": "^0.15.1",
31
+ "vitest": "^2.1.1"
32
+ },
33
+ "engines": {
34
+ "node": ">= 18"
35
+ },
36
+ "scripts": {
37
+ "test": "vitest",
38
+ "install-local-deps": "cd ../needle-share-sdk && npm install",
39
+ "deploy:main": "npm run deploy -- --tag main",
40
+ "deploy": "npm run dist & npm publish --access public",
41
+ "deploy:dry": "npm run deploy -- --dry-run",
42
+ "bump:tag:main": "npm dist-tag add needle-cloud@<version> main",
43
+ "dev": "concurrently --kill-others \"npm run dev:web\" \"npm run dev:node\"",
44
+ "dev:web": "microbundle watch -i ./src/index.js -o dist/index.js --format esm --generateTypes --target web --no-compress",
45
+ "dev:node": "microbundle watch -i ./src/cli.js -o dist/cli.js --format esm --target node --no-compress",
46
+ "dist": "npx --yes rimraf dist && npm run dist:web && npm run dist:node",
47
+ "dist:web": "microbundle -i ./src/index.js -o dist/index.js --format esm --generateTypes --target web --sourcemap true --compress true --define api_endpoint=https://cloud.needle.tools/api,cloud_base_url=https://cloud.needle.tools",
48
+ "dist:node": "microbundle -i ./src/cli.js -o dist/cli.js --format esm --generateTypes --target node --sourcemap false --compress --define api_endpoint=https://cloud.needle.tools/api,cloud_base_url=https://cloud.needle.tools"
49
+ },
50
+ "files": [
51
+ "bin/",
52
+ "dist/",
53
+ "README.md",
54
+ "CHANGELOG.md",
55
+ "package-lock.json"
56
+ ],
57
+ "publishConfig": {
58
+ "access": "public",
59
+ "registry": "https://registry.npmjs.org/"
60
+ }
61
+ }