{"_id":"@arrimo/typeorm-factory","_rev":"5-c860e699445dd2e0c4f0b031f3745e4b","name":"@arrimo/typeorm-factory","dist-tags":{"latest":"1.0.17"},"versions":{"1.0.12":{"name":"@arrimo/typeorm-factory","version":"1.0.12","description":"Factory for typeorm","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","test":"jest","codecov":"codecov","lint":"eslint . --ext .ts","format":"prettier --write \"src/**/*.{ts,js}\"","prepublish":"tsc","prepublishOnly":"npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"author":{"name":"Bogdan Darius"},"repository":{"type":"git","url":"git+https://github.com/linnify/typeorm-factory.git"},"keywords":["typeorm","factory","testing","typescript","factories","tests"],"homepage":"https://github.com/linnify/typeorm-factory#readme","license":"ISC","peerDependencies":{"typeorm":"^0.3.7"},"devDependencies":{"@types/jest":"^26.0.20","@types/node":"^14.14.25","@types/sinon":"^9.0.10","@typescript-eslint/eslint-plugin":"^4.15.0","@typescript-eslint/parser":"^4.15.0","codecov":"^3.8.1","eslint":"^7.19.0","jest":"^26.6.3","prettier":"^2.2.1","sinon":"^9.2.4","sqlite3":"^5.0.10","ts-jest":"^26.5.1","ts-node":"^10.9.1","typeorm":"^0.3.7","typescript":"^4.1.6"},"gitHead":"c249db456b4ee08c373c992b6ca1be3347b7810b","bugs":{"url":"https://github.com/linnify/typeorm-factory/issues"},"_id":"@arrimo/typeorm-factory@1.0.12","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-htF+BFOb0leNMJ2dhPh+GbwozcGMAQiHNwglhM4JUqxVkemVYGJeewzpPeOMkmC+0U1rxuriVDZlC+dMZzcqsw==","shasum":"b622daea55ccda537ae6da8df57217a1ab1ebbce","tarball":"https://registry.npmjs.org/@arrimo/typeorm-factory/-/typeorm-factory-1.0.12.tgz","fileCount":19,"unpackedSize":14451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwXEKRMTI6HVl/b3X8HfMIDc6RVNxjGCqCq/8kXsYbYAIhAIDxHvbCtBP80slTg4dVrPLoHzDNTbxlNSwuKLQEd0i9"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3by5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqa0A/+LzFoPh1zz9zw7rPjRlbNJoxK5pAF4t56JjNhCq3XheUOpNyJ\r\nSYga19OyRLEqbtl5vq56f1tRwdgTyfMmY0MOuzShkF8JrNZZR0TY0XYz7i2q\r\nmnxZu7LUbebS878fjFhm5bcHE3xY1MWT82ghHQtbRH55MavT3mSxtsL1un5P\r\n7lrI35N7kDHPw+ONL4JfLahf5tBp0gAvCv+H7JjF3oeq9y0O+69PiLmENlqQ\r\nAfkGaJHbOulJgSgwLCFu8U7nYej9V09cofBQfo5uewmfpVWdHYfQrxZ7Y5Rq\r\nMdMCZMKSUNFFPPimW5QrOemtjy5yF3kSG4q+N2V1Y2gXHI+KSmi3FTFU9f+a\r\nnCtZtQvOQfehhMJgYelkzvSgvHhjSL8HLwlltV4Fku1WBSnF+/Xg5pgXCM8L\r\nMAu3fjyommDSxyI8A6w9LamjxZL/XU4ETuXqS1UsXSx4xGFknf/V4M08Da4w\r\nwjzPJeUL+gXZm+u2GvzaBhJNNfejd7HU+MpkhGMsZPzkNRthl05Oom12B7Zy\r\nzpT8SPvtxgkeruMbiLCv93AG/hxIo+XDPDi8c/Ymupq/qgzeLjT73R/1A1RG\r\nzrfAzWpbHuYTuPxfF7v/HXHjfjQgz3HpXZwxYKTUzQktK9tB1CfDgUY65zsW\r\niF5Y20IXRpR5KX2FeN5BJZrFvuKEq0YG+84=\r\n=xDUE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"},"directories":{},"maintainers":[{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typeorm-factory_1.0.12_1658698937704_0.020507378440790314"},"_hasShrinkwrap":false},"1.0.13":{"name":"@arrimo/typeorm-factory","version":"1.0.13","description":"Factory for typeorm","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","test":"jest","codecov":"codecov","lint":"eslint . --ext .ts","format":"prettier --write \"src/**/*.{ts,js}\"","prepublish":"tsc","prepublishOnly":"npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"author":{"name":"Bogdan Darius"},"repository":{"type":"git","url":"git+https://github.com/linnify/typeorm-factory.git"},"keywords":["typeorm","factory","testing","typescript","factories","tests"],"homepage":"https://github.com/linnify/typeorm-factory#readme","license":"ISC","peerDependencies":{"typeorm":"^0.3.7"},"devDependencies":{"@types/jest":"^26.0.20","@types/node":"^14.14.25","@types/sinon":"^9.0.10","@typescript-eslint/eslint-plugin":"^4.15.0","@typescript-eslint/parser":"^4.15.0","codecov":"^3.8.1","eslint":"^7.19.0","jest":"^26.6.3","prettier":"^2.2.1","sinon":"^9.2.4","sqlite3":"^5.0.10","ts-jest":"^26.5.1","ts-node":"^10.9.1","typeorm":"^0.3.7","typescript":"^4.1.6"},"gitHead":"4331111794c98abd1307fce1f39525f606d27264","bugs":{"url":"https://github.com/linnify/typeorm-factory/issues"},"_id":"@arrimo/typeorm-factory@1.0.13","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-j4M21GABnfFp+mXFvoQKZx+STLdbPvaH5SIXOdwKnJLR4kXWAFQN2/HXw24vIxr78nx7ZpYXHaZQ/VEDy7fR2Q==","shasum":"798c6e1f80fafbef89b94b7eaf335fbf94096b6e","tarball":"https://registry.npmjs.org/@arrimo/typeorm-factory/-/typeorm-factory-1.0.13.tgz","fileCount":19,"unpackedSize":14599,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCntIn838bvuJ6jj95g4Ru7prZd93WGUlrJKKheh3JV0gIhAO3QkiRuYxkPG0xD62UgjLeWxhltQR8Qhk+U2x9LPqap"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3c6aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHdA//bguleeXfNuG4yoYAYsJ666z/k7EBkiwkHWa8m5ApgBZNrh4w\r\n5eZySw4gAuzbg7zqxtIK5hqLJrYYL1BImFhmIRg5kIT96yJ03aia+QkpVk2M\r\ndb1kyiqUewPl5K0XQSX/RqQTKnRJwOAcCFFDX353d/cB/Ku4/X5QUG8KtqnK\r\nnroEExYTZ4kdgqyC8SR/q56ttZhFuijgB4ZfNt2fRSV6CfMZXhyxCPcKP0HR\r\nxFs4fJMgox1S2vI0CB/TQFAY7ymMDqMvYd1JGAsKQKKzL/MUkAvsGz2Z+8IZ\r\n3GzWmUdY7JInDzbPS9tx7WVYYTqOtpo1aHb5Js1utY9dSy3J/olQc8qbqq+T\r\n/Cv2INTgsmc20zV3dX5/96jVE8sFm8V4/yNMLEL6miUhTL/gL6hRecDlNhdL\r\nccv+IEjvejbunbonbUrivatRdQ/bZKPH0ym7S4momMlJq/qqmTeK3MWef5xb\r\nfP4+WmMK0s0h6S4E6FnfpWg0GM6eXhWu5TYd1MFIs071sBe3ii64+YsxZzv2\r\nylczNDeLY1izhbI6ikk0rqHnsfM5fmNw5d2h73f7WpEY8G8OHxU7CYD1I8CT\r\nH3bNYWz4zjWfAxpUEIWpIJpd2zeq0G269pdRE0ejJWNlleM9V/m+3SKPCpdg\r\nAhDPqt/saQa7zb3p5eVvG4lwqf1TF5GZpSE=\r\n=vPtL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"},"directories":{},"maintainers":[{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typeorm-factory_1.0.13_1658703514278_0.21794752412799734"},"_hasShrinkwrap":false},"1.0.14":{"name":"@arrimo/typeorm-factory","version":"1.0.14","description":"Factory for typeorm","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","test":"jest","codecov":"codecov","lint":"eslint . --ext .ts","format":"prettier --write \"src/**/*.{ts,js}\"","prepublish":"tsc","prepublishOnly":"npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"author":{"name":"Bogdan Darius"},"repository":{"type":"git","url":"git+https://github.com/linnify/typeorm-factory.git"},"keywords":["typeorm","factory","testing","typescript","factories","tests"],"homepage":"https://github.com/linnify/typeorm-factory#readme","license":"ISC","peerDependencies":{"typeorm":"^0.3.7"},"devDependencies":{"@types/jest":"^26.0.20","@types/node":"^14.14.25","@types/sinon":"^9.0.10","@typescript-eslint/eslint-plugin":"^4.15.0","@typescript-eslint/parser":"^4.15.0","codecov":"^3.8.1","eslint":"^7.19.0","jest":"^26.6.3","prettier":"^2.2.1","sinon":"^9.2.4","sqlite3":"^5.0.10","ts-jest":"^26.5.1","ts-node":"^10.9.1","typeorm":"^0.3.7","typescript":"^4.1.6"},"gitHead":"76231d8c55c867ae230617f1e5a88fc591b71f84","bugs":{"url":"https://github.com/linnify/typeorm-factory/issues"},"_id":"@arrimo/typeorm-factory@1.0.14","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Lu7EsIDZxPu75IPe+/IiacfGxx2We9rWYjtBrbng9RRcLpQC0ygQMi4ogTSAYiZoP4vJvYTTJcSkFWSnCkB/fQ==","shasum":"cf8fbee1e21f39fab241238b5d507d8ca200a343","tarball":"https://registry.npmjs.org/@arrimo/typeorm-factory/-/typeorm-factory-1.0.14.tgz","fileCount":19,"unpackedSize":14693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA92DQcXgUdSwnAufjHxs1Bh2IAtJivVdHsz/KjRAMP6AiEAtgOJRVXbH2rhCvtXxiYsHe77+uJIcCKLQF9Gh+JfAVA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje8TwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjEA/9Gt86vldAMRwvx02kz/060SNXH8TOFhK37FEVn3Ix12wLLfxI\r\nqIrOq3sTjUbXxoubQjoNXFV8yfB3+QSlD1nYLM8w39drcZtv5DTH6WmfPXWk\r\n0L0JoixAo6XiQkOtcHiQARO2BAnnf/tRX68ZGs6uMPPSnPTuc2gLNyp1/AR/\r\nbhenIB7/mjWw/IocZqobkn21c66Vql/GoQAgytnwR/yW8VU3ABONU9wB9SA/\r\nSiuj8Iyav+KGNcr21jLnBKWDb47O5sdNRj0t7QHse7t1HvfcDgtHiDPbmzOy\r\nonNvpym/Gn+1nG9qFsLy5oJzVQi0YxhluHBUeNVrtZfzfXP2td1fIslKeiAi\r\nM4QDL/cihIo8RnEDNXtl91qMRutL+GE1/I8qCkTT6DUtljR9QSkaAUly7U81\r\nVApAdF+WGzBqsjELQdUin86lbKdanaVLUItKPNeLR5Hxo8qRQxGiorYX+1sn\r\nr1JUm3PC8z2HggeesQVF3bekay5LdBucGgk3o7zQril51BBsfcm9cQk4fuVp\r\nn8aEQaKtHY0sVv8iKQXDi9l34uYG8XK72WigH0dZUrguVjJUCSwyqyZW39vZ\r\nzQ5NzGQm6bMr9sZ43N6jQuh6tkCXXQiIBQj+QtKd2HkZWNgldZIb9gI6mVqr\r\n9dGHquXkXA+3V3Z6bWOqZFDWwLrIouw5l+k=\r\n=7ht/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"},"directories":{},"maintainers":[{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typeorm-factory_1.0.14_1669055727930_0.3235534464714891"},"_hasShrinkwrap":false},"1.0.15":{"name":"@arrimo/typeorm-factory","version":"1.0.15","description":"Factory for typeorm","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","test":"jest","codecov":"codecov","lint":"eslint . --ext .ts","format":"prettier --write \"src/**/*.{ts,js}\"","prepublish":"tsc","prepublishOnly":"npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"author":{"name":"Bogdan Darius"},"repository":{"type":"git","url":"git+https://github.com/linnify/typeorm-factory.git"},"keywords":["typeorm","factory","testing","typescript","factories","tests"],"homepage":"https://github.com/linnify/typeorm-factory#readme","license":"ISC","peerDependencies":{"typeorm":"^0.3.7"},"devDependencies":{"@types/jest":"^26.0.20","@types/node":"^14.14.25","@types/sinon":"^9.0.10","@typescript-eslint/eslint-plugin":"^4.15.0","@typescript-eslint/parser":"^4.15.0","codecov":"^3.8.1","eslint":"^7.19.0","jest":"^26.6.3","prettier":"^2.2.1","sinon":"^9.2.4","sqlite3":"^5.0.10","ts-jest":"^26.5.1","ts-node":"^10.9.1","typeorm":"^0.3.7","typescript":"^4.1.6"},"gitHead":"29b8c2fc9cf5238d40c9c053becf770af0bf69eb","bugs":{"url":"https://github.com/linnify/typeorm-factory/issues"},"_id":"@arrimo/typeorm-factory@1.0.15","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-tMFK5RjvkkxSmZVDWQXe5IiRsAbxMgnrqK9FhzvWYROD2s+N7b7If+1xHZ5FQMTVDtW7j3fab59a0h9mitOJfg==","shasum":"7b10d64e4fb3ca3e08eee7e6a56165c0a28cf514","tarball":"https://registry.npmjs.org/@arrimo/typeorm-factory/-/typeorm-factory-1.0.15.tgz","fileCount":19,"unpackedSize":14696,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBFTnovOtK5In1EWYI9t/a7Y1+j+fAPJFq6F1kSviPjAIhAO/6twot7Ky5PssKSTgwt4PWDuQZB5vw9GoYVxmOiSUI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje8eoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNpBAAiiIDWW0a5D+MElSUJT5QVHdZ6b1B+jC8yHGH91kvuquZ8j+N\r\nEESKFvR8WP5uaPbR0YS845bfAvlrqXG+o15wN0jJXYs2Nyb2BxJucyaDTY5J\r\nAsqePU3K+Wz5XLFO+KEMBO6jO3kshDf8VEcGdsh2bFJAK4F68i+0iHOUR+0L\r\ndaupvSsLdVrLFtxLZy4pC9u7NfG+NZ+N6Xb1mZSJXCeGKFzcselQb4GkpqRx\r\nFLpQXAITX9bSznZp82olc28wbIKZi8syWhVJF8ppY0SMU5+O4YKvdn5t139m\r\nKTuezPERpv5urYDvPm3iOSirWIVlFkzXjlgEDsu3g3pB9ENVVA3e3LsBnPFV\r\njsy4ZkBMxiZAI5Uaabo9/Ix8FpOwcI/UDDMS6Mxz8wpNVzHDM1SlVCKleoUl\r\nD7DDF4SoE1J8mbNa8GtnNnBRjor4MaYwo64Bhv3aKQY3/Zqm1VWoyw++1cxS\r\nMCWutbWqdxz58klpcHKH14V1SpxD9dCIqoi5pBd3zni920BaA/v0Oiyf/MJp\r\n5GlnyYO4LVl9Jzgbo1pOe9OgeLRHWB0QOOkjJRVSGm+9rdYJ8xeCfRjJTjym\r\nx1v7DptYF33R6uS5qkzqy/zAW/jgVw+rK7+vT5rBJFAeRMzVjbqdqf2PfPvp\r\nK/pDpqWYxOZY2/YrJa5t7Fv+FdF0hWlWyzM=\r\n=f8SH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"},"directories":{},"maintainers":[{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typeorm-factory_1.0.15_1669056423886_0.8839252258015982"},"_hasShrinkwrap":false},"1.0.16":{"name":"@arrimo/typeorm-factory","version":"1.0.16","description":"Factory for typeorm","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","test":"jest","codecov":"codecov","lint":"eslint . --ext .ts","format":"prettier --write \"src/**/*.{ts,js}\"","prepublish":"tsc","prepublishOnly":"npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"author":{"name":"Bogdan Darius"},"repository":{"type":"git","url":"git+https://github.com/linnify/typeorm-factory.git"},"keywords":["typeorm","factory","testing","typescript","factories","tests"],"homepage":"https://github.com/linnify/typeorm-factory#readme","license":"ISC","peerDependencies":{"typeorm":"^0.3.7"},"devDependencies":{"@types/jest":"^26.0.20","@types/node":"^14.14.25","@types/sinon":"^9.0.10","@typescript-eslint/eslint-plugin":"^4.15.0","@typescript-eslint/parser":"^4.15.0","codecov":"^3.8.1","eslint":"^7.19.0","jest":"^26.6.3","prettier":"^2.2.1","sinon":"^9.2.4","sqlite3":"^5.0.10","ts-jest":"^26.5.1","ts-node":"^10.9.1","typeorm":"^0.3.7","typescript":"^4.1.6"},"gitHead":"e2483b182cf6e7770656aedad73ff494508ecd0f","bugs":{"url":"https://github.com/linnify/typeorm-factory/issues"},"_id":"@arrimo/typeorm-factory@1.0.16","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-CAfTBQuon3sqamgVUqjf4c8ZeAs9KGAuXSlP357G3qO2P7XWKvw45QKY8BLWGLRbXjtULHWGA2Qm7SoFKvTpgw==","shasum":"e86f6ae33cb2271f7c97d7365c397632033ad313","tarball":"https://registry.npmjs.org/@arrimo/typeorm-factory/-/typeorm-factory-1.0.16.tgz","fileCount":19,"unpackedSize":14709,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtc2RdppB42k2+eSbAAey3gqR6GwkIkRsGsy3CChNQugIhAM4+HsvWCerp98bupP2CZb9JjY7FjdZeRQ+eEYcgLB9q"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje9AVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmomoA/7BD811mYpawnA5edJXwmyeH7WPgW0Ryo8PhkpUERrOXnpaAXF\r\nzQ1fiasLWEeLrAdbsi++PrO85xf6ZrM5soKVNPXcY7jTwd9U45/mR7FhXuyK\r\nuDnCBsn6HtzBoNn0HR1auWYAu8wvc6ycnfP4/5VdVXpRF1ZmbcEho6kSDPK5\r\n7oA8/XOfjmt8Gu4QpkU4xr+10cXmu178RVgV0yi897da5OcWMosRRsxGcaED\r\nZ20hhXMnw19D1OXtU94BVzvWiJHGdn2a3PR00fvVIw5WxJXlju4zQdYa2N8P\r\nHEZCmthsa32t/gTavzDNF9JoesM4Ye056EJR9K+0z7RJMDggTwkUxI9dCPeJ\r\nhBcN2keB3xfdSd5ykl8WPE1hbl9pn2uoQNPSJ3thZHtZq2BqVW/M18nlWIZj\r\nL6dV5pAN50/y4g+r2sTLPU1EbYMmMY1IUROr6sKy5Ubk21nEYn4INdBw15yq\r\ncVoEWHO0kZHv5R10+PFtJMbcFeOlouwX7DWYYniHM8Kmbdyh1vqcbYUP74vK\r\notREsWcof6TFPTlcnmVsWZuJ0QM4Tn9aFTLX5y4LqUAAeNC5Bw3SPRwBsfx+\r\nA/uvR5v4p5FqMR8c2qmfs6NxOZ/lZEDpil3/LvBnyB5z+R0Lx512EaMVXrs6\r\n7/bQdN2Ochxd52xhiS83bCgGqlSNUZnX/yI=\r\n=1XEL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"},"directories":{},"maintainers":[{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typeorm-factory_1.0.16_1669058581434_0.25616910501140966"},"_hasShrinkwrap":false},"1.0.17":{"name":"@arrimo/typeorm-factory","version":"1.0.17","description":"Factory for typeorm","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","test":"jest","codecov":"codecov","lint":"eslint . --ext .ts","format":"prettier --write \"src/**/*.{ts,js}\"","prepublish":"tsc","prepublishOnly":"npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"author":{"name":"Bogdan Darius"},"repository":{"type":"git","url":"git+https://github.com/linnify/typeorm-factory.git"},"keywords":["typeorm","factory","testing","typescript","factories","tests"],"homepage":"https://github.com/linnify/typeorm-factory#readme","license":"ISC","peerDependencies":{"typeorm":"^0.3.7"},"devDependencies":{"@types/jest":"^26.0.20","@types/node":"^14.14.25","@types/sinon":"^9.0.10","@typescript-eslint/eslint-plugin":"^4.15.0","@typescript-eslint/parser":"^4.15.0","codecov":"^3.8.1","eslint":"^7.19.0","jest":"^26.6.3","prettier":"^2.2.1","sinon":"^9.2.4","sqlite3":"^5.0.10","ts-jest":"^26.5.1","ts-node":"^10.9.1","typeorm":"^0.3.7","typescript":"^4.1.6"},"gitHead":"af0e2b712d3ce796bfbee7e719580cb8d6f1be15","bugs":{"url":"https://github.com/linnify/typeorm-factory/issues"},"_id":"@arrimo/typeorm-factory@1.0.17","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-MPR7MXL/TvtFeVN5I1kv1zULyT/ygGmRXVZYsFdhyHQx8HXh+90338KKjQSbehJLXSNbg1FJ2H06KkDJ40pcqQ==","shasum":"61c6f62a2edf855be65aaa4ce41ed80799a7253f","tarball":"https://registry.npmjs.org/@arrimo/typeorm-factory/-/typeorm-factory-1.0.17.tgz","fileCount":19,"unpackedSize":14888,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeI5PEA9aHfIhiG6BbHcascWt0yA0ydrXsFs+w+wceEQIgWxK4XolChX5yRAHYuMnu7PusR5RygZpNNIsVPgREpfE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjok6RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrALRAAkv47GCpHO/3Nt8hirNjnsgUwWG8U7lEqV5902lFuYVFIyDEU\r\nELl7jZUpBum9eglx5Uh8ncpNckrfVHYq6PpA2342vbXe0C04n2xgLoh5IY36\r\nSCfp5NA4MVUZ03e3rt8T24yd4ikjowoMBKZraZYhveHYLI0hperdUbM6oufO\r\naJsNV9j31vOL2+wtgdiQzpGvu/yRLyhoFLVlHVzbxme+MAKA9WwT+XXmHGNS\r\nW/Kxl7DYcHeyogzaoClW0v6QGx69Oh0f7IZwn7I5U773D4mH5pzQo+1j6w8A\r\nLymfwhPEZgVHBygydWlAZfTk+GXQYE/wsQgVR1zxtlWoxtf6t0nkvqXSwY44\r\ncZb0Mu1CyaJptcTPQMKUytGKaH9uoUIld5uGvZkNuMYyYejeK3kcsOyc/Mt/\r\nzyuaMkXsF/A43nmw0hWVYDVFDVmxxUBapEXNEsQ84XbfSMKeAYL1Q9n3+qnF\r\nFXTOLXome0p+andh4D1+HHMDd/TudZz2PgGwQ+2HaAUebuD/wt5tVanaYw8/\r\nV9HwTzMd+hqfskcNMDr/73EIzpmlG5WtH1mcgfpJ7PK8emPFONXDWEMPfURx\r\nOCxma8ojkpopRJ7/FD2lbWiIZPW+W2dDmQXbt4FgqYQIz2shTpI2jwPIJ3wK\r\nT37nQQWCjR3tF8TiWO2nkRjvAAc2jxg2TcM=\r\n=lSx3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"},"directories":{},"maintainers":[{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typeorm-factory_1.0.17_1671581329742_0.10241537843031967"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-24T21:42:17.656Z","1.0.12":"2022-07-24T21:42:17.820Z","modified":"2022-12-21T00:08:50.077Z","1.0.13":"2022-07-24T22:58:34.475Z","1.0.14":"2022-11-21T18:35:28.132Z","1.0.15":"2022-11-21T18:47:04.129Z","1.0.16":"2022-11-21T19:23:01.590Z","1.0.17":"2022-12-21T00:08:49.937Z"},"maintainers":[{"name":"lukebellamy053","email":"lukebellamy053@gmail.com"}],"description":"Factory for typeorm","homepage":"https://github.com/linnify/typeorm-factory#readme","keywords":["typeorm","factory","testing","typescript","factories","tests"],"repository":{"type":"git","url":"git+https://github.com/linnify/typeorm-factory.git"},"author":{"name":"Bogdan Darius"},"bugs":{"url":"https://github.com/linnify/typeorm-factory/issues"},"license":"ISC","readme":"# Typeorm Factory\n\n\n[![codecov](https://codecov.io/gh/linnify/typeorm-factory/branch/main/graph/badge.svg)](https://codecov.io/gh/linnify/typeorm-factory)\n[![Build Status](https://travis-ci.com/linnify/typeorm-factory.svg?branch=main)](https://travis-ci.com/linnify/typeorm-factory)\n\nThis package makes testing easier by creating factories for your TypeORM entities. It is inspired by the python package [Factory Boy](https://github.com/FactoryBoy/factory_boy).\n\n## Installation\n\n#### NPM\n\n```bash\nnpm install @linnify/typeorm-factory --save-dev\n```\n\n#### Yarn\n\n```bash\nyarn add @linnify/typeorm-factory --dev\n```\n\n\n## Usage\n\nThis section provides examples on how to use this library's features.\n\n### Factories\n\n#### Declaration\n\nFor declaring a factory, we make use of typescript classes and add as properties on the class the fields from our entity with the desired values\n\n```typescript\nimport { Factory } from '@linnify/typeorm-factory';\n\nexport class NormalUserFactory extends Factory<User> {\n  entity = User;\n  \n  firstName = 'John'\n  lastName = 'Doe'\n  email = 'john.doe@typeorm-factory.com'\n  role = 'normal_user'\n}\n\nexport class AdminUserFactory extends Factory<User> {\n  entity = User;\n\n  firstName = 'Admin'\n  lastName = 'Factory'\n  email = 'admin@typeorm-factory.com'\n  role = 'admin'\n}\n```\n\n#### Usage\n\nAfter defining our factories, we can make use of them by creating a new instance of a factory:\n\n```typescript\nconst userFactory: NormalUserFactory = new NormalUserFactory();\n```\n\nWhen creating the factory, we make use of the `create` function. By default, the entity is created and saved to the database by using the properties defined on the factory.\n\n```typescript\nconst user: User = await userFactory.create();\n```\n\nIf we want to modify the default attributes from the factory, we add them as parameter to the `create` function:\n\n\n```typescript\nconst user: User = await userFactory.create({firstName: 'AnotherFirstName', lastName: 'AnotherLastName'});\n```\n\nWe can create multiple instances by using the `createMany` function. In the below example we create 5 users:\n\n```typescript\nconst users: User[] = await userFactory.createMany(5)\n```\n\nIn the case when we have some unique attributes by which we define entities. We do not want to create multiple objects with some properties, we make use of the `getOrCreate` function. We define the attributes by which the entity should be unique. Calling the `create` method multiple times will return the same object.\n\nIn our example, we do not want to create 2 users with the same email.\n\n```typescript\nimport { Factory } from '@linnify/typeorm-factory';\n\nexport class NormalUserFactory extends Factory<User> {\n  ...\n\n  protected getOrCreate(): string[] {\n    return ['email'];\n  }\n}\n...\n\n// Creates the user \nconst user: User = await userFactory.create();\n\n// Gets the user that was created above\nconst sameUser: User = await userFactory.create();\n\n```\n### SubFactories\n\nA common case is that the entities have relations between them. In this case we create factories for all the entities and make use of `SubFactory` to create a link between them.\n\n#### Example\n\nIf the user has multiple addresses we add the `UserFactory` as a subfactory on the `AddressFactory`\n\n```typescript\nimport { Factory, SubFactory } from '@linnify/typeorm-factory';\n\nexport class AddressFactory extends Factory<Address> {\n  street = 'Factory Street'\n  number = '100'\n  user = new SubFactory(UserFactory)\n}\n```\n\n### Sequences\n\nWe can add sequences on our factories when we want a property to have a different every time we create an object using the same factory\n\n```typescript\nimport { Factory, Sequence } from '@linnify/typeorm-factory';\n\nexport class NormalUserFactory extends Factory<User> {\n  ...\n  email = new Sequence((i: number) => `john.doe.${i}@typeorm-factory.com`)\n\n}\n```\n\n### Post Generations\n\nSometimes we have the need to call some functions after the object was created. For this, we have created a `PostGeneration` decorator that can be used on multiple functions and all of them will be called after the entity was created.\n\n```typescript\nimport { Factory, PostGeneration } from '@linnify/typeorm-factory';\n\nexport class NormalUserFactory extends Factory<User> {\n  ...\n  \n  @PostGeneration()\n  addLogsForUser() {\n    // create some logs for the created user\n  }\n  \n  @PostGeneration()\n  async anotherFunctionToBeCalled(createdUser: User) {\n    // do something with the created user\n  }\n}\n```\n","readmeFilename":"README.md"}