New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

webdav-test

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webdav-test - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

21

dist/request.js

@@ -7,11 +7,10 @@ "use strict";

// function encodeURIPath(path) {
// const uriSections = path.split("/");
// for (let i = 0; i < uriSections.length; i += 1) {
// uriSections[i] = encodeURIComponent(uriSections[i]);
// }
// return uriSections.join("/");
// }
function encodeURIPath(uriPath) {
var uriSections = uriPath.split("/");
for (var i = 0; i < uriSections.length; i += 1) {
uriSections[i] = encodeURIComponent(uriSections[i]);
}
return uriSections.join("/");
}
function request(fullUrl, options) {

@@ -23,5 +22,5 @@ console.log("REQUEST: URL");

var splitUrl = new URL(fullUrl);
// const encodedURI = encodeURIPath(splitUrl.pathname);
console.log(splitUrl);
return fetchMethod(fullUrl, options);
var encodedURI = encodeURIPath(splitUrl.pathname);
console.log(splitUrl.origin + encodedURI);
return fetchMethod(splitUrl.origin + encodedURI, options);
}

@@ -28,0 +27,0 @@

{
"name": "webdav-test",
"version": "1.1.6",
"version": "1.1.7",
"description": "WebDAV client for NodeJS",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -7,9 +7,9 @@ "use strict";

// function encodeURIPath(path) {
// const uriSections = path.split("/");
// for (let i = 0; i < uriSections.length; i += 1) {
// uriSections[i] = encodeURIComponent(uriSections[i]);
// }
// return uriSections.join("/");
// }
function encodeURIPath(uriPath) {
const uriSections = uriPath.split("/");
for (let i = 0; i < uriSections.length; i += 1) {
uriSections[i] = encodeURIComponent(uriSections[i]);
}
return uriSections.join("/");
}

@@ -23,5 +23,5 @@

const splitUrl = new URL(fullUrl);
// const encodedURI = encodeURIPath(splitUrl.pathname);
console.log(splitUrl);
return fetchMethod(fullUrl, options);
const encodedURI = encodeURIPath(splitUrl.pathname);
console.log(splitUrl.origin + encodedURI);
return fetchMethod(splitUrl.origin + encodedURI, options);
}

@@ -28,0 +28,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc