{"_id":"@agrippa-io/node-connection-manager","_rev":"13-f0ed2715975d1d591ad1f9b59729a3c9","name":"@agrippa-io/node-connection-manager","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.0":{"name":"@agrippa-io/node-connection-manager","version":"1.0.0","author":{"name":"Aggripa Development Team"},"license":"ISC","_id":"@agrippa-io/node-connection-manager@1.0.0","maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"dist":{"shasum":"f48e655249132f5a2505729b5bda45b655e94cf0","tarball":"https://registry.npmjs.org/@agrippa-io/node-connection-manager/-/node-connection-manager-1.0.0.tgz","fileCount":8,"integrity":"sha512-hmZ1JfOaHldaO7odAztLr5wx7NbjJDWDY4VZm05kMUzFrWl/kI+A6bfGq1s6ch0or3KFGCglMc9kwpzxFO+fVQ==","signatures":[{"sig":"MEUCID2pP0q3qgJfk3uXSzw7ReSGgUW2TpotPez8PC+b6AyCAiEA8mlw4/B/TzGN7SRoFEX+1Z91NCUioiE4qYH2lNr+DvQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25517,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgaSABCRA9TVsSAnZWagAA+7UP/0Ublxh7LXISfq5Gij5k\ngIZK4vC94Ybfww3ce+iqxAt42y7D8hOf6nr5rLBiA4jG7S6DX7ku1mlYwCD9\n7wIRnu39M89glmwmJgBONH2xpmwPK1Fgmi+zlEn+/79XeaCcyU/LkM7j+mOl\n3BJonD0bat5nPWMq+E2PhZk24w2l755uJorHVRckBpR9pIwtbGoIB9u+tjjr\nW6t3UIoi8RM1XxnesAxKDMXeBitLkjlFEtTeSEDgYhxfjc6+B2YmzmGTJVq8\n7hdrgOVKe4C1EKADMXzZk9RVd2KEN5ge7YaOpd/zTVWVq3pgnkLueCv9hAo9\ng+4jky5U62rU873f7Jw7/1lcjovdObmhQbqBDJRry+aJrwpDa/RVOTOIk9YZ\ndVa1VkhBeF2zdspWkxsEs47OOcKehc4voCubDLf9bMyE4SSTRLXJnKnOPioU\nqcGgrXePpndq568x6EgMqNcknAoj//wtrImEm+ngYBsJDqIs9nWpyMuMlHc4\ni7Ij91aJbPfzBpOJ3Ht7B1ySZJg//sbkkOPQ2Fhtof6vGx+zUXtxW93CsV2A\naDTTU+0ed4i22Q1C0zyU8Hmk+UI0HofldmvihHRj0Vu3A1eb6xWgT/p318FA\nLWkC9EBdiMFk4eK4GNrtAZDUO6UmLkTItsgtA6hK9C7c9Jr+PF88YGWOs8Lv\npKrI\r\n=sQpq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"6780368cc55586e9945e142176a80cd53d0b0511","scripts":{"test":"mocha --timeout=10000 './**/*.spec.js'"},"_npmUser":{"name":"mattvalli","email":"matthew.valli@gmail.com"},"_npmVersion":"7.7.5","description":"A Singleton Class used to register and distribute database connections","directories":{},"_nodeVersion":"14.16.0","dependencies":{"chai":"^4.2.0","mocha":"^8.1.3","lodash":"^4.17.20"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/node-connection-manager_1.0.0_1617502209211_0.6140971026622335","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@agrippa-io/node-connection-manager","version":"1.0.1","author":{"name":"Aggripa Development Team"},"license":"ISC","_id":"@agrippa-io/node-connection-manager@1.0.1","maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"dist":{"shasum":"bd947a62e202a45d17b7d41516c639de962c0ed2","tarball":"https://registry.npmjs.org/@agrippa-io/node-connection-manager/-/node-connection-manager-1.0.1.tgz","fileCount":13,"integrity":"sha512-dPc7RiGXBjxqHcuF2oFP2VUZ2KNV0NmxmMNf7uiCVCdXPd2MEhdNySYFNkq9AlCTNYK7gbr7J7XlzdHhflcSwQ==","signatures":[{"sig":"MEUCIG6TL847DAIGMEQ/S9UiS03hRynpG4E+1s2TLVwl+8FcAiEAoQgMW+9s4A1SUKcRNz9yAA7BIQMJkW9E0fFngC8fHv8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29896},"main":"index.js","gitHead":"6be3231b76e15177500d46d45fff556024091274","scripts":{"test":"mocha --timeout=10000 './**/*.test.js'"},"_npmUser":{"name":"mattvalli","email":"matthew.valli@gmail.com"},"_npmVersion":"8.1.1","description":"A Singleton Class used to register and distribute database connections","directories":{},"_nodeVersion":"14.18.1","dependencies":{"lodash":"^4.17.21","@agrippa-io/node-utils":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3","@types/chai":"^4.2.22","@types/node":"^16.11.5","@types/mocha":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node-connection-manager_1.0.1_1635204306761_0.9696954967276235","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@agrippa-io/node-connection-manager","version":"1.0.2","author":{"name":"Aggripa Development Team"},"license":"ISC","_id":"@agrippa-io/node-connection-manager@1.0.2","maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"dist":{"shasum":"2b225b6f80582935e79729b6a0ca3849eb5a1031","tarball":"https://registry.npmjs.org/@agrippa-io/node-connection-manager/-/node-connection-manager-1.0.2.tgz","fileCount":13,"integrity":"sha512-f0LRC20kBEpsZxAZA1fI4NakzZQGfsAVXJFckj2bxIBbWWjQ6Pm/4iUOjkYB6JqleyAYtmdnR8MZthlA4+P/VA==","signatures":[{"sig":"MEQCIFFcP5K3Ws0mJmCE02vvoh9gfOd5x1wJjK+ALU3wmTt4AiA1r19W/bVh/Uv0ovxNSf2pRpv3xQnTWhJbFvBhlQkyPA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29919},"main":"./dist/index.js","gitHead":"a5005a8a4364f4a1e3b63280ea6bd5ff8fd11805","scripts":{"test":"mocha --timeout=10000 './**/*.test.js'"},"_npmUser":{"name":"mattvalli","email":"matthew.valli@gmail.com"},"_npmVersion":"8.1.1","description":"A Singleton Class used to register and distribute database connections","directories":{},"_nodeVersion":"14.18.1","dependencies":{"lodash":"^4.17.21","@agrippa-io/node-utils":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3","@types/chai":"^4.2.22","@types/node":"^16.11.5","@types/mocha":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node-connection-manager_1.0.2_1635204832012_0.27717677556083165","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@agrippa-io/node-connection-manager","version":"1.0.3","author":{"name":"Aggripa Development Team"},"license":"ISC","_id":"@agrippa-io/node-connection-manager@1.0.3","maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"dist":{"shasum":"1dfef212672b87bdf7bfad1d1c5486f31f697bc4","tarball":"https://registry.npmjs.org/@agrippa-io/node-connection-manager/-/node-connection-manager-1.0.3.tgz","fileCount":13,"integrity":"sha512-yGOZwhMz1ZxRnVWBAwdyAm30YgkJGuPjjosrTmc3UN8JFTIDZJNgFZE+XVAUL3mlWQmrWCsBAuGeFj+pPGU9tQ==","signatures":[{"sig":"MEUCIQDTyO6FPeafFG8xAEzwKusG9+bKWSeFpHzd3YnHNetYCwIgEox/e+7HMYSZ1f+VDUDZibP6pqS8hzu57ruItktiyM8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29960},"main":"./dist/index.js","gitHead":"76e8c685c2ae23b3af22b1f37e6364031bb281b9","scripts":{"test":"mocha --timeout=10000 './**/*.test.js'"},"_npmUser":{"name":"mattvalli","email":"matthew.valli@gmail.com"},"_npmVersion":"8.1.1","description":"A Singleton Class used to register and distribute database connections","directories":{},"_nodeVersion":"14.18.1","dependencies":{"lodash":"^4.17.21","@agrippa-io/node-utils":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3","@types/chai":"^4.2.22","@types/node":"^16.11.5","@types/mocha":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node-connection-manager_1.0.3_1635249893139_0.44911470673266884","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@agrippa-io/node-connection-manager","version":"1.0.4","author":{"name":"Aggripa Development Team"},"license":"ISC","_id":"@agrippa-io/node-connection-manager@1.0.4","maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"dist":{"shasum":"b291793c357d910acc83981acabfe62a72a28534","tarball":"https://registry.npmjs.org/@agrippa-io/node-connection-manager/-/node-connection-manager-1.0.4.tgz","fileCount":25,"integrity":"sha512-E0FLJsit2FRrvBUrpweK5ASmcHGsfjI2iCYmS5HO18XH8pFCPLp0nTLZ1KY4s/R5yPaS/3rCDS71E2L1/Ph2HA==","signatures":[{"sig":"MEQCICgA/YeGHVdJ5AZ+NbfdnUD/9kTHm/3ppnP2c+3jDBHaAiB/3cN0GpyQd1+PpAaSiFN0USb6/djKI4GxmtUEtUIvSA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73843},"main":"./dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"3fa15d51d137e9a250e916afb0942723e874d4fd","scripts":{"test":"mocha --timeout=10000 './**/*.test.js'"},"_npmUser":{"name":"mattvalli","email":"matthew.valli@gmail.com"},"_npmVersion":"8.1.1","description":"A Singleton Class used to register and distribute database connections","directories":{},"_nodeVersion":"14.18.1","dependencies":{"lodash":"^4.17.21","@agrippa-io/node-utils":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3","@types/chai":"^4.2.22","@types/node":"^16.11.5","@types/mocha":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node-connection-manager_1.0.4_1635298961003_0.6993581150235162","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@agrippa-io/node-connection-manager","version":"1.0.5","author":{"name":"Aggripa Development Team"},"license":"ISC","_id":"@agrippa-io/node-connection-manager@1.0.5","maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"dist":{"shasum":"7f0c96b841b36edc9175c9471c7135710754c036","tarball":"https://registry.npmjs.org/@agrippa-io/node-connection-manager/-/node-connection-manager-1.0.5.tgz","fileCount":25,"integrity":"sha512-KBV8B7KwntQ3WYfUn03xKzquTSoxO4bEj5PCt9WeJRJ6D7fJdOfwJwW4Emg7RKCM9j3tWKKIDnm2yavCzoPXew==","signatures":[{"sig":"MEYCIQDNDUSDLtpN9L1tKO7JdRkD4aZnCykKcRtQfCisBkmHsAIhAM4wuSHHRC8H+fbkESRCgvfFZkAcf4eTiGYJV7cWM938","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73823},"main":"./dist/index.js","types":"dist/index.d.ts","gitHead":"cb41cffc8d0dcc9a541080f759425da011b1c1f3","scripts":{"test":"mocha --timeout=10000 './**/*.test.js'"},"_npmUser":{"name":"mattvalli","email":"matthew.valli@gmail.com"},"_npmVersion":"8.1.1","description":"A Singleton Class used to register and distribute database connections","directories":{},"_nodeVersion":"14.18.1","dependencies":{"lodash":"^4.17.21","@agrippa-io/node-utils":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3","@types/chai":"^4.2.22","@types/node":"^16.11.5","@types/mocha":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node-connection-manager_1.0.5_1635310837792_0.5050099656032099","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@agrippa-io/node-connection-manager","version":"1.0.6","author":{"name":"Aggripa Development Team"},"license":"ISC","_id":"@agrippa-io/node-connection-manager@1.0.6","maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"dist":{"shasum":"f2e11711d16566b09f02fee3de66424d3f2f71ad","tarball":"https://registry.npmjs.org/@agrippa-io/node-connection-manager/-/node-connection-manager-1.0.6.tgz","fileCount":25,"integrity":"sha512-gdRz88HW/jFK7PFGynD9BkE+CYwvjov9qyZmlb0k55V8cy0ELVWshth0PvJKRwxupGLYfgTEcN5k+p36zWrfTA==","signatures":[{"sig":"MEQCIHBX7M/IhvZQpaAX3FrJZ+nJjojrJwm2cIFcAz0Sb9F2AiA565GPiWF/qNR6su3WwD+GJaww2FGAWTGS/IMf+h+l9g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwvSBCRA9TVsSAnZWagAAu70P/2I+m9oB7DSoApOZCV4H\n2nch9n9IWACF7HQqnMENyUxUiOW410q0mEZ7ykNUBHx8P35G/mLvlltPIBou\nMCksKO6hgqkQ8A3X0EkGNzMmXgDbkWqAkkg3ME3BA+DFzm2tEmbARiqXzLa3\nPuU7ClfpnV+e8D6UdxwJ85oRRtez24Qzht8bc56e4ZATjJSnXSl7nCaTdSTu\nIaeUGau2ukloR/xCCnYC0N/hRvpyinWTQnVDqVLkSUKPiSZiDpTb6wreUbGv\nwQZqFEc6ZP6UxwVhvMuPacprBDv4DzAHKa55qQL+xhnCoIxlg3KgKHZrZ7bA\nHtTR/WWtxLbNdBTuEoAQ0CJP9gT2ywgVoY7XyX4F3p7PRFAJazFE2QMRq7nL\n4twtU3SU89Va1CxAETbhP+958DoyiQSUI2fKkew0ccFqxyDb7ZkM+io9Q3OD\nPJ9AjzYOqlb4cjQ3LG1IWeckjERXy1wzu+H92ef0RnIgccBEWfsFLz0G/BDo\noXnTXosgNNRfYgQoPyEdAA/wkVE60b/RlGb8PnMKlltWY4czDSf4HZ4p3VoK\nsXuh3MlSDHdgKGUw9QwTLSivDlBzVOGPI4IIe0dX9WnRs0e7QeRbJSseaJj3\nKG7yadaA+1n6x9rJhthRWRF1WfYerP66xVomRPGAfh0i6G/EZ6/4uwmirfq+\nnGFa\r\n=KmxI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"dist/index.d.ts","gitHead":"5980d60844bcf26ea80a8310587e7607d3603ccc","scripts":{"test":"mocha --timeout=10000 './**/*.test.js'"},"_npmUser":{"name":"mattvalli","email":"matthew.valli@gmail.com"},"_npmVersion":"8.1.1","description":"A Singleton Class used to register and distribute database connections","directories":{},"_nodeVersion":"14.18.1","dependencies":{"lodash":"^4.17.21","@agrippa-io/node-utils":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3","@types/chai":"^4.2.22","@types/node":"^16.11.5","@types/mocha":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node-connection-manager_1.0.6_1635399253556_0.32837615168972256","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@agrippa-io/node-connection-manager","version":"1.0.7","author":{"name":"Aggripa Development Team"},"license":"ISC","_id":"@agrippa-io/node-connection-manager@1.0.7","maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"dist":{"shasum":"4c1d5425cd03960101481fb5f03073ccffadbd67","tarball":"https://registry.npmjs.org/@agrippa-io/node-connection-manager/-/node-connection-manager-1.0.7.tgz","fileCount":25,"integrity":"sha512-waAk3Y1nsXt9b+JP8FL5M8PkO2VDNzaMntg5iJTJW0sG+qzAsq9zOkGpAxRLa7XqcOtK9MOHtVOMFs9/t+SxKg==","signatures":[{"sig":"MEQCIFoiMQS1ye2/pjh6Ik21FYb501vzUyq3Gjgk75MO3X3ZAiA61tq1kihNxszcxsb+Hmn5E2l0eAf36Homg9SxC9iexQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70573},"main":"./dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"90d435062abc470a70da84598e85f2603a25b704","scripts":{"test":"mocha --timeout=10000 './**/*.test.js'","build":"tsc"},"_npmUser":{"name":"mattvalli","email":"matthew.valli@gmail.com"},"_npmVersion":"10.2.5","description":"A Singleton Class used to register and distribute database connections","directories":{},"_nodeVersion":"18.17.1","dependencies":{"lodash":"^4.17.21","@agrippa-io/node-utils":"^1.0.7"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3","typescript":"^5.6.2","@types/chai":"^4.2.22","@types/node":"^18.17.1","@types/mocha":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node-connection-manager_1.0.7_1726908000781_0.7965945160274563","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@agrippa-io/node-connection-manager","version":"1.0.8","author":{"name":"Aggripa Development Team"},"license":"ISC","_id":"@agrippa-io/node-connection-manager@1.0.8","maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"dist":{"shasum":"db3e88fcea7c41017fa2654d5c8ac36b0c2484fb","tarball":"https://registry.npmjs.org/@agrippa-io/node-connection-manager/-/node-connection-manager-1.0.8.tgz","fileCount":25,"integrity":"sha512-hS3AghNdQ49VCDrlhVPemVXAVhmfF65qkQupgSdeMacUqvzIFq5uKGJgQtVyqv4O8ujij/9AMSBcOWAYayT/aA==","signatures":[{"sig":"MEUCIB9wzdFxie7VfagZRGWU2nz3xbTokXTHst/jI3FgnOxiAiEAoPcPqTJSMX/cv4PXqLxthe1l7/wCADMm5zKY7Hrhh70=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70573},"main":"./dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"a1c8b94d5e5753e1543b421544c5b6e4ec84112b","scripts":{"test":"mocha --timeout=10000 './**/*.test.js'","build":"tsc"},"_npmUser":{"name":"mattvalli","email":"matthew.valli@gmail.com"},"_npmVersion":"10.2.5","description":"A Singleton Class used to register and distribute database connections","directories":{},"_nodeVersion":"18.17.1","dependencies":{"lodash":"^4.17.21","@agrippa-io/node-utils":"^1.0.8"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3","typescript":"^5.6.2","@types/chai":"^4.2.22","@types/node":"^18.17.1","@types/mocha":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node-connection-manager_1.0.8_1726978982455_0.8815222501533129","host":"s3://npm-registry-packages"}},"1.0.9":{"name":"@agrippa-io/node-connection-manager","version":"1.0.9","description":"A Singleton Class used to register and distribute database connections","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test":"vitest run --passWithNoTests","test:watch":"vitest","lint":"eslint .","lint:fix":"eslint . --fix","typecheck":"tsc --noEmit"},"author":{"name":"Agrippa Development Team"},"license":"ISC","dependencies":{"@agrippa-io/node-utils":"^1.0.9","lodash":"^4.17.21"},"devDependencies":{"@stylistic/eslint-plugin":"^2.12.0","@types/chai":"^4.3.20","@types/lodash":"^4.17.7","@types/node":"^22.19.19","@typescript-eslint/parser":"^8.18.0","chai":"^4.5.0","eslint":"^9.17.0","tsc-alias":"^1.8.10","typescript":"^5.9.3","vitest":"^2.1.8"},"gitHead":"5e5fcbd47b95b4b64f6bd65b48fed62903b88be0","_id":"@agrippa-io/node-connection-manager@1.0.9","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-elpv1pMyJTZh13JFwJurxf+Sg//oz24kKHzvOWizLH8yDT01EInhbGAubiharmZi6njO3H8k0cy6jrDpKNVx5Q==","shasum":"b4e2c64d6c0fe5931fa7c6640dd1bc9e931b136f","tarball":"https://registry.npmjs.org/@agrippa-io/node-connection-manager/-/node-connection-manager-1.0.9.tgz","fileCount":14,"unpackedSize":26841,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC3I3ij3IRPzqy1Jg8CBZhLtP2jmT9L/5tRVtSg7F0QLgIgd3jBStjX6sv8m21zEb+bam9OvjjWAGO+0+26pNzRre4="}]},"_npmUser":{"name":"mattvalli","email":"matthew.valli@gmail.com"},"directories":{},"maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-connection-manager_1.0.9_1779022313449_0.4108011947369421"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-04T02:10:09.211Z","modified":"2026-05-17T12:51:53.690Z","1.0.0":"2021-04-04T02:10:09.389Z","1.0.1":"2021-10-25T23:25:06.947Z","1.0.2":"2021-10-25T23:33:52.168Z","1.0.3":"2021-10-26T12:04:53.480Z","1.0.4":"2021-10-27T01:42:41.238Z","1.0.5":"2021-10-27T05:00:37.934Z","1.0.6":"2021-10-28T05:34:13.697Z","1.0.7":"2024-09-21T08:40:00.985Z","1.0.8":"2024-09-22T04:23:02.644Z","1.0.9":"2026-05-17T12:51:53.594Z"},"author":{"name":"Agrippa Development Team"},"license":"ISC","description":"A Singleton Class used to register and distribute database connections","maintainers":[{"name":"mattvalli","email":"matthew.valli@gmail.com"}],"readme":"# @agrippa-io/node-connection-manager #\n\n### What is this repository for? ###\nThis module is a Singleton designed to manage Database Connections within\n applications.\n\n### How do I get set up? ###\n\nSimply run the following command in the desired Application:\n`npm install @agrippa-io/node-connection-manager`\n\n### Usage ###\n#### Initializing the ConnectionStore ####\n```\n// Importing the package will automatically instantiate the Connection Manager\nconst ConnectionStore = require('@agrippa-io/connection-manager');\n```\n\n#### Creating Connections ####\n```\n// RECOMMENDATION\n// For Security Reasons, use ENVIRONMENT VARIABLES for your connection URIs\nconst {\n    MONGO_URI_PROD,\n    MONGO_URI_MEDIA,\n} = process.env;\n\n// Mongoose\nconst mongoose = require('mongoose');\nconst opts = { useNewUrlParser: true };\n// Mongoose connections\nconst connection_test = mongooose.createConnection('mongodb://localhost:27017/test', opts);\nconst connection_prod = mongooose.createConnection(MONGO_URI_PROD, opts);\nconst connection_media_prod = mongooose.createConnection(MONGO_URI_MEDIA, opts);\n\n// Sequalize\nconst { Sequelize } = require('sequelize');\n// Sequalize Connections\nconst sequalize_prod = new Sequelize(MYSQL_URI_PROD);\n```\n\n#### Key Concepts ####\n`connection-manager` groups connections by `Store` to help Client\nUsers conceptualize what type of connection they are accessing.\n\n##### Stores #####\nA `TYPE_STORE` Map has been provided to help promote grouping connections by \npopular\nPersistence Technologies, including:\n * MONGO\n * MYSQL\n\nThe `storeName` is just a string, so you are free to create your own groups\nbut we recommend sticking to the conventions.\n\n```\n// Import STORE constants\nconst STORE = require('@agrippa-io/connection-manager/stores.constants';\n// Access\nconsole.log(STORE.MONGO); // prints 'mongo'\nconsole.log(STORE.MYSQL); // prints 'mysql'\n```\n\n##### Named Connections #####\n`Named Connections` to simplify the access and registration of connections\nwithin the `ConnectionStore`.\n \n`Named Connections` are used to quickly register/retrieve connections. This\nhelps create self-documented coding patterns and reduces the learning-curve for\nusing the module and provide a consistent means of map/reduce/filter when\nworking with the `ConnectionStore` `getter/setter` methods.\n\n`Named Connections` are JSON Objects with the following properties:\n * storeName {String} - Name of the Store\n * connectionName {String} - Unique name for connection\n * connection {Any} - The connection instance\n \nExample - `Named Connection`:\n```\nconst namedConnection_test = {\n  storeName: STORE.MONGO,\n  connectionName: 'test',\n  connection: connection_test\n};\n```\n \n#### Registering Connections ####\nContinued based on `Create Connections` examples above:\n```\n// Register a single connection\nConnectionStore.addNamedConnection(\n  STORE.MONGO,\n  'mongo-test',\n  connection_test\n);\n```\n\n```\n// Create Many Named Connections of mixed Stores\nconst namedConnections = [\n    {\n      storeName: STORE.MONGO,\n      connectionName: 'test',\n      connection: connection_test\n    },\n    {\n      storeName: STORE.MONGO,\n      connectionName: 'production',\n      connection: connection_prod\n    },\n    {\n      storeName: STORE.MYSQL,\n      connectionName: 'mysql-production',\n      connection: sequalize_prod\n    },\n];\n\n// Register Many Connections in a single method call\nConnectionStore.addNamedConnections(namedConnections);\n```\n\n#### Accessing Connections ####\nThere are 3 methods for retrieving `Named Connections` from the\n `ConnectionStore`:\n - `getNamedConnections()` - Returns all `Named Connections` inside the\n  `ConnectionStore`\n - `getStoreNamedConnections(storeName)` - Returns all `Named Connections` for\n  the provided `Store`\n - `getNamedConnection(storeName, connectionName)` - Returns a single\n  `Named Connection` or `null` if no matching connection\n```\n// Get an array of ALL connections in the ConnectionStore\n// Returns an Array of Named Connections\nconst namedConnetions = ConnectionStore.getNamedConnections();\n\n// Get an array of ALL connections for a particular STORE\n// Returns an Array of Named Connections\nconst mongoNamedConnections = ConnectionStore.getStoreNamedConnections\n(STORE.MONGO);\nconst mysqlNamedConnections = ConnectionStore.getStoreNamedConnections\n(STORE.MYSQL);\n\n// Get a specific Named Connection\nconst productionNamedConnection = ConnectionStore.getNamedConnection\n(STORE.MONGO, 'production');\n```\n\nAccess the Connection instance from a `Named Connection`:\n```\n// Access the connection using dot syntax, index/key or destructuring\nconst dot_connection = productionNamedConnection.connection;\nconst index_connection = productionNamedConnection['connection'];\nconst { \n  connection : destructured_connection\n} = productionNamedConnection;\n```\n\n#### Removing Connections ####\nThere are 3 methods for removing `Named Connections` from the\n `ConnectionStore`:\n * `removeNamedConnection(storeName, connectionName)` - Returns removed `Named\n   Connections`\n * `removeNamedConnections(namedConnections)` - Returns all removed `Named\n Connections` from `ConnectionStore`\n * `clearNamedConnections()` - Returns all removed `Named Connection` from \n  `ConnectionStore`\n\n```\n// Remove a specific Named Connection\nconst testNamedConnection = ConnectionStore.removeNamedConnection(STORE.MONGO, 'test');\n\n// Remove an array of Named Connections of mixed Stores\n// The named connections can omit the connection itself\n// Returns an Array of removed Named Connections\nconst removedNamedConnections = ConnectionStore.removeNamedConnections([\n    { storeName: STORE.MONGO, connectionName: 'production' },\n    { storeName: STORE.MYSQL, connectionName: 'production' },\n]);\n\n// Remove ALL connections in the ConnectionStore\n// Returns an Array of Named Connections\nconst removedRemainingNamedConnetions = ConnectionStore.clearNamedConnections();\n```\n\n#### READ-ONLY Class Properties ####\nYou can access a JSON Object of the `ConnectionStore` current state:\n```\nconsole.log(ConnectionStore.namedConnections);\n```\n\n#### DEBUGGING ####\nWe have provided `ConnectionStore.debug()` that will log the state of the \n`ConnectionStore` at the time of invocation:\n\n```\n// Prints the State of the ConnectionStore\nConnectionStore.debug();\n```\n\n### Testing ###\nExecute the following command within the repository:\n`npm test`\n\n","readmeFilename":"README.md"}