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

promise-pool-ext

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-pool-ext - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

lib/util/check-cyclic.js

6

lib/modules/pool-manager.js

@@ -7,3 +7,3 @@ const assert = require('assert');

const checkForRecursion = require('../util/check-for-recursion');
const checkCyclic = require('../util/check-cyclic');

@@ -18,3 +18,3 @@ module.exports = (logic, {

})));
checkForRecursion(Object.entries(logic).reduce((p, [k, v]) => Object.assign(p, {
checkCyclic(Object.entries(logic).reduce((p, [k, v]) => Object.assign(p, {
[k]: v.requires || []

@@ -66,2 +66,2 @@ }), {}));

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tb2R1bGVzL3Bvb2wtbWFuYWdlci5qcyJdLCJuYW1lcyI6WyJhc3NlcnQiLCJyZXF1aXJlIiwiSm9pIiwiUG9vbCIsImNoZWNrRm9yUmVjdXJzaW9uIiwibW9kdWxlIiwiZXhwb3J0cyIsImxvZ2ljIiwiY29uY3VycmVuY3kiLCJvYmplY3QiLCJtaW4iLCJwYXR0ZXJuIiwic3RyaW5nIiwia2V5cyIsInJlcXVpcmVzIiwiYXJyYXkiLCJpdGVtcyIsInZhbGlkIiwiT2JqZWN0Iiwib3B0aW9uYWwiLCJpZiIsImZ1bmN0aW9uIiwiZm4iLCJlbnRyaWVzIiwicmVkdWNlIiwicCIsImsiLCJ2IiwiYXNzaWduIiwicG9vbCIsInJlYWR5IiwiZW5xdWV1ZSIsIm5hbWUiLCJ1bmRlZmluZWQiLCJ0YXNrIiwibGVuZ3RoIiwiZm9yRWFjaCIsIm4iLCJrd2FyZ3MiLCJtYXAiLCJlcnJvcnMiLCJmaW5kIiwiZSIsIkVycm9yIiwiZ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25zdCB0YXNrID0gbG9naWNbbmFtZV07XG4gICAgICAgIGlmICh0YXNrLmlmICE9PSB1bmRlZmluZWQgJiYgdGFzay5pZigpICE9PSB0cnVlKSB7XG4gICAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgfVxuICAgICAgICBpZiAodGFzay5yZXF1aXJlcyA9PT0gdW5kZWZpbmVkIHx8IHRhc2sucmVxdWlyZXMubGVuZ3RoID09PSAwKSB7XG4gICAgICAgICAgcmV0dXJuIHBvb2wodGFzay5mbik7XG4gICAgICAgIH1cbiAgICAgICAgdGFzay5yZXF1aXJlcy5mb3JFYWNoKChuKSA9PiB7XG4gICAgICAgICAgcmVhZHlbbl0gPSBlbnF1ZXVlKG4pO1xuICAgICAgICB9KTtcbiAgICAgICAgcmV0dXJuIHBvb2woYXN5bmMgKCkgPT4ge1xuICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICBjb25zdCBrd2FyZ3MgPSAoYXdhaXQgcG9vbCh0YXNrLnJlcXVpcmVzLm1hcCgobikgPT4gYXN5bmMgKCkgPT4gW24sIGF3YWl0IHJlYWR5W25dXSkpKVxuICAgICAgICAgICAgICAucmVkdWNlKChwLCBbaywgdl0pID0+IE9iamVjdC5hc3NpZ24ocCwgeyBba106IHYgfSksIHt9KTtcbiAgICAgICAgICAgIHJldHVybiB0YXNrLmZuKGt3YXJncyk7XG4gICAgICAgICAgfSBjYXRjaCAoZXJyb3JzKSB7XG4gICAgICAgICAgICB0aHJvdyBlcnJvcnMuZmluZCgoZSkgPT4gZSBpbnN0YW5jZW9mIEVycm9yKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgfSkoKTtcbiAgICB9XG4gICAgcmV0dXJuIHJlYWR5W25hbWVdO1xuICB9O1xuXG4gIHJldHVybiB7XG4gICAgZ2V0OiAobmFtZSkgPT4ge1xuICAgICAgYXNzZXJ0KGxvZ2ljW25hbWVdICE9PSB1bmRlZmluZWQpO1xuICAgICAgcmV0d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biAgICAgICAgcmV0dXJuIHBvb2woYXN5bmMgKCkgPT4ge1xuICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICBjb25zdCBrd2FyZ3MgPSAoYXdhaXQgcG9vbCh0YXNrLnJlcXVpcmVzLm1hcCgobikgPT4gYXN5bmMgKCkgPT4gW24sIGF3YWl0IHJlYWR5W25dXSkpKVxuICAgICAgICAgICAgICAucmVkdWNlKChwLCBbaywgdl0pID0+IE9iamVjdC5hc3NpZ24ocCwgeyBba106IHYgfSksIHt9KTtcbiAgICAgICAgICAgIHJldHVybiB0YXNrLmZuKGt3YXJncyk7XG4gICAgICAgICAgfSBjYXRjaCAoZXJyb3JzKSB7XG4gICAgICAgICAgICB0aHJvdyBlcnJvcnMuZmluZCgoZSkgPT4gZSBpbnN0YW5jZW9mIEVycm9yKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgfSkoKTtcbiAgICB9XG4gICAgcmV0dXJuIHJlYWR5W25hbWVdO1xuICB9O1xuXG4gIHJldHVybiB7XG4gICAgZ2V0OiAobmFtZSkgPT4ge1xuICAgICAgYXNzZXJ0KGxvZ2ljW25hbWVdICE9PSB1bmRlZmluZWQpO1xuICAgICAgcmV0dXJuIGVucXVldWUobmFtZSk7XG4gICAgfVxuICB9O1xufTtcbiJdfQ==
{
"name": "promise-pool-ext",
"version": "1.2.3",
"version": "1.2.4",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "repository": {

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