{"_id":"moray-sandbox","_rev":"41-2fb8abf67b1bc5d844f1ecf910961d8d","name":"moray-sandbox","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0":{"name":"moray-sandbox","version":"0.1.0","keywords":["moray"],"license":"MPL-2.0","_id":"moray-sandbox@0.1.0","maintainers":[{"name":"melloc","email":"cody.mello@joyent.com"}],"homepage":"https://github.com/joyent/node-moray-sandbox#readme","bugs":{"url":"https://github.com/joyent/node-moray-sandbox/issues"},"dist":{"shasum":"e38081dfad77d96eb3e909084f27564de9a8d7c9","tarball":"https://registry.npmjs.org/moray-sandbox/-/moray-sandbox-0.1.0.tgz","integrity":"sha512-xIdj8tNHtdhhw7bB3ARNYcDbAg1uJ7FHjcv1QahjLBNgRwsds+ifEWwbYeJG9y5dKPwK35L80sBkAZpIxZTvGg==","signatures":[{"sig":"MEQCIEuX981iCEYT1F8OKfZNLOM8r13j8rEVKGrJ+A4vDEttAiAlh0DfiTo7ek6zu3x3sG0LxjgYXpaYxvYmLQCwOTK4mQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index.js","_from":".","_shasum":"e38081dfad77d96eb3e909084f27564de9a8d7c9","gitHead":"54fc0e9090d6c1d283d752142eb528986b95b506","scripts":{},"_npmUser":{"name":"melloc","email":"cody.mello@joyent.com"},"repository":{"url":"git://github.com/joyent/node-moray-sandbox.git","type":"git"},"_npmVersion":"2.15.1","description":"Library for managing temporary, sandboxed Moray instances","directories":{},"_nodeVersion":"0.10.46","dependencies":{"tmp":"0.0.28","uuid":"3.0.0","clone":"1.0.2","bunyan":"^1.8.5","vasync":"1.6.4","verror":"1.9.0","forkexec":"1.1.0","assert-plus":"1.0.0","moray-server":"git+https://github.com/joyent/moray.git#1e295ad"},"devDependencies":{"tape":"3.0.3","moray":"^2.0.0","eslint":"2.13.1","faucet":"0.0.1","istanbul":"^0.4.0","eslint-plugin-joyent":"1.0.1"},"peerDependencies":{"moray":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/moray-sandbox-0.1.0.tgz_1484100231046_0.8464353715535253","host":"packages-18-east.internal.npmjs.com"}},"0.1.1":{"name":"moray-sandbox","version":"0.1.1","keywords":["moray"],"license":"MPL-2.0","_id":"moray-sandbox@0.1.1","maintainers":[{"name":"melloc","email":"cody.mello@joyent.com"}],"homepage":"https://github.com/joyent/node-moray-sandbox#readme","bugs":{"url":"https://github.com/joyent/node-moray-sandbox/issues"},"dist":{"shasum":"8f1a2c02611b00a2ad5769cd2394f66c355bfcf5","tarball":"https://registry.npmjs.org/moray-sandbox/-/moray-sandbox-0.1.1.tgz","integrity":"sha512-28X410pkXT1ex1HJh0yFjIjeDk8uz3CDqXiEnBTUnzYUe/i+sI/fl/JXY331pmAVTF5vTP6b6oCwnC1erjxCVQ==","signatures":[{"sig":"MEUCIQCMcVo89z6VKBeF90ErR1KtXRARrdxZxzWpPRs857syVgIgYIFfqFH3I4OtjTq5bsuyDunNdRbVA+w+A+6te+BetGs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index.js","_from":".","_shasum":"8f1a2c02611b00a2ad5769cd2394f66c355bfcf5","gitHead":"51135084e3f930d62c4f7cf309b840ca37ed2c3b","scripts":{},"_npmUser":{"name":"melloc","email":"cody.mello@joyent.com"},"repository":{"url":"git://github.com/joyent/node-moray-sandbox.git","type":"git"},"_npmVersion":"2.15.1","description":"Library for managing temporary, sandboxed Moray instances","directories":{},"_nodeVersion":"0.10.46","dependencies":{"tmp":"0.0.28","uuid":"3.0.0","clone":"1.0.2","bunyan":"^1.8.5","vasync":"1.6.4","verror":"1.9.0","forkexec":"1.1.0","assert-plus":"1.0.0","moray-server":"git+https://github.com/joyent/moray.git#1e295ad"},"devDependencies":{"tape":"3.0.3","moray":"^2.0.0","eslint":"2.13.1","faucet":"0.0.1","istanbul":"^0.4.0","eslint-plugin-joyent":"1.0.1"},"peerDependencies":{"moray":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/moray-sandbox-0.1.1.tgz_1493748799750_0.5689862342551351","host":"packages-12-west.internal.npmjs.com"}},"0.1.2":{"name":"moray-sandbox","version":"0.1.2","keywords":["moray"],"license":"MPL-2.0","_id":"moray-sandbox@0.1.2","maintainers":[{"name":"melloc","email":"cody.mello@joyent.com"}],"homepage":"https://github.com/joyent/node-moray-sandbox#readme","bugs":{"url":"https://github.com/joyent/node-moray-sandbox/issues"},"dist":{"shasum":"d42bee189c01fe4297bccdf843cef170967c2c29","tarball":"https://registry.npmjs.org/moray-sandbox/-/moray-sandbox-0.1.2.tgz","integrity":"sha512-WZLDkxNGT64XNLLjKt1uu2+usI93r+FCHS2b3rSaqYJLD0rlvghwK0KQhWS6AbeQfJM2cBxYz/IrpcoebSv9eA==","signatures":[{"sig":"MEYCIQD/hI6Mc/tL61BeCJ/gelU5seMexRBHAU1lsD1Uzj4ilAIhAKwO16JDsv/8ciw3USHZDFI7UWhc4xclDsUtyVxj6BqB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index.js","_from":".","_shasum":"d42bee189c01fe4297bccdf843cef170967c2c29","gitHead":"b6d2612f696d4f3de86e50e9fe990fb17bd3cf11","scripts":{},"_npmUser":{"name":"melloc","email":"cody.mello@joyent.com"},"repository":{"url":"git://github.com/joyent/node-moray-sandbox.git","type":"git"},"_npmVersion":"2.15.1","description":"Library for managing temporary, sandboxed Moray instances","directories":{},"_nodeVersion":"0.10.46","dependencies":{"tmp":"0.0.28","uuid":"3.0.0","clone":"1.0.2","bunyan":"^1.8.5","vasync":"1.6.4","verror":"1.9.0","forkexec":"1.1.0","assert-plus":"1.0.0","moray-server":"git+https://github.com/joyent/moray.git#3e9f411"},"devDependencies":{"tape":"3.0.3","moray":"^2.0.0","eslint":"2.13.1","faucet":"0.0.1","dashdash":"1.14.1","istanbul":"^0.4.0","eslint-plugin-joyent":"1.0.1"},"peerDependencies":{"moray":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/moray-sandbox-0.1.2.tgz_1507748830098_0.028245768742635846","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"moray-sandbox","version":"0.1.3","keywords":["moray"],"license":"MPL-2.0","_id":"moray-sandbox@0.1.3","maintainers":[{"name":"melloc","email":"cody.mello@joyent.com"}],"homepage":"https://github.com/joyent/node-moray-sandbox#readme","bugs":{"url":"https://github.com/joyent/node-moray-sandbox/issues"},"dist":{"shasum":"51610fbc668dbe9f42b32baaa75318f85a0354ef","tarball":"https://registry.npmjs.org/moray-sandbox/-/moray-sandbox-0.1.3.tgz","fileCount":10,"integrity":"sha512-pbKrX7Wc2vBIlgLdsdMRf10FtTzlbortyukvJeIEzUJIW2SeYT4PAV1jjrZ5peOsV4Mrszgj0jtEBtxoVe2lrA==","signatures":[{"sig":"MEYCIQCLIDUQTWyqptZioUtyf+htFyr0GAgophtRtQePhkIrlwIhAK+g0gWoJvQy3dAIIrH/M9phc8uR+1E2zn0tbs+6vawV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53487},"main":"./lib/index.js","_from":".","_shasum":"51610fbc668dbe9f42b32baaa75318f85a0354ef","gitHead":"5d95cfb748721d2ed10aa5638cc340d35e8e4b4b","scripts":{},"_npmUser":{"name":"melloc","email":"cody.mello@joyent.com"},"repository":{"url":"git://github.com/joyent/node-moray-sandbox.git","type":"git"},"_npmVersion":"2.15.1","description":"Library for managing temporary, sandboxed Moray instances","directories":{},"_nodeVersion":"0.10.46","dependencies":{"tmp":"0.0.28","uuid":"3.0.0","clone":"1.0.2","bunyan":"^1.8.5","jsprim":"1.4.0","vasync":"1.6.4","verror":"1.9.0","forkexec":"1.1.0","assert-plus":"1.0.0","moray-server":"git+https://github.com/joyent/moray.git#3e9f411"},"_hasShrinkwrap":false,"devDependencies":{"tape":"3.0.3","moray":"^2.0.0","eslint":"2.13.1","faucet":"0.0.1","dashdash":"1.14.1","istanbul":"^0.4.0","eslint-plugin-joyent":"1.0.1"},"peerDependencies":{"moray":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/moray-sandbox_0.1.3_1522448434526_0.09194085298079968","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"moray-sandbox","version":"0.2.0","keywords":["moray"],"license":"MPL-2.0","_id":"moray-sandbox@0.2.0","maintainers":[{"name":"melloc","email":"cody.mello@joyent.com"}],"homepage":"https://github.com/joyent/node-moray-sandbox#readme","bugs":{"url":"https://github.com/joyent/node-moray-sandbox/issues"},"dist":{"shasum":"7a6452b04a5e9f3d124acfa0543448c1f53be6a9","tarball":"https://registry.npmjs.org/moray-sandbox/-/moray-sandbox-0.2.0.tgz","fileCount":9,"integrity":"sha512-Awi3kH1Vhrp88NqW94lxgtxaTVoa6ghGbg8NTAkBthwySkoCG8mhBp3itYYJbzzq29JojQFNMDEK038x7qxuug==","signatures":[{"sig":"MEQCIAMlCKMkh34G7Y7MoJs2DPpW5uUpUYzMAPJB5bOvcCiXAiBE1jrLKNkCVTlQTfmZ1rspR0+t8PenmN8l9xWHH2/6CQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1hTgCRA9TVsSAnZWagAAdowP/3zDr9PbqrggSSm/5pqn\n+O7kGjrFxFVaaJSTJxkSY8CsI40PsIQjnMRqk0LyP421zLimvPklKSjJx90q\nAji4DLhgvvsLAj4EKVSD0VZfsVeXJ14Jv2gc4Fyc5AQvwYq4LML+f6EuhatT\nVbwXW3PusK8oX+oY9FjgDj8lEKAdNjnWWyHXR0UayrEWKO1lfYZZRKRN655G\nXeqsLAEQiAzM50DF9+pdk0B+oto8IUCMU9S9FuF5VxnAn3FFfOkgqLDq6Rvm\nvxxEQizKDVBYZaKpfkoabltEZGhU3o/0bdMEKoXg+sksoHbKw4JCDBjpOsU+\nON7dH1+1VjsqgFotQvsyGR+uxplRmNbrNw1HezSrcKPWE0Z9ck4GliDzgd0v\nOXTqqq6k5tLItgib6Q6HlQO3sdZG2sG4hrUAoYY2En15J6Aulv3vvPyIsnng\nosh0qxyQm0UWW6L0AcU4SbXbbDmFvQiw7qk6Ya9jHAN0g05qpKH+RIRDXMYG\nuf9kGqgqVuLv4t+q9EfNk57HuVqgb6oRDDHzwKZPy7rJCa6Ush0IoF4L3SWW\n/8i+SDDLKT450rfczkDVqnuXQoGK3E/7zm/9oOO5ZvcOtWztcd3OqJ4XwZZ7\nqJKV5rLnH9ua2qCMaRMHsLk3nfkBXpeGGnKfc608KfrpjJnEqj+/XDe7ICB6\nhnqf\r\n=RUbJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","_from":".","_shasum":"7a6452b04a5e9f3d124acfa0543448c1f53be6a9","gitHead":"f540516677836d7e0f5018b4b811e6af14076ac9","scripts":{},"_npmUser":{"name":"melloc","email":"cody.mello@joyent.com"},"repository":{"url":"git://github.com/joyent/node-moray-sandbox.git","type":"git"},"_npmVersion":"2.15.1","description":"Library for managing temporary, sandboxed Moray instances","directories":{},"_nodeVersion":"0.10.46","dependencies":{"tmp":"0.0.28","uuid":"3.0.0","clone":"1.0.2","bunyan":"^1.8.5","jsprim":"1.4.0","vasync":"1.6.4","verror":"1.9.0","forkexec":"1.1.0","assert-plus":"1.0.0","moray-server":"git+https://github.com/joyent/moray.git#7b8c682"},"_hasShrinkwrap":false,"devDependencies":{"tape":"3.0.3","moray":"^3.0.0","eslint":"2.13.1","faucet":"0.0.1","dashdash":"1.14.1","istanbul":"^0.4.0","eslint-plugin-joyent":"1.0.1"},"peerDependencies":{"moray":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/moray-sandbox_0.2.0_1523979487724_0.9939745219005733","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"moray-sandbox","version":"0.2.1","keywords":["moray"],"license":"MPL-2.0","_id":"moray-sandbox@0.2.1","maintainers":[{"name":"melloc","email":"cody.mello@joyent.com"}],"homepage":"https://github.com/joyent/node-moray-sandbox#readme","bugs":{"url":"https://github.com/joyent/node-moray-sandbox/issues"},"dist":{"shasum":"722d6a922a3162f0fbb96865c2ff0b4efe1ddf5c","tarball":"https://registry.npmjs.org/moray-sandbox/-/moray-sandbox-0.2.1.tgz","fileCount":9,"integrity":"sha512-RddJLAkpSS/2HMPr7K9QS2LMP22ffxPZf1QI4Fzs5MbmOY48NRjkLqJQWhUUVBnM3XkdTT9kVwIWOf8GIgzmeA==","signatures":[{"sig":"MEQCIFBHOUUUQhg7JlYnisR93u0ZlhgemVRLpjfIiKPB2JeMAiB+oY0d13LLvvPBhB7pRNXaDLnWBfG/kM0iqPnAvoNA4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52793,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiruoCRA9TVsSAnZWagAA6R8P/R+Jb9ENmhSH2odWXOwt\nVswtGTdstb4KUNIT16OhEccJ2nIbc3hcyify7omcWpZR8FHpXXBMguDHKGk+\nnNpxnt+hc9sBBsI5C0S96eEOXxjPcX9vjz4/4qWEYVsyO4+fvSbC7wt50nuE\nbxLDQauUfIija9GS8PMPhdYY0gZlcXRCXECHTmi5ZbHr16ktxa2H4rpv1Kjp\nSAY7QlMLgB4mFDlBs6DYDQyC6mFN3jlr+OtOJsiXT9OeOPnnLToZ5AeorND2\nlwhfZUaWSGTlh9vJO7CCf7zA1BWtbgFxEHxUu88xem/P8HSTWMYypWq3Vpyf\nf+SXmHM60H/zXQp/6N6ccioQPCvJLP7rO8LNmIMR348+nTmR5oBenDqmYXLx\nigPhQgGDw1gPozrKbRwGViQlYDuY3/uDuY9kLU2yQ8SS8V1Ls46qbgiQDFCG\nELBEI2lv0jvt7BVTrIdoNOgEh0woeClLZ/Cfz4nuiUPWuJjR5NZGaRXYyDuA\n4WMicyyiOcZzFpY6nG0nudLEKtQfiI9ccdbyfsXXFixeFss8gvqnbSJUoHzx\nmDNh4RQ2AyBcgv1J1AKEKB5/FMQsfpH+PBfVGs/1sCjq/pvsOvqzy4kHkz4k\nKiAVEjOnoXJCNH9GSW0YRhEDrCYDsoo5ymMzjVZx3UWx20MrERlC+JCIOhQd\nyp9f\r\n=Ay5y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"96c02830a377b6cf1147432502902735318b4b8b","_npmUser":{"name":"melloc","email":"cody.mello@joyent.com"},"repository":{"url":"git://github.com/joyent/node-moray-sandbox.git","type":"git"},"_npmVersion":"5.6.0","description":"Library for managing temporary, sandboxed Moray instances","directories":{},"_nodeVersion":"8.11.3","dependencies":{"tmp":"0.0.28","uuid":"3.0.0","clone":"1.0.2","bunyan":"^1.8.5","jsprim":"1.4.0","vasync":"1.6.4","verror":"1.9.0","forkexec":"1.1.0","assert-plus":"1.0.0","moray-server":"git+https://github.com/joyent/moray.git#74bc4d62"},"_hasShrinkwrap":false,"devDependencies":{"tape":"3.0.3","moray":"^3.0.0","eslint":"2.13.1","faucet":"0.0.1","dashdash":"1.14.1","istanbul":"^0.4.0","eslint-plugin-joyent":"1.0.1"},"peerDependencies":{"moray":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/moray-sandbox_0.2.1_1535818663796_0.03475424466793964","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"moray-sandbox","version":"0.2.2","keywords":["moray"],"license":"MPL-2.0","_id":"moray-sandbox@0.2.2","maintainers":[{"name":"bahamas10","email":"dave@daveeddy.com"},{"name":"bahamat","email":"bahamat@digitalelf.net"},{"name":"chudley","email":"aguycalledrichard@gmail.com"},{"name":"isaacdavis","email":"isaac.davis@joyent.com"},{"name":"kellymclaughlin","email":"kelly.mclaughlin@joyent.com"},{"name":"kkantor","email":"kody.kantor@joyent.com"},{"name":"kusor","email":"kusorbox@gmail.com"},{"name":"melloc","email":"cody.mello@joyent.com"},{"name":"mgerdts","email":"mgerdts@gmail.com"},{"name":"michael.hicks","email":"michael.hicks@joyent.com"},{"name":"todd.whiteman","email":"todd.whiteman@joyent.com"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"wyatt","email":"wpreul@gmail.com"}],"homepage":"https://github.com/joyent/node-moray-sandbox#readme","bugs":{"url":"https://github.com/joyent/node-moray-sandbox/issues"},"dist":{"shasum":"ecd01b76b70a30e5f727693aeea2c59700cf693b","tarball":"https://registry.npmjs.org/moray-sandbox/-/moray-sandbox-0.2.2.tgz","fileCount":9,"integrity":"sha512-YUyy/rRTeq2AUbzOyDWbl2cMGYdBmdCgOzDAiDemqkbOEZ4jR0zhk6WzrIbV+t8tfvVTw/OXKD7nwdMTUEmFTQ==","signatures":[{"sig":"MEQCIH9Ftyd2B229ICozjsUGps9ROeqxuAlRLFjeSokcMr4QAiAfYcYR5vFdc59QgJJS1eefy0stUmakrTCPJguBJcAwng==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqY6yCRA9TVsSAnZWagAAJUgP+wdeLuo0pj5k4tLpPezy\n8/PxSDaerNWCAX5zr4fBETOAktU/aaqy23gMVl1mZPc7cKcv6VOf/3QdWOlQ\nxlfv2HUWzuUxMiQb3w55V/5OcLKL8bdM6eG4HbvydpBzNTD2aHa0OF2mTtOP\n5MEqu3MMCAb5+RNYamRx0xOgiWu1WqOB+goajAwcB1E7jxtmk3jyNo4Hf/r8\nwX0UcdrEcP13U27J1/Zfnudn7IAADwFsiHMPT2fqI9SLhKhwXrjY0ckGPEf5\nh/fwDmgSFzDoAGcBQWVguXeqj9BXYxuRWN3ywJLMSrWLGs6DHfmGnALK3cVV\nKs4caSn/lbXY4DlnQXcxlU7NbQb6KRQ5m5gjGQ+AM4ZwVKNeO5l/uW0qq/qp\n2pz/97Foov5cGCEFO3SWBUi8dsesw3h7hKMd2rS1fzdeDsLZpNMkCcF5x562\nUO/TGmg8S+JakEbin6t6x/bnSO90NTEaVCslC0coCoR8EgIeViJb1XNm04I4\nV4miC849FPicSfF+GOnkJP3BWSBYCjPGWIOQW59Yki8iN7asJG0nW6LFyfCD\nsW2GXtZfQBfcUmoH5UOcWy5vwdQacMhzxnamKyRNPEqVQGH0G7ilUPFX0/bM\nHLDXrF1yps2r1QClXXXMEBq7UM6km/NzdiuEICpR08HKaYmm4d8ttEgJS5WI\nU/lg\r\n=06M6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"64e7bee121a81e7b75b2b6b1ee34c03e180c8f64","_npmUser":{"name":"kusor","email":"kusorbox@gmail.com"},"repository":{"url":"git://github.com/joyent/node-moray-sandbox.git","type":"git"},"_npmVersion":"6.12.1","description":"Library for managing temporary, sandboxed Moray instances","directories":{},"_nodeVersion":"6.17.1","dependencies":{"tmp":"0.0.28","uuid":"3.0.0","clone":"1.0.2","bunyan":"^1.8.5","jsprim":"1.4.0","vasync":"1.6.4","verror":"1.9.0","forkexec":"1.1.0","uid-number":"0.0.6","assert-plus":"1.0.0","moray-server":"git+https://github.com/joyent/moray.git#74bc4d62"},"_hasShrinkwrap":false,"devDependencies":{"tape":"3.0.3","moray":"^3.0.0","eslint":"2.13.1","faucet":"0.0.1","dashdash":"1.14.1","istanbul":"^0.4.0","eslint-plugin-joyent":"1.0.1"},"peerDependencies":{"moray":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/moray-sandbox_0.2.2_1588170418229_0.22839350390315394","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-01-11T02:03:52.821Z","modified":"2025-11-26T18:15:59.674Z","0.1.0":"2017-01-11T02:03:52.821Z","0.1.1":"2017-05-02T18:13:20.004Z","0.1.2":"2017-10-11T19:07:10.236Z","0.1.3":"2018-03-30T22:20:34.601Z","0.2.0":"2018-04-17T15:38:07.795Z","0.2.1":"2018-09-01T16:17:43.973Z","0.2.2":"2020-04-29T14:26:58.406Z"},"bugs":{"url":"https://github.com/joyent/node-moray-sandbox/issues"},"license":"MPL-2.0","homepage":"https://github.com/joyent/node-moray-sandbox#readme","keywords":["moray"],"repository":{"url":"git://github.com/joyent/node-moray-sandbox.git","type":"git"},"description":"Library for managing temporary, sandboxed Moray instances","maintainers":[{"email":"todd.whiteman@joyent.com","name":"todd.whiteman"},{"email":"kusorbox@gmail.com","name":"kusor"},{"email":"michael.hicks@joyent.com","name":"michael.hicks"},{"email":"bahamat@digitalelf.net","name":"bahamat"},{"email":"Tr@visPaul.me","name":"tpaul"},{"email":"danmcd@edgecast.io","name":"kebesays"},{"email":"melloc@writev.io","name":"melloc"}],"readme":"<!--\n    This Source Code Form is subject to the terms of the Mozilla Public\n    License, v. 2.0. If a copy of the MPL was not distributed with this\n    file, You can obtain one at http://mozilla.org/MPL/2.0/.\n-->\n\n<!--\n    Copyright 2017, Joyent, Inc.\n-->\n\n# node-moray-sandbox\n\nThis repository is part of the Joyent Manta and Triton projects. For\ncontribution guidelines, issues, and general documentation, visit the main\n[Triton](https://github.com/joyent/triton) and\n[Manta](https://github.com/joyent/manta) project pages.\n\n## Overview\n\nThis is a node library for spinning up a temporary Moray server that can be\nused for unit testing programs that depend on Moray. Before running, make\nsure that you have at least Postgres 9.2 installed. On both Mac OS X and\nSmartOS:\n\n```\n$ pkgin in postgresql92-client postgresql92-server\n```\n\nEach additional Moray connected to a Postgres instance maintains an additional\nset of connections to the database. With enough Moray instances running, you\ncan hit Postgres' maximum connection limit, which will prevent spawning new\ninstances. This is normally not an issue, but can be easy to hit with Postgres\n9.2 on Mac OS X, where the max is 20. If that happens to you, newer versions of\nPostgres can help alleviate the issue.\n\nThere is also a simple tool for starting up a temporary Moray instance, if you\njust want something to point at while working on the Moray CLI tools, or running\nthe [moray-test-suite](https://github.com/joyent/moray-test-suite/):\n\n```\n$ ./bin/run-sandbox -p 2020\n```\n\nIf you pass `--cover`, then it will also produce a coverage report for the Moray\nserver when it exits.\n\n## Examples\n\nYou can spawn a new temporary Moray instance by running:\n\n```js\nvar mod_moray_sandbox = require('moray-sandbox');\n\nmod_moray_sandbox.create(log, function (err, moray) {\n    // Do what you need with the client, and then shutdown Moray:\n    moray.stop();\n});\n```\n\nIf you need multiple Moray clients that point to the same server, you can\nuse the client's `.clone()` method to create a new one with the same\nconfiguration:\n\n```js\nvar clone1 = moray.clone();\nvar clone2 = moray.clone();\n```\n\nIf you need to create multiple Moray instances, you can avoid the overhead\nof initializing multiple Postgres instances by doing:\n\n```js\nvar mod_moray_sandbox = require('moray-sandbox');\n\nmod_moray_sandbox.createPG(log, function (err, pg) {\n    pg.spawnMoray(function (err, moray1) {\n        // Do what you need with the client of Moray instance #1\n    });\n    pg.spawnMoray(function (err, moray2) {\n        // Do what you need with the client of Moray instance #2\n    });\n    // Once finished, call moray1.close(), moray2.close(), and pg.stop()\n});\n```\n\nNote that the library consumer is responsible for calling `.close()` on every\nclient it creates via `.create()`, `.spawnMoray()`, and `.clone()` before\nstopping Postgres. If there is only a single client, for convenience, you can\ncall `.stop()` on a client and it will handle closing the client for you before\nstopping Postgres.\n\nIf you want to test your application's ability to handle errors, you can\ninject a series of errors to be returned by future Moray client calls. For\nexample, to make the first call to `.batch()` actually call out to Moray,\nand the second one return a fake error, you can do:\n\n```js\nmoray.setMockErrors({ batch: [ null, fakeErr, fakeErr, null ] });\n```\n\nPassing in `null` in the array allows you to interleave successes and\nfailures. If you want to check that your errors have been dequeued, you can\nget the remaining mock errors. For example, if `.batch()` should have only\nbeen called three times after setting the mock errors earlier:\n\n```js\nvar assert = require('assert-plus');\n\nvar remaining = moray.getMockErrors();\nassert.deepEqual({ batch: [ null ] }, remaining, 'batch() called thrice');\n```\n\nYou can clear out any remaining errors by calling the method with\nan empty object:\n\n```js\nmoray.setMockErrors({ });\n```\n\nClients created using `.clone()` share mock errors with the original client.\n","readmeFilename":"README.md"}