Comparing version 3.8.2 to 3.8.3
@@ -6,5 +6,28 @@ 'use strict'; | ||
var once = require('./once'); | ||
var joinPath = require('path').posix.join; | ||
var LinkedList = require('linkedlist'); | ||
function joinPath() { | ||
var a = arguments[0] === undefined ? '' : arguments[0]; | ||
var b = arguments[1] === undefined ? '' : arguments[1]; | ||
if (!a && !b) return ''; | ||
var leadingSlash = a.charAt(0) === '/'; | ||
var trailingSlash = b.charAt(b.length - 1) === '/'; | ||
var tokens = (a + '/' + b).split('/').filter(Boolean); | ||
for (var i = 0; i < tokens.length; i++) { | ||
var token = tokens[i]; | ||
if (token === '..') { | ||
tokens.splice(i - 1, 2); | ||
i--; | ||
} else if (token === '.') { | ||
tokens.splice(i, 1); | ||
i--; | ||
} | ||
} | ||
var path = tokens.join('/'); | ||
if (leadingSlash) path = '/' + path; | ||
if (trailingSlash) path = path + '/'; | ||
return path; | ||
} | ||
function rawCopy(obj) { | ||
@@ -80,2 +103,2 @@ var data = {}; | ||
}; | ||
}; | ||
}; |
{ | ||
"name": "arangojs", | ||
"version": "3.8.2", | ||
"version": "3.8.3", | ||
"description": "The official ArangoDB JavaScript driver.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162718
1674