appwrite-utils-cli 0.10.70 → 0.10.72
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 +1 -0
- package/dist/migrations/transfer.js +1 -1
- package/package.json +1 -1
- package/src/migrations/transfer.ts +1 -1
package/README.md
CHANGED
@@ -148,6 +148,7 @@ This updated CLI ensures that developers have robust tools at their fingertips t
|
|
148
148
|
|
149
149
|
## Changelog
|
150
150
|
|
151
|
+
- 0.10.71: Fix create template function `__dirname`
|
151
152
|
- 0.10.70: Fixed `--transfer-users` phones
|
152
153
|
- 0.10.67: Added `--transfer-users` boolean flag to also transfer users between projects
|
153
154
|
- 0.10.66: Fixed `ignore` always being an empty array, if not set, so it properly ignores the defaults
|
@@ -84,7 +84,7 @@ export const transferStorageLocalToLocal = async (storage, fromBucketId, toBucke
|
|
84
84
|
};
|
85
85
|
export const transferStorageLocalToRemote = async (localStorage, endpoint, projectId, apiKey, fromBucketId, toBucketId) => {
|
86
86
|
console.log(`Transferring files from current storage ${fromBucketId} to ${endpoint} bucket ${toBucketId}`);
|
87
|
-
const client = getAppwriteClient(endpoint,
|
87
|
+
const client = getAppwriteClient(endpoint, projectId, apiKey);
|
88
88
|
const remoteStorage = new Storage(client);
|
89
89
|
let numberOfFiles = 0;
|
90
90
|
let lastFileId;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "appwrite-utils-cli",
|
3
3
|
"description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
|
4
|
-
"version": "0.10.
|
4
|
+
"version": "0.10.72",
|
5
5
|
"main": "src/main.ts",
|
6
6
|
"type": "module",
|
7
7
|
"repository": {
|
@@ -158,7 +158,7 @@ export const transferStorageLocalToRemote = async (
|
|
158
158
|
console.log(
|
159
159
|
`Transferring files from current storage ${fromBucketId} to ${endpoint} bucket ${toBucketId}`
|
160
160
|
);
|
161
|
-
const client = getAppwriteClient(endpoint,
|
161
|
+
const client = getAppwriteClient(endpoint, projectId, apiKey);
|
162
162
|
const remoteStorage = new Storage(client);
|
163
163
|
let numberOfFiles = 0;
|
164
164
|
let lastFileId: string | undefined;
|