@usync/drive 0.0.5 → 0.0.6

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/dist/index.js +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -785,8 +785,8 @@ class fe extends T {
785
785
  }
786
786
  getWebDavPath(e, t) {
787
787
  let s = e?.path || e?.id || "";
788
- if (s[0] === "/" && (s = s.slice(1)), !t) throw new Error("Invalid path");
789
- return "";
788
+ if (s[0] === "/" && (s = s.slice(1)), !s && !t) throw new Error("Invalid path");
789
+ return s;
790
790
  }
791
791
  getFullUrl(e) {
792
792
  return new URL(e, this.baseUrl).href;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usync/drive",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "fast-xml-parser": "^5.8.0",
21
- "@usync/oauth2": "^0.0.5"
21
+ "@usync/oauth2": "^0.0.6"
22
22
  },
23
23
  "scripts": {
24
24
  "clean": "del-cli dist tsconfig.tsbuildinfo",