{"_id":"sequelize-pool","_rev":"2989965","name":"sequelize-pool","description":"Resource pooling for Node.JS","dist-tags":{"latest":"8.0.0"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"time":{"modified":"2023-08-24T07:34:48.000Z","created":"2018-10-20T10:37:19.738Z","8.0.0":"2022-07-25T12:39:10.784Z","7.1.0":"2021-03-25T03:52:47.997Z","7.0.0":"2021-03-11T07:29:28.896Z","6.1.0":"2020-07-11T14:15:58.434Z","6.0.0":"2020-06-09T06:49:25.337Z","5.0.0":"2020-05-23T07:08:45.378Z","4.0.0":"2020-05-10T09:03:36.248Z","3.1.0":"2020-04-04T06:53:22.713Z","3.0.0":"2020-01-18T05:04:27.526Z","2.3.0":"2019-07-02T10:24:11.160Z","2.2.0":"2019-06-22T13:25:10.634Z","2.1.0":"2019-06-11T14:41:02.199Z","2.0.0":"2019-04-12T05:13:30.012Z","1.0.2":"2019-03-01T14:44:08.409Z","1.0.1":"2018-11-04T11:37:07.771Z","1.0.0":"2018-10-20T10:37:19.738Z"},"users":{},"author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"versions":{"8.0.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"8.0.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"types":"types","dependencies":{},"devDependencies":{"@types/node":"^10.17.60","@typescript-eslint/eslint-plugin":"^5.30.7","@typescript-eslint/parser":"^5.30.7","eslint":"^8.20.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","prettier":"^2.7.1","tap":"^16.3.0","typedoc":"^0.23.9","typedoc-plugin-markdown":"^3.13.4","typescript":"^4.7.0"},"engines":{"node":">= 10.0.0"},"scripts":{"build":"tsc","test":"npm run lint && npm run test:raw","lint":"eslint --ext .js,.ts src/**/* test/**/*","pretty":"prettier src test --write","docs":"typedoc","test:raw":"tap test/**/*-test.js"},"prettier":{"singleQuote":true},"tap":{"check-coverage":false},"license":"MIT","gitHead":"2f76b8ad834113bd703455ae64d84c01b5a0473c","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@8.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.4.1","dist":{"shasum":"4bd3a62b9ab8ec336190e2cbce81aa769d7365ee","size":10704,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-8.0.0.tgz"},"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_8.0.0_1658752750628_0.9258276046195175"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-25T12:46:21.217Z","publish_time":1658752750784,"_cnpm_publish_time":1658752750784},"7.1.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"7.1.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"types":"types","dependencies":{},"devDependencies":{"@types/node":"^10.17.54","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.0.0","eslint":"^7.0.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.1.2","prettier":"^2.0.2","tap":"^14.10.7","typedoc":"^0.20.30","typedoc-plugin-markdown":"^3.6.0","typescript":"~4.2.2"},"engines":{"node":">= 10.0.0"},"scripts":{"build":"tsc","test":"npm run lint && npm run test:raw","lint":"eslint --ext .js,.ts src/**/* test/**/*","pretty":"prettier src/**/*.ts test/**/*.js --write","docs":"typedoc","test:raw":"tap test/**/*-test.js"},"prettier":{"singleQuote":true},"license":"MIT","gitHead":"d67c7194bb54c04fcbb891cda3c166018d77dbbf","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@7.1.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"shasum":"210b391af4002762f823188fd6ecfc7413020768","size":10639,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-7.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-7.1.0.tgz"},"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_7.1.0_1616644367858_0.8040884958816319"},"_hasShrinkwrap":false,"publish_time":1616644367997,"_cnpm_publish_time":1616644367997},"7.0.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"7.0.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"types":"types","dependencies":{},"devDependencies":{"@types/node":"^10.17.54","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.0.0","eslint":"^7.0.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.1.2","prettier":"^2.0.2","tap":"^14.10.7","typedoc":"^0.20.30","typedoc-plugin-markdown":"^3.6.0","typescript":"~4.2.2"},"engines":{"node":">= 10.0.0"},"scripts":{"build":"tsc","test":"npm run lint && npm run test:raw","lint":"eslint --ext .js,.ts src/**/* test/**/*","pretty":"prettier src/**/*.ts test/**/*.js --write","docs":"typedoc","test:raw":"tap test/**/*-test.js"},"prettier":{"singleQuote":true},"license":"MIT","gitHead":"43d82b1f5e3f1fb2ed6e41ed98da75f7e4518923","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@7.0.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"shasum":"fc21c32f0e6679ad279f6b4c68fb722c08a919d2","size":10555,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-7.0.0.tgz"},"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_7.0.0_1615447768681_0.1991140434158991"},"_hasShrinkwrap":false,"publish_time":1615447768896,"_cnpm_publish_time":1615447768896},"6.1.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"6.1.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"types":"types","dependencies":{},"devDependencies":{"@types/node":"^14.0.1","@typescript-eslint/eslint-plugin":"^3.0.0","@typescript-eslint/parser":"^3.0.0","eslint":"^7.0.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","prettier":"^2.0.2","tap":"^14.10.7","typedoc":"^0.17.7","typedoc-plugin-markdown":"^2.2.17","typescript":"^3.9.2"},"engines":{"node":">= 10.0.0"},"scripts":{"build":"tsc","test":"npm run lint && npm run test:raw","lint":"eslint --ext .js,.ts src/**/* test/**/*","pretty":"prettier src/**/*.ts test/**/*.js --write","docs":"typedoc","test:raw":"tap test/**/*-test.js"},"prettier":{"singleQuote":true},"license":"MIT","gitHead":"7602d95bf633e6f774289cf66db468f35d2f8218","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@6.1.0","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"shasum":"caaa0c1e324d3c2c3a399fed2c7998970925d668","size":10769,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-6.1.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_6.1.0_1594476958213_0.6082404646301751"},"_hasShrinkwrap":false,"publish_time":1594476958434,"_cnpm_publish_time":1594476958434},"6.0.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"6.0.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{},"devDependencies":{"@types/node":"^14.0.1","@typescript-eslint/eslint-plugin":"^2.33.0","@typescript-eslint/parser":"^2.33.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","prettier":"^2.0.2","tap":"^14.10.7","typedoc":"^0.17.7","typedoc-plugin-markdown":"^2.2.17","typescript":"^3.9.2"},"engines":{"node":">= 10.0.0"},"scripts":{"tsc":"tsc","test":"npm run lint && npm run test:raw","lint":"eslint --ext .js,.ts src/**/* test/**/*","pretty":"prettier src/**/*.ts test/**/*.js --write","docs":"typedoc","test:raw":"tap test/**/*-test.js"},"prettier":{"singleQuote":true},"license":"MIT","gitHead":"9de3f6715d5ec92795a7cea2afe09be12403d12b","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@6.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"shasum":"2b2f6570fb633ecb38a338c4fc266c0e42ce2af7","size":10758,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-6.0.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_6.0.0_1591685365206_0.16182518250266908"},"_hasShrinkwrap":false,"publish_time":1591685365337,"_cnpm_publish_time":1591685365337},"5.0.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"5.0.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{},"devDependencies":{"@types/node":"^14.0.1","@typescript-eslint/eslint-plugin":"^2.33.0","@typescript-eslint/parser":"^2.33.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","prettier":"^2.0.2","tap":"^14.10.7","typedoc":"^0.17.7","typedoc-plugin-markdown":"^2.2.17","typescript":"^3.9.2"},"engines":{"node":">= 10.0.0"},"scripts":{"tsc":"tsc","test":"npm run lint && npm run test:raw","lint":"eslint --ext .js,.ts src/**/* test/**/*","pretty":"prettier src/**/*.ts test/**/*.js --write","docs":"typedoc","test:raw":"tap test/**/*-test.js"},"prettier":{"singleQuote":true},"license":"MIT","gitHead":"3df8b3bf7b791a23e751a695c3248852970541bd","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@5.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"shasum":"4850ea12b312d4373980e0a17bfd5fe6cc47eaee","size":9801,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-5.0.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_5.0.0_1590217725190_0.6863953493432324"},"_hasShrinkwrap":false,"publish_time":1590217725378,"_cnpm_publish_time":1590217725378},"4.0.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"4.0.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"src/Pool.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{},"devDependencies":{"babel-eslint":"^10.1.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-flowtype":"^4.7.0","eslint-plugin-prettier":"^3.1.2","flow-bin":"^0.123.0","jsdoc-to-markdown":"^5.0.3","prettier":"^2.0.2","tap":"^14.10.7"},"engines":{"node":">= 10.0.0"},"scripts":{"test":"npm run lint && npm run test:raw","lint":"eslint src test","pretty":"prettier src/**/*.js test/**/*.js --write","docs":"jsdoc2md src/*.js > API.md","test:raw":"tap test/**/*-test.js","flow":"flow"},"license":"MIT","gitHead":"82bee510e6391eb453f2da1b95b6066154741e04","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@4.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"98bf2cc44790e2e725d82cf4127a22e4ff827555","size":8901,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-4.0.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_4.0.0_1589101416057_0.5901421240983398"},"_hasShrinkwrap":false,"publish_time":1589101416248,"_cnpm_publish_time":1589101416248},"3.1.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"3.1.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/Pool.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{},"devDependencies":{"eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","prettier":"^2.0.2","tap":"^14.10.7"},"engines":{"node":">= 10.0.0"},"scripts":{"test":"npm run lint && npm run test:raw","lint":"eslint lib test","pretty":"prettier lib/**/*.js test/**/*.js --write","test:raw":"tap test/**/*-test.js"},"license":"MIT","gitHead":"20e099cd322e7a203ee21166ea711a0d41158ba7","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@3.1.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"59996436d7f6afbf0e0e12bf91f0e00e3d2158d5","size":8384,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-3.1.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_3.1.0_1585983202604_0.6702020116582867"},"_hasShrinkwrap":false,"publish_time":1585983202713,"_cnpm_publish_time":1585983202713},"3.0.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"3.0.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/Pool.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{},"devDependencies":{"eslint":"^6.5.1","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","prettier":"1.18.2","tap":"^12.7.0"},"engines":{"node":">= 10.0.0"},"scripts":{"test":"npm run lint && npm run test:raw","lint":"eslint lib test","pretty":"prettier lib/**/*.js test/**/*.js --write","test:raw":"tap test/**/*-test.js"},"license":"MIT","gitHead":"ee49a0a56ceeec4a14bf1c516c541f57eecaf907","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@3.0.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"shasum":"4f41c7bc2a8747d69af7486bbba270d561796e93","size":6810,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-3.0.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_3.0.0_1579323867414_0.9963438845162222"},"_hasShrinkwrap":false,"publish_time":1579323867526,"_cnpm_publish_time":1579323867526},"2.3.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"2.3.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/Pool.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{},"devDependencies":{"eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","prettier":"1.18.2","tap":"^12.7.0"},"engines":{"node":">= 6.0.0"},"scripts":{"test":"npm run lint && npm run test:raw","lint":"eslint lib test","pretty":"prettier lib/**/*.js test/**/*.js --write","test:raw":"tap test/**/*-test.js"},"license":"MIT","gitHead":"e6bcd19dfd314174f20c226aab012391774db171","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@2.3.0","_nodeVersion":"8.15.1","_npmVersion":"6.9.0","dist":{"shasum":"64f1fe8744228172c474f530604b6133be64993d","size":6821,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-2.3.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_2.3.0_1562063051039_0.422178398652858"},"_hasShrinkwrap":false,"publish_time":1562063051160,"_cnpm_publish_time":1562063051160},"2.2.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"2.2.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/Pool.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{},"devDependencies":{"eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","prettier":"1.18.2","tap":"^12.7.0"},"engines":{"node":">= 6.0.0"},"scripts":{"test":"npm run lint && npm run test:raw","lint":"eslint lib test","pretty":"prettier lib/**/*.js test/**/*.js --write","test:raw":"tap test/**/*-test.js"},"license":"MIT","gitHead":"e79b1683f9ae05ae467352d694916c688ad64b8f","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@2.2.0","_shasum":"fd4eb05ccefb5df5c23d2cc6fd934c20fd9c5dab","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.17.1","_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"dist":{"shasum":"fd4eb05ccefb5df5c23d2cc6fd934c20fd9c5dab","size":6858,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-2.2.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_2.2.0_1561209910493_0.8305520786253611"},"_hasShrinkwrap":false,"publish_time":1561209910634,"_cnpm_publish_time":1561209910634},"2.1.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"2.1.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/Pool.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{},"devDependencies":{"eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","prettier":"1.16.4","tap":"^12.7.0"},"engines":{"node":">= 6.0.0"},"scripts":{"test":"npm run lint && npm run test:raw","lint":"eslint lib test","pretty":"prettier lib/**/*.js test/**/*.js --write","test:raw":"tap test/**/*-test.js"},"license":"MIT","gitHead":"9e9bd01c9547c89a97fdd3c96ae93238ac13a59b","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@2.1.0","_nodeVersion":"8.15.1","_npmVersion":"6.9.0","dist":{"shasum":"cbab1c1872c37e531743e811e0672317ab9e9b84","size":6810,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-2.1.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_2.1.0_1560264062098_0.655228281245936"},"_hasShrinkwrap":false,"publish_time":1560264062199,"_cnpm_publish_time":1560264062199},"2.0.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"2.0.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/Pool.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{},"devDependencies":{"eslint":"^5.16.0","eslint-config-prettier":"^4.1.0","eslint-plugin-prettier":"^3.0.1","prettier":"1.16.4","tap":"^12.6.1"},"engines":{"node":">= 6.0.0"},"scripts":{"test":"npm run lint && npm run test:raw","lint":"eslint lib test","pretty":"prettier lib/**/*.js test/**/*.js --write","test:raw":"tap test/**/*-test.js"},"license":"MIT","gitHead":"a88b16053bec4ae077a971422743b69fd7055676","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@2.0.0","_nodeVersion":"8.15.1","_npmVersion":"6.9.0","dist":{"shasum":"07027ca5aa6e57ef43af5462bc3dfdd0ad706eb5","size":6743,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-2.0.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_2.0.0_1555046009860_0.467109497414228"},"_hasShrinkwrap":false,"publish_time":1555046010012,"_cnpm_publish_time":1555046010012},"1.0.2":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"1.0.2","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/Pool.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{"bluebird":"^3.5.3"},"devDependencies":{"eslint":"^5.14.1","eslint-config-prettier":"^4.1.0","eslint-plugin-prettier":"^3.0.1","prettier":"1.16.4","tap":"^12.5.3"},"engines":{"node":">= 6.0.0"},"scripts":{"test":"npm run lint && npm run test:raw","lint":"eslint lib test","pretty":"prettier lib/**/*.js test/**/*.js --write","test:raw":"tap test/**/*-test.js"},"license":"MIT","gitHead":"4ba723db0f5c81ea53058de75bbd11fbc59fda78","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"8.11.3","_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"dist":{"shasum":"89c767882bbdb8a41dac66922ed9820939a5401e","size":6624,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-1.0.2.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_1.0.2_1551451448295_0.3191605340475441"},"_hasShrinkwrap":false,"publish_time":1551451448409,"_cnpm_publish_time":1551451448409},"1.0.1":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"1.0.1","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/Pool.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{"bluebird":"^3.5.2"},"devDependencies":{"eslint":"^5.6.1","eslint-config-prettier":"^3.1.0","eslint-plugin-prettier":"^2.7.0","prettier":"1.14.3","tap":"^12.0.1"},"engines":{"node":">= 6.0.0"},"scripts":{"test":"npm run lint && npm run test:raw","lint":"eslint lib test","pretty":"prettier lib/**/*.js test/**/*.js --write","test:raw":"tap test/**/*-test.js"},"license":"MIT","gitHead":"e598fc36bf126e0f62e089fe8dc0b23e850c61d4","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.11.3","_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"dist":{"shasum":"a75f2ee4701516078479ac76eda8438f5989d557","size":6560,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-1.0.1.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_1.0.1_1541331427621_0.34342851586444567"},"_hasShrinkwrap":false,"publish_time":1541331427771,"_cnpm_publish_time":1541331427771},"1.0.0":{"name":"sequelize-pool","description":"Resource pooling for Node.JS","version":"1.0.0","author":{"name":"Sushant","email":"sushantdhiman@outlook.com"},"keywords":["pool","pooling","throttle","sequelize"],"main":"lib/Pool.js","repository":{"type":"git","url":"git+ssh://git@github.com/sushantdhiman/sequelize-pool.git"},"dependencies":{"bluebird":"^3.5.2"},"devDependencies":{"eslint":"^5.6.1","eslint-config-prettier":"^3.1.0","eslint-plugin-prettier":"^2.7.0","prettier":"1.14.3","tap":"^12.0.1"},"engines":{"node":">= 6.0.0"},"scripts":{"test":"npm run lint && npm run test:raw","lint":"eslint lib test","pretty":"prettier lib/**/*.js test/**/*.js --write","test:raw":"tap test/**/*-test.js"},"license":"MIT","gitHead":"93ef08b7e7eef18281d2e4f629e24e8d3cbd3929","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","_id":"sequelize-pool@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.11.3","_npmUser":{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"},"dist":{"shasum":"e63a18f3fc4328612ce1a65627bc31be72d73194","size":9504,"noattachment":false,"key":"/sequelize-pool/-/sequelize-pool-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sequelize-pool/download/sequelize-pool-1.0.0.tgz"},"maintainers":[{"name":"eseliger","email":"erikseliger@me.com"},{"name":"papb","email":"papb1996@gmail.com"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-pool_1.0.0_1540031839567_0.05174609167863076"},"_hasShrinkwrap":false,"publish_time":1540031839738,"_cnpm_publish_time":1540031839738}},"readme":"# Sequelize Pool\n\n[![npm](https://img.shields.io/npm/v/sequelize-pool.svg?style=flat-square)](https://www.npmjs.com/package/sequelize-pool)\n[![Actions Status](https://github.com/sequelize/sequelize-pool/workflows/CI/badge.svg)](https://github.com/sequelize/sequelize-pool/actions)\n\nResource pool implementation. It can be used to throttle expensive resources.\n\n**Note:**\nThis is a fork from [generic-pool@v2.5](https://github.com/coopernurse/node-pool/tree/v2.5).\n\n## Installation\n\n```sh\nnpm i sequelize-pool\n```\n\n## API Documentation\n\nYou can find full API documentation in [docs/README.md](docs/README.md)\n\n## Example\n\n### Step 1 - Create pool using a factory object\n\n```js\n// Create a MySQL connection pool\nvar Pool = require('sequelize-pool').Pool;\nvar mysql2 = require('mysql2/promise');\n\nvar pool = new Pool({\n  name: 'mysql',\n  create: async () => {\n    // create a new connection\n    // return as a promise\n    return mysql2.createConnection({\n      user: 'scott',\n      password: 'tiger',\n      database: 'mydb',\n    });\n  },\n  destroy: (connection) => {\n    // this function should destroy connection. Pool waits for promise (if returned).\n    // connection is removed from pool and this method is called and awaited for.\n    connection.end();\n  },\n  validate: (connection) => connection.closed !== true,\n  max: 5,\n  min: 0,\n});\n```\n\n### Step 2 - Use pool in your code to acquire/release resources\n\n```js\n// acquire connection\n(async () => {\n  // Get new connection from pool.\n  // This method can throw TimeoutError if connection was not created in\n  // specified `factory.acquireTimeoutMillis` time.\n  const connection = await pool.acquire();\n\n  const result = connection.query('select * from foo');\n\n  // return connection back to pool so it can be reused\n  pool.release(connection);\n})();\n```\n\n### Step 3 - Drain pool during shutdown (optional)\n\nIf you are shutting down a long-lived process, you may notice\nthat node fails to exit for 30 seconds or so. This is a side\neffect of the `idleTimeoutMillis` behaviour -- the pool has a\n`setTimeout()` call registered that is in the event loop queue, so\nnode won't terminate until all resources have timed out, and the pool\nstops trying to manage them.\n\nThis behavior will be more problematic when you set `factory.min > 0`,\nas the pool will never become empty, and the `setTimeout` calls will\nnever end.\n\nIn these cases, use the `pool.drain()` function. This sets the pool\ninto a \"draining\" state which will gracefully wait until all\nidle resources have timed out. For example, you can call:\n\n```js\n// Only call this once in your application -- at the point you want\n// to shutdown and stop using this pool.\npool.drain().then(() => pool.destroyAllNow());\n```\n\nIf you do this, your node process will exit gracefully.\n\n## Draining\n\nIf you know would like to terminate all the resources in your pool before\ntheir timeouts have been reached, you can use `destroyAllNow()` in conjunction\nwith `drain()`:\n\n```js\npool.drain().then(() => pool.destroyAllNow());\n```\n\nOne side-effect of calling `drain()` is that subsequent calls to `acquire()`\nwill throw an Error.\n\n## Using `maxUses` option\n\nImagine a scenario where you have 10 app servers (hosting an API) that each connect to a read-replica set of 3 members, accessible behind a DNS name that round-robins IPs for the 3 replicas. Each app server rus a connection pool of 25 connections.\n\nYou start your app servers with an ambient traffic load of 50 http requests per second, and the connection pools likely fill up in a minute or two. Everything is great at this point.\n\nBut when you hit weekly traffic peaks, you might reach up to 1,000 http requests per second. If you have a DB with elastic read replicas, you might quickly add 10 more read replicas during this peak time and scale them back down during slower times of the week in order to reduce cost and avoid the additional replication lag you might see with larger numbers or read replicas.\n\nWhen you add these 10 read replicas, assuming the first 3 remain healthy, the connection pool with not inherently adopt these new replicas because the pools are full and the connections are healthy, so connections are continuously reused with no need to create new ones. Some level of intervention is needed to fill the connection pool with connections that are balanced between all the replicas.\n\nIf you set the `maxUses` configuration option, the pool will proactively retire a resource (connection) once it has been acquired and released `maxUses` number of times, which over a period of time will eventually lead to a relatively balanced pool.\n\nOne way to calculate a reasonable value for `maxUses` is to identify an acceptable window for rebalancing and then solve for `maxUses`:\n\n```sh\n   maxUses = rebalanceWindowSeconds * totalRequestsPerSecond / numAppInstances / poolSize\n```\n\nIn the example above, assuming we acquire and release 1 connection per request and we are aiming for a 30 minute rebalancing window:\n\n```sh\n    maxUses = rebalanceWindowSeconds * totalRequestsPerSecond / numAppInstances / poolSize\n       7200 =        1800            *          1000          /        10       /    25\n```\n\n...in other words we would retire and replace a connection after every 7200 uses, which we expect to be around 30 minutes under peak load.\n\nOf course, you'll want to test scenarios for your own application since every app and every traffic pattern is different.\n\n## Contributing\n\nWe use [Node Tap](https://node-tap.org/) for testing.\n\n```sh\nnpm install\nnpm test\n```\n\nDocumentation is generated with `typedoc`\n\n```sh\nnpm run docs\n```\n","_attachments":{},"homepage":"https://github.com/sushantdhiman/sequelize-pool#readme","bugs":{"url":"https://github.com/sushantdhiman/sequelize-pool/issues"},"license":"MIT"}