seafile-js 0.2.199 → 0.2.200

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.
Files changed (2) hide show
  1. package/lib/seafile-api.js +10 -0
  2. package/package.json +1 -1
@@ -4580,6 +4580,16 @@ var SeafileAPI = /*#__PURE__*/function () {
4580
4580
  formData.append('file_path', filePath);
4581
4581
  return this._sendPostRequest(url, formData);
4582
4582
  }
4583
+ }, {
4584
+ key: "sdocCopyHistoryFile",
4585
+ value: function sdocCopyHistoryFile(repoID, path, objID, ctime) {
4586
+ var url = this.server + '/api/v2.1/seadoc/copy-history-file/' + repoID + '/';
4587
+ var form = new _formData["default"]();
4588
+ form.append('obj_id', objID);
4589
+ form.append('p', path);
4590
+ form.append('ctime', ctime);
4591
+ return this._sendPostRequest(url, form);
4592
+ }
4583
4593
  }]);
4584
4594
 
4585
4595
  return SeafileAPI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.199",
3
+ "version": "0.2.200",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {