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

webdav

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webdav - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

6

CHANGELOG.md
# WebDAV-client changelog
## 1.6.1
_2018-10-06_
* [#109](https://github.com/perry-mitchell/webdav-client/issues/109) `getDirectoryContents` fails on Seafile responses
* Remove dependency on just a handful of namespaces for multistatus responses
## 1.6.0

@@ -4,0 +10,0 @@ _2018-09-15_

17

dist/interface/dav.js

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

var DAV_KEY_PREFIXES = ["", "d:", "D:", "lp1:"];
function generateKeysForName(name) {
return DAV_KEY_PREFIXES.map(function __mapKeyName(prefix) {
return prefix + name;
function findKey(baseKey, obj) {
return Object.keys(obj).find(function __findBaseKey(itemKey) {
var match = /^[a-z0-9]+:(.+)$/i.exec(itemKey);
return match ? match[1] === baseKey : itemKey === baseKey;
});

@@ -24,7 +23,5 @@ }

if (typeof obj === "object") {
keys = generateKeysForName(key);
for (i = 0, keyCount = keys.length; i < keyCount; i += 1) {
if (typeof obj[keys[i]] !== "undefined") {
return obj[keys[i]];
}
var actualKey = findKey(key, obj);
if (actualKey && typeof obj[actualKey] !== "undefined") {
return obj[actualKey];
}

@@ -31,0 +28,0 @@ }

{
"name": "webdav",
"version": "1.6.0",
"version": "1.6.1",
"description": "WebDAV client for NodeJS",

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

Sorry, the diff of this file is too big to display

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