{"_id":"najs-eloquent","_rev":"35-ac56dc0a84b88c1d6fdc86a3ae49b454","name":"najs-eloquent","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.1":{"name":"najs-eloquent","version":"0.0.1","scripts":{},"repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"najs@ntworld.net"},"dependencies":{},"devDependencies":{},"gitHead":"e162f2e6385e8fb6b9072a35ef92c36e806af092","description":"","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-jXsKOloaQ+N2vO80QDtOTg84xMGEuq/4dzYDvh5qe/yuPklPbZzFhveCoFk0GjincN2gZ00k+ZZyV963X9kweQ==","shasum":"ac1808613b13acfbb6766d7fd8943f1281ee62c0","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+r601jq7iVsbNkPHRPZmDfRK5L11uD72dpGWzXHiOdAiEAvytf5kdi1yC1FQKEjTCS6tAdA2SyYOdJe+Awqr+Rztg="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.0.1.tgz_1514816540911_0.524952610488981"},"directories":{}},"0.1.2":{"name":"najs-eloquent","version":"0.1.2","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"jest --coverage --forceExit","test":"jest --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*Test.ts"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"najs@ntworld.net"},"dependencies":{"@types/pluralize":"^0.0.28","collect.js":"^4.0.2","coveralls":"^3.0.0","lodash":"^4.17.4","mongoose":"^5.0.0-rc0","najs":"^0.1.1","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/sinon":"^4.1.2","jest":"^21.2.1","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"a46f4c24758335175c9a159ac35b71ccf5363465","description":"If you are Laravel Eloquent lover and want to use it in Node JS you will love Najs Eloquent. Najs Eloquent is Laravel Eloquent, written in Typescript (with some helpers you can use it with Javascript for sure).","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.1.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-+mov/olDAzVd5aA+jax7S8niSrCae8xlchFxofbycwKMpg6cdDqStEB5y7iBjEfPO19XY9beOdYe9e/QNBInMw==","shasum":"e1a5a31123974238c941a0d967077dfaf4adb2ba","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBzy5spZROsUPT342+gWrBJ0CqF3eqZUZl4VHtmdInFAiBf2iH96R9UoQQAa6UkRvaZw+mM1BaIpyK7l/X2RBq95A=="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.1.2.tgz_1515602882675_0.870886119781062"},"directories":{}},"0.1.3":{"name":"najs-eloquent","version":"0.1.3","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"jest --coverage --forceExit","test":"jest --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*Test.ts"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"najs@ntworld.net"},"dependencies":{"@types/pluralize":"^0.0.28","collect.js":"^4.0.2","coveralls":"^3.0.0","lodash":"^4.17.4","mongoose":"^5.0.0-rc0","najs":"^0.1.1","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/sinon":"^4.1.2","jest":"^21.2.1","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"21b4f36150de03ad7dde44c6474e5ac4f20f0ed7","description":"If you are Laravel Eloquent lover and want to use it in Node JS you will love Najs Eloquent. Najs Eloquent is Laravel Eloquent, written in Typescript (with some helpers you can use it with Javascript for sure).","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.1.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-8vfjxrYeTF1FKaQiLkdZ/0fjjzq5BwsWy8IsoeMWchX5CjF9O2LsSeC1K6E2WspMgBIlf2lCBH3JsStXAkrTQA==","shasum":"ce09cefda458a2e8e33e21da356c9449a3d7f971","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.1.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm82pDCM87xLYiFh0e5XuhjDxNiAx6VRQmr5iIzwOwKQIhAKBU0QksslvHgovYf0b+8yQTyTu1ASzcjVoTFvPYVUhP"}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.1.3.tgz_1515604131123_0.7088551032356918"},"directories":{}},"0.1.4":{"name":"najs-eloquent","version":"0.1.4","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"jest --coverage --forceExit","test":"jest --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*Test.ts"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"najs@ntworld.net"},"dependencies":{"@types/pluralize":"^0.0.28","collect.js":"^4.0.2","coveralls":"^3.0.0","lodash":"^4.17.4","mongoose":"^5.0.0-rc0","najs":"^0.1.1","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/sinon":"^4.1.2","jest":"^21.2.1","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"c5fa5c6aac5ea676209edee0cdfb70d076720ebb","description":"If you are Laravel Eloquent lover and want to use it in Node JS you will love Najs Eloquent. Najs Eloquent is Laravel Eloquent, written in Typescript (with some helpers you can use it with Javascript for sure).","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.1.4","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-ssG27t9n9X4UkMHj7m3FapgYY6mn5Q7ls82IUkspnwSzhQoe/IsDJ9VxJh87m/aMx6wS4a1vP+So6v3H3BB+kA==","shasum":"3738000ea185c038e9ee1584f84b2ce7039266f8","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.1.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt+NO3IzF2r5QVlXmw0ICuUyXIN8iLQgkSbML/cTvmegIgGSL3B0G7UQqvCOcvE/RunAYAaS6kkz/627lKeJLNhnw="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.1.4.tgz_1515607009790_0.8878086956683546"},"directories":{}},"0.1.5":{"name":"najs-eloquent","version":"0.1.5","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"jest --coverage --forceExit","test":"jest --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*Test.ts"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","dependencies":{"@types/pluralize":"^0.0.28","collect.js":"^4.0.2","lodash":"^4.17.4","mongoose":"^5.0.0-rc0","najs":"^0.1.1","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"338f2d71ddd5d9fcf67039d59251f648b674da79","description":"[![Travis](https://img.shields.io/travis/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://travis-ci.org/najs-framework/najs-eloquent/builds) [![Coverage Status](https://img.shields.io/coveralls/najs-framework/najs-eloquent/master.svg?st","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.1.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-8EEzg434t7YVKyjIlFYqTw9ePuuaEI8saH7TqIkBllR9RiaSw3nP1NRo9PdEAvc7fgCexqyOG8Z3Uwo0b0wxpw==","shasum":"d2ca2456bef2d05adc6382518b4f6d038ee09166","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.1.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxJnBp7mOqcEhqbxKY79YdfueYVXgFIBXFE5WbxSwtwgIgIbRyYfLAzuGQmYxAMoKh/aoiPm95IbCEM7DLMbkQFpM="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.1.5.tgz_1515668150581_0.1281614841427654"},"directories":{}},"0.1.6":{"name":"najs-eloquent","version":"0.1.6","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"jest --coverage --forceExit","test":"jest --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*Test.ts"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=6.x"},"dependencies":{"@types/pluralize":"^0.0.28","collect.js":"^4.0.2","lodash":"^4.17.4","mongoose":"^5.0.0-rc0","najs":"^0.1.1","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"e8fcc8f781a81f768b2c4cd775aea907fe8c55cc","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.1.6","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-OPtIshXh0tp3yubaa67kaL5B0KZlk3q0a8CSv5vNk5+E7uvTqJJuSmFaNJs3xTL4JcB+BKldGfSxoEm3PK/JdA==","shasum":"7c198dba4e0d67a100426cb62335de9bf747463b","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.1.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/UcBWuTX9D7ndHGKADyrciwyLJZy7oPVVAUOgvxao2wIgJEsfmtGCi8Btx5X62eKBl3HA3IpujDNpZ5uG95D78hs="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.1.6.tgz_1515691195202_0.18158709490671754"},"directories":{}},"0.1.7":{"name":"najs-eloquent","version":"0.1.7","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=6.x"},"dependencies":{"collect.js":"^4.0.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.1.1","pluralize":"^7.0.0","power-assert":"^1.4.4","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"af92213dd791ddebefb80686df40467157f6c858","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.1.7","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-06WYa4TwaUAUshjJRwJdEIkm+cVHINzUOfdi+uN2tEIFjakeo3p47EHgT4eeE/1ruhHNoxuE0Kmjf+5TF/qXyg==","shasum":"9f78bcf802d1f893dd6d5de2c068b93236c713b0","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.1.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCB77wVasxHYxVOFHnqd460d1w//9MYyi3sBiHRlm0LEwIgeaSOP5fVUJ6nSMMZtjeDPktLXwR9yKK/bRVQvKpWRVE="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.1.7.tgz_1515776643472_0.10128248482942581"},"directories":{}},"0.2.1":{"name":"najs-eloquent","version":"0.2.1","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=6.x"},"dependencies":{"collect.js":"^4.0.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.1.3","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"1722f997eb02272f43f0cebc1aa8aa07135637f0","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-b+7yk0nRaRv/w4mM0+M7JXdSUQWBpwmhbatgx7RnVr2tM5QNEjulF4SWTAq2YVEKlarOi0Li5OjQHU+FBUGyVg==","shasum":"5338595d7c02211961dad5bc351b02fecd127fd6","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDd5Qz4A74SiIbWiy4xPoQM14WrDTC0vSpiN2K82/in8QIhALiEzGYJKDhXmYz1gTZtVbgjMHwy0HEYoIMgX1xXBDE6"}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.2.1.tgz_1515860518346_0.46500993985682726"},"directories":{}},"0.2.2":{"name":"najs-eloquent","version":"0.2.2","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=6.x"},"dependencies":{"collect.js":"^4.0.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.1.3","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"99d25370d71aa8d50c79ed9c2d2fedf3cf17ecd4","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-8Pr3/Eo4vzWt3s9+d5L7IMbOAh2cNGYIM1PlOf+ZC7KkxcVqORLHaD8I+Z8d/6tOBz8DKCOV8sc1ImEDmHHdRQ==","shasum":"e613a464eef67235fe59f0d6e98237a51d878e37","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVukiB2TXcrayKX1/Gz/BG5oK/IqYMjg+ms1s/QpKZegIgNN382aZgT5whihT8NZgJTGR7Ntr9l5zUfyt59elfHGU="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.2.2.tgz_1515863216834_0.5987349017523229"},"directories":{}},"0.2.3":{"name":"najs-eloquent","version":"0.2.3","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=6.x"},"dependencies":{"collect.js":"^4.0.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.1.3","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"bb22366e6ca09578cc5942884109839044de8468","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-VTsUSAkXypFFq8LsVD1Sg7ZepuDge+UoNFR4LikMQ18KYH/0XQuaei4a+8Y92wbKHLL0yhiIGCvzLF1e5BYAWQ==","shasum":"f8f45c5eb1353dc8620ccd8c79ce0f296a328d2f","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYG7xLRcFu2hAB9CKOZMX9UfHX+se+ufYTKEF7xnVexAiEA+eMKHQD+ulHsIbZ02hd7p/Ji0QtMhzjWPz/pNExqUBo="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.2.3.tgz_1515924994472_0.27935693645849824"},"directories":{}},"0.2.4":{"name":"najs-eloquent","version":"0.2.4","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=6.x"},"dependencies":{"collect.js":"^4.0.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.1.3","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"9c71362545fe8ef60c70f5cbb3834fea89aee349","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-dLB2q5NAwTtK5pBk09Vjt4irI6ir8aS9S5E7+d7pboyQC38RkoJbybFlQeVLbVClO9wwTrHel0TBlMqWM4QW8w==","shasum":"6159e0d522346b92aadf00b6fab11d51263f30db","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQ6YAuHtJsWLxUoU7Xl31lNEh16J6+qZuy0dRUmZaRYAiEAtT1AVmJ2EtFNbm39BU/UUGD0xjjH2+nHmUJsBuwecx0="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.2.4.tgz_1516024109619_0.7998904131818563"},"directories":{}},"0.2.5":{"name":"najs-eloquent","version":"0.2.5","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=6.x"},"dependencies":{"collect.js":"^4.0.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.1.3","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"b546b80d3d2668530cf26406900ca60f88a8a46c","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-tIISu2990bZyAgvSucrVNLodsnyXMO5RIJNssXd6DKPLDqzWdIHwn4CAN0jeZn8Q/pq/8+eAVm8MemlmeBkm3w==","shasum":"000802d17751949ec1c5c3abc3eac2a233152202","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA2uLuKMrGe2XZ+FjHJkchkmvBXkzaoDmxBhtIS53K5XAiA7hBhkPLlxMnSox+GNkqPLuUHTkEcUB93aoLe74cVoIA=="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.2.5.tgz_1516120463287_0.03300981433130801"},"directories":{}},"0.2.6":{"name":"najs-eloquent","version":"0.2.6","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"dependencies":{"collect.js":"^4.0.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.1.6","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"9c783f7641d0f56a36fa63e9da34b6e5b79508fd","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.6","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-8BFLSB7wcLHQNm3DcdOKXVLOcDPi/+acivwe/DFUAJOLlJYD9ESShs3RxURAH41ntK2G+qxgQHUd6tNzZ1Np9g==","shasum":"d097e4cf16db17ae49547aedec983f8f4bff0848","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzVSN5RtHNw5UgW3cXw0DDgY/0M/4Fm/qRHqXjnsvSNQIhANUEr7L3tNokUmQ1dFTPM4v+9g3GoAr0Os3bDh7Qvmlc"}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.2.6.tgz_1516125421551_0.101267468649894"},"directories":{}},"0.2.7":{"name":"najs-eloquent","version":"0.2.7","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"dependencies":{"collect.js":"^4.0.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.1.6","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"e5e511a6558be77131711d41c72ecf9d6fa8f082","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.7","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-d6jJVguWsrIe72aIiWhHwb/FqSTTf0NZwe4E5B96tvdwdwwSD7bEYr7k3cwC3o84YcNa5S0Bh/qGnIEMjZDbbg==","shasum":"afe784c4ee9c0904c435b4cb567db49fe3bb5533","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAi9DhPL9TeGJ++U7EOIHjx2S9g0qHCZQtwUOvD2sbuVAiAEmTaqWg6BokwMgBwHHt8aSKHE97Zo4E1W/0T27VvbEw=="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.2.7.tgz_1516292594934_0.9840387485455722"},"directories":{}},"0.2.8":{"name":"najs-eloquent","version":"0.2.8","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"dependencies":{"collect.js":"^4.0.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.1.6","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"8286745a394791da383167d59b33d46863c89686","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.8","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-mfY2ZnlONNS+66vJ88GcIa57i5ufLWl6D9vOBCJ5790gR3pdQpyYWYZENFt9FpRXTt7QrKqoydGqeTKnaKnzeA==","shasum":"0532e151d0e1a35295482e4645dd745b9997981e","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.8.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDRfxMQ/gblgTcVNa0pTDNTbPgSZFnHgdLQiz7uA/yrgIgMp79z9fqnU7h8l897fGmQsIKxxYUv8Z0QhkugoiE1Ds="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.2.8.tgz_1516465963123_0.26091731898486614"},"directories":{}},"0.2.9":{"name":"najs-eloquent","version":"0.2.9","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"dependencies":{"collect.js":"^4.0.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.1.6","pluralize":"^7.0.0","sinon":"^4.1.3"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"6ede3934bdaae47ccb437862c59387b95dd7239d","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.9","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-jPsKLDX3im/sXwl6sfspi4HiXwOQs06yzG9GoOV4KDJm9vzZc2OwkwNR472U5LHiWM8KRup3UEqCk4qWthhnCw==","shasum":"4109386281e6dcfa4700a1c246478ec0c6353455","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.9.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdrn/2K0ISvbmPBANFVIXTrr4zYU1RQxG11pOFTc85/QIhAO/KniwWUhwVLoPY9td4Dw4cmxjATY8twemQzwLV6FWY"}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.2.9.tgz_1516632710365_0.3292358627077192"},"directories":{}},"0.2.10":{"name":"najs-eloquent","version":"0.2.10","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"najs":"^0.2.5"},"dependencies":{"collect.js":"^4.0.2","config":"^1.29.2","express":"^4.16.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.2.5","pluralize":"^7.0.0","sinon":"^4.1.3","winston":"^2.4.0"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"655d74550d56ea02b605a5f9bca1f51d32c74e0b","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.10","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-kgcSintSuKdoMTwxo7fAbl/s/b1hAhaeEiluF+ejYcKE5HiXI6JvNqZVXQ7Zl5tgmOMZU0RVUFeVItySbsks1w==","shasum":"ef5eb04cb0cffd5989a70f50b3befa3312595214","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.10.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1EVieJne5utUXHTu02OwJ2aKrVLzj5iROB6FY8b8m6AiBmBoSDqBNqTVZae6bHAZJFUgKH3u5WMj/50vzjJxPQYA=="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent-0.2.10.tgz_1517235090373_0.5808307980187237"},"directories":{}},"0.2.11":{"name":"najs-eloquent","version":"0.2.11","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test --coverage --forceExit","test":"jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"najs":"^0.2.5"},"dependencies":{"collect.js":"^4.0.2","config":"^1.29.2","express":"^4.16.2","lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.2.5","pluralize":"^7.0.0","sinon":"^4.1.3","winston":"^2.4.0"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"350d6553cf1c0bc815c6e4d95f236ceb6bfd93cb","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.11","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-Z2JB0pxcDhJK0ZlqPIuM/tHVt6vHYU3KY4dp+vdnsEAiXRBQJghh/h7t3KIswD3/jumBWYAEwkCct5IunQSxZw==","shasum":"f51f00fbec3abd59d3fda6ca9fb679756aef9134","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.11.tgz","fileCount":69,"unpackedSize":305617,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZ0p4aZO06V08WFhK2jlyaKOiiDrd4i1XoByo98hi8wAIhAKVsyI942s+I9+DGBIArU5mIsREgdpvlUi1c+OOf1ux2"}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.11_1518848938779_0.9764251791721152"},"_hasShrinkwrap":false},"0.2.12":{"name":"najs-eloquent","version":"0.2.12","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"export SUPPRESS_NO_CONFIG_WARNING=0 && npm run build && jest ./dist/test --coverage --forceExit","test":"export SUPPRESS_NO_CONFIG_WARNING=0 && jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"najs":"^0.3.3","collect.js":"^4.0.11"},"dependencies":{"lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs":"^0.3.3","pluralize":"^7.0.0"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","ajv":"^6.1.1","body-parser":"^1.18.2","collect.js":"^4.0.11","config":"^1.29.2","cookie-parser":"^1.4.3","cors":"^2.8.4","coveralls":"^3.0.0","csurf":"^1.9.0","express":"^4.16.2","express-handlebars":"^3.0.0","handlebars":"^4.0.11","jest":"^21.2.1","power-assert":"^1.4.4","redis":"^2.8.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2","winston":"^2.4.0"},"gitHead":"f48da3585ebbe6fd40373baf62b4e7bc00b6f8b9","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.12","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-Xdoajl9n3YEh52JQbmAgpo9zkZUiZcboBqk3WEGrJpx7xFIvGCGlan0/NJWFmlTql2DDVHd2RLRTRV13OmEtKQ==","shasum":"2f3e50c7c59f86c1e9e89b8ff724a0d8011d7380","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.12.tgz","fileCount":71,"unpackedSize":312921,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDdabpkkE2avTd1NSZGOKslnmHQ2Va8j1XOU+x5nsq5XAiEAwwR1g/xzXdAsL7Ic1JnTpKd+lpqZSGetcypUBd4AxyU="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.12_1518939138714_0.9387409688862489"},"_hasShrinkwrap":false},"0.2.13":{"name":"najs-eloquent","version":"0.2.13","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"export SUPPRESS_NO_CONFIG_WARNING=0 && npm run build && jest ./dist/test --coverage --forceExit","test":"export SUPPRESS_NO_CONFIG_WARNING=0 && jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"najs-binding":"^1.0.0","collect.js":"^4.0.11"},"dependencies":{"lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","najs-binding":"^1.0.0","pluralize":"^7.0.0"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","power-assert":"^1.4.4","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"df0a7d528964b197be39d34a6a4c345f349cd9f5","description":"[![Travis](https://img.shields.io/travis/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://travis-ci.org/najs-framework/najs-eloquent/builds) [![Coverage Status](https://img.shields.io/coveralls/najs-framework/najs-eloquent/master.svg?st","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.13","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-FTub+W4O9QDjyjDQha7J6RJUs+PqNd1gk8JsD4a6warc0Ss98vp4axpyICJb1fSdu9xXs+UXbJvfeZwq5qnX2g==","shasum":"35e6ad73194c8b4036886139fa26a3b6100adb53","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.13.tgz","fileCount":71,"unpackedSize":312978,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICEYe66rgSOut+JuvrRaZm+5CQE4i4qUbsMyk99PbERkAiEA7wytEhbmjViKLkQtSXfRzmkiLrFNCBK69nv+68RlUS8="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.13_1519229827559_0.11461962851711016"},"_hasShrinkwrap":false},"0.2.14":{"name":"najs-eloquent","version":"0.2.14","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"export SUPPRESS_NO_CONFIG_WARNING=0 && npm run build && jest ./dist/test --coverage --forceExit","test":"export SUPPRESS_NO_CONFIG_WARNING=0 && jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"najs-binding":"^1.2.0","collect.js":"^4.0.11"},"dependencies":{"lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","pluralize":"^7.0.0"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","najs-binding":"^1.2.0","power-assert":"^1.4.4","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"cbb5feab516dadb7d81a5462e424299b70949348","description":"[![Travis](https://img.shields.io/travis/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://travis-ci.org/najs-framework/najs-eloquent/builds) [![Coverage Status](https://img.shields.io/coveralls/najs-framework/najs-eloquent/master.svg?st","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.14","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-VKqM1cmY7gPzZ0KpYejJEv8zvFfVsAQTQzJeivtMcIOkwqIJMyJCqzXqMGMSXcI9H3Wf86HwcO8EO0k67oo9Zg==","shasum":"7a7a0a015d146f952f296af12029668b70ec394e","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.14.tgz","fileCount":71,"unpackedSize":312978,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhV0baKNWkgWdvHeLnu0YOLVJ94kSB6zwGL6LuUQF10AiEAo3WDk3DbLqBTLxM4WiYE5FmBK8dAm9mI8rpanFy1wrY="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.14_1519462877653_0.3600900479425344"},"_hasShrinkwrap":false},"0.2.15":{"name":"najs-eloquent","version":"0.2.15","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"export SUPPRESS_NO_CONFIG_WARNING=0 && npm run build && jest ./dist/test --coverage --forceExit","test":"export SUPPRESS_NO_CONFIG_WARNING=0 && jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"najs-binding":"^1.3.0","collect.js":"^4.0.11"},"dependencies":{"lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","pluralize":"^7.0.0"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","najs-binding":"^1.3.0","power-assert":"^1.4.4","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"a8a67e273e21601372c9d485423f118b8ddc889d","description":"[![Travis](https://img.shields.io/travis/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://travis-ci.org/najs-framework/najs-eloquent/builds) [![Coverage Status](https://img.shields.io/coveralls/najs-framework/najs-eloquent/master.svg?st","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.15","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-B/xXhaJCtFtPezi6rSezp/5mh0mh6axH+jx0jmVZt68puWykkgBmGctX04QjEeorMnMlezfs4NKOUVtlGf6gaw==","shasum":"0d300a1852d1b23b90e1bd250d7b2cbd7a5a8e7e","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.15.tgz","fileCount":71,"unpackedSize":312978,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGrO2dwRcq1VCHIEQhXUz0hsD7tCsBmkfdJ7nDmel+uwIhAKQFUNFBysInBmt10kAqWXUra0nwPcFMDJQiPruZX5D7"}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.15_1519885381557_0.2822667341558798"},"_hasShrinkwrap":false},"0.2.16":{"name":"najs-eloquent","version":"0.2.16","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d","coverage":"export SUPPRESS_NO_CONFIG_WARNING=0 && npm run build && jest ./dist/test --coverage --forceExit","test":"export SUPPRESS_NO_CONFIG_WARNING=0 && jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"najs-binding":"^1.3.0","collect.js":"^4.0.11"},"dependencies":{"lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","pluralize":"^7.0.0"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","najs-binding":"^1.3.0","power-assert":"^1.4.4","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"eb15099f6ccf822dfa442b82d2bea11a01906b17","description":"[![Travis](https://img.shields.io/travis/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://travis-ci.org/najs-framework/najs-eloquent/builds) [![Coverage Status](https://img.shields.io/coveralls/najs-framework/najs-eloquent/master.svg?st","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.16","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-0WMCQ6XGxiZ/tlVP+MqSquUgir+JTz30sevVI9a5yqi5F5Rmi0Gdv8fy97W5mHin/1mTN4rjakRmiZqBeAIqhg==","shasum":"b35740f1a2a742e49bf4828604fb89e42e30829f","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.16.tgz","fileCount":77,"unpackedSize":325699,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGryhSVFjl19BA49p2Wqh1I89xcas8OPrNvsg+SeBBRvAiEA1b70GnPBPVEUztqOHQVaXIfvgVHSBhimRqhlTW3MLuI="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.16_1520941647534_0.08713195540356367"},"_hasShrinkwrap":false},"0.2.17":{"name":"najs-eloquent","version":"0.2.17","scripts":{"build":"npm run build-ts && npm run tslint && npm run copy-js-files","copy-js-files":"chmod u+x ./script/copy-js-files.sh && ./script/copy-js-files.sh","build-ts":"tsc -d && ./script/copy-custom-definitions.js","coverage":"export SUPPRESS_NO_CONFIG_WARNING=0 && npm run build && jest ./dist/test --coverage --forceExit","test":"export SUPPRESS_NO_CONFIG_WARNING=0 && jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/interfaces/*.js","!dist/lib/specs/*.js","!dist/lib/eloquent/mongoose/setupTimestamp.js"]},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"najs-binding":"^1.3.0","collect.js":"^4.0.11"},"dependencies":{"lodash":"^4.17.4","moment":"^2.20.1","mongoose":"^5.0.0-rc0","pluralize":"^7.0.0"},"devDependencies":{"@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","najs-binding":"^1.3.0","power-assert":"^1.4.4","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"23ed5612593b2c27de45a2e2d6f6f6415c1246bb","description":"[![Travis](https://img.shields.io/travis/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://travis-ci.org/najs-framework/najs-eloquent/builds) [![Coverage Status](https://img.shields.io/coveralls/najs-framework/najs-eloquent/master.svg?st","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.17","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-7q/X/tPU+URu+1d8fa+M4wlTKgvCLOx/olS1b0qu89ORfWuCUVwETwuL18nrTZgnzJri6nmphekc/Tg9q0d4WQ==","shasum":"a1a9f6773815c064531244be6bd92f2f6217179c","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.17.tgz","fileCount":79,"unpackedSize":336264,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbkqIqbHfv//CuwCUI+LZpcDiUW+d12WTWLADRGftzSgIgBNGXm/G8W84Y/0KMWRkDnpIkQ48ycDRjjCQhtPFXiA8="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.17_1521169174005_0.19535461366574358"},"_hasShrinkwrap":false},"0.2.18":{"name":"najs-eloquent","version":"0.2.18","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d && ./script/copy-custom-definitions.js","coverage":"export SUPPRESS_NO_CONFIG_WARNING=0 && npm run build && jest ./dist/test --coverage --forceExit","test":"export SUPPRESS_NO_CONFIG_WARNING=0 && jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"collect.js":"^4.0.11","moment":"^2.20.1","najs-binding":"^1.4.0"},"dependencies":{"chance":"^1.0.13","lodash":"^4.17.4","mongoose":"^5.0.11","mongoose-timestamps-moment":"^1.0.0","najs-facade":"^1.1.1","pluralize":"^7.0.0"},"devDependencies":{"@types/chance":"^1.0.0","@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","moment":"^2.20.1","mongoose":"^5.0.11","najs-binding":"^1.4.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"4dc93abe832c88d5bf86df04795d31705d02bd85","description":"[![Travis](https://img.shields.io/travis/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://travis-ci.org/najs-framework/najs-eloquent/builds) [![Coverage Status](https://img.shields.io/coveralls/najs-framework/najs-eloquent/master.svg?st","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.18","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-5IUM79HpLY/zpUs8Xn+Gon7umm1GXaK8bAKY3yY+pyw/BG02peBi5a0f3vYRzYOn7fR+BoParwz3yVgEMgBWbA==","shasum":"23cc24eaea28cdb6b1e98487f23141eea0adfa6f","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.18.tgz","fileCount":171,"unpackedSize":536746,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGq3KPPAjAHPRrbkzgjex1x5nzOZhZQbee+fLoMQOas4AiBeRhWkAjyC3UPEVtzXj73v91Z+CuNPYK8HUbPloN9l6w=="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.18_1521876295502_0.3252552375309272"},"_hasShrinkwrap":false},"0.2.19":{"name":"najs-eloquent","version":"0.2.19","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d && ./script/copy-custom-definitions.js","coverage":"export SUPPRESS_NO_CONFIG_WARNING=0 && npm run build && jest ./dist/test --coverage --forceExit","test":"export SUPPRESS_NO_CONFIG_WARNING=0 && jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"collect.js":"^4.0.11","moment":"^2.20.1","najs-binding":"^1.4.0"},"dependencies":{"chance":"^1.0.13","lodash":"^4.17.4","mongoose":"^5.0.11","mongoose-timestamps-moment":"^1.0.0","najs-facade":"^1.1.1","pluralize":"^7.0.0"},"devDependencies":{"@types/chance":"^1.0.0","@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/moment":"^2.13.0","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","moment":"^2.20.1","mongoose":"^5.0.11","najs-binding":"^1.4.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"b1d7b503031cf735c49fd62f20a24d9a57ef1590","description":"[![Travis](https://img.shields.io/travis/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://travis-ci.org/najs-framework/najs-eloquent/builds) [![Coverage Status](https://img.shields.io/coveralls/najs-framework/najs-eloquent/master.svg?st","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.19","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-V6zWbHPhbUVCXJP/9SRR0AkBf67vONcYtR0qtUM+1IqPunVGnyM7yQSIpB57ktajvafguVff2gfKJUZbV2/Z3g==","shasum":"f2d64c421009680d1a47a577c39ff2890b9c051b","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.19.tgz","fileCount":185,"unpackedSize":575893,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMfU9f6Wr0TYKRAEc5f3N1XiKs7+ds/2n8GEHscjLiCAIgcTUY1ZSdLk1HNdqdSmoQ/aUMm5uegHZkK7JDbOZFrYI="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.19_1521876325469_0.3636555072737593"},"_hasShrinkwrap":false},"0.2.20":{"name":"najs-eloquent","version":"0.2.20","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d && ./script/copy-custom-definitions.js","coverage":"export SUPPRESS_NO_CONFIG_WARNING=0 && npm run build && jest ./dist/test --coverage --forceExit","test":"export SUPPRESS_NO_CONFIG_WARNING=0 && jest ./dist/test --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"collect.js":"^4.0.11","moment":"^2.21.0","najs-binding":"^1.4.0"},"dependencies":{"chance":"^1.0.13","lodash":"^4.17.4","mongoose":"^5.0.11","mongoose-timestamps-moment":"^1.0.0","najs-facade":"^1.1.1","pluralize":"^7.0.0"},"devDependencies":{"@types/chance":"^1.0.0","@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","moment":"^2.21.0","mongoose":"^5.0.11","najs-binding":"^1.4.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"5b556374a5f2a509ecd412b2e884710bff8428f4","description":"[![Travis](https://img.shields.io/travis/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://travis-ci.org/najs-framework/najs-eloquent/builds) [![Coverage Status](https://img.shields.io/coveralls/najs-framework/najs-eloquent/master.svg?st","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.20","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-d9fvRljxK2IO1W1yTzD2muG4+5EZRxsr0KGDOD9VgcEwy+9LDqdhAHlOlQ6HIKCOFfzC9z4myZg3ZP/AaKwpXQ==","shasum":"f9d74fcd38fe3750541671579a7f05874f75ddb3","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.20.tgz","fileCount":191,"unpackedSize":629268,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMo/4hXvKB0kIBWrICivwDmdje2p0lTQtBzvZxUxSvRgIgRI6XN+eUshdBMP8WUKKGrYWDWk3j8wqETtcW9dncmyU="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.20_1522070306078_0.501442476381655"},"_hasShrinkwrap":false},"0.2.21":{"name":"najs-eloquent","version":"0.2.21","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d && ./script/copy-custom-definitions.js","coverage":"npm run build && jest ./dist/test/**/*.js ./dist/test/**/**/*.js --coverage --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist && ./script/copy-custom-definitions.js","integration":"npm run integration-build && npm run integration-lint && npm run integration-test","integration-build":"npm run build && cd ./integration && tsc -d && cd ..","integration-lint":"cd ./integration && tslint -c tslint.json -p tsconfig.json && cd ..","integration-test":"jest ./integration/test --forceExit","test":"npm run coverage && npm run integration"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"collect.js":"^4.0.11","moment":"^2.21.0","najs-binding":"^1.4.0"},"dependencies":{"chance":"^1.0.13","lodash":"^4.17.4","mongoose":"^5.0.11","mongoose-timestamps-moment":"^1.0.0","najs-facade":"^1.1.1","pluralize":"^7.0.0"},"devDependencies":{"@types/chance":"^1.0.0","@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","moment":"^2.21.0","najs-binding":"^1.4.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"a4c01375100398600da789ef5e8b08b5ab3e0287","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.2.21","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-tP1TWnJ7uVE+wekLVtXILyz15Y4no2+baIh84Tpt1tuThZ7ecrjzq6qZczetgWGHMv0/IFUiygVlPKLMXAOoqQ==","shasum":"ed26a5c507f9edeb3bc3b7d33ec8ead3a9b03a19","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.2.21.tgz","fileCount":195,"unpackedSize":655459,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtq5DN+Tk19HTWJWMFt80kq15v8/Am6YEJQwXrC3FsYAiEAqoCao+7T7y0dH39+GMgS374yCJi94osCYyuTsKZOnSY="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.2.21_1522411983989_0.2318910072125533"},"_hasShrinkwrap":false},"0.3.0-alpha.1":{"name":"najs-eloquent","version":"0.3.0-alpha.1","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test/**/*.js ./dist/test/**/**/*.js --coverage --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist","integration":"npm run integration-build && npm run integration-lint && npm run integration-test","integration-build":"npm run build && cd ./integration && tsc -d && cd ..","integration-lint":"cd ./integration && tslint -c tslint.json -p tsconfig.json && cd ..","integration-test":"jest ./integration/test --forceExit","test":"npm run coverage && npm run integration"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7 <10.0.0"},"peerDependencies":{"collect.js":"^4.0.11","moment":"^2.21.0","najs-binding":"^1.8.0"},"dependencies":{"chance":"^1.0.13","knex":"^0.14.4","lodash":"^4.17.4","mongoose":"^5.0.11","mongoose-timestamps-moment":"^1.0.0","mysql":"^2.15.0","najs-facade":"^1.1.1","pluralize":"^7.0.0"},"devDependencies":{"@types/chance":"^1.0.0","@types/jest":"^21.1.8","@types/knex":"^0.14.9","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","moment":"^2.21.0","najs-binding":"^1.8.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"4082ec0b37dafc622211b41cc48fdb895bdee23a","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.3.0-alpha.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-4FszPFKxPF4A4qGODydNQRiqQAbgvAICUEcS9JeHpbTRNlYbtc16lRwpeiV/1WjSVPsS67zMuGjhYc6bxPFUAg==","shasum":"7f58fa790a14fb039f2230bdc5bc7b68b4dd4ee9","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.3.0-alpha.1.tgz","fileCount":241,"unpackedSize":554009,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6A30CRA9TVsSAnZWagAAK/wP/AlzNF43him6mNQczweN\nMErfF+lVPIi9Cl5njh13dSzCSkFWmKgThsYHHiOLuzuUHfKOrTV4oTVzhiW0\nqyJNrLf9ZT0NRcS+UgKf8zyvYJkbbjkSqTvuitLT61GdWKBGz4INnD5XWmAt\nn1DdtnJYsbPjrakNI9PnL3sA4+RDIvRZFSMQ4yYeDbb+6cWYmWOo98f2FI+o\nwxKhC4IBA+8dpXqBv0Q5yyjAMdDNZke5e/NH37jXUihhIAi8WBdByOdvWLtr\nnFe0VkLsOqM9miklzYnJgnzHQdLKBVb4AdrPd07xj4g8p93CZlFY7HoiKul1\nyew58ztRW3483W4vAVIFPa5v4n/YBz8TSiPT6M60HsXb4fSoPfbfWHnbIL4H\nb5OMA/SOvD/8holzKI7NkIUNIMWybVli7zt0PuR246jVFKafnCo34ljusu1F\n7NhAaTLz586QNOGIh/iMfLoeuJx6ntpN+OsetzjdnIRAoZJO+OMKVGdexbIb\nh00BIiIZG5wKxMHQBjoAS559LCza6m1GgqxCYhFCXCSk8xHKz01D8N0rtht2\nF/r31TwG4WS43PeE01ZL5vgXE1Wd6DkYL96mJytAldjy45ndZL6yj1zhq5z8\npJSHq78xdbYB+34Y08e+P6fgLqX8jcA/n4BvxDjp+dI5NaHSarVsBid15JcB\nMQlp\r\n=ItsL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFw08ieFSoUsac2y4mnYBw3uIun5JmAWN/apWvXCy26AiBs9T9paj/3VQzReN36uBKCg4AUI27WcSBZ8/NycKlo8A=="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.3.0-alpha.1_1525157362935_0.32495677571842996"},"_hasShrinkwrap":false},"0.3.0-alpha.2":{"name":"najs-eloquent","version":"0.3.0-alpha.2","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test/**/*.js ./dist/test/**/**/*.js --coverage --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist","integration":"npm run integration-build && npm run integration-lint && npm run integration-test","integration-build":"npm run build && cd ./integration && tsc -d && cd ..","integration-lint":"cd ./integration && tslint -c tslint.json -p tsconfig.json && cd ..","integration-test":"jest ./integration/test --forceExit","test":"npm run coverage && npm run integration"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7 <10.0.0"},"peerDependencies":{"collect.js":"^4.0.11","moment":"^2.21.0","najs-binding":"^1.8.0"},"dependencies":{"chance":"^1.0.13","knex":"^0.14.4","lodash":"^4.17.4","mongoose":"^5.0.11","mongoose-timestamps-moment":"^1.0.0","mysql":"^2.15.0","najs-facade":"^1.1.1","pluralize":"^7.0.0"},"devDependencies":{"@types/chance":"^1.0.0","@types/jest":"^21.1.8","@types/knex":"^0.14.9","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","moment":"^2.21.0","najs-binding":"^1.8.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"b05ffcb6f63697efdc5536908298e1636bdf9dd9","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.3.0-alpha.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-W+vvkwLn1OQ+ghAtHmGtDpiwVvPzpzBhHgByxDIhSSD3AoAu20rS8fF+/ka/3L9WphFS5+h7Sg2Bp/1/zOMD2A==","shasum":"702e48cdb86193e8dc1144f810e71719b8b7aeb4","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.3.0-alpha.2.tgz","fileCount":241,"unpackedSize":554096,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6B3xCRA9TVsSAnZWagAAcmYP/3CbhhenVIyTltKJyT2I\nAN0usO9fGQUPSvDSkshrQ1vsopdkzOg8VOZQn+K7bQ7QiL/r/dke/gED8qXy\nzrFD4rAc7KwF1OfpiPF0+dVi1NXzjl5jidVSfQOCptbYvzZNXBBuVznlkMAs\nm8RwfH9zZheQsUeyJhYKEff0Dzu/WH5SGDAqCCXRIAo+0RGXy+3OMjNKwZqc\nkQ9A9yp+QuDP0WUaDNZYreuqOLF2nGZCGdVOXy3mrW3h5bKus/eDpx0FLCd4\n4rWkhDnJFsXRYWUuBK1aRW1wZQeLyyWrDkMuXnNk3n68TxuMom92AMwGXzs+\ncvMLX9wjQOa85VvpGyGgzlv+I/o+HeIAzrmPEzhSYvLBvnzWz6QDYY1yJvja\nTxJrHFy6t/6xCQhzFCkO5xrbtzSxYpWiozpOOA6Aq29ZUUuiu3QVtUqBU8Sv\nPkOrn0/ArWEb/ojOUjdvrtiDf0plk4C7FrffPhaP3n65Je4NXZKz/ZmHiSYs\n6nL37vDdISH4Oocj6ovI/OrHzdynPUaiVGEL7kimtBq5u1zHcBPoUiyXGd8Y\nheZPIZxHe83WjUDvrkHhpcFgVSzulk4I9RiQIS7cYnKImRp705iqdA+TyGNa\nFSYcasd1ZdVgC58TuKWVNyOd2XvAxw3qBjjLAhI4dGFgV3unRFUaLwM2bo5Q\nXKjY\r\n=3qMJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFjXRqTqnRnw1axpiEy6ltJMl3BLzzkoIWCB36OE99N6AiEAscYN4ZB2lxSVEA8ZQJBq0d3ekrk27voilsXoDgc93/Q="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.3.0-alpha.2_1525161455390_0.9897801613106805"},"_hasShrinkwrap":false},"0.3.0-alpha.3":{"name":"najs-eloquent","version":"0.3.0-alpha.3","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test/**/*.js ./dist/test/**/**/*.js --coverage --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist","integration":"npm run integration-build && npm run integration-lint && npm run integration-test","integration-build":"npm run build && cd ./integration && tsc -d && cd ..","integration-lint":"cd ./integration && tslint -c tslint.json -p tsconfig.json && cd ..","integration-test":"jest ./integration/test --forceExit","test":"npm run coverage && npm run integration"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7 <10.0.0"},"peerDependencies":{"collect.js":"^4.0.11","moment":"^2.21.0","najs-binding":"^1.8.0"},"dependencies":{"chance":"^1.0.13","knex":"^0.14.4","lodash":"^4.17.4","mongoose":"^5.0.11","mongoose-timestamps-moment":"^1.0.0","mysql":"^2.15.0","najs-facade":"^1.1.1","pluralize":"^7.0.0"},"devDependencies":{"@types/chance":"^1.0.0","@types/jest":"^21.1.8","@types/knex":"^0.14.9","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","moment":"^2.21.0","najs-binding":"^1.8.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"b90c102eda8fd467b9e88a581edf2e9e99d39da8","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.3.0-alpha.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-FI5shcc6JcS4o9X4v+vJVYRYj7P75wFdkY27Y591HUI0gG0N9DXLzQHvl/97dO7aTl8M1GNvlwjFYA6kZod4Sw==","shasum":"e9657c18a67b9de6c1cf2f8d80d3ab8779d61f48","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.3.0-alpha.3.tgz","fileCount":253,"unpackedSize":564580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7twCCRA9TVsSAnZWagAA6ZsP/0gqW2yk7LeAP55QGrq6\nfcXHIgh+RO0BEW/YGNf40nSAAvVZjA7M3OuXapoDNBcgJdZesZjU7syCD8Jy\nUhnVe1+W4gxx//6jRlE9zNtR/lgwJPywK+u6t2Hq7HC0r6bXhqPFGcJo/JSs\nd/bR+0hr5Z20kBgOID0+ZH7Qc1aJQ/S6IFu4/egroPwqEjZzpyEQkrqa3vdL\nJRSUT5M8mki3ioDkH7T2+5hMhktjAaXcRW+kwBcsdRz7FjK+APbCLLNtK4Sb\nyVDwA8FwLzycmC3/GUt6p89nAWSY43omJi7e+dGbApm7oxsqaERvruaKQeep\nHmq0MN8IfSVeIyZLRHkbLDVL+JOMAYA+FuqP7HzGKViS3KE2pesSsPt2N2jO\nhMjaAinZVgQBcTOLkLBEk0Ng1YRePQz9TXJoHETLwbwwignbkZik2G0ag5vv\nEqD1cPzukfX6XDHNZYwBsJhhqyngbl5aXhtm/LC2ITpUT1pFVimVDi26Z2W8\nDjyBc5EjzbTZOb+x8qFj5CrIVLbPTC5PNHCKjIk7mzGvXt9+KRfpGRIEQ4Ix\nS0MaYSJf4C7ywfeEI2QTlozazfUjKwv9BH8r67ntmyrqYXSH/3TiKMYplmbY\nXk1XYj8I3bf3x+9bCkB7fd5DYCQOLqtJELVMZABnu7b76kgRfnrJ2Cu40gGu\nxK5w\r\n=+vUl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4/td0BDxFrAKcFbUXLIQo7RGw8+wGN+xyWak0CB+/8gIgKtIN0NAk2cjnUUEibDp1OPs8Pw0p1xjyXVE9J/o/ANc="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.3.0-alpha.3_1525603328069_0.9797796864729549"},"_hasShrinkwrap":false},"0.3.0":{"name":"najs-eloquent","version":"0.3.0","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test/**/*.js ./dist/test/**/**/*.js --coverage --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist","integration":"npm run integration-build && npm run integration-lint && npm run integration-test","integration-build":"npm run build && cd ./integration && tsc -d && cd ..","integration-lint":"cd ./integration && tslint -c tslint.json -p tsconfig.json && cd ..","integration-test":"jest ./integration/test --forceExit","test":"npm run coverage && npm run integration"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7 <10.0.0"},"peerDependencies":{"collect.js":"^4.0.11","moment":"^2.21.0","najs-binding":"^1.8.0"},"dependencies":{"chance":"^1.0.13","knex":"^0.14.4","lodash":"^4.17.4","mongoose":"^5.0.11","mongoose-timestamps-moment":"^1.0.0","mysql":"^2.15.0","najs-facade":"^1.1.1","pluralize":"^7.0.0"},"devDependencies":{"@types/chance":"^1.0.0","@types/jest":"^21.1.8","@types/knex":"^0.14.9","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","moment":"^2.21.0","najs-binding":"^1.8.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"c3750e4acc0ae53d54ed092adca8bd8f5f21ed63","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.3.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-q4Rx9ajke2TH9QOQcb9NC6vQGqkfWEawBwz+GQVbkqbGyC6cT+NAwthj3L0IZ1f4a6RD8qC2xajtv5LC8nbUgg==","shasum":"0b9fbcec7ca5b72a908d56a92ee53d03b29292d7","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.3.0.tgz","fileCount":253,"unpackedSize":567211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa88KSCRA9TVsSAnZWagAAet4P/0/e5hxABSzZk/OlXKn6\nEIPImHdM/sNuFWGJyL6mL70/PBGHoONDZdWUJTaaIn8E26nWqTpAQYWWr4DP\nO8vt0UEa0JqGOTKZqR/5pvaTfQ/Eiv2Dl63fiZazQ9Ta1J7CoP7F7U9Silj7\nCTjVS7ssdldMquvSSAnDkYztBDPqGIDMRse4M63mu4RAE9vUa+IbDo8pgi64\n6GneWMY+OhJ07s7bgvYEtMS/t8xNsTN08ayMjyh67Qd/JeRrqUl74160Y2mb\n8Qxw9frQDnkLFXn91y9rmQ8dSBe0SR4y6wwhUnhr5SCxoFnlTR8HSgScjo2j\n51uW/0ptKO9pk+J3kFf20DfKrfdmhyykaAa70vvTRWg03HtKPX3aTG+TGS1V\nAs6Kh/x9KAkJX2FbJv+iAC8hOe8Mxpg4JpcwY2MeliilZaZDKB16UDZ0Cp8z\ne223BcWRjPeVO79pd82UFVO7ED3Ldoq3PfH4uNHah5k0yW+kzCpZCSFW/bP4\nmanBIVejmz+BEOfSsBcNozTFGFUdnkr2Xu7nqLt1aPGUMwZsAKZtSJOHKRtW\n9hJNUmuEnTFI/BKz6cAzHok+Rceye9ypDowB0Amh846vhe+Haklwwxhwf0LX\n60pqkTbzz1VZTYz0rqP/hglzZiVGvZmL28o9j0mhIdxRy9uRLCjnPFCyBbNK\na2cr\r\n=z7MJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFIqdSv0P2kePSDNmDjjnpe3FgPPRmWHaZVK1ULeJuwqAiEAmuJyuVaxz7v/h3IjUhs37eIhztvHvoZOcpdyRb+XR2k="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.3.0_1525924496703_0.6242113605529307"},"_hasShrinkwrap":false},"0.3.1":{"name":"najs-eloquent","version":"0.3.1","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test/**/*.js ./dist/test/**/**/*.js --coverage --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist","integration":"npm run integration-build && npm run integration-lint && npm run integration-test","integration-build":"npm run build && cd ./integration && tsc -d && cd ..","integration-lint":"cd ./integration && tslint -c tslint.json -p tsconfig.json && cd ..","integration-test":"jest ./integration/test --forceExit","test":"npm run coverage && npm run integration"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node"},"files":["dist/**/*"],"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"collect.js":"^4.0.11","moment":"^2.21.0","najs-binding":"^1.8.0"},"dependencies":{"chance":"^1.0.13","knex":"^0.14.4","lodash":"^4.17.4","mongoose":"^5.0.11","mongoose-timestamps-moment":"^1.0.0","mysql":"^2.15.0","najs-facade":"^1.1.1","pluralize":"^7.0.0"},"devDependencies":{"@types/chance":"^1.0.0","@types/jest":"^21.1.8","@types/knex":"^0.14.9","@types/lodash":"^4.14.91","@types/mongoose":"^4.7.31","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","moment":"^2.21.0","najs-binding":"^1.8.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.6.2"},"gitHead":"bad082ae787eb3e18b881f076f407b1407798ba0","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.3.1","_npmVersion":"5.6.0","_nodeVersion":"10.1.0","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-7qIIH4g1Ov8SEc5WR6c8Sp+4Y7NexeLZbLg58dcZveoc7LqjcoAmP2gQrGbpGYAuVSV6NJKneHkflMO8/43V/Q==","shasum":"8a065224a4c371134bb901b7f684da8f7352def7","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.3.1.tgz","fileCount":259,"unpackedSize":585382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa//NaCRA9TVsSAnZWagAA2tEP/jkXIImtDQZtwmwjDbkS\n8aiosI+/duJBVW4iq7NY1NGI3F3AvCDEa0NZUBDyBvBFMM9cW57b7o8YHMOZ\n+4eMU8g0at8n25hqMADifIHWz3xSYH/cUR6G14GoDzkhmOgkKPUHdf6t88A1\nCOxh7n1WOFwflQJotelVG0AaPhLep1rgOhOBlMnl6Gw6s6PMUOzPaFu7HHTG\nfqa4TCHxy9mENuvFQ/J2icE500pufFhjZ9a/md4dPUcoIYbRwBWvvw99Iiw9\nu12nwH5hvZJchzX0lk6vKnBBC8Og1gHwI9Xt6A/gPAzs0DX3T+BP6Cb962Pq\nJQT1KhYjl3AAcy9rcI/St3cSIAWzfqznTBy1WB1kFPoV7T0DmzcwlYK6F6m/\np0xwzPdx2vlL9ou1ml9x5ozguvhE3IptaEjfl9WpNYjxj2nn9m13os90TgLY\nD7OeGDw9XFlip8hbJZy2fR+P0KSaDrDl/bGY9CTVZINI0WbSEeL2stnuhqE2\n92tVepJjRv7EGS4pTto/5W7H1O2ibUdhSr/Wm5M9ySeTfwfg0n3f6REoXUyJ\n3bhnAaiZGulCCw9FsZRpqv1+3VVWagiBNqo/NEzaaFRtXmXN7kpJTQrcNnog\npIJMjptdg5luAIGaaYR+xStv6c5UN716MVQ3b4MIGtYt7QnrcnCenZS0oGlt\nUwIU\r\n=FONW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICK14SN7Sekj2kCn6JMoLV8fcTdraNFD+t8doMrnQ5jsAiEA8qQXibkEqQGmjHlB0GMWh0nXML9y4TPlzHvsz9Y66Ho="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.3.1_1526723416387_0.6659258054615167"},"_hasShrinkwrap":false},"0.4.0":{"name":"najs-eloquent","version":"0.4.0","scripts":{"build":"npm run build-ts && npm run tslint","build-ts":"tsc -d","coverage":"npm run build && jest ./dist/test/**/*.js ./dist/test/**/**/*.js ./dist/test/**/**/**/*.js --coverage --forceExit","tslint":"tslint -c tslint.json -p tsconfig.json","prepublishOnly":"tsc -d -p ./ --outDir dist","test":"npm run coverage"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json","skipBabel":true}},"moduleFileExtensions":["js","ts","json"],"transform":{"^.+\\.(ts|tsx)$":"./node_modules/ts-jest/preprocessor.js"},"testMatch":["**/test/**/*.test.ts","**/test/**/*.test.js"],"testEnvironment":"node","collectCoverageFrom":["dist/lib/**/*.js","!dist/lib/builtin.js","!dist/lib/contracts/**/*.js","!dist/lib/definitions/**/*.js"]},"main":"./dist/lib/index.js","types":"./dist/lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"license":"MIT","engines":{"node":">=8.7"},"peerDependencies":{"najs-binding":"^1.8.0"},"dependencies":{"bson":"^3.0.2","chance":"^1.0.13","collect.js":"^4.0.11","lodash":"^4.17.4","moment":"^2.21.0","najs-event":"^0.2.0","najs-facade":"^1.1.1","pluralize":"^7.0.0"},"devDependencies":{"@types/bson":"^1.0.11","@types/chance":"^1.0.0","@types/jest":"^21.1.8","@types/lodash":"^4.14.91","@types/pluralize":"^0.0.28","@types/sinon":"^4.1.2","@types/validator":"^9.4.1","collect.js":"^4.0.11","coveralls":"^3.0.0","jest":"^21.2.1","najs-binding":"^1.8.0","sinon":"^4.1.3","ts-jest":"^21.2.3","tslint":"^5.8.0","typescript":"^2.8.0","validator":"^10.2.0"},"gitHead":"99a322f2cb3c068ef0b64fe1109f2e16d421a944","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","_id":"najs-eloquent@0.4.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"najs","email":"najs@ntworld.net"},"dist":{"integrity":"sha512-Qd106n3wTClJkTGWuh7xh6iAsOVpDUakAsVBVcoUxhU1x3gg+En6xeBXzz9JBr0Blt0uKQyNR9yFFpKKmRy0LA==","shasum":"b02b8c3e3e905b9a57faa33dd6ab8eed2648f641","tarball":"https://registry.npmjs.org/najs-eloquent/-/najs-eloquent-0.4.0.tgz","fileCount":537,"unpackedSize":1340483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcHmPeCRA9TVsSAnZWagAABwkP/079toOybijAJvh5KNUn\n/P4TeOJ9VUwaNn+P/iFd72rBpMV8AiGJAMR7c+hEsDPO4kigKbQNnk9H41Nq\niS9mwsM0juXecWbtPBhBY6KYTYyDBZOVPP/+lNDiXPu/80bV7remn2LXb48k\njoqX2aL7XNWdMh75jh4YpPy/nDHGdV5lFw4JpjWh+G83cEEEHHRYYJwejQ1B\ns0lgRzaWNTcXc/UPbIwz4pBlLlYTXQyBDSBQSxJaybE1O+uxiY+IqB43xbbi\n0orKx0RYXs5vrBY+Mk3GjycoVzCD0ucuKHc96HAxPhuTOnNUoA+ac8Mpjm74\nGLl5brpxbLxqw9Y24jWVxaF7V9YghOv4GOJkMra/BA6tvZYsk9bity/39sNp\nJ12mI+OVTulCZKYAvdqWJH0Gb5qyiUA3iAaZe+kEsgfC6U9hOKNbVg3ypnwR\nt52hHOvQQAO6Q44+y6bGEUvi3tD37NmUaVq+el7qmhvZb/l79SiS97OZkabO\nVxgWR1hkufwlzupWs8SkdLikfqGpJQFtBy80rNOmM907wwYE0j7qw+oCfBN4\nbm9KIurcTMwVk7QZ1Dc64KoYFKKXGoJhNoJpYY9dibTiIX3Era3MXOcl59xl\nAmywRtW/eOZIW5cUQPWnXYghDqiSqqX/jPNAm/spng1X+tyKlHf8vSMes/YQ\nlCd2\r\n=JN+H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF3d23xvaPvVZD0Anr8o3Kd3++ipI1TIj14GERFJXPuAAiBePRJpLNQyHaFwP9sxQ6uAEDqKv3Hb6wiJtWIHcECH5w=="}]},"maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/najs-eloquent_0.4.0_1545495517388_0.004693499244729615"},"_hasShrinkwrap":false}},"readme":"# <img src=\"https://raw.githubusercontent.com/najs-framework/najs-eloquent/master/najs-eloquent.png\" alt=\"najs-eloquent\">\n\n> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.\n\n[![Travis](https://img.shields.io/travis/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://travis-ci.org/najs-framework/najs-eloquent/builds)\n[![Maintainability](https://api.codeclimate.com/v1/badges/94de4189d6396eda8c0a/maintainability)](https://codeclimate.com/github/najs-framework/najs-eloquent/maintainability)\n[![Coverage Status](https://img.shields.io/coveralls/najs-framework/najs-eloquent/master.svg?style=flat-square)](https://coveralls.io/r/najs-framework/najs-eloquent?branch=master)\n[![node version](https://img.shields.io/node/v/najs-eloquent.svg?style=flat-square)](https://nodejs.org/en/download/)\n[![npm version](https://img.shields.io/npm/v/najs-eloquent.svg?style=flat-square)](http://badge.fury.io/js/najs-eloquent)\n[![npm downloads](https://img.shields.io/npm/dm/najs-eloquent.svg?style=flat-square)](http://badge.fury.io/js/najs-eloquent)\n[![npm license](https://img.shields.io/npm/l/najs-eloquent.svg?style=flat-square)](http://badge.fury.io/js/najs-eloquent)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n> _Warning: This is a documentation for v0.4.x, if you are using v0.3.x please checkout readme for [v0.3.x in here](https://github.com/najs-framework/najs-eloquent/blob/master/README-v3.md)._\n\nIf you are Laravel Eloquent lover and want to use it in `Node JS` you will love `Najs Eloquent`. `Najs Eloquent` is Laravel Eloquent, written in `Typescript`.\n\n## Installation\n\nAdd `najs-binding`, `najs-eloquent`\n\n```bash\nyarn add najs-binding najs-eloquent\n```\n\nor\n\n```bash\nnpm install najs-binding najs-eloquent\n```\n\nThat's it.\n\n## Drivers\n\nNajsEloquent runs with Memory driver by default that means all data is saved in memory. There are some available drivers that you can use\n\n- [mongoose](https://github.com/najs-framework/najs-eloquent-mongoose)\n\n> **I'm writing detail documentation, please try the library and give me a hand if you can.**\n\n## Quick Usage\n\n### I. Define a model\n\nSimply create new class extends from a `Model` class\n\n```typescript\nimport { Model } from 'najs-eloquent'\n\nexport class User extends Model {\n  // define a property belongs to User model\n  email: string\n\n  // define a class name which used for Dependency injection\n  // (this feature provided by \"najs-binding\" package)\n  getClassName() {\n    return 'YourNamespace.User'\n  }\n}\n\n// Register the User class\nModel.register(User)\n```\n\n### II. Querying\n\nYou can query entries from database via static Query or instance query via `.newQuery()`.\n\nRetrieve entries via static query\n\n```typescript\nconst result = await User.where('id', '>', 10).get()\n```\n\nRetrieve entries via instance query\n\n```typescript\nconst result = new User()\n  .newQuery()\n  .where('id', '>', 10)\n  .get()\n```\n\nYou can build grouped query via sub-query, like this\n\n```typescript\n// a = 1 AND (b = 2 OR c = 3)\nconst result = await User.where('a', 1)\n  .where(function(subQuery) {\n    subQuery.where('b', 2).orWhere('c', 3)\n  })\n  .get()\n```\n\nAll querying functions support auto-completed/auto-suggestion to help you prevent any typo mistake. If you are familiar with Laravel Query Builder you can start write query without learning anything.\n\n### III. ActiveRecord - Create, Update & Delete\n\nCreate new model\n\n```typescript\nconst user = new User()\nuser.email = 'email@test.com'\nawait user.save()\n```\n\nUpdate a model\n\n```typescript\nconst user = await User.firstOrFail('id')\nuser.email = 'email@test.com'\nawait user.save()\n```\n\nDelete a model\n\n```typescript\nconst user = await User.firstOrFail('id')\nawait user.delete()\n\n// or you can use query builder\nawait User.where('id', 'deleted-id').delete()\n```\n\n### IV. Accessors and Mutators\n\n#### Accessors\n\nYou can define an accessor by `getter` or a function like Laravel Eloquent\n\n```typescript\n// file: Accessor.ts\nimport { Model } from 'najs-eloquent'\n\nexport class User extends Model {\n  get full_name() {\n    return this.attributes['first_name'] + ' ' + this.attributes['last_name']\n  }\n\n  // Laravel Eloquent style, available for node > 6.x\n  // If you define this function AND getter, this function will be skipped\n  getFullNameAttribute() {\n    return this.attributes['first_name'] + ' ' + this.attributes['last_name']\n  }\n}\n```\n\n#### Mutators\n\nYou can define a mutator by `setter` or a function like Laravel Eloquent\n\n```typescript\n// file: Mutator.ts\nimport { Model } from 'najs-eloquent'\n\nexport class User extends Model {\n  set full_name(value: any) {\n    // ...\n  }\n\n  // Laravel Eloquent style, available for node > 6.x\n  // If you define this function AND setter, this function will be skipped\n  setFullNameAttribute(value: any) {\n    // ...\n  }\n}\n```\n\n### V. Settings Properties\n\n#### `fillable` & `guarded`\n\nJust like Laravel, you can define mass assignable fields by `fillable` or `guarded` property\n\n```typescript\nexport class User extends Model {\n  protected fillable = ['email', 'username']\n\n  // This way also works :)\n  // static fillable = ['email', 'username']\n}\n```\n\nOnly defined properties in fillable can be filled with `.fill()`\n\n```typescript\nconst user = new User()\nuser.fill({ email: 'a', password: 'x' })\n\nconsole.log(user.toObject()) // => { email: a }\n```\n\nYou can skip `fillable` setting by using `.forceFill()`\n\n#### `visible` & `hidden`\n\nYou can define serialized fields by `visible` or `hidden` property\n\n```typescript\nexport class User extends Model {\n  protected fillable = ['email', 'username']\n  protected hidden = ['password']\n\n  // This way also works :)\n  // static hidden = ['password']\n}\n```\n\nWhen using `.toObject()` or `.attributesToObject()` the `password` field will be skipped\n\n```typescript\nconst user = new User()\nuser.forceFill({ email: 'a', password: 'x' })\n\nconsole.log(user.toObject()) // => { email: a }\n```\n\n#### `timestamps`\n\nYou can simply define timestamps for models by changing static (or protected) variable named `timestamps`. By using this feature every time the model get saved, `created_at` and `updated_at` will updated automatically\n\n```typescript\nexport class User extends Model {\n  protected timestamps = true\n\n  // This way also works :)\n  // static timestamps = true\n}\n```\n\nBy default, Najs Eloquent will create 2 fields named `created_at` and `updated_at`, you can custom the fields' name:\n\n```typescript\nexport class User extends Model {\n  protected timestamps = { createdAt: 'created', updatedAt: 'updated' }\n\n  // This way also works :)\n  // static timestamps = { createdAt: 'created', updatedAt: 'updated' }\n}\n```\n\n#### `softDeletes`\n\nYou can simply define soft deletes feature for models by changing static (or protected) variable named `softDeletes`.\n\n```typescript\nexport class User extends Model {\n  protected softDeletes = true\n\n  // This way also works :)\n  // static softDeletes = true\n}\n```\n\nBy using this feature every time the model get deleted the data ind database not actually deleted, it update `deleted_at` from `null` to date object. You can custom the `deleted_at` field name:\n\n```typescript\nexport class User extends Model {\n  protected softDeletes = { deletedAt: 'deleted' }\n\n  // This way also works :)\n  // static softDeletes = { deletedAt: 'deleted' }\n}\n```\n\nWith soft deletes model all retrieve operators like `find()` or `get()` automatically return non-deleted entries only, you can use `.withTrashed()` or `.onlyTrashed()` to receive deleted entries\n\n```typescript\nconst users = await User.withTrashed().get()\n```\n\n### VI. Events\n\nYou can listen to events `creating`, `created`, `saving`, `saved`, `updating`, `updated`, `deleting`, `deleted`, `restoring`, `restored` by using `.on()` or just trigger for 1 event only by `.once()`. All event listener is async\n\n```typescript\nconst user = new User()\nuser.on('created', async function(createdModel: User) {\n  // ...\n})\nuser.email = '...'\nuser.save()\n```\n\nYou can listen to global event like this\n\n```typescript\nUser.on('created', function(createdModel: any) {\n  // ...\n})\n```\n\n### VII. Relationships\n\n`najs-eloquent` supports `HasOne`, `HasMany`, `ManyToMany`, `MorphOne` and `MorphMany` relationships. This feature doesn't look like Laravel. We couldn't give the same name the data and relation in Typescript, then you have to separate it\n\n```typescript\nimport { Model, HasMany, BelongsTo } from 'najs-eloquent'\n\nclass User extends Model {\n  // Define property \"posts\" which receive data from relation \"postsRelation\"\n  posts: HasMany<Post>\n\n  // Define property \"postsRelation\" which handle this relationship\n  get postsRelation() {\n    return this.defineRelation('posts').hasMany(Post)\n  }\n}\n\nclass Post extends Model {\n  // define property which is foreign key and point to User model\n  user_id: string\n\n  // Inverse relation data property\n  user: BelongsTo<User>\n\n  // Define inverse relation\n  get userRelation() {\n    return this.defineRelation('user').belongsTo(User)\n  }\n}\n```\n\nSo we can assign new Post to user like this\n\n```typescript\nconst post = new Post()\nconst user = new User()\nuser.postsRelation.associate(post)\n\n// when you save the user model, post will be saved and associate to User automatically\nawait user.save()\n\n// eager load posts when loading users\nconst result = await User.with('posts').firstOrFail()\nconsole.log(result.posts) // a collection of posts belongs to current user\n\n// lazy load posts from user\nawait user.postsRelation.lazyLoad()\n\n// or just load relation, najs-eloquent uses eager loading if possible\nawait user.load('posts')\n```\n\n> **I'm writing detail documentation, please try the library and give me a hand if you can.**\n\n### VIII. Factory\n\n`najs-eloquent` has Factory feature which use [`chance`](http://chancejs.com) as a faker:\n\n```typescript\nimport { Factory, factory } from 'najs-eloquent'\nimport { User } from 'somewhere...'\n\n// define a factory for User model\nFactory.define(User, function(faker, attributes) {\n  return Object.assign(\n    {\n      email: faker.email()\n    },\n    attributes\n  )\n})\n\n// create model and save to database by factory()\nawait factory(User).create()\n\n// make model instance only by factory()\nconst fakeUser = factory(User).make()\n\n// make 3 model instances by factory()\nconst fakeUsers = factory(User)\n  .times(3)\n  .make()\n```\n\n### IX. Builtin classes\n\nAll classes you need to implement new driver are available in `NajsEloquent` object.\n\n> **I'm writing detail documentation, please try the library and give me a hand if you can.**\n\n## Contribute\n\nPRs are welcomed to this project, and help is needed in order to keep up with the changes of Laravel Eloquent. If you want to improve the library, add functionality or improve the docs please feel free to submit a PR.\n\n## Sponsors\n\nIf you want to become a sponsor please [let me know](mailto:nhat@ntworld.net).\n\nYou can buy me a beer via [Paypal](https://paypal.me/beerfornhat) or [Patreon](https://patreon.com/nhat).\n\nThanks in advance!\n\n## License\n\nMIT © Nhat Phan\n","maintainers":[{"name":"najs","email":"najs@ntworld.net"}],"time":{"modified":"2022-05-10T08:32:30.227Z","created":"2018-01-01T14:22:22.601Z","0.0.1":"2018-01-01T14:22:22.601Z","0.1.2":"2018-01-10T16:48:02.895Z","0.1.3":"2018-01-10T17:08:51.255Z","0.1.4":"2018-01-10T17:56:49.983Z","0.1.5":"2018-01-11T10:55:50.738Z","0.1.6":"2018-01-11T17:19:56.999Z","0.1.7":"2018-01-12T17:04:03.628Z","0.2.1":"2018-01-13T16:21:58.458Z","0.2.2":"2018-01-13T17:06:56.938Z","0.2.3":"2018-01-14T10:16:34.538Z","0.2.4":"2018-01-15T13:48:29.822Z","0.2.5":"2018-01-16T16:34:23.423Z","0.2.6":"2018-01-16T17:57:02.676Z","0.2.7":"2018-01-18T16:23:15.926Z","0.2.8":"2018-01-20T16:32:44.097Z","0.2.9":"2018-01-22T14:51:51.860Z","0.2.10":"2018-01-29T14:11:30.438Z","0.2.11":"2018-02-17T06:28:58.963Z","0.2.12":"2018-02-18T07:32:18.846Z","0.2.13":"2018-02-21T16:17:07.680Z","0.2.14":"2018-02-24T09:01:17.717Z","0.2.15":"2018-03-01T06:23:02.470Z","0.2.16":"2018-03-13T11:47:27.619Z","0.2.17":"2018-03-16T02:59:34.105Z","0.2.18":"2018-03-24T07:24:55.599Z","0.2.19":"2018-03-24T07:25:25.841Z","0.2.20":"2018-03-26T13:18:26.189Z","0.2.21":"2018-03-30T12:13:04.080Z","0.3.0-alpha.1":"2018-05-01T06:49:23.035Z","0.3.0-alpha.2":"2018-05-01T07:57:35.496Z","0.3.0-alpha.3":"2018-05-06T10:42:08.160Z","0.3.0":"2018-05-10T03:54:56.879Z","0.3.1":"2018-05-19T09:50:16.461Z","0.4.0":"2018-12-22T16:18:37.687Z"},"homepage":"https://github.com/najs-framework/najs-eloquent#readme","repository":{"type":"git","url":"git+https://github.com/najs-framework/najs-eloquent.git"},"author":{"name":"Nhat Phan","email":"nhat@ntworld.net"},"bugs":{"url":"https://github.com/najs-framework/najs-eloquent/issues"},"readmeFilename":"README.md","description":"> ORM written in Typescript, inspired by Laravel Eloquent, supports Mongodb/Mongoose.","license":"MIT"}