ad-promise
Advanced tools
Comparing version 0.0.1 to 1.0.1
{ | ||
"author": "Relief Melone (relief.melone@gmail.com)", | ||
"name": "ad-promise", | ||
"version": "0.0.1", | ||
"version": "1.0.1", | ||
"description": "This is a fork of the gheeres node-activedirectory. This is still a work in progress and not stable. The goal to use promises instead of the async library which is causing some problems in the current version of node-activedirectory", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"bugs": { | ||
"url": "https://github.com/gheeres/node-activedirectory/issues" | ||
"url": "https://github.com/relief-melone/node-activedirectory/issues" | ||
}, | ||
@@ -29,3 +29,3 @@ "dependencies": { | ||
"type": "git", | ||
"url": "https://github.com/gheeres/node-activedirectory.git" | ||
"url": "https://github.com/relief-melone/node-activedirectory" | ||
}, | ||
@@ -32,0 +32,0 @@ "license": "MIT", |
@@ -1,5 +0,5 @@ | ||
ActiveDirectory-P for Node | ||
AD-Promise for Node | ||
========= | ||
ActiveDirectoryP is a fork of the great module node-activedirectory by gheery. In addition to that I stripped out the need of the async library (which always crashed in my environment if I was dealin with a lot of simultaneaously requests). In addition all the methods described downwards can not only be used with a callback, but will also return a promise. If you already use the original module you should be able to use this module aswell without having to adjustice anything. This module is still in testing. I would be happy if you would post any issues you might find so they can be corrected. | ||
AD-Promise is a fork of the great module node-activedirectory by gheery. In addition to that I stripped out the need of the async library (which always crashed in my environment if I was dealin with a lot of simultaneaously requests). In addition all the methods described downwards can not only be used with a callback, but will also return a promise. If you already use the original module you should be able to use this module aswell without having to adjustice anything. This module is still in testing. I would be happy if you would post any issues you might find so they can be corrected. | ||
@@ -274,2 +274,4 @@ Now to the original Readme with some additions on how to use the promises alternatively (of course you can also use await I just wrote down the way with .then()) | ||
var ad = new ActiveDirectory(config); | ||
//Using a Callback | ||
ad.getGroupMembershipForUser(sAMAccountName, function(err, groups) { | ||
@@ -284,2 +286,9 @@ if (err) { | ||
}); | ||
//Using a Promise | ||
ad.getGroupMembershitForUser(SAMAccountName).then(groups => { | ||
console.log(JSON.stringify(groups)); | ||
}, err => { | ||
console.log('ERROR: ' + JSOBN.stringify(err)); | ||
}) | ||
``` | ||
@@ -305,2 +314,4 @@ | ||
var ad = new ActiveDirectory(config); | ||
//Using a Callback | ||
ad.getGroupMembershipForGroup(groupName, function(err, groups) { | ||
@@ -315,2 +326,10 @@ if (err) { | ||
}); | ||
//Using a Promise | ||
ad.getGroupMembershipForGroup(groupname).then(groups => { | ||
console.log(JSON.stringify(groups)); | ||
}, err => { | ||
console.log('ERROR: ' + JSON.stringify(err)); | ||
}); | ||
``` | ||
@@ -317,0 +336,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
199437
1
756