{"_id":"unexpected-knex","_rev":"16-7b73bf27801815daf6fe96f557fceff1","name":"unexpected-knex","description":"Support for testing Knex.js models and migrations using Unexpected","dist-tags":{"latest":"5.0.0"},"versions":{"1.0.0":{"name":"unexpected-knex","version":"1.0.0","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","test":"npm run lint && nyc mocha test/**/*.spec.js","coverage":"npm run test && nyc report --reporter=html && sensible-browser ./coverage/index.html","coveralls":"nyc report --reporter=text-lcov | coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"0.12.7","unexpected":"10.26.3"},"devDependencies":{"coveralls":"2.12.0","dedent-js":"1.0.1","eslint":"3.17.1","eslint-config-onelint":"2.0.0","knex":"0.12.7","mocha":"3.2.0","nyc":"10.1.2","sqlite3":"3.1.8","unexpected":"10.26.3","unexpected-fs":"2.7.0","unexpected-require":"2.0.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","gitHead":"31de73d1831f5b5cc290db9c60b5960d5ece0d7d","_id":"unexpected-knex@1.0.0","_shasum":"12771b84dc1717d2afc43221a6414c1d077e7269","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"shasum":"12771b84dc1717d2afc43221a6414c1d077e7269","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-1.0.0.tgz","integrity":"sha512-ErBVfKozkRweI2kOmxeJateGG7jgnMDNx910gtEmZUTYCF16GhTy2xGSzxAvveY4pYXhsGM3hORqOtfaJ3W/PA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXiFUkwwU+5TR6aunQBEyUZNAdFcAWZT/TQOLJlVI/EgIgbklwRwAff2H0LnuqnH2HAMbukXXFvAQUec0FAHjmk0I="}]},"maintainers":[{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/unexpected-knex-1.0.0.tgz_1489252446621_0.0502455229870975"}},"1.1.0":{"name":"unexpected-knex","version":"1.1.0","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","test":"mocha","coverage":"nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","ci":"npm-run-all lint coverage coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"0.12.7","unexpected":"10.26.3"},"devDependencies":{"coveralls":"2.12.0","dedent-js":"1.0.1","eslint":"3.17.1","eslint-config-onelint":"2.0.0","knex":"0.12.7","mocha":"3.2.0","npm-run-all":"4.0.2","nyc":"10.1.2","sqlite3":"3.1.8","unexpected":"10.26.3","unexpected-fs":"2.7.0","unexpected-require":"2.0.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","gitHead":"ef3eb595c7b2bf05b9e19f2c1fbbeb36237bef0d","_id":"unexpected-knex@1.1.0","_shasum":"986f7b2c2518b13a26c111963c1825980837c156","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"shasum":"986f7b2c2518b13a26c111963c1825980837c156","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-1.1.0.tgz","integrity":"sha512-wtDjKneFEwTLXiOSsOSJuUKf3X/gS34rGG0u6JFj31SM6HZa8xojez6PZPpbDTmHWT1tMjOALA4J8zomqpRUvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+eNHfXFf1+6+FrsEKX9/czFYL+5ntGBjOU1CJoVfyFQIgD0h3ub/6UpvKyc3s0QrZNYSieA5ECfklV7A46Nk0igo="}]},"maintainers":[{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unexpected-knex-1.1.0.tgz_1489668965052_0.3273946715053171"}},"1.1.1":{"name":"unexpected-knex","version":"1.1.1","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","test":"mocha","coverage":"nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","ci":"npm-run-all lint coverage coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"0.12.7","unexpected":"10.26.3"},"devDependencies":{"coveralls":"2.12.0","dedent-js":"1.0.1","eslint":"3.17.1","eslint-config-onelint":"2.0.0","knex":"0.12.7","mocha":"3.2.0","npm-run-all":"4.0.2","nyc":"10.1.2","sqlite3":"3.1.8","unexpected":"10.26.3","unexpected-fs":"2.7.0","unexpected-require":"2.0.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","gitHead":"f3b56966757637654abaed5c74f70a224c688d09","_id":"unexpected-knex@1.1.1","_shasum":"5cd3d09bd1c4855ca2f8b70f9fbee26cd04b45a5","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"shasum":"5cd3d09bd1c4855ca2f8b70f9fbee26cd04b45a5","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-1.1.1.tgz","integrity":"sha512-HAuCepESP8xluvvy6YgnBRUGovCHe7QjdA8wlFx6d1zCru5GA9spfWCKgduNVh+mhYBv2xGaeW1XXgG/kOzMaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHEG5FT0Zndm5BHxX0RB7MXUaE8Kh4v8YeoymBAGazrUAiADL39Pi1DZKQ1S/FPFQT41N9jgmRmnd5uAkXAFG5Lutw=="}]},"maintainers":[{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unexpected-knex-1.1.1.tgz_1489670683543_0.1279552122578025"}},"1.1.2":{"name":"unexpected-knex","version":"1.1.2","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","test":"mocha","coverage":"nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","ci":"npm-run-all lint coverage coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"^0.12.7","unexpected":"^10.27.0"},"devDependencies":{"coveralls":"2.12.0","dedent-js":"1.0.1","eslint":"3.17.1","eslint-config-onelint":"2.0.0","knex":"0.12.7","mocha":"3.2.0","npm-run-all":"4.0.2","nyc":"10.1.2","sqlite3":"3.1.8","unexpected":"10.29.0","unexpected-fs":"2.7.0","unexpected-require":"2.0.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","gitHead":"6180b09928510f47f1daf130d2dee41e14ecf794","_id":"unexpected-knex@1.1.2","_shasum":"b61e55e2aa8cee7212abd4a2ee274c21d4147eab","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"shasum":"b61e55e2aa8cee7212abd4a2ee274c21d4147eab","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-1.1.2.tgz","integrity":"sha512-mFJ6fSQP0nNcz2SoPPV1rACxKo9x7Zl+96Ykr/6LByVq1cmDIG2+Tyj5cb0T00/rAVcRZIOXt25L9zn/NIiTSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHskcSG/B7RVO5SUdnIkY6XQzIcNxgmOZW69u1ReoaEqAiA8M0yJgcfO4T1OgjH2vh7LbOQRVsXVCE8wKlJXp2uocA=="}]},"maintainers":[{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unexpected-knex-1.1.2.tgz_1494614102705_0.34144697966985404"}},"1.2.0":{"name":"unexpected-knex","version":"1.2.0","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","test":"mocha","coverage":"nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","ci":"npm-run-all lint coverage coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"^0.12.7","unexpected":"^10.27.0"},"devDependencies":{"coveralls":"2.12.0","dedent-js":"1.0.1","eslint":"3.17.1","eslint-config-onelint":"2.0.0","knex":"0.12.7","mocha":"3.2.0","npm-run-all":"4.0.2","nyc":"10.1.2","sqlite3":"3.1.8","unexpected":"10.29.0","unexpected-fs":"2.7.0","unexpected-require":"2.0.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","gitHead":"26e4ffcfa74350b633e12b5bb2dc82a708e216c2","_id":"unexpected-knex@1.2.0","_shasum":"9502172f96c7ad07964d06b6cada0a6c942063fc","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"shasum":"9502172f96c7ad07964d06b6cada0a6c942063fc","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-1.2.0.tgz","integrity":"sha512-YDrLTcb5t3RXFo3irQa9mpJbQYcu90h0OKFkHTDnK6HnUUQcOT87/SKzLJlz9UNJChFlDKwJEGEqWtgPmKlNVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICIj9SaA+Sj9Zc2eo59JgHU5cmqyLvpQOuLzMnVHdYPSAiB81i/7Y8EEiytcwk7Qn7eCcsfi4O2K/cmKYHRgtdCo6Q=="}]},"maintainers":[{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unexpected-knex-1.2.0.tgz_1496577738972_0.49709308915771544"}},"1.2.1":{"name":"unexpected-knex","version":"1.2.1","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","test":"mocha","coverage":"nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","ci":"npm-run-all lint coverage coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"^0.13.0","unexpected":"^10.27.0"},"devDependencies":{"coveralls":"2.12.0","dedent-js":"1.0.1","eslint":"3.17.1","eslint-config-onelint":"2.0.0","knex":"0.13.0","mocha":"3.2.0","npm-run-all":"4.0.2","nyc":"10.1.2","sqlite3":"3.1.8","unexpected":"10.29.0","unexpected-fs":"2.7.0","unexpected-require":"2.0.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","gitHead":"152b86213048daa5be38d747eef80f7c69965c2a","_id":"unexpected-knex@1.2.1","_shasum":"eba1d05a633e7202ea2eb8aaca19bb0642cc62bd","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"shasum":"eba1d05a633e7202ea2eb8aaca19bb0642cc62bd","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-1.2.1.tgz","integrity":"sha512-V74ZQ/oovQ5aC4uT7bmaeS34w7yBi55LBCHA1uwQ5GV2BhNTef6XvcrYhgZUL93gXxz5oO+p3Dv/eFJBzoeUHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBmX4UvmigbHsGecxeLMBtjnfMRKqZq8oAJAhYdL3QFdAiEAgXzV9x14kENmmZccJgrgkhnK0CFASb6u9KeD8J8NpBU="}]},"maintainers":[{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unexpected-knex-1.2.1.tgz_1502198720506_0.6507998013403267"}},"1.2.2":{"name":"unexpected-knex","version":"1.2.2","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","lint:fix":"eslint --fix .","test":"mocha","coverage":"nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","ci":"npm-run-all lint coverage coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"^0.15.2","unexpected":"^10.27.0"},"devDependencies":{"coveralls":"3.0.2","dedent-js":"1.0.1","eslint":"5.9.0","eslint-config-prettier":"3.3.0","eslint-config-pretty-standard":"2.0.0","eslint-plugin-mocha":"5.2.0","eslint-plugin-prettier":"3.0.0","knex":"0.15.2","mocha":"5.2.0","npm-run-all":"4.1.3","nyc":"13.1.0","prettier":"1.15.2","sqlite3":"4.0.4","unexpected":"10.29.0","unexpected-fs":"3.0.0","unexpected-require":"2.0.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","dependencies":{"proxyquire":"2.1.0"},"gitHead":"e6fe5792bbfa446ec8032ecbd0bb314915248e10","_id":"unexpected-knex@1.2.2","_npmVersion":"5.10.0","_nodeVersion":"8.10.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"integrity":"sha512-DeNvCqtaOYbnMoxRAy5cv75+STLoM4fZ2UzTILxOBxliZzt+mJJyrIo6AdI2odXOlAXOX/37/ON366Zw7uz6jg==","shasum":"cd1637c07c17d401d753be114abbed1513844857","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-1.2.2.tgz","fileCount":12,"unpackedSize":102737,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6tGWCRA9TVsSAnZWagAALkkP/i/yXXoSo5IQXUTA0bLq\n8p90t2y8lF0LWCVLOs1kiOL/+7RY8HTEkS7JqoeQoAXbZY79/VslX3cghArn\nLhNc6KcEISk1T7NhPnpFhlVSI0Aj0rx4agA9szX8mnM42OHbiMc3+mwBjxS8\npd1PWpWj59rtFAj8I3CyuZJIMRf4rU7N/LhfkTiznMP3Dr2AtsCfuJqaIyyi\nLptBwT/rNQs+zNX/0t6TFkHRs6Kd2RAZ8LjW4/T0h2nNinslBq9ht1I1vfF1\nrHoaaBL3pIw21DM+4PIxsSWTx+FnHViPPwXd5mu6mwmYIuXauXOtoDxie40d\nEnLl9kqPY/YB5YUp41/0wqLjQdmMogeQGXF2Tqoewsxs5LndlpcQM2yTS4hU\nO6uwERMZ2xeczBMqu1DlIzZBt4AkJZH7blpJQWdIt7wv3pgb7BG3yOFcX+Xt\nO07l0JkG4pmHxkATwDuFcCAA07N0ekiU1Mu/zdzDAwZZcvFOcXNpfXcOSSlW\nCFaLpBSeeDO3aATBAC1T5ak/hJfysYTlinSEsDL+jBgQ4sMVIO/CTZsxpO1p\nCi47pFh7ew27BurOctq94Dq0QSD+H8pm5pwJUGCkJxCPP+EJDUdSywh3Bn7I\nV9yeb7/hIbkLHoLNH9qTbsVn+Np+s82+ZulPkhbm0YF1n+78MoPKTju7JkXK\nYCx7\r\n=eJOD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYTYNvStteakQ14X32OAA8tGAgE7A6xKroSvyXM/FXSAIgNqYg5FPntk6IjvbxuM2BmH1hNuJqxoQDzBsLBKJoRhQ="}]},"maintainers":[{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unexpected-knex_1.2.2_1542115734264_0.007285985197837519"},"_hasShrinkwrap":false},"1.3.0":{"name":"unexpected-knex","version":"1.3.0","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","lint:fix":"eslint --fix .","test:mocha":"mocha --bail","test":"docker-compose run --rm unexpected-knex","coverage":"nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","ci":"npm-run-all lint coverage coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"^0.15.2","unexpected":"^10.27.0"},"devDependencies":{"coveralls":"3.0.2","dedent-js":"1.0.1","eslint":"5.9.0","eslint-config-prettier":"3.3.0","eslint-config-pretty-standard":"2.0.0","eslint-plugin-mocha":"5.2.0","eslint-plugin-prettier":"3.0.0","knex":"0.15.2","mocha":"5.2.0","npm-run-all":"4.1.3","nyc":"13.1.0","pg":"7.6.1","prettier":"1.15.2","unexpected":"10.29.0","unexpected-fs":"3.0.0","unexpected-require":"2.0.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","dependencies":{"proxyquire":"2.1.0"},"gitHead":"15f530ef29e10c4b7eaabe7d011a88a8b063ab7d","_id":"unexpected-knex@1.3.0","_npmVersion":"5.10.0","_nodeVersion":"8.10.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"integrity":"sha512-uU2ZoxM6l2WKpMVO5AgEA9/g74CZsN8a6IeNkDQilecPzevTJgu3pSnmqqjMebFHKCpaRiBDzoTAlbtZLFNY8Q==","shasum":"a075d00888a40c716a854a819eab4ff4471f42cf","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-1.3.0.tgz","fileCount":14,"unpackedSize":104359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+EN8CRA9TVsSAnZWagAAQ7IP/AjpncxtlbdPgO6cdP5/\nWVuiefb2nK+Ec08TcUAGPgIrFq7Z3yqPSkKVX+3RlocUZKjIf3BRC86hHnqy\n+qm+o7mIFlExCnzsjh6jkZZ7FTTZTdK4w9f3ZGC7AVOkT3sUDDrolhgTy2Fd\nciHxWFLKLbKv3Zs/X1iQKmxYxWLEWkSL2L4v7OjPUF1//b5koTvVco8Bhh13\nIq6/B97OaiIxyS5uN8kviKsiBH1dOWCFc4uADQ8j6T05RVCAbrYrn2uipyaM\najCLc/xKl8JWl75TgfZW0pnw9r65+a7SPn1IYg710W1Q0QBiqF9gJR2leXOK\nSFUVqWM3f4BB73vKCUmMDV2oeYbNGqUDyGz3xnsd92KMivAEkwZekGjZEebG\nPNxaMHVzAdRT6c6GpJtyipDW6nDKNX3oryzYcccIx9qDwzdHptj632T2HTC7\ncBIVGrSGJo5TvQCxDc8VrI0JlNfGlygRuhkyRoxz8uWSdwZV9+NFwManfmwv\nwvDPOkRJpGUdCL79JcDZGjpjU3nY1y8Rp1gL2CLJz6SrE/wh0n5Zd2zPmmN0\niWgJxygQZCbTRptCXIicyLYzlryRAkhNp9S7ckSZ7oD0rNh1gsQk++uNHZK/\nov4RUqb41Pa5P+ZF+lHrNgloKJv2W3DrvaMZwYW19obvxa7KwrTgZSgafZTR\nECZh\r\n=oDNm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFo6bidEHZ7DgXt2kvL646BGrK2Rmp6ZAncVp01+e2UlAiABovRLRCP1eMJvXb4lTZ7FgJcj5YcJ9FvYoemw84iSGQ=="}]},"maintainers":[{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unexpected-knex_1.3.0_1542996858936_0.21065511569159057"},"_hasShrinkwrap":false},"1.4.0":{"name":"unexpected-knex","version":"1.4.0","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","lint:fix":"eslint --fix .","test:mocha":"mocha --exit","test":"docker-compose run --rm unexpected-knex","coverage":"ASSERT_ERROR_OUTPUT=false nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","ci":"npm-run-all lint coverage coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"^0.15.2","unexpected":"^10.27.0"},"devDependencies":{"coveralls":"3.0.2","dedent-js":"1.0.1","eslint":"5.11.1","eslint-config-prettier":"3.3.0","eslint-config-pretty-standard":"2.0.0","eslint-plugin-mocha":"5.2.0","eslint-plugin-prettier":"3.0.1","knex":"0.15.2","mocha":"5.2.0","npm-run-all":"4.1.5","nyc":"13.1.0","pg":"7.7.1","prettier":"1.15.3","unexpected":"10.40.1","unexpected-fs":"3.0.0","unexpected-require":"2.0.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","dependencies":{"proxyquire":"2.1.0"},"gitHead":"1ac28927f6fcafbc42ac57f38929ed24f41ed969","_id":"unexpected-knex@1.4.0","_npmVersion":"5.10.0","_nodeVersion":"8.10.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"integrity":"sha512-J1CTd0BLOqjXO76xQ6JcRvGBL3kvXI3FfS+fk3+Zg6Caa+HosBEICdNHFYfF8J0weoSeHSDYVtAuLHa1i5Jd9g==","shasum":"71fe1c2e53fa714e9664a63a8fd0c20f408c385b","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-1.4.0.tgz","fileCount":14,"unpackedSize":114348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLJ7MCRA9TVsSAnZWagAAHjoP+gOFXHHDHTPg+YAzOwV+\nrNSw7jnZJn7Cs0704S921gt9E7W3GPNFBi3zt8zphOPpFa5EjlCD6ieGjfNU\nqF0b6mlGnlR8F628c54/w+O5lqhdprG8nAKLZASafGAPiS5T4OdWU78X2SCI\no95Q1YADooPhfaDNmulegdQQeLhWPXGz8fE7DnprcIf4jWHYX8cXGfvYe0sN\nzLEew0l0MKXOxl3PUPzVD8svSzwkMv0Jy5iSs+mRgNzUPBbPt+W7AjlQBU6Z\nerLc+u77SBcKQaMCGzUrkiVlZ059zjOa4cMbA9ETkrM2lLPFZf78CoyKyALp\nltm5IrrGtOfa7flTzWRsD8mKE4rfAUf9xFo3/cpeKSjBgoSmYvsJc1oX18Qo\nxMw41Xa0XZKko+z17+pqmcBec3S+JtzdiTPkjdpDkx48qDtpYUKdYRvufrGW\niiboMtUz33eBAIv1ym+dz3GQCOnEEv7tJKa46S2CY5xacwMcDoyFy0Hp34Ih\nFEW8EClcO6NeVc3xj3OOAOuq/1VHrTOykxLa3VyJqe4shWgNtKbwBwd1Q9UE\nWqMihLWbtgxFU2e9t0VlJtj3DNiiqbEDYK76ZzQ/EbTAa7+qZU8XcCRhwByh\n8ijNfJGrlQu5S821ec7NhH9ECOW2uXrDlEinQszU/IiFxKRynD8jPMAMS5ka\nxtdc\r\n=tCOW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGTUggNewaI8cUA14I606I46+Y26QI4eK+3uR1szW8RlAiEA1lxbw/AZNBdBls1ocoSZA6cBtR9g4VS++f62+ryf94M="}]},"maintainers":[{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unexpected-knex_1.4.0_1546428108028_0.585911526863383"},"_hasShrinkwrap":false},"1.5.0":{"name":"unexpected-knex","version":"1.5.0","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","lint:fix":"eslint --fix .","test:mocha":"mocha --exit","test":"docker-compose run --rm unexpected-knex","coverage":"ASSERT_ERROR_OUTPUT=false nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","ci":"npm-run-all lint coverage coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"^0.15.2","unexpected":"^10.27.0"},"devDependencies":{"coveralls":"^3.0.2","dedent-js":"^1.0.1","eslint":"^5.12.0","eslint-config-prettier":"^3.4.0","eslint-config-pretty-standard":"^2.0.1","eslint-plugin-mocha":"^5.2.1","eslint-plugin-prettier":"^3.0.1","knex":"^0.15.2","mocha":"^5.2.0","npm-run-all":"^4.1.5","nyc":"^13.1.0","pg":"^7.7.1","prettier":"~1.15.3","unexpected":"^10.40.2","unexpected-fs":"^3.0.0","unexpected-require":"^2.1.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","dependencies":{"proxyquire":"2.1.0"},"gitHead":"f2583fb0b6b2c8f4e5dee0d8688c1dd3b148eee4","_id":"unexpected-knex@1.5.0","_npmVersion":"5.10.0","_nodeVersion":"8.10.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"integrity":"sha512-F3Kkw1fQ2OK/Z8KraQJUd9G0K4+BDPsiVz+e4uLSdWFjPp9afhYD+pgHmpbwpLa95oycxpJnmRCWkN1dubPvzg==","shasum":"21421c4bbbacff09ea77e2d8c2466fd4086bc604","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-1.5.0.tgz","fileCount":14,"unpackedSize":118314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQE9qCRA9TVsSAnZWagAAf8EP/2j0I6M+eiR7zbU9+Fqm\nMVxWltKK1sAOGaBsE/8sg6UvLGqPZIMQyE+iW4iklzDFgtVbJGA1nftA2yJH\nW3IxT7EWlnlVpz2iUsbIG1kjFgy01R1adxCAU28Y3bU3UHGDzPYFfN+G0bCL\nsEsmfmKTTzAJc8U2QbucAGhHxmfdw49D1DYNHFcSxZIyWmed2jpJBxAwAl03\nEYpJ9Nagx1Er4kV+XUzp2tJDCMpB2J7cNY91e1vHH2+Nkd/sKcLKLT69FjJH\nnssbf/XdqMkaqAVUTTS56iSHIV1VC5GWPzMTexnO98//mis2TOXXnpPpH5Ro\nV6nyjCLV68H8rLosd6SDmXjkVtdS8DkJmgnLYWvsieJRXrJr2t0Yy9RDRIn4\nlzz1LUZ0EKTji99G7nruPbIGxGxR02mfRR+LiM88jY5XW+bdD2eZZe1yAr9J\nkxY0RLlrFEKszqmWvSq12iHVyySPE8aAKXJr8WnObXuv4R3qyL7zgHqd1zq7\nQcctHlIBQWFj/mtRhktmrvZ47kElLH1x3EbKt5D2rBAAPN6C7UfVyHvZ53Aj\nBOuxKSvPR5UYyKN7ajqiCX9aQuVAZIn6sKfvc4ae28s10mmTVvChPZzlagKS\notD9UKVSZxNyT0vqamAMkTVTljQUWjdRvSCpiHvI0+qXxVPFDXkLAURnXT/Y\nvuwL\r\n=4wIu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuLeKOJYejq0hTs+NhnBsTz8MuEZL+augAu2nQu+eupgIgMHr2m69EaS33YdP/fwm6e9P0arCpnnTVOyBa+feS3mM="}]},"maintainers":[{"email":"joelmukuthu@gmail.com","name":"joelmukuthu"},{"email":"sune@we-knowhow.dk","name":"sunesimonsen"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unexpected-knex_1.5.0_1547718505394_0.9298522077452804"},"_hasShrinkwrap":false},"2.0.0":{"name":"unexpected-knex","version":"2.0.0","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","lint:fix":"eslint --fix .","test:mocha":"mocha --exit","test":"docker-compose run --rm unexpected-knex","coverage":"ASSERT_ERROR_OUTPUT=false nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","ci":"npm-run-all lint coverage coveralls"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"^0.15.2","unexpected":"^10.27.0 || ^11.0.0"},"devDependencies":{"coveralls":"^3.0.2","dedent-js":"^1.0.1","eslint":"^5.12.0","eslint-config-prettier":"^3.4.0","eslint-config-pretty-standard":"^2.0.1","eslint-plugin-mocha":"^5.2.1","eslint-plugin-prettier":"^3.0.1","knex":"^0.15.2","mocha":"^5.2.0","npm-run-all":"^4.1.5","nyc":"^13.1.0","pg":"^7.7.1","prettier":"~1.15.3","unexpected":"^11.0.0","unexpected-fs":"^3.0.0","unexpected-require":"^2.1.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","dependencies":{"proxyquire":"2.1.0"},"gitHead":"36ae20e4c15915ba107a8803d04aa921efb4aee6","_id":"unexpected-knex@2.0.0","_npmVersion":"5.10.0","_nodeVersion":"8.10.0","_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"dist":{"integrity":"sha512-h/AsCoAtywrQwnWsXJ7c5Yuq+N7kIZJiVPh7bhvOCxO9dS73Ji9hd2rEUOweeWnsBDjPJ/ayrXhf4RfwelzwYg==","shasum":"8a617cc7c30c54c2052c93ab5fe7c53e990012d5","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-2.0.0.tgz","fileCount":15,"unpackedSize":114726,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQFJhCRA9TVsSAnZWagAAn8sQAJxcma078W+CrwUVFo4C\nPFPBc+qSvY3Z5rujFCwj/+mTHjGHyMvlvhGBJf7CMpBYF7lykez2jCJkQA8r\npBHwJMsrUgzIw8UDn9EJCaufx06xLbO2WBXZRizehUBnFQQzStot9pS8i0Fv\nlpMw+4cw1z/chx7qhlZ1UsPbidG6TXIRylcdZjCAn6RToY1wg+mu13akPa1r\nbqZRDtN+bcSY8kcEEkduMT2I28jvFbHpqfRhNmONMYaepEP0Prq50E2qnsMm\ngY275qgRoq2eP66eOaoxnjqXgmkm1sQNFqDBNkQQk04Uo7CwjMTkJgGx7l3h\nFVF7ugd7QMA1P9U8cUc7eLaE/+XrdecuOc2bidyDBBiSReb0IxGE20X7g9rd\nLos6L2v5W/RwMGQjWmx/IHsTBaJWuxyW0oJHlgq4YRrR1rQrstfWH6p+ISKq\np2gQIkzWyoHEs1cRgp6KZPXkNsDso9WoE1/jMp07mUHG1QZ8zOldm5fwrdQ5\nAJ8ZDQuByapEM755fZqZXrsfOZvsn6Uz8WEqMRlz6Cn2YQH9ipdHk/72eWvy\n8cY4hOaPGXP9orqnLfSMEnhX2f6PjesQTcGcf7Di61W7H3DOUSlmykwJHwCQ\nAtfYtVkAsYptNQPfkTezrCpGZWmntrjsUG7UxGsYcowQJzD335e1WUVEryLY\nYCs6\r\n=aZza\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWcXjiT8vlxRDok4Hut2KZ9Uu2Y3DqEWOhLjK8/y00XAiEAsIDe5MJtiDQ/RLZMbgLOt11Cx4uj16zKmifW0iYVgiQ="}]},"maintainers":[{"email":"joelmukuthu@gmail.com","name":"joelmukuthu"},{"email":"sune@we-knowhow.dk","name":"sunesimonsen"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unexpected-knex_2.0.0_1547719264537_0.875078023139872"},"_hasShrinkwrap":false},"3.0.0":{"name":"unexpected-knex","version":"3.0.0","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint .","lint:fix":"eslint --fix .","test:mocha":"mocha --exit","test":"docker-compose run --rm unexpected-knex","coverage":"ASSERT_ERROR_OUTPUT=false nyc mocha"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"^0.16.0","unexpected":"^10.27.0 || ^11.0.0"},"devDependencies":{"dedent-js":"^1.0.1","eslint":"^5.12.0","eslint-config-prettier":"^5.0.0","eslint-config-pretty-standard":"^2.0.1","eslint-plugin-mocha":"^6.0.0","eslint-plugin-prettier":"^3.0.1","knex":"^0.20.13","mocha":"^7.1.1","mock-fs":"^4.11.0","npm-run-all":"^4.1.5","nyc":"^14.0.0","pg":"^7.7.1","prettier":"~1.18.2","unexpected":"^11.0.0","unexpected-require":"^2.1.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","dependencies":{"proxyquire":"2.1.2"},"gitHead":"46016061136906036a33909cc462e690b5c61bad","_id":"unexpected-knex@3.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-YiFSQd9hiMwptEBWnusrcgQ6M/7ST0MKPJNbQ0NiSCYWzG0nzHx7KjiV42NGUe/cOkMwHDpw8B/P5cvC1hxprw==","shasum":"54b4aeaebf64a466151eacca788335104d68570e","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-3.0.0.tgz","fileCount":16,"unpackedSize":122341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekguzCRA9TVsSAnZWagAAVKAP/jsd0pSb4hr+6d3CZRTv\nA0aO9GyFhukYrT0/Htl+DKW43L+UjrGuhkUJMwpm2MnREDhceduy+k7r7Mbt\ndgLKQ4Nil7FKkQ61RV97pFbX119Zc3PKyUnx5+uuNMczr9m5aDXupy9bR1BZ\n52WwR0IKa2pQ6GFJgLWxz0y+hB1m18hY+nllOqT0pewsdv9BddD08f1zibhD\nUt1y0vNqGXmHiQoOidpcpYGl9SAnNgnXxw/gd+jwDJb04yIB/3oQQTO6oS/P\n4H9ny3brfbqVW8EKgJ3NGwp2jC82YkOEJkPcFWymQDrfD3xgtL/jbWEr++4n\nbNRUzoAwhPzfDf9+r68Bj2TDgB2IVDKwGMdVShGrtzLJIoVpJQs0LW3QtGtS\ndQFjWdAy3qJNz2UewMEka8Qnt3qdoepcDdl8T8SLEbeQdESbwvOEMQh3ytY+\n71SbdKUmwBBjn7OvJ/d/pc3yIdctMYc3v45WFRPm5YwjrrlCzFX/f8pjMb8u\nPktb+LwRRNEhl2BTMV/00IQIfX2i3AxT0KCPgsgvnJGCdKvrXTqqIXCst6UW\n+8F2ag3asunxDteEfM/MbEZr56cR3vVgklH9MsLqPJMCAdsO2kZXB4npa5t3\nR7g72zHF+l+tB1WMFSGOPy3UUPecOovHRw39Hc/Ot0IdQP1HNgV6+6PKuT9f\n0h9z\r\n=fVgK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC62YZ0GWzEM6PUPDbNKaXuktXzYmAZ79ByP0e5GvV5TwIgJb6Hi3Z5U/vhwIEn09w27t2AQrCS8TpUpp7R0u5kxj8="}]},"maintainers":[{"email":"joelmukuthu@gmail.com","name":"joelmukuthu"},{"email":"sune@we-knowhow.dk","name":"sunesimonsen"}],"_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unexpected-knex_3.0.0_1586629555228_0.8469878468065439"},"_hasShrinkwrap":false},"5.0.0":{"name":"unexpected-knex","version":"5.0.0","description":"Support for testing Knex.js models and migrations using Unexpected","main":"lib/unexpected-knex.js","scripts":{"lint":"eslint . && prettier --check '**/*.{js,md}'","lint:fix":"eslint --fix . && prettier --write '**/*.{js,md}'","test:mocha":"mocha --exit","test":"docker compose run --rm unexpected-knex","coverage":"ASSERT_ERROR_OUTPUT=false nyc mocha"},"keywords":["test","testing","knex","database","models","migrations","unexpected"],"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"license":"MIT","peerDependencies":{"knex":"^0.95.0 || ^1 || ^2","unexpected":"^10.27.0 || ^11.0.0 || ^12.0.0"},"devDependencies":{"dedent-js":"^1.0.1","eslint":"^8.49.0","eslint-config-prettier":"^9.0.0","eslint-config-standard":"^17.1.0","eslint-plugin-import":"^2.28.1","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^16.1.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^6.1.1","knex":"^2.5.1","mocha":"^10.2.0","mock-fs":"^5.2.0","nyc":"^15.1.0","pg":"^8.11.3","prettier":"^3.0.3","unexpected":"^12.0.0","unexpected-require":"^2.1.0"},"nyc":{"cache":true,"include":["lib/unexpected-knex.js"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","dependencies":{"proxyquire":"2.1.2"},"gitHead":"1d87391e97a93687f04396285e08cc45ca0859a1","_id":"unexpected-knex@5.0.0","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-8MGwMVzyYDnfC7lGOOqe505hWgc0VZF/6Uf3M3EzTqxIhobqVWKGLfqI9A+d1/uwbqZx0iZ1SN/CgeW+7/8mWw==","shasum":"50349c143a4f86b024520b08c7c001c49db532c2","tarball":"https://registry.npmjs.org/unexpected-knex/-/unexpected-knex-5.0.0.tgz","fileCount":17,"unpackedSize":123650,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCWDZWGzEkDvZED3pw5pfZGACzuTAI+/1FTXDkOGa6QAiEApFHk1WN26ZcYOTzNaeArGfiS5vsekXOSvZUzY493vQQ="}]},"_npmUser":{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"},"maintainers":[{"name":"sunesimonsen","email":"sune@we-knowhow.dk"},{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unexpected-knex_5.0.0_1695038596290_0.7287517200457254"},"_hasShrinkwrap":false}},"readme":"# unexpected-knex\n\n[![NPM version](https://badge.fury.io/js/unexpected-knex.svg)](http://badge.fury.io/js/unexpected-knex)\n![Build Status](https://github.com/unexpectedjs/unexpected-knex/actions/workflows/ci.yml/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/unexpectedjs/unexpected-knex/badge.svg?branch=master)](https://coveralls.io/github/unexpectedjs/unexpected-knex?branch=master)\n\nProvides support for testing [Knex.js](http://knexjs.org/) database models and\nmigrations using [Unexpected](http://unexpected.js.org/).\n\n## Usage\n\nSay you have a migration that creates a \"user\" table:\n\n```js\n// ./migrations/001-create-user.js\nexports.up = function (knex) {\n  return knex.schema.createTable('user', function (table) {\n    table.increments();\n    table.string('first_name');\n    table.string('last_name');\n  });\n};\n\nexports.down = function (knex) {\n  return knex.schema.dropTable('user');\n};\n```\n\nYou can test that this migration will apply without error and that it actually\nworks against your database:\n\n```js\n// ./test/migrations.spec.js\nvar knexFactory = require('knex');\nvar expect = require('unexpected').clone().use(require('unexpected-knex'));\n\ndescribe('migrations', function () {\n  function createKnex() {\n    // set up an in-memory SQLite database to run tests against\n    // requires you to install the 'sqlite3' module\n    return knexFactory({\n      client: 'sqlite3',\n      connection: {\n        filename: ':memory:',\n      },\n      migrations: {\n        directory: './migrations',\n      },\n      useNullAsDefault: true, // recommended setting for sqlite3\n    });\n  }\n\n  var knex = createKnex();\n  afterEach(function () {\n    // drop the in-memory database and recreate it after each test to keep\n    // the unit tests independent of each other\n    return knex.destroy().then(function () {\n      knex = createKnex();\n    });\n  });\n\n  describe('001-create-user.js', function () {\n    it('creates a \"user\" table', function () {\n      return expect(knex, 'to apply migration', '001-create-user.js').then(\n        function () {\n          return expect(knex, 'to have table', 'user').and('to have columns', {\n            user: ['id', 'first_name', 'last_name'],\n          });\n        },\n      );\n    });\n  });\n});\n```\n\n> Ideally you want to test migrations using a sample database that is similar to\n> your production database. This therefore assumes that you're running an SQLite\n> database in production.\n\nAlternatively, you can add the test in the migration file if you'd like to keep\nthings in context:\n\n```js\n// ./migrations/001-create-user.js\n\n// exports.up and exports.down omitted for brevity\n\nexports.test = function () {\n  this.testUp(function (knex, expect) {\n    return expect(knex, 'to have table', 'user').and('to have columns', {\n      user: ['id', 'first_name', 'last_name'],\n    });\n  });\n};\n```\n\nIn this case, the unit test can be written as follows. The `to apply migration`\nassertion will run the test defined in the migration file.\n\n```js\n// ./test/migrations.spec.js\ndescribe('001-create-user.js', function () {\n  it('creates a \"user\" table', function () {\n    return expect(knex, 'to apply migration', '001-create-user.js');\n  });\n});\n```\n\n`exports.test` is consumed by this plugin and not by Knex. You should only add\nit if you would like to test your migrations using this plugin. In this example,\n`testUp` is a hook that is run by the `to apply migration` assertion after\nrunning the `up` migration. You can also add other hooks to set up the database\nbefore running the migration or to tear it down:\n\n```js\nexports.test = function () {\n  this.beforeUp(function (knex, expect) {\n    // called before running the up migration\n  });\n\n  this.testUp(function (knex, expect) {\n    // called after running the up migration\n  });\n\n  this.beforeDown(function (knex, expect) {\n    // called before running the down migration\n  });\n\n  this.testDown(function (knex, expect) {\n    // called after running the down migration\n  });\n\n  this.after(function (knex, expect) {\n    // called after everything else\n  });\n};\n```\n\nAll these hooks are optional. The actual order of calls is as follows:\n\n1. `beforeUp` hook (if provided)\n2. `up` migration\n3. `testUp` hook (if provided)\n4. `beforeDown` hook (if provided)\n5. `down` migration\n6. `testDown` hook (if provided)\n7. `up` migration again\n8. `after` hook (if provided)\n\nThe up migration is ran twice in order to check that your down migration works\n_and_ that the up migration can still be applied after your down migration.\n\nTo demonstrate these hooks, we'll assume you now have to merge the \"first_name\"\nand \"last_name\" columns into a \"name\" column:\n\n```js\n// ./migrations/002-merge-user-names.js\nexports.up = function (knex) {\n  return knex.schema\n    .table('user', function (table) {\n      table.string('name');\n    })\n    .then(function () {\n      return knex('user')\n        .select()\n        .then(function (users) {\n          return Promise.all(\n            users.map(function (user) {\n              return knex('user')\n                .where('id', '=', user.id)\n                .update('name', user.first_name + ' ' + user.last_name);\n            }),\n          );\n        });\n    })\n    .then(function () {\n      return knex.schema.table('user', function (table) {\n        table.dropColumn('first_name');\n        table.dropColumn('last_name');\n      });\n    });\n};\n\nexports.down = function (knex) {\n  return knex.schema\n    .table('user', function (table) {\n      table.string('first_name');\n      table.string('last_name');\n    })\n    .then(function () {\n      return knex('user')\n        .select()\n        .then(function (users) {\n          return Promise.all(\n            users.map(function (user) {\n              var names = user.name.split(' ');\n              return knex('user').where('id', '=', user.id).update({\n                first_name: names[0],\n                last_name: names[1],\n              });\n            }),\n          );\n        });\n    })\n    .then(function () {\n      return knex.schema.table('user', function (table) {\n        table.dropColumn('name');\n      });\n    });\n};\n\nexports.test = function () {\n  this.beforeUp(function (knex) {\n    return knex('user').insert([\n      { first_name: 'John', last_name: 'Doe' },\n      { first_name: 'Jane', last_name: 'Doe' },\n      { first_name: 'John', last_name: 'Smith' },\n    ]);\n  });\n\n  this.testUp(function (knex, expect) {\n    return expect(knex, 'with table', 'user', 'to have rows satisfying', [\n      { name: 'John Doe', first_name: undefined, last_name: undefined },\n      { name: 'Jane Doe', first_name: undefined, last_name: undefined },\n      { name: 'John Smith', first_name: undefined, last_name: undefined },\n    ]);\n  });\n\n  this.testDown(function (knex, expect) {\n    return expect(knex, 'with table', 'user', 'to have rows satisfying', [\n      { first_name: 'John', last_name: 'Doe', name: undefined },\n      { first_name: 'Jane', last_name: 'Doe', name: undefined },\n      { first_name: 'John', last_name: 'Smith', name: undefined },\n    ]);\n  });\n\n  this.after(function (knex) {\n    return knex('user').delete();\n  });\n};\n```\n\nThen test this migration:\n\n```js\ndescribe('002-merge-user-names.js', function () {\n  it('merges the first_name and last_name columns into a name column', function () {\n    return expect(knex, 'to apply migration', '002-merge-user-names.js');\n  });\n});\n```\n\n> There is an implicit implication here: that `to apply migration` _also_\n> applies all migrations before the provided migration (when the filenames are\n> sorted). So in this example, even if there was a `003-create-foo.js` migration\n> in the migrations directory, the batch of filenames that will be handed to the\n> Knex migrator are `['001-create-user.js', '002-merge-user-names.js']`. This is\n> because new migrations are usually dependent on older migrations (TODO: it would\n> be nice to have a graph of which migrations are related).\n\nThis is of course a minimal example, your migrations will typically be dealing\nwith a lot more complex and sometimes unexpected user data which is a good reason\nto test them.\n","maintainers":[{"name":"sunesimonsen","email":"sune@we-knowhow.dk"},{"name":"joelmukuthu","email":"joelmukuthu@gmail.com"}],"time":{"modified":"2023-09-18T12:03:16.674Z","created":"2017-03-11T17:14:07.285Z","1.0.0":"2017-03-11T17:14:07.285Z","1.1.0":"2017-03-16T12:56:07.145Z","1.1.1":"2017-03-16T13:24:45.452Z","1.1.2":"2017-05-12T18:35:04.658Z","1.2.0":"2017-06-04T12:02:20.099Z","1.2.1":"2017-08-08T13:25:21.563Z","1.2.2":"2018-11-13T13:28:54.395Z","1.3.0":"2018-11-23T18:14:19.039Z","1.4.0":"2019-01-02T11:21:48.172Z","1.5.0":"2019-01-17T09:48:25.645Z","2.0.0":"2019-01-17T10:01:04.676Z","3.0.0":"2020-04-11T18:25:55.447Z","5.0.0":"2023-09-18T12:03:16.497Z"},"homepage":"https://github.com/unexpectedjs/unexpected-knex#readme","keywords":["test","testing","knex","database","models","migrations","unexpected"],"repository":{"type":"git","url":"git+ssh://git@github.com/unexpectedjs/unexpected-knex.git"},"author":{"name":"Joel Mukuthu","email":"joelmukuthu@gmail.com"},"bugs":{"url":"https://github.com/unexpectedjs/unexpected-knex/issues"},"license":"MIT","readmeFilename":"README.md"}