appwrite-cli 14.0.0 → 14.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 +6 -0
- package/README.md +2 -2
- package/dist/bundle-win-arm64.mjs +6484 -10205
- package/dist/cli.cjs +6543 -10264
- package/dist/index.cjs +5944 -9666
- package/dist/index.js +5939 -9661
- package/dist/lib/commands/update.d.ts.map +1 -1
- package/dist/lib/commands/utils/attributes.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/commands/run.ts +3 -3
- package/lib/commands/update.ts +2 -1
- package/lib/commands/utils/attributes.ts +4 -0
- package/lib/commands/utils/deployment.ts +3 -3
- package/lib/constants.ts +1 -1
- package/package.json +3 -3
- package/scoop/appwrite.config.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../lib/commands/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../lib/commands/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuPpC,eAAO,MAAM,MAAM,SAMe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../../lib/commands/utils/attributes.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAanD,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAA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AC,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC,CA+JpD;IAEK,aAAa,GAClB,SAAS,GAAG,EAAE,EACd,YAAY,UAAU,KACrB,OAAO,CAAC,IAAI,CAAC,CA4Bd;IAEK,gBAAgB,GACrB,YAAY,GAAG,EAAE,EACjB,YAAY,UAAU,KACrB,OAAO,CAAC,IAAI,CAAC,CA6Bd;IAEK,aAAa,GAClB,SAAS,GAAG,EAAE,EACd,OAAO,UAAU,KAChB,OAAO,CAAC,IAAI,CAAC,CAyBd;CACH"}
|
package/dist/lib/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SDK_TITLE = "Appwrite";
|
|
2
2
|
export declare const SDK_TITLE_LOWER = "appwrite";
|
|
3
|
-
export declare const SDK_VERSION = "14.0.
|
|
3
|
+
export declare const SDK_VERSION = "14.0.1";
|
|
4
4
|
export declare const SDK_NAME = "Command Line";
|
|
5
5
|
export declare const SDK_PLATFORM = "console";
|
|
6
6
|
export declare const SDK_LANGUAGE = "cli";
|
package/install.ps1
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
# You can use "View source" of this page to see the full script.
|
|
14
14
|
|
|
15
15
|
# REPO
|
|
16
|
-
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.
|
|
17
|
-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.
|
|
16
|
+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-x64.exe"
|
|
17
|
+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-arm64.exe"
|
|
18
18
|
|
|
19
19
|
$APPWRITE_BINARY_NAME = "appwrite.exe"
|
|
20
20
|
|
package/install.sh
CHANGED
|
@@ -96,7 +96,7 @@ printSuccess() {
|
|
|
96
96
|
downloadBinary() {
|
|
97
97
|
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
|
|
98
98
|
|
|
99
|
-
GITHUB_LATEST_VERSION="14.0.
|
|
99
|
+
GITHUB_LATEST_VERSION="14.0.1"
|
|
100
100
|
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
|
|
101
101
|
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
|
|
102
102
|
|
package/lib/commands/run.ts
CHANGED
|
@@ -5,7 +5,7 @@ import ignoreModule from "ignore";
|
|
|
5
5
|
const ignore: typeof ignoreModule =
|
|
6
6
|
(ignoreModule as unknown as { default?: typeof ignoreModule }).default ??
|
|
7
7
|
ignoreModule;
|
|
8
|
-
import
|
|
8
|
+
import { create, extract } from "tar";
|
|
9
9
|
import fs from "fs";
|
|
10
10
|
import chokidar from "chokidar";
|
|
11
11
|
import inquirer from "inquirer";
|
|
@@ -323,7 +323,7 @@ const runFunction = async ({
|
|
|
323
323
|
fs.mkdirSync(hotSwapPath, { recursive: true });
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
await
|
|
326
|
+
await extract({
|
|
327
327
|
keep: true,
|
|
328
328
|
sync: true,
|
|
329
329
|
cwd: hotSwapPath,
|
|
@@ -358,7 +358,7 @@ const runFunction = async ({
|
|
|
358
358
|
fs.copyFileSync(sourcePath, filePath);
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
-
await
|
|
361
|
+
await create(
|
|
362
362
|
{
|
|
363
363
|
gzip: true,
|
|
364
364
|
sync: true,
|
package/lib/commands/update.ts
CHANGED
|
@@ -36,7 +36,8 @@ const isInstalledViaNpm = (): boolean => {
|
|
|
36
36
|
scriptPath.includes("/usr/local/lib/node_modules/") ||
|
|
37
37
|
scriptPath.includes("/opt/homebrew/lib/node_modules/") ||
|
|
38
38
|
scriptPath.includes("/.npm-global/") ||
|
|
39
|
-
scriptPath.includes("/node_modules/.bin/")
|
|
39
|
+
scriptPath.includes("/node_modules/.bin/") ||
|
|
40
|
+
scriptPath.includes("/.nvm/versions/node/")
|
|
40
41
|
) {
|
|
41
42
|
return true;
|
|
42
43
|
}
|
|
@@ -262,6 +262,7 @@ export class Attributes {
|
|
|
262
262
|
required: attribute.required,
|
|
263
263
|
xdefault: attribute.default,
|
|
264
264
|
array: attribute.array,
|
|
265
|
+
encrypt: attribute.encrypt,
|
|
265
266
|
});
|
|
266
267
|
case "text":
|
|
267
268
|
return databasesService.createTextAttribute({
|
|
@@ -271,6 +272,7 @@ export class Attributes {
|
|
|
271
272
|
required: attribute.required,
|
|
272
273
|
xdefault: attribute.default,
|
|
273
274
|
array: attribute.array,
|
|
275
|
+
encrypt: attribute.encrypt,
|
|
274
276
|
});
|
|
275
277
|
case "mediumtext":
|
|
276
278
|
return databasesService.createMediumtextAttribute({
|
|
@@ -280,6 +282,7 @@ export class Attributes {
|
|
|
280
282
|
required: attribute.required,
|
|
281
283
|
xdefault: attribute.default,
|
|
282
284
|
array: attribute.array,
|
|
285
|
+
encrypt: attribute.encrypt,
|
|
283
286
|
});
|
|
284
287
|
case "longtext":
|
|
285
288
|
return databasesService.createLongtextAttribute({
|
|
@@ -289,6 +292,7 @@ export class Attributes {
|
|
|
289
292
|
required: attribute.required,
|
|
290
293
|
xdefault: attribute.default,
|
|
291
294
|
array: attribute.array,
|
|
295
|
+
encrypt: attribute.encrypt,
|
|
292
296
|
});
|
|
293
297
|
case "integer":
|
|
294
298
|
return databasesService.createIntegerAttribute({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
|
-
import
|
|
3
|
+
import { create, extract } from "tar";
|
|
4
4
|
import { Client, AppwriteException } from "@appwrite.io/console";
|
|
5
5
|
import { error } from "../../parser.js";
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ interface DeploymentDetails {
|
|
|
26
26
|
async function packageDirectory(dirPath: string): Promise<File> {
|
|
27
27
|
const tempFile = `${dirPath.replace(/[^a-zA-Z0-9]/g, "_")}-${Date.now()}.tar.gz`;
|
|
28
28
|
|
|
29
|
-
await
|
|
29
|
+
await create(
|
|
30
30
|
{
|
|
31
31
|
gzip: true,
|
|
32
32
|
file: tempFile,
|
|
@@ -111,7 +111,7 @@ export async function downloadDeploymentCode(params: {
|
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
extract({
|
|
115
115
|
sync: true,
|
|
116
116
|
cwd: resourcePath,
|
|
117
117
|
file: compressedFileName,
|
package/lib/constants.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SDK
|
|
2
2
|
export const SDK_TITLE = 'Appwrite';
|
|
3
3
|
export const SDK_TITLE_LOWER = 'appwrite';
|
|
4
|
-
export const SDK_VERSION = '14.0.
|
|
4
|
+
export const SDK_VERSION = '14.0.1';
|
|
5
5
|
export const SDK_NAME = 'Command Line';
|
|
6
6
|
export const SDK_PLATFORM = 'console';
|
|
7
7
|
export const SDK_LANGUAGE = 'cli';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"homepage": "https://appwrite.io/support",
|
|
5
5
|
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
|
6
|
-
"version": "14.0.
|
|
6
|
+
"version": "14.0.1",
|
|
7
7
|
"license": "BSD-3-Clause",
|
|
8
8
|
"main": "dist/index.cjs",
|
|
9
9
|
"module": "dist/index.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"inquirer-search-list": "^1.2.6",
|
|
62
62
|
"json-bigint": "^1.0.0",
|
|
63
63
|
"tail": "^2.2.6",
|
|
64
|
-
"tar": "^
|
|
64
|
+
"tar": "^7.4.3",
|
|
65
65
|
"undici": "^5.28.2",
|
|
66
66
|
"zod": "^4.3.5"
|
|
67
67
|
},
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@types/inquirer": "^8.2.10",
|
|
77
77
|
"@types/json-bigint": "^1.0.4",
|
|
78
78
|
"@types/node": "^18.19.0",
|
|
79
|
-
"@types/tar": "^6.1.
|
|
79
|
+
"@types/tar": "^6.1.13",
|
|
80
80
|
"@yao-pkg/pkg": "^6.11.0",
|
|
81
81
|
"esbuild": "^0.27.2",
|
|
82
82
|
"prettier": "^3.7.4",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
|
|
5
5
|
"homepage": "https://github.com/appwrite/sdk-for-cli",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"architecture": {
|
|
8
8
|
"64bit": {
|
|
9
|
-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.
|
|
9
|
+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-x64.exe",
|
|
10
10
|
"bin": [
|
|
11
11
|
[
|
|
12
12
|
"appwrite-cli-win-x64.exe",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
"arm64": {
|
|
18
|
-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.
|
|
18
|
+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-arm64.exe",
|
|
19
19
|
"bin": [
|
|
20
20
|
[
|
|
21
21
|
"appwrite-cli-win-arm64.exe",
|