needle-cloud 0.4.0-alpha.9 → 1.0.1
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/CHANGELOG.md +73 -63
- package/README.md +3 -18
- package/bin/cli.js +1 -1
- package/dist/cli.esm.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/needle-share-cli/src/web/index.d.ts +2 -4
- package/dist/pako.esm-01431bd2.js +1 -0
- package/dist/pako.esm-01431bd2.js.map +1 -0
- package/dist/web/index.d.ts +2 -4
- package/package.json +61 -56
package/dist/web/index.d.ts
CHANGED
|
@@ -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": "
|
|
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
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
},
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"dist/",
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "needle-cloud",
|
|
3
|
+
"version": "1.0.1",
|
|
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
|
+
}
|