Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ad-promise

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ad-promise - npm Package Compare versions

Comparing version 0.0.1 to 1.0.1

6

package.json
{
"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 @@

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