{"_id":"@adonify/lucid-ordering","_rev":"4-bb46c961f3b721df5b803a05dae90d07","name":"@adonify/lucid-ordering","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@adonify/lucid-ordering","version":"1.0.0","description":"Simple ordering for lucid models with AdonisJS.","main":"build/providers/LucidOrderingProvider.js","types":"build/adonis-typings/index.d.ts","scripts":{"mrm":"mrm --preset=@adonisjs/mrm-preset","pretest":"npm run lint","test":"node -r @adonisjs/require-ts/build/register bin/test","test:watch":"nodemon -r @adonisjs/assembler/build/register bin/test","clean":"del-cli build","copy:files":"copyfiles \"templates/**/*.txt\" \"instructions.md\" build","compile":"npm run lint && npm run clean && tsc","build":"npm run compile && npm run copy:files","prepublishOnly":"npm run build","format":"prettier --write .","lint":"eslint . --ext=.ts","watch":"npm-watch","release":"np --message=\"chore(release): %s\"","version":"npm run build","commit":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/AdonifyCode/lucid-ordering.git"},"author":{"name":"adonify.com,justDare"},"license":"MIT","bugs":{"url":"https://github.com/AdonifyCode/lucid-ordering/issues"},"homepage":"https://github.com/AdonifyCode/lucid-ordering#readme","devDependencies":{"@adonisjs/assembler":"^5.9.3","@adonisjs/core":"^5.8.7","@adonisjs/lucid":"^18.2.0","@adonisjs/mrm-preset":"^5.0.3","@adonisjs/require-ts":"^2.0.13","@japa/assert":"^1.3.6","@japa/run-failed-tests":"^1.1.0","@japa/runner":"^2.2.1","@japa/spec-reporter":"^1.3.1","@poppinss/dev-utils":"^2.0.3","@types/node":"^18.8.3","commitizen":"^4.2.5","copyfiles":"^2.4.1","cz-conventional-changelog":"^3.3.0","del-cli":"^5.0.0","eslint":"^8.25.0","eslint-config-prettier":"^8.5.0","eslint-plugin-adonis":"^2.1.1","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.2","mrm":"^4.1.6","nodemon":"^2.0.20","np":"^7.6.2","prettier":"^2.7.1","reflect-metadata":"^0.1.13","sqlite3":"^5.1.2","ts-node":"^10.9.1","typescript":"^4.8.4"},"peerDependencies":{"@adonisjs/core":"^5.8.7","@adonisjs/lucid":"^18.2.0"},"mrmConfig":{"core":false,"license":"MIT","services":[],"minNodeVersion":"16.13.1","probotApps":[]},"prettier":{"trailingComma":"es5","semi":false,"singleQuote":true,"useTabs":false,"quoteProps":"consistent","bracketSpacing":true,"arrowParens":"always","printWidth":100},"eslintConfig":{"extends":["plugin:adonis/typescriptPackage","prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":["error",{"endOfLine":"auto"}]}},"eslintIgnore":["build"],"nodemonConfig":{"watch":["src","tests","providers","adonis-typings","test-helpers"],"ext":"ts"},"adonisjs":{"types":"@adonify/lucid-ordering","providers":["@adonify/lucid-ordering"],"instructionsMd":"./build/instructions.md"},"np":{"contents":".","anyBranch":false},"publishConfig":{"access":"public"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"d4e08daf64d733bd951331377d5741b39f0852c1","_id":"@adonify/lucid-ordering@1.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-Uuk7xakHzEWmGfGwypl1YzSfVcYZok7hUaK0CGKYZ3DcQ1Sz6ywm3ECcvt/fI9qhxUAZK/fW61RjbavohDydTg==","shasum":"7bb35e4baf33542a85056a0a60090eef622e817b","tarball":"https://registry.npmjs.org/@adonify/lucid-ordering/-/lucid-ordering-1.0.0.tgz","fileCount":14,"unpackedSize":23389,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQfAyraVD6ChB9KyJJOzjwA4uXY99KnYZcBfdNTUWmmAIhANHzCmiyXPn2Lv/PVHzE+b2iM7NhnBzpCh1VO80hAaFI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfFI6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMWw//bBNF0+X6p95Gp4GoE/kNLT/5wp8iUQnbSHZsMlRs9voTes+W\r\n1LW8FpVkLA7Gy/1VySU+kWASQyQjw3fs/PayL7lL233oTy/sSYcefETiXiqN\r\nuwgouOD5O9uTDW6DukR77SV+1wj33dRDAzsdVefrtOn40lFBEo3HYr6vBJZF\r\n40T23hidhzRj31aHcPS/JIW0xYh71r4HIV4/gtardna/kmqrQQa98UXUQsa0\r\nP/I+WHKTF/UWCTWDRlqIYGcNbKqOPKcfrHX4f44mPpT6Ketw0IwOAjcFNThU\r\nBeU8Swg5l9UrvbSJfQ7Xw7peBnp4UF2YEUAl+MRM+hHVZ68ntMZlePmZ6QI/\r\nHlX2GHtk0AWfJe50gu0+TSEn7w6GSDcz7U7R4cpzD8gxPMV+E7FKM1XaeE3u\r\naEpvmuslPMAx5fqLEd/aa5SXq5/3ZH4ndZO3lYAQeytKAhKi5G5uAoI9KuCH\r\n2/96z1zq4Y1PRJSb/NLZzPg6NoQaJ6eEyMdI/0xFo9XXuAvyESL0QkMtvYNB\r\n5LF5//lDaDaEgDtjbvblOs10O5ijx+HGV6jl12c1dFROT+5dcg3aV8g3eOin\r\n02cPtdXtBB7ezwvSFjunzT5wP5qrmm2uzRwkNCUmH6eO0gRzqVNxe/YQqxNe\r\nlSekpMDNYI2JmhH4Phk7lT7B9aW7GARcqYs=\r\n=t5lH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adonify","email":"dariansampare@gmail.com"},"directories":{},"maintainers":[{"name":"adonify","email":"dariansampare@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lucid-ordering_1.0.0_1669091897937_0.9042603799855733"},"_hasShrinkwrap":false},"1.0.1":{"name":"@adonify/lucid-ordering","version":"1.0.1","description":"Simple ordering for lucid models with AdonisJS.","main":"build/providers/LucidOrderingProvider.js","types":"build/adonis-typings/index.d.ts","scripts":{"mrm":"mrm --preset=@adonisjs/mrm-preset","pretest":"npm run lint","test":"node -r @adonisjs/require-ts/build/register bin/test","test:watch":"nodemon -r @adonisjs/assembler/build/register bin/test","clean":"del-cli build","copy:files":"copyfiles \"templates/**/*.txt\" \"instructions.md\" build","compile":"npm run lint && npm run clean && tsc","build":"npm run compile && npm run copy:files","prepublishOnly":"npm run build","format":"prettier --write .","lint":"eslint . --ext=.ts","watch":"npm-watch","release":"np --message=\"chore(release): %s\"","version":"npm run build","commit":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/AdonifyCode/lucid-ordering.git"},"author":{"name":"adonify.com,justDare"},"license":"MIT","bugs":{"url":"https://github.com/AdonifyCode/lucid-ordering/issues"},"homepage":"https://github.com/AdonifyCode/lucid-ordering#readme","devDependencies":{"@adonisjs/assembler":"^5.9.3","@adonisjs/core":"^5.8.7","@adonisjs/lucid":"^18.2.0","@adonisjs/mrm-preset":"^5.0.3","@adonisjs/require-ts":"^2.0.13","@japa/assert":"^1.3.6","@japa/run-failed-tests":"^1.1.0","@japa/runner":"^2.2.1","@japa/spec-reporter":"^1.3.1","@poppinss/dev-utils":"^2.0.3","@types/node":"^18.8.3","commitizen":"^4.2.5","copyfiles":"^2.4.1","cz-conventional-changelog":"^3.3.0","del-cli":"^5.0.0","eslint":"^8.25.0","eslint-config-prettier":"^8.5.0","eslint-plugin-adonis":"^2.1.1","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.2","mrm":"^4.1.6","nodemon":"^2.0.20","np":"^7.6.2","prettier":"^2.7.1","reflect-metadata":"^0.1.13","sqlite3":"^5.1.2","ts-node":"^10.9.1","typescript":"^4.8.4"},"peerDependencies":{"@adonisjs/core":"^5.8.7","@adonisjs/lucid":"^18.2.0"},"mrmConfig":{"core":false,"license":"MIT","services":[],"minNodeVersion":"16.13.1","probotApps":[]},"prettier":{"trailingComma":"es5","semi":false,"singleQuote":true,"useTabs":false,"quoteProps":"consistent","bracketSpacing":true,"arrowParens":"always","printWidth":100},"eslintConfig":{"extends":["plugin:adonis/typescriptPackage","prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":["error",{"endOfLine":"auto"}]}},"eslintIgnore":["build"],"nodemonConfig":{"watch":["src","tests","providers","adonis-typings","test-helpers"],"ext":"ts"},"adonisjs":{"types":"@adonify/lucid-ordering","providers":["@adonify/lucid-ordering"],"instructionsMd":"./build/instructions.md"},"np":{"contents":".","anyBranch":false},"publishConfig":{"access":"public"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"1b10be1fef7c1531904723f167d01dd798f0b7ac","_id":"@adonify/lucid-ordering@1.0.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-zJu19dpRP/oKebgyuTqMb+HStQTp4pvcXFV+DiOyypNMliEbPQgRaRTqVZMSqG3QJ2/SZH6DkGZVK7EqzI+a2g==","shasum":"568d37a4180c858eeaf9e055b3243b92c869d474","tarball":"https://registry.npmjs.org/@adonify/lucid-ordering/-/lucid-ordering-1.0.1.tgz","fileCount":14,"unpackedSize":23782,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClEvos5rlNuq69d1zhf1eXjsOBNU8Cch5coU1L5UT5cwIge8qwWI77j2PATZnWmF7elSK54GdlPZkak3WNKCJO4gY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfZHVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJ3BAAouQ8EA0EkT/HFehq7/ZyZAJLr9zHPfj4STyk8jFSkc8tYlZ/\r\njO3M7UQTJydWjViBtPzvflwINrXSPz/srUpn9DVFTd2q0YSH6iNw0BFEBPRZ\r\nxUDtJL2fQqKRZ/iM2+HSS4gGMqOSuTCSZOj7qs0uzFmKUV2D/b21vUeJUmZr\r\nasWAo9LgsPIPiUlftf6Zg14qyejz9HUN9BBGk82hoz7cVpXfwdyLlZybMTZD\r\n3W7PjxQzNEG4g+rRlSZFYEW53tf/8dm08WZ5cGfc0lBCsExf3unicVc6JeNN\r\ns7PZhQUQp4u32C3A+llBPr52hw43iPwt0PrdCk4r91m4T9nT8VqdYgnS5jej\r\narxE9Ho+vkceWQDQkjuKMQ4Lco0qhlB5YQo4R2Y/s4SX3FZRiSjhISQU/FrO\r\ngKTrW+IVnAa8kba7cQdlYOaGFxNuxpwdz6gbJ9QcEgYxigTmzeuEc6wFT3Aq\r\niuQvWRUYiNQzTg4dR3QzJmLIL+FXed8+RDokDT7VIfKe9bLbPrQFnBBRSBAf\r\ndo5rZeQQAwwPAFaMaZHq1X1gtP39/1oFisbDyV9VHxrpue7PKXz3ft/9E/2X\r\nMytL8bYXj94qUzyGlpYduw86tzX+kTT0wSSqMzM+sLFWFqj4zhOJa/ld5HiG\r\nytflHPwFpwbWwYiarrPHuNdSzQRA7Icj+mM=\r\n=WaJ8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adonify","email":"dariansampare@gmail.com"},"directories":{},"maintainers":[{"name":"adonify","email":"dariansampare@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lucid-ordering_1.0.1_1669173716945_0.835120407425983"},"_hasShrinkwrap":false},"1.0.2":{"name":"@adonify/lucid-ordering","version":"1.0.2","description":"Simple ordering for lucid models with AdonisJS.","main":"build/providers/LucidOrderingProvider.js","types":"build/adonis-typings/index.d.ts","scripts":{"mrm":"mrm --preset=@adonisjs/mrm-preset","pretest":"npm run lint","test":"node -r @adonisjs/require-ts/build/register bin/test","test:watch":"nodemon -r @adonisjs/assembler/build/register bin/test","clean":"del-cli build","copy:files":"copyfiles \"templates/**/*.txt\" \"instructions.md\" build","compile":"npm run lint && npm run clean && tsc","build":"npm run compile && npm run copy:files","prepublishOnly":"npm run build","format":"prettier --write .","lint":"eslint . --ext=.ts","watch":"npm-watch","release":"np --message=\"chore(release): %s\"","version":"npm run build","commit":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/AdonifyCode/lucid-ordering.git"},"author":{"name":"adonify.com,justDare"},"license":"MIT","bugs":{"url":"https://github.com/AdonifyCode/lucid-ordering/issues"},"homepage":"https://github.com/AdonifyCode/lucid-ordering#readme","devDependencies":{"@adonisjs/assembler":"^5.9.3","@adonisjs/core":"^5.8.7","@adonisjs/lucid":"^18.2.0","@adonisjs/mrm-preset":"^5.0.3","@adonisjs/require-ts":"^2.0.13","@japa/assert":"^1.3.6","@japa/run-failed-tests":"^1.1.0","@japa/runner":"^2.2.1","@japa/spec-reporter":"^1.3.1","@poppinss/dev-utils":"^2.0.3","@types/node":"^18.8.3","commitizen":"^4.2.5","copyfiles":"^2.4.1","cz-conventional-changelog":"^3.3.0","del-cli":"^5.0.0","eslint":"^8.25.0","eslint-config-prettier":"^8.5.0","eslint-plugin-adonis":"^2.1.1","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.2","mrm":"^4.1.6","nodemon":"^2.0.20","np":"^7.6.2","prettier":"^2.7.1","reflect-metadata":"^0.1.13","sqlite3":"^5.1.2","ts-node":"^10.9.1","typescript":"^4.8.4"},"peerDependencies":{"@adonisjs/core":"^5.8.7","@adonisjs/lucid":"^18.2.0"},"mrmConfig":{"core":false,"license":"MIT","services":[],"minNodeVersion":"16.13.1","probotApps":[]},"prettier":{"trailingComma":"es5","semi":false,"singleQuote":true,"useTabs":false,"quoteProps":"consistent","bracketSpacing":true,"arrowParens":"always","printWidth":100},"eslintConfig":{"extends":["plugin:adonis/typescriptPackage","prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":["error",{"endOfLine":"auto"}]}},"eslintIgnore":["build"],"nodemonConfig":{"watch":["src","tests","providers","adonis-typings","test-helpers"],"ext":"ts"},"adonisjs":{"types":"@adonify/lucid-ordering","providers":["@adonify/lucid-ordering"],"instructionsMd":"./build/instructions.md"},"np":{"contents":".","anyBranch":false},"publishConfig":{"access":"public"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"e268ef745f06b00ccf77e20c037fe7efe84dde00","_id":"@adonify/lucid-ordering@1.0.2","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-E76SsOzB09qXncYOP5cZpj815MvaIMEFFhd5zKCLu6WXIIvoq3P4B8HXh9IO0UgaOIdIrm/yZAh28IOLbqN8Uw==","shasum":"4e60cce0e0414bf9988348fb10fc291b47902c88","tarball":"https://registry.npmjs.org/@adonify/lucid-ordering/-/lucid-ordering-1.0.2.tgz","fileCount":14,"unpackedSize":23770,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuEIj+99qDx0NWsTgMoF/HcPM+7es5FQ0tA20gzGBq9AIhAN7SOyYKUbGHYBhBqFNHwgcMvtxx0DHIAl8OJ8utO/BC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfZPUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoncw/9Fjtak+g5RFSa63Mes0nli/aStmv1MKYc6olAWEM9BPJ1Zi6z\r\nuHhss+PxYegJhhMtB3mE6+7KgT+Vxp/wJPOJ1012KCjeBxSHmLI2Cpb/Quxg\r\n4SD/Qrd7M6a9uZlRXCfYR2R3QFlYaXOYa1BJhRAN+jeqQO68JqFTGGAfwIF9\r\nqrqXv/ZggtUOp3kC+8jS59uMi+dIGvWWEF1+nheD3WNYyHlqA+DYtWUsjbpq\r\nNE1tV22lZE0N8SMdYMLkpZZWvga989hGkmhLPRvyt4k7jX4jVyK8oAQbvV/f\r\nMRImblO+jV0DFxqjQId4mruxtk3tbijgNVPbOZXEbwy7sZF97DZO/4a7jraC\r\nk1HNLQEAaIxPUuwPqQu15ivRoNnAERQqFnvfhS35S4Iy17UxZmzCHNuhYvcv\r\nz453pvTKVUFLXOFu2j09YgYFCorHfM+wxrijYZnlHFaHlGqy4co7XAqVnRTM\r\nH3jmnmjUWqgbbVvD4XPOaSKIjmKuy+Km1n6NZIojRgZPYM2xuPFjxsX4PP11\r\nbRk8v0S/oOEIh9zTRwfbaDvyL2j8j7H9Y2HBpEN6mjVv74oOTL1Cncup5eW6\r\nzZzdf87mcpE5sLNksd/gmCDVGoUNJ4H7yk4YlAJHcV4OaV7XBvxQxFzNSrhs\r\nUSZxRhXsjvCfQRxJx8l6AkxMFYsn7nru+hU=\r\n=bVMS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adonify","email":"dariansampare@gmail.com"},"directories":{},"maintainers":[{"name":"adonify","email":"dariansampare@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lucid-ordering_1.0.2_1669174228195_0.3026057186888518"},"_hasShrinkwrap":false},"1.0.3":{"name":"@adonify/lucid-ordering","version":"1.0.3","description":"Simple ordering for lucid models with AdonisJS.","main":"build/providers/LucidOrderingProvider.js","types":"build/adonis-typings/index.d.ts","scripts":{"mrm":"mrm --preset=@adonisjs/mrm-preset","pretest":"npm run lint","test":"node -r @adonisjs/require-ts/build/register bin/test","test:watch":"nodemon -r @adonisjs/assembler/build/register bin/test","clean":"del-cli build","copy:files":"copyfiles \"templates/**/*.txt\" \"instructions.md\" build","compile":"npm run lint && npm run clean && tsc","build":"npm run compile && npm run copy:files","prepublishOnly":"npm run build","format":"prettier --write .","lint":"eslint . --ext=.ts","watch":"npm-watch","release":"np --message=\"chore(release): %s\"","version":"npm run build","commit":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/AdonifyCode/lucid-ordering.git"},"author":{"name":"adonify.com,justDare"},"license":"MIT","bugs":{"url":"https://github.com/AdonifyCode/lucid-ordering/issues"},"homepage":"https://github.com/AdonifyCode/lucid-ordering#readme","devDependencies":{"@adonisjs/assembler":"^5.9.3","@adonisjs/core":"^5.8.7","@adonisjs/lucid":"^18.2.0","@adonisjs/mrm-preset":"^5.0.3","@adonisjs/require-ts":"^2.0.13","@japa/assert":"^1.3.6","@japa/run-failed-tests":"^1.1.0","@japa/runner":"^2.2.1","@japa/spec-reporter":"^1.3.1","@poppinss/dev-utils":"^2.0.3","@types/node":"^18.8.3","commitizen":"^4.2.5","copyfiles":"^2.4.1","cz-conventional-changelog":"^3.3.0","del-cli":"^5.0.0","eslint":"^8.25.0","eslint-config-prettier":"^8.5.0","eslint-plugin-adonis":"^2.1.1","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.2","mrm":"^4.1.6","nodemon":"^2.0.20","np":"^7.6.2","prettier":"^2.7.1","reflect-metadata":"^0.1.13","sqlite3":"^5.1.2","ts-node":"^10.9.1","typescript":"^4.8.4"},"peerDependencies":{"@adonisjs/core":"^5.8.7","@adonisjs/lucid":"^18.2.0"},"mrmConfig":{"core":false,"license":"MIT","services":[],"minNodeVersion":"16.13.1","probotApps":[]},"prettier":{"trailingComma":"es5","semi":false,"singleQuote":true,"useTabs":false,"quoteProps":"consistent","bracketSpacing":true,"arrowParens":"always","printWidth":100},"eslintConfig":{"extends":["plugin:adonis/typescriptPackage","prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":["error",{"endOfLine":"auto"}]}},"eslintIgnore":["build"],"nodemonConfig":{"watch":["src","tests","providers","adonis-typings","test-helpers"],"ext":"ts"},"adonisjs":{"types":"@adonify/lucid-ordering","providers":["@adonify/lucid-ordering"],"instructionsMd":"./build/instructions.md"},"np":{"contents":".","anyBranch":false},"publishConfig":{"access":"public"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"4ec5a41fdfdc1fa78172231be94841b61bc01cdf","_id":"@adonify/lucid-ordering@1.0.3","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-ZBzInZAb40J62FTigPvi8EFsUiw23/ygkuUbzglUfk4DcSBg57x2+Z2rM0X+IEEnstFFZwQfZJ7eHszfYDLPnA==","shasum":"066bca12d1da687d72f87b7b67b6fa155fe8a06b","tarball":"https://registry.npmjs.org/@adonify/lucid-ordering/-/lucid-ordering-1.0.3.tgz","fileCount":14,"unpackedSize":24316,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFAZ416Hz91/0JXoIoIvUErz3U7MWMH7Dwfr1vvLAnNHAiAPW/IgDkO6at0gxrbPqbevySMaSYg2X+cMyatGXVJczw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf5alACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZRRAAncVVerwvHCKTW/ijZX4CGXvegSu2AFRDcUtyvgLPg4hdbfMG\r\n0Czn17UaV5e0RdmU0FcmVmZ3Ltf5ccw0hk/puonJhz1hyRJ0kFL40m25n9vc\r\n4wp4cq2IjTucg7iCbbCa7wutJOYFEA91FEzE6C/3pxwxKDq0d4tUUPE+/3Go\r\nKSbcMoMmP+jvyOvexTa6cd9D1y9G/EuOdJCXIJtuWRAzUfqwlhuSCdEWWRa4\r\nOtrInWwmKlDXAPPnfKbW9FQzdM5RDq/R8f5ZHxf+rlivnLgpZvsdrnRY5IHr\r\nTUd46pOcdKXlcyH2/D5hGgYNX0O2IcFD6vibz7bVfiSMfYj78fOadwaGRkdK\r\nBydIhfWnprby4ncauub+qRFfCkFDpp9W3TxOW41QxC6bR/3vLqMCSVQFDQtx\r\njDcOMNQQ3yLK+pzeR10iN/JAlgcH2LRA1ab+lDWCttP9ZLyKzZxr+yLyOjmJ\r\nzrH1Rk9KCKh6mmA/J9TN7/yB727uphuCCh6ngaXcmYd54QZ+0wcayu+8Qg1d\r\n6hsje2igFzhLMVys0bQgnU3msNPX6gjC+szBDka7qbAQ1CocuS56oBzc2OCn\r\n6n8X3AusCJAzAWznL21CjV4fIDjWfnw26Zb9vZ8KawB/Iqu5gM70MhbPrxlp\r\nmQd24nVNYM8Cb3uuHonT968lU+lb/JWrnRI=\r\n=GsZY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adonify","email":"dariansampare@gmail.com"},"directories":{},"maintainers":[{"name":"adonify","email":"dariansampare@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lucid-ordering_1.0.3_1669306021251_0.2839758781522972"},"_hasShrinkwrap":false},"1.1.0":{"name":"@adonify/lucid-ordering","version":"1.1.0","description":"Simple ordering for lucid models with AdonisJS.","main":"build/providers/LucidOrderingProvider.js","types":"build/adonis-typings/index.d.ts","scripts":{"mrm":"mrm --preset=@adonisjs/mrm-preset","pretest":"npm run lint","test":"node -r @adonisjs/require-ts/build/register bin/test","test:watch":"nodemon -r @adonisjs/assembler/build/register bin/test","clean":"del-cli build","copy:files":"copyfiles \"templates/**/*.txt\" \"instructions.md\" build","compile":"npm run lint && npm run clean && tsc","build":"npm run compile && npm run copy:files","prepublishOnly":"npm run build","format":"prettier --write .","lint":"eslint . --ext=.ts","watch":"npm-watch","release":"np --message=\"chore(release): %s\"","version":"npm run build","commit":"git-cz"},"repository":{"type":"git","url":"git+https://github.com/AdonifyCode/lucid-ordering.git"},"author":{"name":"adonify.com,justDare"},"license":"MIT","bugs":{"url":"https://github.com/AdonifyCode/lucid-ordering/issues"},"homepage":"https://github.com/AdonifyCode/lucid-ordering#readme","devDependencies":{"@adonisjs/assembler":"^5.9.3","@adonisjs/core":"^5.8.7","@adonisjs/lucid":"^18.2.0","@adonisjs/mrm-preset":"^5.0.3","@adonisjs/require-ts":"^2.0.13","@japa/assert":"^1.3.6","@japa/run-failed-tests":"^1.1.0","@japa/runner":"^2.2.1","@japa/spec-reporter":"^1.3.1","@poppinss/dev-utils":"^2.0.3","@types/node":"^18.8.3","commitizen":"^4.2.5","copyfiles":"^2.4.1","cz-conventional-changelog":"^3.3.0","del-cli":"^5.0.0","eslint":"^8.25.0","eslint-config-prettier":"^8.5.0","eslint-plugin-adonis":"^2.1.1","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.2","mrm":"^4.1.6","nodemon":"^2.0.20","np":"^7.6.2","prettier":"^2.7.1","reflect-metadata":"^0.1.13","sqlite3":"^5.1.2","ts-node":"^10.9.1","typescript":"^4.8.4"},"peerDependencies":{"@adonisjs/core":"^5.8.7","@adonisjs/lucid":"^18.2.0"},"mrmConfig":{"core":false,"license":"MIT","services":[],"minNodeVersion":"16.13.1","probotApps":[]},"prettier":{"trailingComma":"es5","semi":false,"singleQuote":true,"useTabs":false,"quoteProps":"consistent","bracketSpacing":true,"arrowParens":"always","printWidth":100},"eslintConfig":{"extends":["plugin:adonis/typescriptPackage","prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":["error",{"endOfLine":"auto"}]}},"eslintIgnore":["build"],"nodemonConfig":{"watch":["src","tests","providers","adonis-typings","test-helpers"],"ext":"ts"},"adonisjs":{"types":"@adonify/lucid-ordering","providers":["@adonify/lucid-ordering"],"instructionsMd":"./build/instructions.md"},"np":{"contents":".","anyBranch":false},"publishConfig":{"access":"public"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"032cb33c55c2418389add63a9d87c7de629c7042","_id":"@adonify/lucid-ordering@1.1.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-5hig73Q29eH+yESmmtKeDkjjI5XErJ0oUpG2DQjfNYThl5Jnw0LvhuWF5XsOJnVTSfV4COdhSxQu4/xexqkqgw==","shasum":"6033fd5fb85a55c98966189f53e3b9585d0def95","tarball":"https://registry.npmjs.org/@adonify/lucid-ordering/-/lucid-ordering-1.1.0.tgz","fileCount":18,"unpackedSize":24823,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLrCJD10CrbgOISDHktTSt6sqIjBxR70lOTf53v8+evQIgMPL093sq2WEjMjWRqi/PD8jDbQ53m76rpi3K8ZvV/MM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjgZowACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSDRAAgzyZ8LOYWag1kokaV5W6NE2PzBrY3dVNHp1NhWyJy1hbGxwm\r\neRhaNPFvz1SGu3jnTTeTanNXCMdbm9jtg9ApnNS7tOLTNTM37rbgW1DhMQNa\r\nw2b42M1yF6hFa6ZxKwiS1I2Mb+G6TzG9xgb9KBVecjLAB94y9TGFAoXkvEbM\r\nRb+GZX1RPPgDw0gx8T5WsQaMxOwEquT92/cYaOboGE9lfO+jfnJzeTELRcoh\r\nbUP8K0R8pZvjcH8RZu01xXC+teFMOeA6W11c9F84L0XgmQ65W0TtzRkWWE5I\r\n03KycqoDsC3Soi6w/Z/mr+yXk/jmc6OOgUmHY7ivjrFwztdIjShovwVW2Vlu\r\nbj8ziGDLPfwNEnzv6wioMqgvCoXHiVkmQPYR7TrNBRyBhfnLyTWn7ySMwVf6\r\nA88ZTeeCyVQdU/R5MIfIqy+FMVSD6403XQpWww50Ly/28vBkENRDbq/qse1o\r\nnjVhFTitk2372TGY3yVOSm4K1reBBhXtgCsun+kunVcg52ik9dw53BR3QclV\r\n63fH08HwOJzFmpGFeRuFlKXuo0jCiK2/i/kQ5z3n3IpnIn9h3ZyKe7yLN2OB\r\nhzgruJe4yeY/5ZpIKtEcph9CaWziR/vqwoCZeTM78B9dRPekCFOAB3KuKTbm\r\njysFFSFWV9jL5CJq3gF84Bu+lX6ec2xq0eU=\r\n=Q48c\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adonify","email":"dariansampare@gmail.com"},"directories":{},"maintainers":[{"name":"adonify","email":"dariansampare@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lucid-ordering_1.1.0_1669438000591_0.8104456252094656"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-22T04:38:17.859Z","1.0.0":"2022-11-22T04:38:18.158Z","modified":"2022-11-26T04:46:40.875Z","1.0.1":"2022-11-23T03:21:57.097Z","1.0.2":"2022-11-23T03:30:28.352Z","1.0.3":"2022-11-24T16:07:01.345Z","1.1.0":"2022-11-26T04:46:40.796Z"},"maintainers":[{"name":"adonify","email":"dariansampare@gmail.com"}],"description":"Simple ordering for lucid models with AdonisJS.","homepage":"https://github.com/AdonifyCode/lucid-ordering#readme","repository":{"type":"git","url":"git+https://github.com/AdonifyCode/lucid-ordering.git"},"author":{"name":"adonify.com,justDare"},"bugs":{"url":"https://github.com/AdonifyCode/lucid-ordering/issues"},"license":"MIT","readme":"# Adonis Lucid Ordering\n> A simple way to maintain order with your Lucid models.\n\n[![npm-image]][npm-url] [![license-image]][license-url] [![typescript-image]][typescript-url]\n\n## Introduction\n\nThis package provides a convenient mixin to create ordered behavior (sequences) with your Lucid models. This sequence order can be maintained at a per table level or via an ordered column.\n\n## Installation\n\n```bash\nnpm i @adonify/lucid-ordering\n\n# Or using Yarn\n\nyarn add @adonify/lucid-ordering\n```\n\n## Configuration \n```bash\nnode ace configure @adonify/lucid-ordering\n```\n\n## Usage\n\n### Add the mixin to any Lucid model\n\n```ts\nimport { BaseModel } from \"@ioc:Adonis/Lucid/Orm\";\nimport { compose } from '@ioc:Adonis/Core/Helpers'\nimport { Ordered } from \"@ioc:Adonify/LucidOrdering\";\n\nexport default class Todo extends compose(BaseModel, Ordered) {}\n```\n\n### Create the Todo migration or add an order field to your existing model.\n\nThe column must be called `order`, however it doesn't need to be an integer. Any datatype that supports equality comparison will work.\n\n```ts\nimport BaseSchema from \"@ioc:Adonis/Lucid/Schema\";\n\nexport default class extends BaseSchema {\n  protected tableName = \"todos\";\n\n  public async up() {\n    this.schema.createTable(this.tableName, (table) => {\n      table.increments(\"id\");\n      table.timestamp(\"created_at\", { useTz: true });\n      table.timestamp(\"updated_at\", { useTz: true });\n      table.integer(\"order\").notNullable(); // 👈 the column is needed \n    });\n  }\n\n  public async down() {\n    this.schema.dropTable(this.tableName);\n  }\n}\n```\n\n### Ordered models with respect to an order key \n\nWe often need to maintain different sequences on one table with respect to a unique field. For example we may have a Board model with Todo's that we need we need to keep in order corresponding to the Board's id.\n\nYou can do this using the `orderKey()` decorator as follows. You can use the decorator on multiple columns to create unique combinations to maintain order with, but be aware this results in extra queries under the hood.\n\n```ts\nimport { BaseModel, BelongsTo, belongsTo, column } from \"@ioc:Adonis/Lucid/Orm\";\nimport Board from \"App/Models/Board\";\nimport { compose } from '@ioc:Adonis/Core/Helpers'\nimport { Ordered, orderKey } from \"@ioc:Adonify/LucidOrdering\";\n\nexport default class Todo extends compose(BaseModel, Ordered) {\n  @column()\n  @orderKey()\n  public boardId: number;\n\n  @belongsTo(() => Board)\n  public board: BelongsTo<typeof Board>;\n}\n```\n\n```ts\nexport default class extends BaseSchema {\n  protected tableName = \"todos\";\n\n  public async up() {\n    this.schema.createTable(this.tableName, (table) => {\n      table.increments(\"id\");\n      table.timestamp(\"created_at\", { useTz: true });\n      table.timestamp(\"updated_at\", { useTz: true });\n      table.integer(\"order\").notNullable(); // 👈 order in the sequence \n      table\n        .integer(\"board_id\")\n        .unsigned()\n        .references(\"boards.id\")\n        .onDelete(\"CASCADE\"); // 👈 key to track the sequence on the table \n    });\n  }\n\n  public async down() {\n    this.schema.dropTable(this.tableName);\n  }\n}\n```\n\nNow the mixin will maintain separate sequences on the `todos` table based on the grouping of their `boardId`.\n\n### Creating new models\n\nWhen a new ordered model is created the order will automatically be set to the largest number in the sequence + 1.\n\n```ts\n// Assume no todos are present in the database yet\nconst todo1 = await Todo.create({}) // will have order of 0 \nconst todo2 = await Todo.create({}) // will have order of 1\n```\n\nIf you wish to manually set the order when you create a model, you can supply it and the order will not be auto-generated.\n\n```ts\n// Assume no todos are present in the database yet\nconst todo1 = await Todo.create({ order: 0 }) // will have order of 0 \nconst todo2 = await Todo.create({ order: 2 }) // will have order of 2 \n```\n\n#### With an order key \n\n```ts\n// Assume no todos are present in the database yet\nconst todo1 = await Todo.create({ boardId: 1 }) // will have order of 0 \nconst todo2 = await Todo.create({ boardId: 1 }) // will have order of 1\n\nconst todo3 = await Todo.create({ boardId: 2 }) // will have order of 0 \nconst todo4 = await Todo.create({ boardId: 2 }) // will have order of 1\n```\n\n### Maintaining order\n\n#### Deletes\n\nWhen a model is deleted, the order of the sequence will be automatically synced.\n\n```ts\n// Assume no todos are present in the database yet\nconst todo1 = await Todo.create({}) \nconst todo2 = await Todo.create({}) \nconst todo3 = await Todo.create({}) \n\nawait todo2.delete() \n// todo1 and todo3 will now be synced to have orders of 0 and 1 respectively \n```\n\n> **Note**\n>\n> Models will only be automatically synced if you use the model delete() method as it relies on the afterDelete() hook under the hood.\n\n#### Manually syncing orders\n\nIf your sequence were to ever become out of order, you can manually sync the sequence.\n\n```ts\nawait todo.syncSequence()\n```\n\nThis will sync all models in the sequence, with respect to any order keys present.\n\n> **Warning**\n> \n> This package relies on keeping all models in an ordered sequence (ie. 1, 2, 3, ...n). If you manually update these values through the database, you will need to sync the sequence again for the various methods and hooks to work correctly.\n>\n> Furthermore, this approach relies on potentially doing an update on each row of the sequence when a row is deleted, and on multiple rows during order moves. This means large datasets may not be optimal for your performance needs and you should use this package with caution.\n\n### Model functions \n\n| Model function | Description |\n| --- | --- |\n| setOrder(order: number): Promise\\<void> | Set a new order on the model. |\n| isFirst(): boolean | Flag for whether the model is first in it's sequence. |\n| isLast(): Promise\\<boolean> | Flag for whether the model is last in it's sequence. |\n| moveToStart(): Promise\\<void> | Move the model to the start of it's sequence. |\n| moveToEnd(): Promise\\<void> | Move the model to the end of it's sequence. |\n| moveUp(): Promise\\<void> | Move the model one position up in it's sequence. |\n| swapOrder(modelToSwap: OrderedModel): Promise\\<void> | Swap the order of two models. |\n| moveBefore(model: OrderedModel): Promise\\<void> | Move a model before another in it's sequence. |\n| moveAfter(model: OrderedModel): Promise\\<void> | Move a model after another in it's sequence. |\n| syncSequence(): Promise\\<void> | Syncs the sequence of the model called on. |\n\n## Issues\n\nIf you have a question or found a bug, feel free to [open an issue](https://github.com/AdonifyCode/lucid-ordering/issues).\n\n[npm-image]: https://img.shields.io/npm/v/@adonify/lucid-ordering.svg?style=for-the-badge&logo=npm\n[npm-url]: https://npmjs.org/package/@adonify/lucid-ordering \"npm\"\n\n[license-image]: https://img.shields.io/npm/l/@adonify/lucid-ordering?color=blueviolet&style=for-the-badge\n[license-url]: LICENSE.md \"license\"\n\n[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript\n[typescript-url]:  \"typescript\"","readmeFilename":"README.MD"}