seafile-js 0.2.185 → 0.2.187
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/lib/seafile-api.js +13 -4
- package/package.json +2 -2
package/lib/seafile-api.js
CHANGED
|
@@ -494,12 +494,21 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
return this._sendPostRequest(url, form);
|
|
497
|
-
}
|
|
497
|
+
} // for repo & folder
|
|
498
|
+
|
|
498
499
|
}, {
|
|
499
|
-
key: "
|
|
500
|
-
value: function
|
|
500
|
+
key: "getRepoFolderShareInfo",
|
|
501
|
+
value: function getRepoFolderShareInfo(repoID, path) {
|
|
501
502
|
var url = this.server + '/api/v2.1/repos/' + repoID + '/share-info/';
|
|
502
|
-
|
|
503
|
+
var params = {};
|
|
504
|
+
|
|
505
|
+
if (path != undefined) {
|
|
506
|
+
params.path = path;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
return this.req.get(url, {
|
|
510
|
+
params: params
|
|
511
|
+
});
|
|
503
512
|
}
|
|
504
513
|
}, {
|
|
505
514
|
key: "listRepoShareLinks",
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seafile-js",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.187",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/seafile-api.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@babel/polyfill": "7.12.1",
|
|
8
|
-
"axios": "
|
|
8
|
+
"axios": "1.2.1",
|
|
9
9
|
"form-data": "4.0.0"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|