@lobb-js/lobb-ext-storage 0.13.1 → 0.14.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.
|
@@ -67,10 +67,7 @@
|
|
|
67
67
|
const newFolderName = prompt("Please enter a name for the new folder:");
|
|
68
68
|
if (newFolderName) {
|
|
69
69
|
const response = await utils.lobb.createOne("storage_fs", {
|
|
70
|
-
name: newFolderName,
|
|
71
|
-
path: location,
|
|
72
|
-
type: "directory",
|
|
73
|
-
...foreignKeyObject,
|
|
70
|
+
data: { name: newFolderName, path: location, type: "directory", ...foreignKeyObject },
|
|
74
71
|
});
|
|
75
72
|
const result = await response.json();
|
|
76
73
|
if (result.error) {
|
|
@@ -94,10 +91,7 @@
|
|
|
94
91
|
if (file) {
|
|
95
92
|
const response = await utils.lobb.createOne(
|
|
96
93
|
"storage_fs",
|
|
97
|
-
{
|
|
98
|
-
path: location,
|
|
99
|
-
...foreignKeyObject,
|
|
100
|
-
},
|
|
94
|
+
{ data: { path: location, ...foreignKeyObject } },
|
|
101
95
|
file,
|
|
102
96
|
);
|
|
103
97
|
const result = await response.json();
|
|
@@ -67,10 +67,7 @@
|
|
|
67
67
|
const newFolderName = prompt("Please enter a name for the new folder:");
|
|
68
68
|
if (newFolderName) {
|
|
69
69
|
const response = await utils.lobb.createOne("storage_fs", {
|
|
70
|
-
name: newFolderName,
|
|
71
|
-
path: location,
|
|
72
|
-
type: "directory",
|
|
73
|
-
...foreignKeyObject,
|
|
70
|
+
data: { name: newFolderName, path: location, type: "directory", ...foreignKeyObject },
|
|
74
71
|
});
|
|
75
72
|
const result = await response.json();
|
|
76
73
|
if (result.error) {
|
|
@@ -94,10 +91,7 @@
|
|
|
94
91
|
if (file) {
|
|
95
92
|
const response = await utils.lobb.createOne(
|
|
96
93
|
"storage_fs",
|
|
97
|
-
{
|
|
98
|
-
path: location,
|
|
99
|
-
...foreignKeyObject,
|
|
100
|
-
},
|
|
94
|
+
{ data: { path: location, ...foreignKeyObject } },
|
|
101
95
|
file,
|
|
102
96
|
);
|
|
103
97
|
const result = await response.json();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobb-js/lobb-ext-storage",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"package": "svelte-package --input extensions/storage/studio"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lobb-js/core": "^0.
|
|
35
|
+
"@lobb-js/core": "^0.33.0",
|
|
36
36
|
"browser-fs-access": "^0.35.0",
|
|
37
37
|
"hono": "^4.7.0",
|
|
38
38
|
"openapi-types": "^12.1.3",
|
|
39
39
|
"path-browserify": "^1.0.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@lobb-js/studio": "^0.
|
|
42
|
+
"@lobb-js/studio": "^0.32.0",
|
|
43
43
|
"@lucide/svelte": "^0.563.1",
|
|
44
44
|
"@sveltejs/adapter-node": "^5.5.4",
|
|
45
45
|
"@sveltejs/kit": "^2.60.1",
|