Comparing version 0.2.1 to 0.2.2
@@ -303,2 +303,42 @@ // Copyright 2011 Mark Cavage, Inc. All rights reserved. | ||
DN.prototype.clone = function() { | ||
return new DN(this.rdns); | ||
}; | ||
DN.prototype.reverse = function() { | ||
this.rdns.reverse(); | ||
return this; | ||
}; | ||
DN.prototype.pop = function() { | ||
return this.rdns.pop(); | ||
}; | ||
DN.prototype.push = function(rdn) { | ||
if (typeof(rdn) !== 'object') | ||
throw new TypeError('rdn (RDN) required'); | ||
return this.rdns.push(rdn); | ||
}; | ||
DN.prototype.shift = function() { | ||
return this.rdns.shift(); | ||
}; | ||
DN.prototype.unshift = function(rdn) { | ||
if (typeof(rdn) !== 'object') | ||
throw new TypeError('rdn (RDN) required'); | ||
return this.rdns.unshift(rdn); | ||
}; | ||
///--- Exports | ||
module.exports = { | ||
@@ -305,0 +345,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"description": "LDAP client and server APIs", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
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
1623851
28117