Comparing version 4.11.0 to 4.11.1
# WebDAV-Client changelog | ||
## v4.11.1 | ||
_2022-11-19_ | ||
* **Bugfix**: | ||
* [#324](https://github.com/perry-mitchell/webdav-client/pull/324) Missing leading slash causes extra entries in `getDirectoryContents` call | ||
## v4.11.0 | ||
@@ -4,0 +10,0 @@ _2022-08-21_ |
@@ -52,3 +52,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var requestOptions, response, davResp, files; | ||
var requestOptions, response, davResp, _remotePath, files; | ||
return __generator(this, function (_a) { | ||
@@ -73,3 +73,4 @@ switch (_a.label) { | ||
davResp = _a.sent(); | ||
files = getDirectoryFiles(davResp, context.remotePath, remotePath, options.details); | ||
_remotePath = remotePath.startsWith("/") ? remotePath : "/" + remotePath; | ||
files = getDirectoryFiles(davResp, context.remotePath, _remotePath, options.details); | ||
if (options.glob) { | ||
@@ -76,0 +77,0 @@ files = (0, response_1.processGlobFilter)(files, options.glob); |
{ | ||
"name": "webdav", | ||
"version": "4.11.0", | ||
"version": "4.11.1", | ||
"description": "WebDAV client for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "dist/node/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
423443
3195