Comparing version 1.1.0 to 1.1.1
# WebDAV-client changelog | ||
## 1.1.1 | ||
**Bugfixes**: | ||
* ([#68](https://github.com/perry-mitchell/webdav-client/issues/68)): Fetched directory appearing in results | ||
## 1.1.0 | ||
@@ -4,0 +10,0 @@ _2017-08-30_ |
@@ -1,12 +0,12 @@ | ||
// var create = require("./index.js"); | ||
// var client = create( | ||
// "https://storage.perry.cx/remote.php/webdav", | ||
// "pez", | ||
// "a2IiLV_ouTZIDt8k8PV-jQNL" | ||
// ); | ||
"use strict"; | ||
// client.getDirectoryContents("/Software").then(function(contents) { | ||
// console.log("C", contents); | ||
// }); | ||
var create = require("./index.js"); | ||
var client = create("https://storage.perry.cx/remote.php/webdav", "pez", "a2IiLV_ouTZIDt8k8PV-jQNL"); | ||
client.getDirectoryContents("/Auth/Home VPN").then(function (contents) { | ||
console.log("C", contents.map(function (item) { | ||
return item.filename; | ||
})); | ||
}); | ||
// function streamToBuffer(stream) { | ||
@@ -30,3 +30,2 @@ // var buffs = []; | ||
// client.stat("/Temp/apps.png").then(stat => console.log(stat)); | ||
"use strict"; | ||
// client.stat("/Temp/apps.png").then(stat => console.log(stat)); |
@@ -27,3 +27,3 @@ "use strict"; | ||
} | ||
return normalisedPath; | ||
return decodeURIComponent(normalisedPath); | ||
} | ||
@@ -30,0 +30,0 @@ |
{ | ||
"name": "webdav", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "WebDAV client for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# WebDAV client | ||
A WebDAV client written in JavaScript for NodeJS. | ||
[](https://travis-ci.org/perry-mitchell/webdav-client) [](https://www.npmjs.com/package/webdav)  | ||
[](https://travis-ci.org/perry-mitchell/webdav-client) [](https://www.npmjs.com/package/webdav)  [](https://paypal.me/perryjamesmitchell) | ||
@@ -243,1 +243,7 @@ ## About | ||
* [webdav-server](https://github.com/OpenMarshal/npm-WebDAV-Server) | ||
## Supporting this project | ||
I develop this project in my free time as programming is my passion. I do not expect payment for what I make public, but all donations go towards supporting my development efforts. I use this money to pay for servers, software and other necessities. I greatly appreciate whatever I am given, no matter what the amount. If you've donated I'm extremely grateful for the help! | ||
[](https://paypal.me/perryjamesmitchell) | ||
@@ -1,11 +0,11 @@ | ||
// var create = require("./index.js"); | ||
// var client = create( | ||
// "https://storage.perry.cx/remote.php/webdav", | ||
// "pez", | ||
// "a2IiLV_ouTZIDt8k8PV-jQNL" | ||
// ); | ||
var create = require("./index.js"); | ||
var client = create( | ||
"https://storage.perry.cx/remote.php/webdav", | ||
"pez", | ||
"a2IiLV_ouTZIDt8k8PV-jQNL" | ||
); | ||
// client.getDirectoryContents("/Software").then(function(contents) { | ||
// console.log("C", contents); | ||
// }); | ||
client.getDirectoryContents("/Auth/Home VPN").then(function(contents) { | ||
console.log("C", contents.map(item => item.filename)); | ||
}); | ||
@@ -12,0 +12,0 @@ // function streamToBuffer(stream) { |
@@ -27,3 +27,3 @@ "use strict"; | ||
} | ||
return normalisedPath; | ||
return decodeURIComponent(normalisedPath); | ||
} | ||
@@ -30,0 +30,0 @@ |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
249
0
78006
43
1374