@pipedream/dropbox 0.3.14 → 0.3.15
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.
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
name: "Move a File/Folder",
|
|
5
5
|
description: "Moves a file or folder to a different location in the user's Dropbox [See the docs here](https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesMoveV2__anchor)",
|
|
6
6
|
key: "dropbox-move-file-folder",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.7",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
dropbox,
|
|
@@ -48,15 +48,13 @@ export default {
|
|
|
48
48
|
let normalizedPathTo = pathTo?.value || pathTo;
|
|
49
49
|
const normalizedPathFrom = pathFrom?.value || pathFrom;
|
|
50
50
|
|
|
51
|
-
//
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
normalizedPathTo = `${pathTo?.value || pathTo}/${fileName}`;
|
|
56
|
-
}
|
|
51
|
+
// Add file/folder name to end of pathTo
|
|
52
|
+
const splited = normalizedPathFrom.split("/");
|
|
53
|
+
const fileName = splited[splited.length - 1];
|
|
54
|
+
normalizedPathTo += `/${fileName}`;
|
|
57
55
|
|
|
58
56
|
const res = await this.dropbox.filesMove({
|
|
59
|
-
from_path:
|
|
57
|
+
from_path: normalizedPathFrom,
|
|
60
58
|
to_path: normalizedPathTo,
|
|
61
59
|
autorename,
|
|
62
60
|
allow_ownership_transfer: allowOwnershipTransfer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/dropbox",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"description": "Pipedream Dropbox Components",
|
|
5
5
|
"main": "dropbox.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"dropbox": "^10.34.0",
|
|
14
14
|
"tmp-promise": "^3.0.3",
|
|
15
15
|
"isomorphic-fetch": "^3.0.0",
|
|
16
|
-
"lodash": "^4.17.21"
|
|
16
|
+
"lodash": "^4.17.21",
|
|
17
|
+
"@types/node-fetch": "^2.5.7"
|
|
17
18
|
},
|
|
18
19
|
"gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",
|
|
19
20
|
"publishConfig": {
|