{"_id":"@enigmatis/polaris-middlewares","_rev":"62-0894301fc053000fd24376ac4149bfa6","name":"@enigmatis/polaris-middlewares","dist-tags":{"latest":"1.4.9","beta":"1.11.0"},"versions":{"1.0.0":{"name":"@enigmatis/polaris-middlewares","version":"1.0.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist && tsc -p tsconfig.json","test":"mocha -r ts-node/register test/**/*.test.ts","link":"npm link @enigmatis/polaris-common","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.0.1","@types/sinon":"^7.0.13","@types/sinon-chai":"^3.2.3","apollo-server-plugin-base":"^0.6.4","graphql":"^14.5.4","graphql-extensions":"^0.10.3","graphql-middleware":"^4.0.1","sinon":"^7.4.2","sinon-chai":"^3.3.0"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.5","@semantic-release/git":"^7.0.17","@types/chai":"^4.2.1","@types/mocha":"^5.2.7","@types/node":"^12.7.4","chai":"^4.2.0","husky":"^3.0.9","mocha":"^6.2.0","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-node":"^8.3.0","typescript":"^3.6.2","typings":"^2.1.1"},"peerDependencies":{},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"gitHead":"50d0b7a54fd53d268ca0c9ce51e98b440c8428af","_id":"@enigmatis/polaris-middlewares@1.0.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-CK1tMhSHPSsYetOxsqYYyD8+mggsjprLPEzEqpDzb74mIlqSCNBWlz6CooQo1vCbYHO8T/JDmxs8tL+2dhYg3w==","shasum":"ea42b2ed3044d52e7f9ca50be065901a1fca2771","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.0.0.tgz","fileCount":18,"unpackedSize":18257,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduDSTCRA9TVsSAnZWagAANQUP/iAcSfwsQPAreankoSEZ\nb4Xpw+9Qpo1/MHwa6U4KBwiHm8/nuGBis67BncwQbO6I7ds23jX5ruQd/u2z\n4sJRNFZcX5xcF9Ey/Z4lGjt6etddsnOp8XuhH3aUqRT8ZsUgBfNdaNAMaR25\nr+oJKracS5qPQITnb6vFuLgmKol981b90lG/kceAjMd2opEpf+wFKC/ewuX3\nYsXP9aI8tOtWRtdfxhel5+wo9SLmjuR/XMauDcpALSEWFQuXoCa+JXdYyO4U\ncXKux+xKRZyiMpZWmbKCRGuVIkUgFM/rZo26KFPc4cB7ncKvx2pDhDLJfgbK\nGyPM1hLG8dNTTyMKXs0LglVgRjFmp8rtYsVP4pr6HJUSdc6bm30Im6Y+OFTx\n2X3Hskps1EtFZgCwRS2iy8A9SHZ9P/q+roLPq55ENJFJcntdPgr1yeqEpm83\nOUS3RMjbhOtKeAp74HKwLodzZJtrYlxcDPVI9qwF/d7li5PliGCmtKC2xFyh\nSLdcQivTOHqIYy70JMXWf/XM1vIlAdnkjCQwDATcRTzxBWeGjNzwbzJhWNB0\nLV2303Tych54oZRAZ8ZW8usqhmNvsvuqPAFYLsa0jWa+D8EJY49FDLc9PzWt\nzzVdqnolwAYxUPqfRoQkZzCZ2DwmxtH7akTQKn+ypiUTL25zVDFgwSajEIy3\nb8T/\r\n=qJPL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSPPNC5uONB09GsW2EolFBnhfvV4JThQbx5vMk+CufFAiA3CICBd1kE271nm13+IL6OPDNeLEHvsb8/tFOsTFqrlQ=="}]},"maintainers":[{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.0.0_1572353171598_0.40273510972862003"},"_hasShrinkwrap":false},"1.0.1":{"name":"@enigmatis/polaris-middlewares","version":"1.0.1","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.0.5","apollo-server-plugin-base":"^0.6.4","graphql":"^14.5.4","graphql-extensions":"^0.10.3","graphql-middleware":"^4.0.2"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.5","@semantic-release/git":"^7.0.17","@types/jest":"^24.0.22","@types/node":"^12.12.7","husky":"^3.0.9","jest":"24.1.0","prettier":"^1.18.2","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-jest":"^24.1.0","ts-node":"^8.3.0","tslint":"^6.0.0-beta1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"peerDependencies":{},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"d64dd4f03da6f853ebc6d8078de0950946428d69","_id":"@enigmatis/polaris-middlewares@1.0.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-NAGxt6gHj03nE72KwwEjQsIKL8QSwhvC7FLfUsgLzRwj6OHXEWUAJuhDj3a6k4D0qHrVgNRANLv1aHz4ADReYQ==","shasum":"d9d2b91d4f7fb71be6e804751c45623e8bb5b6d0","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.0.1.tgz","fileCount":22,"unpackedSize":20240,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyVZuCRA9TVsSAnZWagAA/rQP/2C2N+o8qwFJTCDpPRRH\nMwcq2+tS0vsUYicT6hdD+/SxsBL+eZv2aHdtn2xyfalRYyih1uBNEb7zoC0J\nxXf1d7Vix/twKZVqMWS+d7RqXtcgQV6Cddr7COqHnlyJPAmnVDphwWartAEU\njYzfOMPVasQaGxJIvICvA3nmfaIDl2CaquDHDE71rwJ1Gqahdw8pk58Gj8Me\noVC0seBVzUn6UKs623EiP5FMvaNsRoaWO0aJraCcSfstcLdLpYrlqjcvPEM7\ncyTE8qNDjGe9JT1YEnWzygNCaGtvvb7OEPAbD/51TQbo2cWENgx/WNRI9mLg\nUDAdsbKGeQQo6sYOuLVU3JEID09wlGlVsFLM+QOu1HuiIPo+oYr5Myquw92x\n1ACbHdZ+9hvbZwT0b9CyymafHrKXJ+ItXNei23kpXjSW60W6jxm7YzLPs5tj\n0NazreOTQK68elaBeNUaCMJXNqgFEnGoniZgHKVnX0Y+ZRHFq9lvGRMHARRG\nkAzuOqEhEO4wk1UmRge+tTeaA0rgKA0Ca0D9AZaTq6ISEk0YuWhV51ICz4ct\n2//JIVSHDoBdGLrDWXsKm1swA0NspRnszAoA84BvbOIxSrvjmgCZ64qdWZF3\nTvXSLMFO81Ofg9Bcbq9eJorLe4nf31hxMcgK434SlhMIrGo76SFXsGl+sc3K\nRUQk\r\n=GXxS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2bczP226qIfvu62FoACqXEskjo3W8hTIXWaRcbza3OAIhALrQO82eXRc3xgUHr/JOiMUbIn0n8ZHCibYuv6Zwk3Zn"}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.0.1_1573475949551_0.7494729492507244"},"_hasShrinkwrap":false},"1.1.0":{"name":"@enigmatis/polaris-middlewares","version":"1.1.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.0.5","@enigmatis/polaris-graphql-logger":"^1.0.3","@enigmatis/polaris-typeorm":"^1.1.1","apollo-server-plugin-base":"^0.6.4","graphql":"^14.5.4","graphql-extensions":"^0.10.3"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.5","@semantic-release/git":"^7.0.17","@types/jest":"^24.0.22","@types/node":"^12.12.7","husky":"^3.0.9","jest":"24.1.0","prettier":"^1.18.2","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-jest":"^24.1.0","ts-node":"^8.3.0","tslint":"^6.0.0-beta1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"peerDependencies":{},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"128299c775b236baa91239d25bab686f74116641","_id":"@enigmatis/polaris-middlewares@1.1.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-WoATd5eHzYRs0lq1qXLqWVqpINOPrk5aPEW95002/MpmRoDwgBu1ZqIkzi111Fg/VhqTa6KH6QYrHNSLhhz3Qw==","shasum":"6e10570ef3ed4a0ef4ecfda28be88cfe9031a90f","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.1.0.tgz","fileCount":19,"unpackedSize":24209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1AtiCRA9TVsSAnZWagAApuEP+QFXQkfDapQtdiWhZPsJ\npaCrrSvhwlppITG0sIQuW62xoonnuoSkgjF4As6g844Zmsb/itEeqT64pimO\nrTLqrwMRwYchDqIeIarigDG9d+RqTUpF341LSFBLgQglqaSWzRKdCdigBcGB\ngnckL1CRMvrh1lV/8axq7qGqReRfpPJMUdDP8SmUFgoQF+PifEOM7+e5FPHD\nZAz9vrzryQ60ND4Wf5xRexFxEq8UUGpqI68QphPHMyHZyhMZ5kEq2y09mk6P\nhUmwp3tJkTVJOd69uGasE9zdn62hWMIj+ossZxjEu2y3JRm1jkxjm2BtkIET\nxoJdiSWySh0orwl7Fd/Ow+HSnnAQfWCPjDcs6+27N54FlQUZpwOMA+SOWCqg\nTTVfhrfTaINBWQ6e87UUsO7IM3GkNH0hQw57EuVaJxXixpwqkOPB39XkHndN\n06Uo3p9DTu997Ey3IDzRwZFhub88TsI2cadO7H8ghu1fq7+OkVe/rz4ojP9z\ni8r86Dza/KR9WlqhVPY9v6AXCobJmEQahrwM1j/sNlYzhyunbpk/TzUQ0sD1\n1uLjX1FY2nRGLnvRud/5wHmNri4MLlnoRoFph0JCaZ9PSyi/DBo2uFiNhz0b\npcrbq2ogCYwACYK4HycWUh3w1Elulk9J6GCFHVzU5gHkaT4dBHwyScmYGSym\ngROz\r\n=P2qC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBdBpPC/CONtcsOLbHSuqndNHvXj9wFIqKR6mreWnR0YAiEAkMMOOeNxgDg0i0QftcK3gXTLW3LQNLKduU09GWbIpGI="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.1.0_1574177633779_0.47729940754907774"},"_hasShrinkwrap":false},"1.1.1":{"name":"@enigmatis/polaris-middlewares","version":"1.1.1","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.1.0","@enigmatis/polaris-typeorm":"^1.1.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"^7.0.18","@types/jest":"^24.0.23","husky":"^3.1.0","jest":"24.1.0","prettier":"^1.19.1","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"d0962b1548ad51658ba3426f8b7e7c9943255211","_id":"@enigmatis/polaris-middlewares@1.1.1","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-HH0DDOFI8a9iEB3uqXECI0lXXG/VWYTUSOXCVQk7vxFso+K5VlCObzkvV/uxwOyYg/dMisQ0KDwRXUGzXEFWzw==","shasum":"701986afd279cb1cd6b409bd73b5b40a5c6c4e9a","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.1.1.tgz","fileCount":19,"unpackedSize":26256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5lTPCRA9TVsSAnZWagAAtjsP/31aLFIr1HYAJVWmVzl3\niUwqx/Ysyzxo7y9Lq5OqdFaBI9TYp+Ck+DwANpPYZWJvkZYwBnmiqwvO2Gff\nc3lpZbRyUIDpOcG7/PawJtJfPwZAePFCZt45+YANUEbrsNSZpEmOI5PEqWU/\nLUfVHsr03D1jLFjWWcGp2/LLvQRAt1Je4eGmkg1d3K9+TlH5RPTZnXKtB8UC\ni1j66nK0MVt2OxETluyjQhpT3ibOxrNThgOLBnetiHZKGVcYTp80H+GNi5kc\n1U3OFWUxKq2p3LVywyMbYobPyP3jF+FYYlJWgB40bVeHRvZLv2a0+eT60HMF\n+OuJT/QAdzU7rvF5jNrXz4BOyPv2O3r+HTECelTApRpSq2MpNtX3Y+f8t2AO\nZ6H/KwTNh4QVSaadlIAgDR95jvYnXZL/CCn9h6bGg2bS5jpZ02+lwnGGxjz1\n47gsmQqwOzo7rJOrgZzYSnjxlqiiqJ8n1jmvCEpbizhxlbtmFM6PxHk1Xzie\n/Yj3TCzmM61Az2LVCMiMjNY8IvnlkWLBQ8NdpUF/Ez+SL4A2r442WmzpjPc4\n0kJiyuq4iSVwhs3Y3pYicbPflDXD89czB+CT5nr6iPtUN6oK//ArE3opkOHA\nzlZpUjlikHPcDq1P4df/hNZCDgExLdVGkZcdPkIaVqbSd6Gp6N16cbbdPA/b\nozUX\r\n=Z5h8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlE78YYJVl+8Iaun07dsZiC53X5TySuxrIRpQNFQG16wIhALuDWmziSSRgXznsjkyCdvsOFekRmGCcLHeX4Fd5v8Q+"}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.1.1_1575376078435_0.6612991536348576"},"_hasShrinkwrap":false},"1.1.2":{"name":"@enigmatis/polaris-middlewares","version":"1.1.2","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.1.0","@enigmatis/polaris-typeorm":"^1.1.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"^7.0.18","@types/jest":"^24.0.23","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"af2b998ce058d5af2c861e9dcfd3590f9e88e8ca","_id":"@enigmatis/polaris-middlewares@1.1.2","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-wHBcRHYma+U67yM7pAfGhUKaahy43L5t1+Uv6MGWfx7Lawl8Rq3rvuIOFN0/gnwJOsaTGvKFvfxn2gyWN7al2Q==","shasum":"40786a5802f9fff59b150f053cc62a8055fa99e2","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.1.2.tgz","fileCount":20,"unpackedSize":52598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7jFaCRA9TVsSAnZWagAAGMUP/3EhsPkhBI9KrGhSGErc\n+dktx7c2M4GlqZ4HCvRdxYmhHDg21oDOig5vm5ub4jZ9EDpohot6Fvj0v/Lp\n6DQVFCXbEigWa/voNox4N9mZQk/FHumqMvRHrfw+qdgQChbGrtrJhwZ+B3hm\nUcdvwl/EGrQNnxxj57wV1fu2AjrnHH1GtrxrUZhisnwkJkSp+14WY1z6pevN\nNF/33s/mM8NobTQa/38a8qQzzOfBYAVTXrelHKyyyM3GYnhh/hX5vRQhKqch\nPwad4tbiXZxfFEkZc8Iu0UlvwuQtwSX/MyaXD2NIoepJy1/Ou36Edac6YDoU\nQgZ8ZoVrR5WWNF3V/ttqp6sSqZjB49m2F4xbE3v6z6QrUxxTA8bs04OnTAGh\nDxt2vcWFml4xEOGI17IeGSyCCLvEamvYmS0GDo87ZpKhG8W0Seob/s0MrSlG\nSHu44+IXOtv+6vg+xCu7NuiCbFyfVx72m2QzgVyJ2CVQHmkhnVD+cuVsY99X\nq6u9r5LO2cKB/kt5/uavr5dOncc+iMTXBk1FmKRVKYqH+8dzpDmUUT51Ers2\nm8e0geBDyeOR5W7N53wrQ3yY6thkBpR6rZJLg33Gjq/Kp+wy3jl7Md173L3I\nxEGC08IT+rZN+wGOytvD9ZR6uJ06xfhZ7ZJHAXaCiFSiCaUGtfrhl9EiiGUw\nnlaa\r\n=4V7z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTsy2fJ5VNBrH3FXJs8XsaxybgKKLdb9ryqv8oedSzRAIgS6BDTXfrNDD4GpUE58lUth7YafnoJofCVKgcM1x78JQ="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.1.2_1575891290045_0.11498050400353699"},"_hasShrinkwrap":false},"1.1.3":{"name":"@enigmatis/polaris-middlewares","version":"1.1.3","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.1.0","@enigmatis/polaris-typeorm":"^1.1.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"^7.0.18","@types/jest":"^24.0.23","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"b799c91d1e5872f458cf455b9dc24b6ac7772544","_id":"@enigmatis/polaris-middlewares@1.1.3","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-5N3MEx6MBpTonWpSYeootUtEFsoIE2nKP8/vjhgwxrmb9YV++v34zyDpKbidh/Ble3HSsd9JQ8FlAcwTbpI9Hw==","shasum":"1e69a8a5742399fce22ddf84d5193fd9f715661b","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.1.3.tgz","fileCount":20,"unpackedSize":53311,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8jUfCRA9TVsSAnZWagAA2ogQAI9+BA5JdMPArvvY1xo1\nM1CVCCI4+pKf/sPCJviW2t4B2Vr4I9e4XkDwP2/BK2pab+R6Sc+a+keoZmh9\n4U49Fv+/cuoTBBSOLqoeUCYb2n4IDoR+ssV9Ks+82wu4Fg2S8QhEwrCjsTd0\nvuK8d/6b0HEA1Uu4gQ78i4lGWS3RmRMMw4UURlBEAaiKlbL8G4Jq5aAgqDmH\nNMipeBVDIYeoeNWT6F1W2ghj88zHDDalrm59ADjcNubjUXkF2xkcbq6Sk0gK\nJip2idJ+Kk8kp9ONa8u+Cv0zeVIY7jLnpi9Voat8x6mtp030KpmkugybsfgT\n3pniSP+P2WzUS7pe5XDYx8lRUM4H+TwMMuvxUFuGZVJl1/jfmYfvdikGMrGL\ngjZBqzi7DHXVSf2+foQ4cLn1ZLosGQQ8OgZD6XAjLQuk8xIUR9IG/EK/BFta\ncZtomD3GLXDNqQ2wveqrdsyZuwBWlyHQErksGUViQMUyY1cJdfG6ktqqvMPD\nVut0x7mVstzB+s/Oc08lHAJ/fixXJcmXTkwdXgE438/JeI1BWwPKNNb1XzlL\nDVzTvZVC6vELGXcMBF3rgHGsq8k+xlpDlQTvdQPyhsMU+NWuHwMhIH8pFVfv\nupBg7ed64WazVB9eZD0eav6kGsjjAmphsmhqJgrNnQzVDDLTan+FBIcmrYxe\nMu04\r\n=uhDB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDHiJn2B0YyMjcBW2YToAqpS6W8nqaDwT3r9My6OEbiwAiEAn5qpmxZ1a4cMpH33L3CQ1Hd0eZ1fHVGinDjtCsoDjI4="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.1.3_1576154399374_0.9605406105096101"},"_hasShrinkwrap":false},"1.1.4":{"name":"@enigmatis/polaris-middlewares","version":"1.1.4","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.1.0","@enigmatis/polaris-typeorm":"^1.1.11","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"^7.0.18","@types/jest":"^24.0.23","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"9801d4342bf3d813d0f05cd51769b137957e0816","_id":"@enigmatis/polaris-middlewares@1.1.4","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Dh4vZ99z5SxSzLX6oqKjXiR4ApS76+HvlvappWYnNBMzszteGkDVAZTYGRUePqXKIjXpIlVA7Lv8iL0EfZAgZw==","shasum":"0a9f2627a9d1c5dc06c0b590ebc4035f2a71ef53","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.1.4.tgz","fileCount":20,"unpackedSize":54460,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeE2IwCRA9TVsSAnZWagAAzgAP/14CyPtYGvTSUTG6DTQD\nPYpKJUKbfP726eHAHBsO8JDv7e+AidXJ7O6WaJiw8l4kItZNFdCQ4QvV+eAb\nBUa8yMAWpUxG3ckwSTg2XNs7QzTau2q1azqI3I7ABnXEDQRFC7XWzCewFf+b\nLtg2dyvwey812uhwUDHLx3FgqWpNgKNl+q+od2Cpw++KXzWA52ymq+zMQOwd\n96HjpCun4ILmxirCn2fOrdRQMoTfgCvQSqNEj0TxBztY7Fg01Gp4O62/ovyI\nTCJ0Z+GoAA4gehR1dKW2xX67vMKTIYUCecO3hiEwe3Iyvt5dU1O57IEEsqO7\nMG9VkhfXMepucmNioBP0Ef9L+ICMjUW5RSP5DMaQAlpM1V6elH2P8nVWcKsO\nGlY9irZN+8BP8AKnAwAMe/CQk+ICnQVRxX6kUk75DqpMLUVFZsIF+/zwfFHP\nM3B7Yb4sWV/10PPVMBNfc1BoKu0xPENbJP1+v/EEj7b5SLUOySFzvoc9VHhT\ndVHnfMnhn9K+YtoJas0lASyE4hK8U/xztYQBTitc4x1UMoWEA7GsvmvywDVF\nxUgvheeA2MAa6yrmxRmm3fc+OwWJ5VyTBaiiuex0TpG8bRHicArpAZjRvtjX\nmbjQuS3q1jX2GbKisEcHj3xT4WBBcpJQVedztjRsM7lAaQFxFbeRrC7liX7j\n43ys\r\n=9Ziz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyJImbXEPFkvEtb9ioQNVtXzNZDW75TRajv55GR7YkHAIhAKS5fa98DFn/g6NzaxNn2AseeG2icBsBRuPZdZuHb+Dl"}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.1.4_1578328623748_0.8110446640729487"},"_hasShrinkwrap":false},"1.1.5":{"name":"@enigmatis/polaris-middlewares","version":"1.1.5","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.1.0","@enigmatis/polaris-typeorm":"^1.1.11","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"^7.0.18","@types/jest":"^24.0.23","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"7c4244a25cc3473e4c64b6f8e9eb02b0d0131188","_id":"@enigmatis/polaris-middlewares@1.1.5","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-R7RDFYp+Q1hkoQhbCPIMp95/tlS268NrJ05OMsvRqOPH9EKKe2HRnc0BygqkjaczQyQxa9ajvnqMgFy3ZYrp2w==","shasum":"123f8f52eb10f2c0f665a6b0177613382fdf463e","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.1.5.tgz","fileCount":20,"unpackedSize":54849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeE7x4CRA9TVsSAnZWagAAC2cP/3x4FeJovvzW6bqwcPi2\nobOaF6iilg9tQMP4UrEG6cUEfNmCL15tUuyklOdKNUQEGE/mKgKw1J8CPWVi\nl6zj0L9RLYWLUEbLqz0onI8iHY2y0iH6U6OQL0LVcndnLiPW9G4sraNBnZIA\nFeQ9c5UzsJ+EJ49x8+p+p+N+vP1dO/kZPY3NHWGwGgDwSmhJ4WOP6NNS0uM3\nP850ueB9CCAjW6X5ayBE1ViX3YHpl1aLb0vBdg+KfVb6SCLQZ4UneupjxY7t\nROCsxapWHJCWnHfJKM5Rk4mZpFEO3EnxFdUj7B5uGtoAxwnzS2jSins43PCw\nND07pOuZ1X8G/S+QhtrXlrojTJQFCWG0vkft2U31AHWFqfVqtk+52t1Na3LX\nyzch8HT+8hyXN8e8gAyKxd8X1ZJXdbDyb7iJQ1FUQTe4cqHJAuWcFqn7xWuA\nYKtxhew9VUDp7bdqkU9W3LbNcAR0g8BBoy0G8L5h+PXJAzHIKNgAOWalmD1Q\nylodJJKAuezZnTIYLutpfCTee0LR/9ffJC7ChCnZZEXAjiamdMv1B2rDkF7m\nF3GcmEPPXQ+upjSFF0jq/i2iiPtsFt+AFcvpGSR0Zh27VRZXPxTS9CO4gKX2\n4BVxqWxkxUHR3RIDz0E9+xXGUs8yHA+DZR27UXv48Vr/SU1L2yZOamF3usG5\njnsK\r\n=NSaU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNPlhkR1rbanQ28VhG3+jkcVm/HpK/ysmynh/GisuBxAIhAK9/uau6GaflQRhdxQyXbkTKB2j4MvDgQQ4DrZhxPc+N"}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.1.5_1578351736130_0.8256219868815773"},"_hasShrinkwrap":false},"1.1.6":{"name":"@enigmatis/polaris-middlewares","version":"1.1.6","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.1.0","@enigmatis/polaris-typeorm":"^1.1.11","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"^7.0.18","@types/jest":"^24.0.23","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"ed81eb10d0bb3719fe665b442e4df802a1a4495b","_id":"@enigmatis/polaris-middlewares@1.1.6","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-/S7gqa1YYN1YqJaEgyt+v5BqMzqa2YQ8b/5tsU9+GZ22z5qo7WxBKy6izlaa+svZnsenAzXTIdKIXBhsNr/2MA==","shasum":"86f51bd5d0e1898b7659bedb9c42bda978a603bb","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.1.6.tgz","fileCount":20,"unpackedSize":55891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFfFaCRA9TVsSAnZWagAABW4P/0z2RECkUi2LS7F18uzl\nsUBpuY4sFoCLhOlU7rT53M5kU9L4EhygBnYATuuAujE2JAVZV1vVzrJidstc\nWDlkd3nbfA3ssosmXFvqeQsnxpTERJKzEtR/kgsPPt5Pp8kKwKubYqkdq948\nySG92hzVvblxy5+21IG9Bl6JfkjkkUaStbQ1xYmM5Ebe8E1c/hs2AdxBIUMU\nbT8c7ZDwpbDG9Ivh6RJFdOjtC4kt0nDIeiWTNIKCqDqbwKvsVaBRj9mBWBp4\nixj0IEONMQJ3Gg0OlLeuhBnl5Mf85/T2EyveoOlt+OirBWu9ouF6utknes3k\nxjJsHExoBARIsCbkclPb7Ueu6UpJC0jjCl/1igXD3nY390+8IlJhu1N9elDn\nMK3O/TVFXC3KtSgNpgOto8joKNqB5SjR/bu3Ew2BrJzGT01iZZQckxekeVUY\nLhV1sdJu4z3iJ7StG9etAFRKWvot7rEQV2YXNfgPhmRd9nzOQ9iKy3D8rfWO\n4WWgUN5B4kUFGSPIVjm/dpBZ6iLfgRfBVsXTo2/gtD+xVXyQ2BiZDzHwg2OO\nsGm0OivNgnIgYzyR+iDP7nHyxjiOgKKH6krOYVImFSjmdHvc9d9DqN+Jj5B6\nC8/ELW8XozXtg4atA8K5SMabh3647PdLEuT1rAz5cWka/2lieeN8baUCbcrx\n0UC0\r\n=gZ5y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYYU2qdbA2DHEl7iXcUVj8aifPkx+G6APzcdnLzDCIAAiEAyUq3+uOpIMBbUeydeF/QG96H9zJczgRUHhCPvc81V0Y="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.1.6_1578496345359_0.9035758916145236"},"_hasShrinkwrap":false},"1.1.7":{"name":"@enigmatis/polaris-middlewares","version":"1.1.7","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.1.0","@enigmatis/polaris-typeorm":"^1.1.11","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"^7.0.18","@types/jest":"^24.0.23","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"9f95cf018ea1a458e58c19c56432de3c113089b5","_id":"@enigmatis/polaris-middlewares@1.1.7","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-v/rNJBf7QKgbTm0zyXQv2PNP3HcXiAVeihZQ+h470F8yk0ZeZ0J2cbmiRWBOCpaGZ4whjrpbPE6BEgG55OGRwA==","shasum":"797247421e666adb632206705abe6b18f5c09213","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.1.7.tgz","fileCount":20,"unpackedSize":56191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFuxXCRA9TVsSAnZWagAAnVwP/2NhTRBWyKDoYloPZRVP\nR/wWRM94bX9Tc155AB+wwawA2+hzjDGsDSx/6X3zck4FiFElUucBgD2vhilX\nsyHOE0drxgBDI0PdnXNGNNOE5PSAh9hEsu0NdbRhg/2XjOtAIdYKZUUSoh1O\nHI8NoHj1h+xnd0owvxp6UmWmr2lTFdMfL8POfeq9iAE9lZwAK+0EXpaXehTF\nEBlex8RN0MryQ1/jec9qammRoXETF2OS2B76PDZ9hgp+s2EpUbWqA+0DdHdU\nerXZQBHyj38rYVVN4/zqOjgw7NXJ1EjJB2FX5fpPPujBbFlZ1SErSvsQ/wiz\n7L97EyIQywRm0fMktAweXPkHo8YYEWw/iljHLvJcp0FzUWqcPOYgBiSALn5r\nC5x+kRFI2MkOsK2UjJ7Va9nLriG3XunUBt+8FCYdIDxkzCA471CYDFux05Lw\n0iZuwLDkyddnrjE1vUAi9hGQmmITGKWdHqLpegVb+IdzwGZhY2wSqkt7G2AJ\no20Am5o+CuxyLTfHpWcanJDhMyGYSf7nvuxj8b5Lelsv+ToHa5cXlXD3hYyo\nD+TaS35rx24HQv29bvi3Yi+dreEWrPa7+8E/NOd/ReU5rd3teuWwzzTlbPWZ\n4wUUvVMMoD+bNBLtSjyklaKqOLc0ITlrYydUUgOrogQjPrBj6kz/iMSvv+Xi\nlpbG\r\n=hVbN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUpPloz9ivnDzvT5vDvm2QT0zpJ1lLUtnGkPCEDffgyAiEApL5N0xK24QVKpTcp0XWI8XYQau67p/kNb+ZBTCJtekg="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.1.7_1578560599387_0.9419044504989056"},"_hasShrinkwrap":false},"1.2.0":{"name":"@enigmatis/polaris-middlewares","version":"1.2.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^1.1.11","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^1.1.11","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.0","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"cefb0b0ce8a713e6612a95d008535443d2dbb5ce","_id":"@enigmatis/polaris-middlewares@1.2.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-KqlGnMUTAZwnwOuzYPoYT/gu16NBQju8+jG6jaWhwfrLIe1n2I6QIvhFuAAjKw7MRhW+oexMQT+SASW5+RNMkg==","shasum":"b33bef448544a85275a3e9477a43031a5b23bc9f","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.2.0.tgz","fileCount":29,"unpackedSize":65465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeN9vTCRA9TVsSAnZWagAA8BgQAJ4D7hTnoOMyOj4CC5eJ\nujLEknA21TPDPwIwls58BZ7iSJg17N59QwbhEzAeiW+Vs8HyIwlylE1WdI3f\nzj585IBvwb7n/7IW2WW5YhABMWv0hHTnRjAl9wpIFD39so+inRcoQFttuebA\ntJNyTuOzwhz9MQ94asfw/GnYpVa2YmoJNLUUpxweOe/wNzSmG52d3yvyrT87\ncdMqIKAPQSEDbJnoKR7lgonWixuwWUZ4ODfWfKozbyiRHmvqB0d+wknwO9Qn\nIBIeE8giIiu5HOQi/WX4Q97v57ldAEYTSS/85ugnZQAy5BgCPphZIzH3Ywvd\nNge+JAwEGQ0JEGQIlFOLQoiJIsTtaFBF+MRplMCqXgGSSqjGp4qtNTkQzeRE\nZqx4iKIaAQ7XVOZ2zyIUZsFKnlq6Cfd4jLY9EE4iK0KpJndPGNMf2nlU3i8o\nMytb88Q0QrrxXU/h1ikuL1RLbcZKpSvCMoTKoxDgKeYOg3MXR0wVuJnkiWZ+\nzVQTbhIEuUH9k1BwurmbnoXQntUmH7tfLkfIJ3ePhv0DZ+suSPperhi5TuGI\nLINMn5OEVQ/1n/291k8LiemvwMLkZOVW9hNMKlu+r0EoIMCxkByGtRJNC35X\nQxWWbNR5UDt1DE9gCnA4uiFxSaaOxLeF96jRndlX/km1O8Yd7hTSEBoVLWdN\nrg4z\r\n=7tUV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYyKubbxZtPrwrW1mec+tPi2WzfqpX8bOi3N6RHVajsAiEA96oZkSjwPzbYXFKEF7bEWWAHlnAyJe4lTOBLtgjFOqQ="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.2.0_1580719058987_0.8129014537365837"},"_hasShrinkwrap":false},"1.2.1":{"name":"@enigmatis/polaris-middlewares","version":"1.2.1","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^1.1.11","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.0.12","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^1.1.14","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.1","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.7.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"b3be7d93a944dc9f897a4926080c67d6404cd2b2","_id":"@enigmatis/polaris-middlewares@1.2.1","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-MJh7bO64usZS/wtr3RadKOY0ES0qfgoW18LJ/gY/OI0E2TpRqKJMKn7brhQFWHmOLUsQJ+GD4vIpWdMhZN3ZIg==","shasum":"1490ab02ea3f396a4eadf12645f2b61d72cb3cac","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.2.1.tgz","fileCount":32,"unpackedSize":69684,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePCIoCRA9TVsSAnZWagAAsroP/1WcOxvKBz33XZ2Pav4q\nGk1DVcAn26nmK8aTfF7ZbPpHsNy5emgHSX0Gu7wxzt2eA5NMHrA37hG4vtf3\n4sGBl8xdd2twh0UOXMvNZkvKRBioKCL2ZEbMNdHXmhZTbA1apH/1s8F+T674\nMA3IL2FeQCZOK45p91FtU3XSYdZAChshumMcoG3Pk6rd5vfk7jdYXNU/kWYD\ndFwEoqnvNSvKfQfByqXNeGPxJRiWj30qVbZQCde88X3gi+OHQqIwCw556Ijb\nxPxIGkekOLIhnbk2PU1tLhanFOEK+UfUrZb53FZn0BaDW3Aq7Og+wge/efFi\nxk3nPaZXeKyTnxPxi/2xsBSkxLdcMDIjG+TtZ35MtlRKxRWxRDde+sAFjjKk\nTPPMZ0CEmMEvS11a/TUkUXMpV9B2LwD9K4jHknqvX14vbzpG9PfJHqxKM4v3\nOS42/YZTbp+5kUz+4N11uVviW/LzfwsDbTuKAknnxLak/vJY4MMyU2TyUIzv\nqPdJgX+SOCY4UuJy1YC55dKNDIkDXxW0RM3P06Tx8u1O870vyuldDVORHHQi\n2EJgJk5mYWJlMJ+H8wbo+h6eSCC9+Hn1//HFLmBp5em7yJZCnWv3U1Tt2LqQ\nRZMbdGIMX8uKUhxAqu38dNyApTm+FLP73+PPxnVDiqoYDtbJkKrfWt/L+hsJ\ncRxy\r\n=MxrP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID0kjs2w9GI8hpLA+JID+Ut32cjXefbRa1GvoqK13bmJAiADDiE34E7UM8PJlgc3muFeMltR4t4RJvl8GkwjC3cdgg=="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.2.1_1580999208438_0.3577783371164778"},"_hasShrinkwrap":false},"1.3.0":{"name":"@enigmatis/polaris-middlewares","version":"1.3.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^1.1.11","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.1.0","@enigmatis/polaris-graphql-logger":"^1.4.0","@enigmatis/polaris-typeorm":"^1.1.15","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.2","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.8.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"b17726037e63e3d6d9011e2d475d8e8f26bc92ff","_id":"@enigmatis/polaris-middlewares@1.3.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-JC3FHcJypb2dqZlYZNUjIbekcuGA++pCGk7W7A4e54nnxYnztYFKfr6l4xjAYFaxsezaqIoqpQ7UYuJMngPzzA==","shasum":"146a8f9c7739d3990338216d887846433dfb5c41","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.3.0.tgz","fileCount":32,"unpackedSize":70196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeU9xpCRA9TVsSAnZWagAAH7kQAJsumZwV9j22D5hzEguS\npJVpYB346VRrSTW+Pe0h+KeTLM3Ud1A9ZKlLgZYsDiZ4xRPY/Pl4DhM9pI/a\n+YIwObIkdmx4rg7/qkVshSbIm2fAAlgBXemoAMH8kST0xaMaqMoVV1ii4OoT\no6DP27NL5abN4Y/0fqwhmwxnQWvaTao6oBjb5im4yNAaJhNdI02ePA6DMxIU\nNPost9oq6AOULmFeFtjUFVdE36U/yPBz9BAlw6CbpkMA7DGedMpsUAnM2RoL\nK1tryAP5SnDpro7ieREz3BAKjU1ThYjRVIplZrnlu4pPZKNEGEsR1rtt1A6T\nWkoXyQz396ITK59r9FDggmnLea+7qB5oSPsvJvSw052dQQeYNlEHm3h3QjZH\n6XBoCuIfEXy+8vHWhFNnO8gMbdn5oYj1p5vvWC+wgsLFXM8KaJzX940/JSUy\nY+JmicHvtFfrEmvUD6Ajo8+CJnkh2wRkbi97c/wg5bcxK4pkdBthjVZXe66u\n/PqUIye/S5pkn3U6mIDTwP41eEBfs0GtiLQEmNllcoXa3zd7e2N0+bdHYSOn\n7ge+ElJFAe22ImWu5xdrUE1FMjVeKoET7DbvtwXGqQ25KZ7q5UcHgs1wVALa\nk4ujh7ir+jDT4wzdF0+HthBp1wcjAgioB0ThFAMARyx7Tz3cMuMqFCoDyczd\nCjXA\r\n=sPSX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLpSkHcuQ/BzD9dvL/p1TDgpYuDITv1sTIKBtEC4v9jAiEAhE7zRCts739VGuoHgM7IQU5S4f/kU6JgXd0Rx1CQ0no="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.3.0_1582554217103_0.7269323741565028"},"_hasShrinkwrap":false},"1.3.1":{"name":"@enigmatis/polaris-middlewares","version":"1.3.1","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^1.1.11","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.1.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^1.1.15","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.2","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.8.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"b14af16da0b76bdf4436ab6c56e8bf4b30e81a76","_id":"@enigmatis/polaris-middlewares@1.3.1","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-WshV7wgQ94D1dTS2HtTpWmPe7yHV5viqQq8BgT57ohk9hhZa5DFSUCjk3PqmyH57osFMOOvKzYX3xHNyNWf5vQ==","shasum":"14c21ef56047af42505fc9fc8116b53f29c4837d","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.3.1.tgz","fileCount":32,"unpackedSize":70856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVlg/CRA9TVsSAnZWagAA+moP/iV9uMDRnaWl5mRMUkNB\nHfJCiOZST/hNtvS6rqDygbRq8uIaC8SGXQAyNyHi/VSg6RrkPqOcHcHLSx/m\nNReibcbklhAZYWIVjHWzA/1b0jm0ihRs4kS3ZolFt7GhqL+RB627rLk5EcjV\nAA7anCoDhN+Qnk8xQaNdm3BdDAV07Cs4zzQn06NvnwST7d62Zp6ESqPNVkYV\nN28dJoa7PT26VmqpB3+dl7cUPYTLjqmF7ZFJEAYV232xDvAIPCm522vGooyi\nexUqrs215f5xoXEh7mevPy2yH4SslmPK0ORHslVqOHzSsWKfTds8Qpt0cnCw\nokFWtd4dzMBphH8/apHluV4SFUP+bptuejYMn9R1ubsEbVFJELl8J8Vfc7sR\nT+VTu1ykDoZMB9Jht4drKSKaeDml65oH8RSBx5g8DFNwH+l1lrOWnrFAbxU6\nc6VAkkIXST4E14PU/121w98HW5KWFXm+Dxkzbtm/GxvOp6FZu6lQ960sNR4o\nUtiQIpGKT1AxFMmnZ//mPinEYfiQTgfyDShitsTvT/q49sOqHBZL1mxHp86j\n6xyN8FC0VD1YFz0bIKLA4zG/F1sFrbs4UWtpw0iFWfZF6efakxM78VJ7XCBl\n+aLDEJrlBIpRzSkpSke8coGhUwlCqdvMr/oN6Ho9tmGd1pA3qRb983VPLo33\nFhpL\r\n=AUH+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcwEoa1mudfOZbO/ATSzEJjnggCWESmUUayFn0CcpSXwIgSon8tSbCIC5/xdGj7eWm4zosgDe98dYOLl2Zw4NhviU="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.3.1_1582716991401_0.31142386233241726"},"_hasShrinkwrap":false},"1.3.2":{"name":"@enigmatis/polaris-middlewares","version":"1.3.2","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.0.0","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.1.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.0.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.2","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.8.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"777fa5715bcf20c8d1d86be1ea063cc1e838c9cc","_id":"@enigmatis/polaris-middlewares@1.3.2","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Z7R4uZZ3J6t0xeX5snMhQFELqeGkeFOLfybk5Yo17sWm+UjUCajY0+rOKmtiHwPpLIQx3j1EuvWyHbbB3TcaUg==","shasum":"e3f016fe825530ac985a6c712ae40919f6556c92","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.3.2.tgz","fileCount":32,"unpackedSize":71178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWDpoCRA9TVsSAnZWagAAx58P/3us2sHfhQzK+Vs82SHU\nT4Ra2tG3+bI9aCqqZH/qCKzQi1KjxxGz1VjdDt1JmFlOMZlkoI7uSZa7078+\n/eF7t5ug+Cf9SXHVz4YSvICjCxvb3W+ThLazpHV0RKdJH7Me6UjMQoaOuF35\nazVEAR9WuyHwEJJ3SpdvZabRonP/jXfX6Ib9n1cNfDO1I1KnV1tKdG6WZbaj\nY/N3MC4RMvWM6kJ/aWDEKiEW95z66l4VZ7Fc0quu7jv/vlh14DoS9LXe3cz9\nt42i8Uo3kbjp/P1RB7I78A52qI5s2A1n7omnbCZ0TxNGjsV8jTgBKUh/LgzQ\nFDHeK7x+1HZhN6gaHzIo2ROM0HcPyZLrpyIqqrm2cAJXkd3wwuH+SSC3jXpk\nLraz0GzRc+n+H4J1ZH2Bqk9h7g8qx0MxoWuPAqPyX47HXZhe8uAcVQYArhxq\nSlwB9s9jJnhRgNGHZGJ0GVNS7PdTvuTB6meubs/c45FN05WyAPP7v9dsRYPy\nbmNWrwGBTyT1Xokzctp6BkwifgkDA+NlolvE6XVg3MkfVaihsCmEjVI+SRB4\nJrVzB5oKEayl/c9yTxnjwR4oyl2ejJfJQKsBM+LwdlA9nklyNm+h8UzGPm3r\nwXPNhCk+ToJuggMcms3BO3hKdPauDhk3U3DyGgS+G2IyAnh+OJRQpBGePkmD\nbILV\r\n=4Jgr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOiolcOgV0hskf1CsV+cZRKUPpXTswwmpFOxJD/NsAAQIgBeKnAAHPp5H/AZXSuGaT2E2GYMzwPYS3cBefxcMI9lE="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.3.2_1582840424010_0.4961827948030608"},"_hasShrinkwrap":false},"1.3.3":{"name":"@enigmatis/polaris-middlewares","version":"1.3.3","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.0.1","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.1.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.0.1","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.2","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.8.2"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"44b9003fe22b1422956fdd8a73c1e63947488d4f","_id":"@enigmatis/polaris-middlewares@1.3.3","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-cJBu7Q3U9ATnIszyfDRuHM8cXdtcX2YlUpsES598uWM/m/zlcbUHS+VYhJVWPF/hOuB7bs1Dfqy0LCLKzMsnCw==","shasum":"0d0d1b9863033ae4dccaf11516af0094b0149116","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.3.3.tgz","fileCount":32,"unpackedSize":71429,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXS8KCRA9TVsSAnZWagAAytQQAJjsu92EDKuZHMf4mfSp\nxgyHNUqxdhfofE76h4Byj+/Kjlf77bEAMHBa1/K5xUugWbUCLaI7zoTpjp16\nEXUac/Ss6e9F8rhKBuDe9aS3e52s1bsiqENvJV+6fN18JFwE8yddLasCdtC3\nXpO+9XrV1VJCV/zImiDe/Qlvsgx7DfzRiIZmEO8SyWRpKwYOABwfBO3uYZva\n4JTGnshtZbtrLupmiaBVDylfzT+j4JRK6DcR8+r4TvYuMNpJSCAOnsGkSgzu\nhlpLCAOa0RDuRCb7nopJyxFG5+x7NR8R1GJ8BgpYjoPRzFeB5IMVRuozXRzU\n151vbKdHe4nVOn7wPpfLVBhU0bsAO+opvy70jLAnP7rHfCurcavuLcOWnapr\nh77WTJOaysjRLqC9tf3/RINOrGTHYMujixQJgDehwNLjJFS8Rk+pgaNB2IiA\nlh2D31OUMFrFWY0TbgDK2vtTPGyNUrmueLFwheX9i1GwK3QzruF3wA7TbcIx\n+AKkOtqFaRX7cp7g7t2ro7G7v+op44JiIrCd2Vo79abb8MhH3uNIZKhkndDk\niY55FZlDsv/KJu6dlIi/7adzo7qIV+ESWsVeaqRbp0Y/Bsj+ICFlKMNJxRzk\nnl8Y40NGZJqLzgatLXg5s/IZPvFXXy2w+k0bXhSz+eC7DMNYfF4Z7jCnuWs6\nKUAn\r\n=Eqxb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzYJRa+0qC1SN4aukZTaZsMIrPDT6o5+S3wpja/o/UZwIhALjJMQzCZNJSUZkz/wQ1Cbv1ko8shvJob3SyFnh6KYU3"}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.3.3_1583165193787_0.68593409973396"},"_hasShrinkwrap":false},"1.3.4":{"name":"@enigmatis/polaris-middlewares","version":"1.3.4","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.0.1","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.1.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.1.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.2","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.8.3"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"84d8a18d363dbe0ba83d9f9e15aa67f72591a21f","_id":"@enigmatis/polaris-middlewares@1.3.4","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-O2la8igNqqRRw+MQoQcnt+ocVk2lPDdXkAU6xwtYmLXpK+RYc+gVz/PyvK2WQVP2RzlCL9sA8h3C87a9IDr8Jw==","shasum":"5708c3ad5990d74ec58eb0daf27d41c72ac55b16","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.3.4.tgz","fileCount":32,"unpackedSize":72471,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZe8tCRA9TVsSAnZWagAA9PQP/0l+wREjB24zAmXLDgbr\ninOm/H9dzjKgX/8Ub9mDhsw43HtafZkCNt04N7UuBgOS2IgAISqJAOVob6xx\nURJkH4qxf6uShhE9xO0FupH0/yUHO/TXkqAzs4eHQaunXrGcjQuX6kfT/kze\nf3yJJxgg7L/6hFXZGH1a2TVnx0ADf+mosN9r/lpwddl52yGNhKCKNGptOVf/\n42ybHvy4S8k7jBucH+0envN1mOxjei9MCe61368kIw98lmYx8iBbNaiE24Re\n9JQwH2BJJptiJg6ce36g9kpGk2v/TOSeRcgZswuXXI3TxuZxuuAZHjKrJ5z5\nhYx1UGp8HJH66u8xEixLkrpg29pvWucKNuondZAG2F++J4fZ+HgKMQNf6jHu\nzpOd+FPATLf9wpC7CwwVMYktTzM+dJhbI4PUSMVzyXv4H2IWfMDE/ArrGDrH\nkRudnmQmRa8UXhs9h5+AgFbZtt/RVvZic/ygtx0gxy0OxhXIjZjabHwmlakX\nd9tzAmAdzLERCXenFtmvPhvFDObxW3XZmezSJg1C0P5FG+q7NbAOxItVUxlq\nz69uSztT5Ht9lmYJK43TUnX5pjTnfRG1AaGrqz1hSaFgSCae57auR9KUVcPX\n4Xv7owLgQ65s2KXitYMAeJk1eFVVbwsXEGTO+HFPFIOR3KQLryS7nrq2yWyh\nJpcw\r\n=s7NC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5qIKgdQGD3CIley3sv2qlBYJ1yLdLSKZws0KVGE9UlAiEA/ovyAkTHKFDqOZONKFESoMb1Gv4wEM7hkLU4uKxhZDA="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.3.4_1583738669099_0.04137536129691144"},"_hasShrinkwrap":false},"1.3.5":{"name":"@enigmatis/polaris-middlewares","version":"1.3.5","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.0.1","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.1.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.1.0","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.2","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.0.1","typescript":"^3.8.3"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"ee8df187c285c13f71752e46efac438e3e9c4308","_id":"@enigmatis/polaris-middlewares@1.3.5","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-xnN13VkU9RRi9c4qv9aqCRfNqkT+UorJtWcO/u2jpWpnlSzwQHb/kpV9CfQ9ak7AE3ZQ39pBWdTLvF6AGlhkVw==","shasum":"753a4f234c43df3b0c5ffdbc4a55f30952297300","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.3.5.tgz","fileCount":32,"unpackedSize":73030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ2fPCRA9TVsSAnZWagAAbrUP/RFWcplVyMuWtcacqRQZ\nhe/hyYjQXz5j42dHIxJgOLzrnl9iqHVgPCkOfGKrLgWa9sLMyw3pwZx3fm9y\nmosLYMzGfjESUjZmW71Rs0TCanuLdlL5oLuLTWWlm5dmWA99UyiX/9mmMCQU\nyfHQTYbS1yfCMxODoaRZM8x6UaegjbQfmN3hOVY/erWfGE3tN6WLLZTew2c1\n9nhXrJUNRYNZqRvz92zmy+Swo3MTj03ZyQCHTw8klgAV1ECgxsIbNkMp8atP\nnfsv0rtJn1wNS08SOPO5NUo1BuSlQYlQ9o2tdlXG1pLwi+Khlaxf40GXfSlJ\n/79BssmnzXiB/sqioGUAqL2NBjsQqOJVfEBaOuik4DyCapiOhePk5XRI/851\n5h/wFYELnLW6WcAOr9zYYZIlQThMFvBQWyJuENy5eLtE/QTUqiMPI/jw3WYL\npQgjsunWjMG+5WH0fF+vUHemXnHqUecmZOku5mrCbS3QtJfJqC+/5S6MLYhi\n8pJX2yd9qzTg+URsPSWYR0tK3bElbrTqG44kiqTT0ERk5NE7nsbPAOWJCbTf\ncqayYk4IHWltMtyMqiVrwXhkBVlrkrQFaRQY/fEL59bGzu141f1EezLUSvxO\nUyjHUxriA7lnC9/RBJlTAIz0lxYPuB7MKgZCRdxF8Bn++Jooid5ksLz7eWq8\nvu7K\r\n=nSsV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1utPsmB5qAfZLJSRa0auPdoIwrP7I7ugTArXHJIYEPQIgGCCWlOjfuKyhtgZ1iNINJzv1f+UCqNCcYlPJblp2/Is="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.3.5_1583835086945_0.40154058556586114"},"_hasShrinkwrap":false},"1.4.0":{"name":"@enigmatis/polaris-middlewares","version":"1.4.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.0.1","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.4.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.3.1","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.2","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"78b2858b90630b32597cf89843639af134cee357","_id":"@enigmatis/polaris-middlewares@1.4.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-nXnW2RYP48gT8WBDErh7FtpPY2fwyy4zpSmLIYypSRfFN7UcY01zu+b1jh2DqXA8jl/hh7lgdQy2Tywf+Lmr6A==","shasum":"1b3e62ee31cbe85d26cfdc9e74c1a9ed79d06390","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.0.tgz","fileCount":44,"unpackedSize":82773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeiaM+CRA9TVsSAnZWagAAgEgP/0yaFBCI42j+U3jlD+70\naq0pzmrds47Sy8J8a1YZhgHOHtEOkmGUBcW7FkdDhqxFqrDdLYOzz1jRPG/P\nXRVu/HsO3GLta18vrdrf425i2sKaN5qSO1KILt9gw/tuy6Nz6kLqAc98xNUB\nQNBa3ZAQDo5h5rRBd2vfYsZVybWYoXWBB4dJyADGxs7Cz9Zu46F2R462eDuF\nBJF+Bw8An2oW602OyHzHajfGZ2bg4rGIuhMNCcem4rLM7U4hSAE65uvi2n+H\n8JAPKQRvFmKG6OGEp8n/GT4+U6ZkQ6wmRXOgpkX7xx9hZVvYhya7+WWHiFNT\nqYkFQyvMpifPdp5r1rCXDiNDeuV2o/03d0wY5lPDSac5FOBSP0lPCJ+0JlQp\ncUrAQD7w0H/UeXmcudgk/qkySJkVXpTKWCltiu50nW812JibnwUXWBXmIAmA\nPJX3ci8h5ncLRghnwZ70NGteD7YKj+v3rpvqe3qgWfmsh7KUj/WzKEyxqESV\no7veZH6RPUpEG4vfBP8pqr4e6CYRNYFPrnmCT+tPw5u1q3koo2KQw3WozE7H\n0F7ap0dm1sg9y90QQYoJo1tz7A8G6QZLLTO8SqBoR2ZRgwdS+LtZCmaB4O3r\nWRRayXsH65QtShzIttnT2p/dv6rDp+mY56fYgbr1mIcf3jwDycBxX3gDxHxW\n4Ivj\r\n=+Dyz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp+lzPz5r8eHgtokVgzadmoY0QxScKZfdIRF0jqg5tmQIhAIwuWpZbpa0r4rUjsd6kmT4C4qUEKCnO7WCVYa69OqEQ"}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.0_1586078526253_0.9218507160201157"},"_hasShrinkwrap":false},"1.4.1":{"name":"@enigmatis/polaris-middlewares","version":"1.4.1","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.4.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.3.4","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.2","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"6e0903aac48fcdf4ebc40ea21e95a4682e018f35","_id":"@enigmatis/polaris-middlewares@1.4.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zL73VbeX9yE2LE+pZ7pJhNJ6wyui6EV+YqFycZqa0OXG1omj3Mho4zkoa7J34cNV8sfIDQQeFpXSa00m1xs5Iw==","shasum":"e4c47a53a02d20bd21d87d899246fe5c9e824c7e","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.1.tgz","fileCount":41,"unpackedSize":81881,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenpMxCRA9TVsSAnZWagAAWnUP/0X3weDJO2bPp6b/xgHN\nBV848+yy3AKsw82fkd7jfzQK8fj7SeO9jn0z4n+WvyC4saMgwQ5hvscxvu5a\n19Sh4JPGtyCtOnvj2pPWT+LuNcOZtSOqoePuXbHV6+FJLTkxc+nC/6I5BBxE\nBJMKTlGZu9TGp+2oSxteI7dMBIpaoqqQ8RHfCcSytqSEGk4s4h4xq08gXEjH\nRtq68FOo1+r4yjBwrzkUEODz5W7jGlZHAQMU9rStD8C64QCL+iPzicUxkF+5\naU8gzKkcksP+j8sdZKWKRDUdBOaANSgdtDMg+FqqFl5DSIPiu+8NVv4jPXUl\n1yEajJoRjXhrD7ViUWstkBYA0HPmfQAQdqIT+ycP/zKs6uSdOjDjUHmeIrd9\njVAO6XgvAyAuRydKezSPOMKudAfElf+VNd887TstJaO4VZDy0VOzh7gkvkCa\nIb4wqYz95WIGbTz6e/pDxvIPGBFKinKvFSVS3xrzKOnXXMY6lXEQ1zRy0A9K\njM+X3/3t54WAPN8ghsg/yphLksURCoOm6r8WXu7ajhf3l7ey4sxVbyGxc7vE\nLrfIoNJONOijou/Zq/T/nMKs1GKiherb3NgBECVdUHW3Q9NEMyYHozFYfLCE\nlPnI6JIjVeq2XmdKClBIO42epCTxSsv+5ST5WZ0qRHtB6H2aiu7Kz2N/IWUR\nj0A7\r\n=ZiBY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdaeRievZy0vWYBtSYTT/YGjipaFAfERkjPTeVrXc/3AIgaF0VcwF0LOslIsGo/EB4cEsqttZK1g+avTsgTrc5nIo="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.1_1587450672833_0.16579235328989772"},"_hasShrinkwrap":false},"1.4.2":{"name":"@enigmatis/polaris-middlewares","version":"1.4.2","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.4.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.3.4","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.2","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"a9d440778934e954ac62e8271d6f2d48ee06aae9","_id":"@enigmatis/polaris-middlewares@1.4.2","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-diBwKp/y9eOJFH6qx+rFjaa8hwzXvdt4zuqQ/o0pN2RITZcFQVz+95uVuw/Kcg6ZCYOgQV9/Uka4mlH1V4aEsA==","shasum":"330bb1e91b30a3e265f9b728be28180e5894f23f","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.2.tgz","fileCount":41,"unpackedSize":82949,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepnr+CRA9TVsSAnZWagAAJ7kP/AqaW9kULHJ2YnwVvjie\nvpslIdGwm7ftJOv7DYKc13rO3YuxCAHGUavAAijhgsez2fiKeiVR8LTmV3nA\n3qb0CKP9aONTghC59amUn0GbAqLh+5ilTjzIx9XikeVmyjg+QA3hVeQh7jRj\n5Z8r8p8OypcIbem5uooB51Wx40Wjc+CeaAaWYas5nDKjbQVt49T2bfYAXQwV\nnAG+qwYlcwwUufPzpRj5rLjaA99yNzftOgZk+oZ4zzbruP53tu2n0rQMrXjH\n4h1RNEkP2moPUceda0F8IHYq1j99ja9RDeZ0/MfytE1+MgybB6Ta9GHH8Ie9\nl+pLJJhUUAa1kGKvrWzP49jiYX6Hveu2tma/B5AZnBOMVjdkakc73xe920La\net7J8N1mhrLrnTqaH++64Ei4ZnDU3CwBKevrgVCPXRCS2EXG00i6lPQoQzCL\nf3Yl5taxx0B4l/Opsg8OB/8O8qrUcIxIslsr6S/kiPIyj5+b047KV7/fh+qQ\nvXKZcNqKDVxWNW5No0OwsZB9xr1FEdd++4mG13yEXDhIqqYqJF0AY0U/ajmC\nsmJGfGF1RVy/jaf+zQPGr+WXMAy1xP3S36A5ecKM98jP66BPQrTbfRClSmEv\nCLyifEhyIZURYfBclTfG03+V7R0tDysCagaDvlSQcnAsrkpBts7bOJDlyjNJ\nczEE\r\n=0BjY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHe1oqMbshhzdDUrvGSrFOBk2EO3ADOo+twNzOaShQvoAiBY0U4yQb42Azn7e88WLGDkuqiX/QppP0zzmFtb5gStng=="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.2_1587968765569_0.6640585067032918"},"_hasShrinkwrap":false},"1.4.3":{"name":"@enigmatis/polaris-middlewares","version":"1.4.3","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.4.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.3.4","@semantic-release/changelog":"^3.0.6","@semantic-release/git":"latest","@types/jest":"^24.0.23","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^24.9.0","prettier":"^1.19.1","rimraf":"^3.0.2","travis-deploy-once":"^5.0.11","ts-jest":"^24.2.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"37011caa9c585161556f0d954ca30b3bc8396511","_id":"@enigmatis/polaris-middlewares@1.4.3","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-v/UNdzSLLOVZC9cb1HId8hmzl1DIkOIFMpZL5wOXN5hCS5FJbmAvFSue+cD0oL+YfUZYxj58mALdoomzeGWQ0Q==","shasum":"8bda529682d7b19072052fc7adedde831262d8dd","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.3.tgz","fileCount":41,"unpackedSize":83586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqtSmCRA9TVsSAnZWagAAQqEP+wVeOz4f/f3FuR3SgDZ0\n/191/OxpaMao/kJRRmJkEvX+eW7cNrcbcZEWmA2EwY5oZOOoQioNDkovjAzi\nobP6bJuUHtw2jHIpfWmyWBzwsB27PWi4I3RL2N0OZZgpSxox5Mza4o1fYtna\nLrw+dc45NHqWjTYsSMUKs6chRNXHK1qUyJuOKbAfDS6rst3J2JRaaEcYobLq\nTOO/OnUoSLcJ69vN47ZTRr1Nnd6toBAEHc8in6nXklUFhsuKrjz+H3QdW+RD\n1eHACL3XluLWHfpy1w7SYSyC/p2ptG6NcZeOhyEgV0iGOnNx4TLNvffQdzOy\nGBRA4JDrUP3Nt7pj9ArWt3DKO2PSCidI6oxDIBomw+yXswsmvMbbx/XcEHqB\nuJGrNQge2Uc004VoDk4rcQoSqQl3swoK8LbEoUDJyse0pdg7ZHDauNg2VKHB\n9As3nLj8z2Od5xTt5YMhofzmCvXpzqVwshxIdBXpg5anQNMoA6fSCEUyb1xX\n2x4hcrt8Aq/e8JAMXqAL04Fkv0G84XFiB80hdedM+59w8mRQYNQgL77rTHRF\naG2af3HOg1EEXJraUzlb46MbJqy+FN6yL6z6MOpU5zkrZ89ChRKbypUAebbM\nsE+0dyHSX6vd3CW4EMUsK2ZYZ/wq8Cj4TbV5fkMqZLtSuDpQ4oxfkT6lcWzI\nyyCT\r\n=dyoU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2SRwPJqUJl9qGK8wARUuS0mdNddwZ4ku3J++KOusGLAIgcqSRJeZLdGaKYN5s/kYJ/9uGLRhRYrdCIu5Cfr846Co="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.3_1588253861728_0.9068894067806401"},"_hasShrinkwrap":false},"1.4.4":{"name":"@enigmatis/polaris-middlewares","version":"1.4.4","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.4.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.3.4","@semantic-release/changelog":"^5.0.1","@semantic-release/git":"^9.0.0","@types/jest":"^25.2.1","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^25.5.4","prettier":"^1.19.1","semantic-release":"^17.0.7","rimraf":"^3.0.2","ts-jest":"^25.4.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"1f24ec6cda1be4df32db37b4cfdd9309b2397199","_id":"@enigmatis/polaris-middlewares@1.4.4","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-l2jZxYXyKVAm8ovDiRXNfI8Kg5gujhg4rf64srg2hrzSLlp8eMofjP+Mmpn0Y4kZBjt2w2L1BZgpPGaw5Mol6w==","shasum":"dce0fecf7f5e30f2ee4a76bcd434f674fda47877","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.4.tgz","fileCount":76,"unpackedSize":361217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerpqBCRA9TVsSAnZWagAAMUEQAIWStEM01Rb64AH1U+1D\nwL5KN3bECJq7GKPce9pxYqNBAbRtLiHTgebFBYxArvt+KOiq2pOGBqfiYvVH\nojJy0UqW941ur08H/y3rvJcEmlvTSHSJrgZADHkjfxf30lKYuJpS71AcHGvw\nQt9QQPERkry4RNefCZrzaggU6i/zBpN6ShhowkBEKYcuGx1MFAN4vS2B/oYE\neuPBHuOsvqPZFlF3MetDsgveh/0Du5Y9fFMj6X6inUXtsZo13pH7fAOKTOyV\neh1lkcfXHfXETiAOo3NMjImoxdBqbS6VomV0zD9uOq8d6hQZZg5fWKqwwdWs\nh9294KtzUojXNe7BSrQVT3tWSsUZLxPJbVm3+fB2P/ymDd2nPZ1TZKRGJA/Y\nyXSNbunEkvMaTleTI8ZTzw0jtKk34HVQ66lnIBxChPeMWIXRtgmtjoE0D6Vy\nC9XFzx9x3J0LkN8XyME1LVJ9Xd1GQuo/4XGcrXdpl47gLd+8ww2knXTIxtoR\ndVrUNMz9fe7oi4X2tbysOFVhvUdQVscwXSihKqm7kt3GoUeDks1mzSHeu6vz\n+x0HXmw4h/hIuKi+m7NpjXGipk6mVdv1FmAYktuXjh0d1BQgXojG2fYhhmZO\nOEnnAArB2FrhsOafTC43nmN7BLp3SRUdOfktCJsXbI5oU+2rJc62bsE9GXNt\nN0+x\r\n=u8RJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9Svdj59b8JAr9Gt03g80x+jQFLBucvMbz8RBEHjMncwIgBoI/vdWmHgj8i172oASLpypNvYfx6QiilXzgJA5HDTs="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.4_1588501120542_0.42121740507929495"},"_hasShrinkwrap":false},"1.4.5":{"name":"@enigmatis/polaris-middlewares","version":"1.4.5","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.4.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.3.4","@semantic-release/changelog":"^5.0.1","@semantic-release/git":"^9.0.0","@types/jest":"^25.2.1","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^25.5.4","prettier":"^1.19.1","semantic-release":"^17.0.7","rimraf":"^3.0.2","ts-jest":"^25.4.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"e1a304216263bc2c9bf669b0d54c58d9db4db286","_id":"@enigmatis/polaris-middlewares@1.4.5","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-L2tFjBTJ1t+K+RBTOeiGNl8JdHS9jU9JNhD46SWEySNukM+xW6R2pzfwyzv37aUCcifPbIEa9tSGoFxD4UkjxQ==","shasum":"bd7b3a6c9f0dbf05af63772605ce4ec0d1a570bf","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.5.tgz","fileCount":76,"unpackedSize":361887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3lXeCRA9TVsSAnZWagAAw8UP/3g8Tdjd0o/527TkYCbM\nJQ+E8o7DThRAEv1Tg2JiQC2tF/chj3EKjQpXeufo8bPTZ2A1/uo9FG8zuLmE\nXAvMQ7APJ/PmWnK7SZCYFwxysgPtXOoJJGobC6KIvkBs5n80lvHd09thp2HS\n9glfcUV7pnRoTbFlFBt1QUUFB491TSnRo+rUqYDqSeOT4MBlCFg9oKOU3QG/\n/TK1NS9W3zePJTycY/Q6Rml3M/XsKTIGNznQegFGWzf8CVFsfL6/wX85/Olz\nOsbCTtkoaqZApQzU5skya1eY5GWmrnWknWUdBlC0CEk4pp9hHXAcrgH/aX8O\nMdY8wPfeRU4LNMOWLkkGMOSSG8mAKSrHSk8jWRxuBycU07cRs2wZ58x2ajY3\noGJnnUJnsNSCGyZ7ZXGGU5eFai4/JGMCevJfDXFYGYdtRiihCfXR8hM5OfR4\nkTbqOSGac/rzk+mnHSnbJXXuCzQYqJ66PyDj7FrGxpzrPKoY5Q5Nayg+YaWq\nBGqCecDVokG0JEhQMpUK6MWFiFiF0JsQaPvc9ZM/D9Xus3gJGVkg3+EVQY+x\nqBEW5a8Y2h96ZGUQ5nz758O6XjT2D9p64ClHbzSFxvjlzMmuxXmY/iKAqIOu\nUj/rQJk8zOTHD9LuHrk4qa778hHhaT6AkR9k9da/Py8i39jmrHjffpzMBnJI\n6KNg\r\n=mS7a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCHxw3Ld4OWRymFobNk1sM+A71e5YlQZ4LVLuu0ekC/eYCIQCJeq0R4xbjNybg0DXzYoRFUbXlgt30WgaEMOg+6orVDQ=="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.5_1591629277696_0.0354777156309356"},"_hasShrinkwrap":false},"1.4.6":{"name":"@enigmatis/polaris-middlewares","version":"1.4.6","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.4.1","@enigmatis/polaris-graphql-logger":"^1.4.1","@enigmatis/polaris-typeorm":"^2.3.5","@semantic-release/changelog":"^5.0.1","@semantic-release/git":"^9.0.0","@types/jest":"^25.2.1","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^25.5.4","prettier":"^1.19.1","semantic-release":"^17.0.7","rimraf":"^3.0.2","ts-jest":"^25.4.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"4605381489a6c585a90d266369dafbcf0537b450","_id":"@enigmatis/polaris-middlewares@1.4.6","_nodeVersion":"12.18.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nasu2ye3qYgeLCfSOy/vwJYFvpuwd4D3uqTM68/I9TblMvebtgmLqtRMIl7MRgoq6VK1LkYZy9AiyfFGjqHIMg==","shasum":"13ba12bb62fd369da4dcf0afa1e8b3790536bb73","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.6.tgz","fileCount":76,"unpackedSize":362274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBHtwCRA9TVsSAnZWagAAH9sP+wQRnZy+evyJz2yqwK4+\nTYADRMRRZVcNbtSXw2QpRQXmj2ernUfOgesgl6vE2h3wN+zddlrxYeZYPUgI\nJ+AnWcPwhIaYsC1ysIwETJJZute/1KwGT+oOzJJcYqPJeD2fT9xuNY6BPJe4\n+SvxoZAzZ3Lcji+Svjpn9IF3xOfxHu9FPoTXZtirldCutCCaCfcqjL5H+XvZ\nohehdzkTS5kzb5NRhsTtn66o9ReD65MEPvo8WgH1e+Dp1DdfYkKy7AxDX5J/\nJGhvosNrBJBOkM54oHEOEqAYxDtYSFcc+87BpBIjvcpIie6f0zyrBZF3LNYp\ns4S4mVmvUxwTnTukZebY1bPuCp2yqALxH5qr36jVLMQWMT+2nLfUGFJ7aypQ\nBxAmJSIdr11M+ukUL/scx9iihBqzXq5x3I52q+QclkYwVag5PD2uXKfiux8+\nslytE9crAzKyyBbQXmw3XeaMg5NQgpg3AzI9IT/AM0unzTlIjoVtfc5L6TQl\nQDkcTxYKJuN/EkyN0W6ItSHdwb5OyCpS8iHnhjijq/VBn1O8tdQOtSN3NUrQ\nwnQhGXzbZ7KIRIFknIEHFf5U8fedmOslp9eHZsGHXtRnpSSZjOlid2a0vV8A\nLOqTxCYh/aIGWKit4308E4ZBtrb8g9z26dJiQ5srotxik854E/EDQiRxw4dB\n1lQI\r\n=Hkiq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxoiEc7D/C3NNEVfhuksAgwLu+vIsDqB0R6vCpFGeY2gIgNRHBaWKHSs20QNa2l3cenMUh9CdipGTUT3qRgCp7G0Q="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.6_1594129257661_0.17576648649599158"},"_hasShrinkwrap":false},"1.4.7":{"name":"@enigmatis/polaris-middlewares","version":"1.4.7","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.4.4","@enigmatis/polaris-graphql-logger":"^1.4.2","@enigmatis/polaris-typeorm":"^2.3.5","@semantic-release/changelog":"^5.0.1","@semantic-release/git":"^9.0.0","@types/jest":"^26.0.4","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^26.1.0","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.1.2","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.6"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"2ba8992442055813c4fb7a6ece5ef02a88f29b34","_id":"@enigmatis/polaris-middlewares@1.4.7","_nodeVersion":"12.18.2","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Oy8CiZQtLYeeySb6xRusKGvYKCAsK4Z1Gm7eiayX9mQl24cg81WT/J7dWaj1qkSZQPwoRKyWz25aHof4fjkYPg==","shasum":"7ea7bf07ac6fcb9d882cb190cdbd7d41dd606991","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.7.tgz","fileCount":76,"unpackedSize":366141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDFyCCRA9TVsSAnZWagAA4n4P/28em7NeleEG9MaNgEZ3\nsH7VK8VDqAilR/Ba7AUOGwqVvA9hzoy2Gm6qMjY/pGOFMfhoh0H/KLiaQ7bs\ncU+tPPYNvynz424h+KKfsxQ2A+njW45m8okPwEgRxnXM1Tj98b0F64zUL0dB\noxiS//exgjLJRRJ2JjpakRdhMSK5F1ChS3dVegNhQa8O/J/if4cVBZQed+sl\n+my8E6LSC3UEnYU+4XYXxHS5Au+opFz5M0PilEESXQp6lmQp7ykccJqtc94h\nv6dIAW+huPy1hf/8N1cXSDfJBX6mvF3W6tcZhJcxrU7+FWQutDNmLlNm7V73\nRKpxIXPBwN7X6uGygjWjvpQIH5WZDQTl0HWV+oVHk100W+KhRcgZ3+8+hxfm\noF1MJ95UVO94VvZJX7inRVo+m/osWYVmzpJkCi+h1VPLQFJxK0KnBaGhNE/X\nRSGsoLm89/eyZCBA6jpf06144o7yOtGkPksec33BzgHJzJFrVlIDSIgUXTyP\n4UIA+KA0sfvq5ussjlDoK4sVxJnwr+Sh1mOSVmREgAehtnXKpEglHhIIgedY\nmt5CnrY4tFOAYDVZkBz1C5oBM2aKf/7/c5eM2NrujaWkQ8CMcbkF/QWnuAL0\nNyw31LVjTX+EHBVFCaIjYeh//uomsshwgrpaXQdt0AejEGfZRH1BaFkZs4wy\nVAiV\r\n=psMi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1sD3W9kAJpiBbpY7dQ2Ycfa3oRsnzMnZvQXZdDr+pYAiEAw1EAaOdqD9xT5od+FAb4KqaHIWM28dlOVJaMdWzb75c="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.7_1594645633930_0.2560123317735645"},"_hasShrinkwrap":false},"1.4.9":{"name":"@enigmatis/polaris-middlewares","version":"1.4.9","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","semantic-release":"semantic-release","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"],"prepare":["@semantic-release/changelog","@semantic-release/npm",{"path":"@semantic-release/git","assets":["package.json","package-lock.json","CHANGELOG.md"],"message":"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"}]},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@enigmatis/polaris-common":"^1.5.0","@enigmatis/polaris-graphql-logger":"^1.4.2","@enigmatis/polaris-typeorm":"^2.3.9","@semantic-release/changelog":"^5.0.1","@semantic-release/git":"^9.0.0","@types/jest":"^26.0.4","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","husky":"^3.1.0","jest":"^26.1.0","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.1.2","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.6"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run lint:fix"}},"gitHead":"6d9e4a77c00dcbf118123dc4f539c95cb4386258","_id":"@enigmatis/polaris-middlewares@1.4.9","_nodeVersion":"10.20.1","_npmVersion":"lerna/3.22.1/node@v10.20.1+x64 (win32)","dist":{"integrity":"sha512-p7Ibw4gYuoeeRIsSXm9pcr9O9I3koEbRqejqyBjfac4yzaSFusvF4t+F37ThpzuyzK2nlh6fY2oM78A7ORXuAQ==","shasum":"adec3ac21abb91fd33b4cd86076d63ff73529ed0","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.9.tgz","fileCount":41,"unpackedSize":88883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfL+ShCRA9TVsSAnZWagAAk8AP/jB/DGZhtv/uSifAZd6W\nxzQOlOXYLgvUGjTAZrs8/Zo3Im2mksDeUpaEMj4vWbhiGXZHKLseLm9OIFxb\ny9n8VUoUn2Ygt7iHon7pjjQR2n3ZvwMsupmwqeKNe1eB17s94Ktc3wMLYpfE\ncpj0RwREo0+pQhbvk4cgKl/8MaocDEsjVKnTHQm9yJ9vtUeu2vwdIBp4HksE\nt7w3qes1aJP8NMcbIuJsGvplWdB7O3p87kAQImULBzEVlG2ZeJiFRu5YhD1p\n3h3mWMQp+fT7E6XqUgp+S1HTAaRD4xLPVJ8K41Uue39tGFdQ/Mn7QytHNWLo\ng8QQlhsr2aVIY7un6Z5d7+pMIkiivCcU10HiCA2n4bHMm2NWTFwEEic+IEcX\nMHKQSgt4Jzm244tpjNwnORw6YYiz/5BJYxVWRm3BOfOY9EjYEcag6QPrye9q\n/JmTV8bkcbZeOWFZOKLhEd63hdT3tKtP2CB1c/xO1favhWjgsvPGYoyFr7mX\newhezx4QWuD2rW8sOejUoW0O4honcKHcXTVPCHg9hV6RHrniZ4xQOF0JoLnZ\nOq8vkza8mgGqra/12TVnQJmnLnIymZVFawgV2JY5UcB1Ks4se8O7zlq6pgWo\nCpho8gl40Xf6PuXe4n2p8yzqbJ8ol1ktq3LDcWs5Gos3H5vp0cvNpxeRg1R5\nOP3M\r\n=4Klw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfILu9kG3TWZ8oS56zptDg5XYYixjsHhkz2ti+YAnHzgIgI8ZnDyivVlboUsekAOtXOJINrK9euXLJYg3GywzdCsI="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"yarinvak","email":"yarinvak@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.9_1596974241486_0.36581378168030176"},"_hasShrinkwrap":false},"1.4.13":{"name":"@enigmatis/polaris-middlewares","version":"1.4.13","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.5.4","@enigmatis/polaris-graphql-logger":"^1.4.2","@enigmatis/polaris-typeorm":"^2.3.13","@types/jest":"^26.0.4","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.1.0","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.1.2","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.6"},"gitHead":"786fed826fddd27e32f4ca246f30beaee60333c7","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.13","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-QuBMILa9pqhTabKjthlPH3VHgm5T2iYLYirZ1O/Jv+JuePEnP7u/bvTPMHMrpaka/mHdIR2ZWOLTtShd3kdeIA==","shasum":"5dd533cc804a47302c1a05e2a3ad78caa9e9db24","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.13.tgz","fileCount":41,"unpackedSize":88135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfM7VOCRA9TVsSAnZWagAAeb4P+QA9oh8joLc/mABr6Tj/\n42ku9L2SYbj21W2zNxUqLl8fYlElkAX95lEgq3AVfG/LzGJuejWUBYhhCQT6\nLiWayWalUdEQ/Wz2M4wX5WA8XD4gO8zTMsApz7DZtzZPUTse8PNoP2amXOr3\n4UiVkyQW3CuiSpIgaJXgy0/390vHVefktwYYS0jk2ix+NSQuxYnTdCrslpVg\nQlf0WfJ6e3NagHm4rDAYXGUWQQXPKav1om9t1XdK3fMIqdXtmjCayxxJYuTY\nVd35dz/SOftavcPPGminK1bkScH2Dn7Loi75iKA7syMsv3Og/QNZ7XeyrxpV\nLvTr9XONW4fcG5mfGgdFCHpnYXkjSUNjTVnB3o7Dg4w98UBk8CuO/bLZCNxI\n2gREzTeuMeidy3QW8JZ70SwTSPwLMFcVWw+ogElkUdoc93b1CQTpxlOD8TA0\nEKcjyKuwslbXzH4QNRoBDmrwm66brID5VfB5RiGd6HcXfTVOe4B8YX5ylaIy\nA+ct5191DDfhOaO4BCro2zLZoQFVJRq47UeuC5Z0W+6OL/48S+jS8zhGJt+o\nBUhUgNv6ErqwJFPxAiIC6DVnogYAhUGWseSIgob7TeljHU17hbpqIYfC+Nrz\n8f8BqPu5qRhbM8BbtJfePOU25pCIfB75sDO+F3VUY/twB22wx5waxMtK2bdh\n0zrf\r\n=KqRz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID2bgbcMYtRpqfl3OKAvfkYZwdHoJD+kyFQ7LLrV5j8BAiEA6V1fJOKg/PRyGZE8rMXr1kdwQGu4WHm5PDsT96VK3eg="}]},"maintainers":[{"name":"bikov95","email":"bikov95@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.13_1597224270306_0.7774527186916251"},"_hasShrinkwrap":false},"1.4.14":{"name":"@enigmatis/polaris-middlewares","version":"1.4.14","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.5.4","@enigmatis/polaris-graphql-logger":"^1.4.2","@enigmatis/polaris-typeorm":"^2.3.13","@types/jest":"^26.0.4","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.1.0","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.1.2","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.6"},"gitHead":"e7826c66edd46cb897a6f45a0d3c684dafaccc67","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.14","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-F4F7bRcSyB3O6V68L2QIa/G8Ea5egp6xcM6ylTmuek2vO9A6OdhjlD1/k5yuvnzOK/t1sVYwZ4W13W02/BsBEQ==","shasum":"c66c9904e3b3f1cd73bef68c6a1ce5edbb680170","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.14.tgz","fileCount":41,"unpackedSize":88456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOpScCRA9TVsSAnZWagAApncQAJanG1P6RKfmD8OictRL\nNsEeCnqNvd2CaChaZTtQJkmKYUive44MhGS2yyZubUP0cPb9OxaNhsTCGG8i\nZHcvy9nAOxToQFe+ikG/R65FmendubNnvx6xm60fo5AUFxTJdE6yz2UxuUxg\nWXVA0SZMEwGvriYjre0DRJIE51P7ZEsWjvpv/eVl3uUQX7ZP9ThW8D2fE8u4\n47a9Az0KwtqpTbC43r5b3PUxdRhiRlaRK73FDytGad85Kf8s6UWzFw04Ob1K\nQaDdotosuAZE4bktIsOWkdHyo5XE/m5ka7C3abQQtfj2epvGia90FwnNYuCv\nLKLyKFblGdROwX9hC1/LHao3AO9hCVmjH6NAwi7prMDG8O6cdIStmOKNFvJj\nxxR3z2s7Nv/8lcpq4JN+ae226GPSSJVwo9QXucqHDF59RcDfhJUPJxlq3STX\n2PKvC3XTP/Ozggf/zgJubZ2AzBPBSZlnxw/d/wlifk4s0njnMjzrhITfh/qZ\nr6NzJS0Gh8Qk7TkzxjZU9r7vUlR7F2SA1yIR4ZN4fKKvOfxLEhn46uNFMzRU\n5rugABYrG6ZU/oMglmaX3IEYzNT5j5KbKTYaVCJC5qp8NwjPJ36XqHs9QhiY\nLDJPD9KY22wcYxIP9CqN1p9/8FJCR4NjhCXlMs3B6vIP0aPMALY+qOrKzrrq\n3nwX\r\n=oU0f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8IlunL83VNUJU0eyu2959EdB/NPpqIa8i9Y/zGtkbWwIhAM8k/USlLP5SxhpC1xmWUHRhM1uw1rqtm0TwWBWSe83x"}]},"maintainers":[{"email":"bikov95@gmail.com","name":"bikov95"},{"email":"furmanmail@gmail.com","name":"drvoid"},{"email":"osher.sade@gmail.com","name":"osher-sade"},{"email":"yarinvak@gmail.com","name":"yarinvak"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.14_1597674652283_0.48277241330945553"},"_hasShrinkwrap":false},"1.4.15":{"name":"@enigmatis/polaris-middlewares","version":"1.4.15","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.5.4","@enigmatis/polaris-graphql-logger":"^2.0.0","@enigmatis/polaris-typeorm":"^2.3.14","@types/jest":"^26.0.4","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.1.0","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.1.2","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.6"},"gitHead":"086d406be977e6c3f77077aac0166eedeaa881d4","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.15","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-sxkw59P0HlpB1WDJ+pMXu1iXdwxdymEMzYP7Fr9C1BsA2sZlYxohNLY54tEp/Uj2rhkbW/MtMl0SxFkcDUzuxQ==","shasum":"dc66229fe5e6cbb849fbd18f69a6d73e2058fea3","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.15.tgz","fileCount":41,"unpackedSize":88694,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPONiCRA9TVsSAnZWagAAHB8P/AxlOi9SQTVzTG/YdWIf\nh4SD4eJ/5UqST5sa2g6o052+SYo14/+L5sU4qp212eYaKEFMQuYY4eqQL8Jl\np/5+gDSAqTdrySKU53VJmZEaqO068cYTcH7r6PGmrqZdfl5RsdX9uKhAyQQd\nkQXxfHGP3n6bGErp+We6AgBg15aYjLwfXDzzOB+YsPT7Y2g5xRzrdQijS372\nDvpxSFgjGfVcf5A06KCNifI/7BTU3RSMHnWv56Gn2KXTrQGSoa/oXS22+qSL\nQuDMTyApdPPvh5NgM+ODXjCMpH8+lauDqpbq/5z4eQ0sHyp5uoeFMTvxlySp\nRgVAS4BXrr7JL3YCu83oCC4ToiwOtoqLLSaspIIaxg0gs2FrXv+XyJDzSXmp\nKDnWPJ1a6JGLL9gbPAhyr7YSz8Pb4tC/aL9TwlXaNL40BQ47m8ztgxTQs3R2\nnrWsw/UetOgPb9UZ8pCbi1ipcRUC8SQHGBCgMJ22+AWNbdcQrrHmZJsWGclA\n5f3trfpb6TDJGsHTUHfkGhSvUJjiyiUge9ZdKQRutRfGpdKSmzQ89HOLjGfi\nL9Kl6tHxswl4IAxGTNt4HdS5EXrtwsg7oJD0FKVwZ42+jeoeGxTPggSvz8fa\n+47h5QjdEgTqJqHjJbFZoE+lTiJGOwf76HAEsKQYF/KQX8yTbFbkS9V7ZWvT\nV7RR\r\n=+BbB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgptxXvoIzyGiRiHappgWx0ZMQqigxgmN/s1cRDFzYWAIhALD8vK/6U3Q6ar6JnWljcnE5ntJmSpPi+BcdAKN9Tiz3"}]},"maintainers":[{"email":"bikov95@gmail.com","name":"bikov95"},{"email":"furmanmail@gmail.com","name":"drvoid"},{"email":"osher.sade@gmail.com","name":"osher-sade"},{"email":"yarinvak@gmail.com","name":"yarinvak"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.15_1597825890223_0.14338456791441145"},"_hasShrinkwrap":false},"1.4.16":{"name":"@enigmatis/polaris-middlewares","version":"1.4.16","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.5.4","@enigmatis/polaris-graphql-logger":"^2.0.0","@enigmatis/polaris-typeorm":"^2.3.15","@types/jest":"^26.0.4","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.1.0","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.1.2","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.6"},"gitHead":"a95b57aa8205b79c6a65c7364d24a31dd965466c","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.16","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-mA1OKMAZmbzI5xGBfO2qUX6x8yXdzaczOaLtuMGwXmcVqJ2ENQj52vPuOialskDUsLsTDo/Ivt3M7NNZxz2YpA==","shasum":"7647f26043d9e638afd299f0ba650bc300e40693","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.16.tgz","fileCount":41,"unpackedSize":88932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR1BMCRA9TVsSAnZWagAAyUgP/ifJS9n2z0fH87+YiVrg\nw1YBzB0TsnAaC1gN0n6i4lFtw7YLbY9jcgjL4g7HXqchoUi+1lJfnCRaUynH\nwZTIT33szQNqGLJOyKcV+VFrU1PbRszIBqCeqHDi6iSilwqdcIw9IVP+Jw3I\nxq5V6HeCScZuw1+hOKGE2hOPhumnqjreNJVHANX57+B/T9vwzrWu1drgTDsg\nHq/KlcbsFQY2g++wddGRvTnGsW6QhU4S28MSApkW62BmZ/uW7gThQlYJaiNP\npjwsB80Ixmb7nFxk9qKM2sx3li5Lq5NuGrQ53u33yeTcCoq0A+XOjhr3Hmn0\n9bt8rCAst5+H7mXKvqCGfR1Edl98B6pgrlxdAbRWu150/bPG6DWEt7hHz26c\nPB9gwQiREg9l/4zHysvDABseLTvMOrjWLoUwqPPftkTT0iRUoK0Qt6f9ww2D\nnpYblRJkUNbZZYD312X0aHnxZf0i+A3gyaRi4URmoAHXF95elfTrI461qTYN\nM43ek3v0aBpYGyGDqL/ZVjLXfaD7wyfnhSJRLUDinmMSbLXfTu1EdOX6DTGv\n/th08DGE7DIcTyWfNow0gseBhhsHsvGVduwD4eFY3Yw1jnXnAbW0uBhU4LcN\ni45/PxR/V+YoPokTjo7oMupec6FbxBvZFkG1HwpY3K5PEE/gIGiV2AbP5cQu\nsQw5\r\n=eYTA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDe2HOpb6vESrC6gkyQJkcJ+rJUKoP42T97BC8tNW49VgIgV7eblNNmzSJxMEqwiUg+ncH7COqV/wN2jiYVTGA5cqI="}]},"maintainers":[{"email":"bikov95@gmail.com","name":"bikov95"},{"email":"furmanmail@gmail.com","name":"drvoid"},{"email":"osher.sade@gmail.com","name":"osher-sade"},{"email":"yarinvak@gmail.com","name":"yarinvak"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.16_1598509131552_0.8001127989878154"},"_hasShrinkwrap":false},"1.4.17":{"name":"@enigmatis/polaris-middlewares","version":"1.4.17","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.5.4","@enigmatis/polaris-graphql-logger":"^2.0.0","@enigmatis/polaris-typeorm":"^2.3.16","@types/jest":"^26.0.4","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.1.0","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.1.2","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.6"},"gitHead":"ce537e900030946c6887c3d92c9d172295b611e7","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.17","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-UEXWgB5VmsvHykjkS0D2A7bpO9cLYUigbHZ30Shm3wvprtOs0B6uHFJgUrXSFsGqVlgpspVo3ryoL8gka2EZPg==","shasum":"efd762323129ac88266350a87b6261dac9f31a30","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.17.tgz","fileCount":41,"unpackedSize":89476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTMAwCRA9TVsSAnZWagAABPMP+wZsBFchMIddIRmQBk8P\nKP29tnzxkHsTEJeU0PPoKLFr/IlBY2GeibKrEtTWXIZHBIU8u0Go5pWt3tzb\nA0+Q5bC8XHVlox4gg30O2jOLgO6VPZ4aDvKh8wyqsWZQ/vJQgl5vjOMl8zBL\nYmhs0W+Iftsa0xZZzOHAjba5Jo4jIQV4xUoWMf5p6r3L21nP0ZthJYsK3ZoY\n3DqfAt8umCL+HAYbM9hUAMJRu5+wOhdWF0TVqXhRasV81C8joO7wU6wYwjHI\nCErPcdljBDLcUTCsGp5/nL0MWAfOiOIucZVge7ctRqAuKStPZkRy92sjGU5o\n2WlvQpYv/cnvkNPsDbj28xqM3c9PB6k1JwpcnCxA/ShGAnuYPiCtgO1g/sWK\nu4/jr9PBneU7h0xCnK8gOQl5VYRsXZslDO2BGRBZNVMlsmXA+XgtyvI3TVwn\nbQM5jq+wVTxaE8QE4X+LG3guhwDk2MpZ3Z1iYbzhjXoIwn7IwOkOfF0/KJ7z\nBX8CD91Zef/Ft9jIG2rhXxvNJHKqiF3wyk2GjhaycOoyIGGX88gkWj64rJ2x\nBayZ3p/ED3BMFwCJNlMR5tGLOsq6hmN2rgKquF9feRSyOo4ssiWmb//twjJV\nxrqm+6N5cfSiVx7vT/gyz/yAXOuuFiB5T9Jeb/CCUyXx/A0pVEs55D7iRbuD\na6oT\r\n=gdvz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLQelQO5WtxI+/Yke7xzBwnBXLoQ+ReIrrQVEb9XLr9gIhAOv3Pn8LWBqGAmI3EhWQh0Pq5pube43yZm0ilNVlRjS+"}]},"maintainers":[{"email":"bikov95@gmail.com","name":"bikov95"},{"email":"furmanmail@gmail.com","name":"drvoid"},{"email":"osher.sade@gmail.com","name":"osher-sade"},{"email":"yarinvak@gmail.com","name":"yarinvak"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.17_1598865456239_0.07305932233391288"},"_hasShrinkwrap":false},"1.4.18":{"name":"@enigmatis/polaris-middlewares","version":"1.4.18","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.5.4","@enigmatis/polaris-graphql-logger":"^2.0.1","@enigmatis/polaris-typeorm":"^2.3.17","@types/jest":"^26.0.4","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.1.0","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.1.2","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.6"},"gitHead":"ab89f032a9ecd5825ec3b5afd410d4a6b3f20870","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.18","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-9Dgiox16WQABk9OZ45tdEK19GDDSEjQhJxGxjCP9y+buXIYyvZ9ayMPWjzBgOZ0AElket0yXd8Os6h4XDknrQQ==","shasum":"c345a7c52972887e3624bd2b1eca04489e94513c","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.18.tgz","fileCount":41,"unpackedSize":89714,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT6CPCRA9TVsSAnZWagAA5QYP/3eRLYcUXAgeEXv0DKkq\nW41F2qHDKQxgBcsuziMEfEd2FbYFzDQZ03RAcjU8yIYUVlzpEQ9aN/KBQQoe\nI47PTVt4LvhoZs/MDgctObTuzBCqWGTvpLN2LM2IGLeZUnw8xI1POBjx9t1f\nrhuQWQ1JiF0NC9F3mdvPTLmivjUff5VijozMhG1IQTWfAerthgx/uEVIz9Hv\nmJ4y/7mOfAhmlboDWeUj8Hxb8ysy737h5SaOExGUwcjsnjRW5N8zVpcXRDs7\nRzTkz9NdcCAacYB5Romvv2lHJKfmgIdUmflWyJxU7+N2ut9HI4sDPrSxcIAc\nhIqcsN+7/MYdatImHHvsS6cyrtlJ8VxhLOw0vQ1mGnM3PREhzL1psSXttS1g\nDiNlgYDgT2eN3yGLGM8dU/VKar+1x7IKt9X3GcXTVc90x3l++mgJtvXRN6x2\n+M3r0Ll2OprN2fDd7Tb3aq4KvI/VSpMYCmTfoLtW9kfXTJEHKhJIE/474+Do\ng0SgXa4t6BrSgEacjGllN/IME/+KoIeKGQ6yoOoLEbFRiswqz0TQ3+j7Jkl6\nfX43Z1Ls1wkrpIGsF10OTZ/LdN3CgPsV6ego7KcQqTykBCT/C6ugZbJdN1bX\n9C2R19Y3QJnAfwhgMp1ETpKnjAsR71/TCgUDU6R+uRAr/lhAdPzERs9zLSqg\nX+OL\r\n=zwmP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGuuLQlYbYjk/55HoHT313KQspoOM/e0a8a6wlKWr+8KAiB/mMoelj4OarI9esRfN1QwBV/e7MWuef40KvddChaarg=="}]},"maintainers":[{"email":"bikov95@gmail.com","name":"bikov95"},{"email":"furmanmail@gmail.com","name":"drvoid"},{"email":"osher.sade@gmail.com","name":"osher-sade"},{"email":"yarinvak@gmail.com","name":"yarinvak"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.18_1599053966525_0.5733879623324625"},"_hasShrinkwrap":false},"1.4.19":{"name":"@enigmatis/polaris-middlewares","version":"1.4.19","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.5.4","@enigmatis/polaris-graphql-logger":"^2.0.1","@enigmatis/polaris-typeorm":"^2.3.18","@types/jest":"^26.0.4","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.1.0","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.1.2","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.6"},"gitHead":"a11f5aabbb2abe37f3fdce2225800a93303ecac8","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.19","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-mG00VrFztFxowbmcjURWvGsV3Oxq6pAD1+81oa2Ql4jOWrHBC697m+vC26L/FZqs/LG6tEJWep3jQHTLcBrs/A==","shasum":"3ec9bee1693ea6a1aeab735e8cb917e8511423f6","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.19.tgz","fileCount":41,"unpackedSize":89952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVN1ECRA9TVsSAnZWagAAiOoP/i9L82hmxqzPisIrf0XP\nUPBPXdhIvwAfkXEiGg1iAdbYaLWejR7Sm9aHLgYOR5HBEBzk4z0L/Qw1lXYS\n+VxWx/hwxj3EIa7TMeJq5L8HuSd+wYj+uDpFjvZ4xoKNlun+9rcmo9ctBMZd\nlI0vegKN0sMnjv2fkEixoXPcInSA4o9IIf+amghFsmuxU2/LsK5+bQVzScGe\nVNVITSMoDVNvyKRGt6O+Z7bZ6RlBdfyz4bkGo1mdRWufhp9l51xEYM62/Hxs\nzAM090o1JT5DaXAUSiUvS7HWfirJnABYJFul0zcU2EwkTNvjSNVVJI90NNWc\nougvVK6jOhgbqiLfDiKbN4OFxTZn+QFky7L2+mLOzwV5hW5ONUNPvH6Eje7K\nxdC5T1EAKTrvjA7QCON6rwpjKzDj8F50z0tJrhtIoD9++FyDlgLQmuOIWXAN\nH14ettDeCokzX7h7OKkZmEKahwo3u/zI5CrSz/3EGXr/AhtX0ogwgrEPZ6wS\nFH0eHMwo94aGmBf4PeUisVWYWYrPceWNL8xop+sqqtoR3R2ZdeueshttER7d\nmPBOUCoSIf8g+fN+iCNEZZtVPVTkqexhpHyKhxdK3oNZnXXBw2HLJvXaXbg3\nFkhYwJtyyVRj4VRHyxR/QGzIhX9lzvXu2bpvjlt0upHfyVC36SabA/p0ijLU\naG+k\r\n=s2qh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdiMEgeYGDCd6A6LQuqVT1ctiB10CV/gCcZnMpnXeOJAiBjC4XOGzoWJxzDbTar+nMPUV3xZC1ech171FYf5Oz04A=="}]},"maintainers":[{"email":"furmanmail@gmail.com","name":"drvoid"},{"email":"osher.sade@gmail.com","name":"osher-sade"},{"email":"ron.katzzz@gmail.com","name":"ron-katz"},{"email":"yarinvak@gmail.com","name":"yarinvak"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.19_1599397188282_0.9287735703743134"},"_hasShrinkwrap":false},"1.4.20":{"name":"@enigmatis/polaris-middlewares","version":"1.4.20","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.5.5","@enigmatis/polaris-graphql-logger":"^2.0.2","@enigmatis/polaris-typeorm":"^2.3.19","@types/jest":"^26.0.13","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.7"},"gitHead":"8a3a16936f7afc4904bb7d9a99a5c7411cdd8072","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.20","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-0wRMUZXdtoRmNZJb3n5LR2PcD2BtI/hB+a/SEm3QfioA0XtlXvwmR8wcW/ISynhTP73+ct6QSxdp8Mm3BDhXmA==","shasum":"dce6542cd4d88bf47feb3cbf75f2de5414f4bead","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.20.tgz","fileCount":41,"unpackedSize":90350,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVdo8CRA9TVsSAnZWagAAfYAP/jzYps4ZMdUKni4I+6lz\n32XeU5hM+zWnuiP0kBmRhzIs7lqkEYY5MfB1oDVBdvTV2jhlKHy6skXsNYvH\n2ltrtyeySlCfG6q4VlJ7FJ/1dq7Bvtv+XS5znkDz//afk3DjJw3n5V5m1o8W\nwzwPdfEe5Ihzq8xVeQlAyOZJGokB/IQQncGgpH4YAfj473tlC/7rEHd0m+l1\nTfaqXaG064moippbMbW5+C5EYuHFL33Lnb0FQLdE4d4KpFAACESLDHTeGxb/\nc0pHiUb2lMl6RBc/DNa1iTmBQ88qdjiUv1JGLXdkAGklQxnaW2d33RLLEpAA\nWr2z7OqG6qq0tui460NsCLGcniv0K+fQrTuC9jmpsDMW+pAlsxhaKrxw1XKV\n3twnTrLCnkfDMOqgzfqc1HjuvslBI7sYWzYAWkFK6Xrb3W7tf997JEReEmjG\n8MHPqknnMws8WopEbe0aHJF/e+5QMNOEMXZh6qSOiijAqMQ+PnolyP/F+Oev\ncKW/A6Taow3xPVF9urX7N1uaZHxQBsIAs+xqjI/2j326MjbEQp5JzpQRD4Nz\nOeD2LXaCTrqqtNgwJQDyggrZs6/NpWy+K4FrUwEBr4jLeSuu7K8DTNBElmFJ\nlefhHR6NNBOlRC2X9y5kfYHetNC/621Iu/nuhJyJprFjrSb1R0yS82IUuBLU\nnlSF\r\n=jU0w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMqdYNUGdkZVMbstNNxUa1gTNJyCLgoPT+aaZUj+LGUwIhANXKn2NY/9dLx+ZTeOPKDjb0HfPGlUoqz1pTKUCyg4JP"}]},"maintainers":[{"email":"furmanmail@gmail.com","name":"drvoid"},{"email":"osher.sade@gmail.com","name":"osher-sade"},{"email":"ron.katzzz@gmail.com","name":"ron-katz"},{"email":"yarinvak@gmail.com","name":"yarinvak"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.20_1599461947643_0.27186261966294145"},"_hasShrinkwrap":false},"1.4.21":{"name":"@enigmatis/polaris-middlewares","version":"1.4.21","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.6.0","@enigmatis/polaris-graphql-logger":"^2.0.3","@enigmatis/polaris-typeorm":"^2.3.20","@types/jest":"^26.0.13","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.7"},"gitHead":"de71bbfd449fd1d7eea447ccfb42db3d12ae6799","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.21","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-QlcCbSS8+IzdESXVOFcI/OQQARN0Po9p02d2HJf4Lpz3JclUUTxVDQLJoI30JeT1s5RdgG/PehK60QShFWgdWA==","shasum":"54a380b3c39c1a751382bced2de381795a5511ad","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.21.tgz","fileCount":41,"unpackedSize":90588,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWL3VCRA9TVsSAnZWagAAUPYP/jxPZj+klvUGZJsBzYsm\nQ70DQG2lsEH2nCJtVJEUI6IEhZRPNGsVrNRYM3A4uMDfllH/T/TklB9eq4dn\n1CfixiH2sUdfVbmGVGSpPuWbKsy77agIojSmzHZA6AbnEJAVctQuAow/+fKa\ne1TnS1DiSU30W16J8UFDyGdJh7d1t3I4ltXZJStiQZZM0l2hsiVHMwM+S7Ys\nYKntIKaq9d2VdLdygHRspJvSOM0SACIOe4T+HNepkAOaGOpZnKEfR4DauXH9\nOAJUo+fW7Qn0u2GHjPGB35/ZYYUVz94WOfSvvoDUuEjJOtQ+JCDCgR7pExJV\ntPacPGmQmUHiNlaks+y7oq3qJc3rq5sSe4Esdv1P5C8S23JF3mcJkLYLk0hI\n330YkjIwoIoJc+AKjsD+sjPvtnqm9OeccZn9bxkNeOjlnXCkwlwp1nwzuyut\nfLrauU+iWTxEQeebE3bijMyrYoIqQxpGw/lnlxVEBZ0mbYK71z8v8u/loeT/\nxdrnDpkA/9wIvjOMoLzulCoinaCqbbBU6EjWiIiXR4FxqKz3hfyzKRhiqMxp\nZ280qpauVSrthnJxjATUQmBWIooprhw2MUUvj43nXmmI+APYlPwzWTr9i/LZ\n/5kblLAxcbmzVnUIIX2mIMO05Zs3bqV0fY1fLG8tmp28TZIombdSAQnEbjW3\nRxDa\r\n=69X9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPSA/eN3bNGnaj+dIReANnEyAjM/kg8ZxmliaLtBONnAIhALO4dRcXtW9fFzqn4ywrFQbCxeWclMCjnffnSSzGl2Hl"}]},"maintainers":[{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.21_1599651284730_0.07670592590376524"},"_hasShrinkwrap":false},"1.4.22":{"name":"@enigmatis/polaris-middlewares","version":"1.4.22","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.6.0","@enigmatis/polaris-graphql-logger":"^2.0.3","@enigmatis/polaris-typeorm":"^2.3.20","@types/jest":"^26.0.13","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.7"},"gitHead":"85700c7794c729f2d3ea6e924e7f53f55e6d1137","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.22","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-kkaZtkNl8n0e/y1zQthMDd/vrmAaBX2In5Rvmo5TgHam8ysprsOn26kJNEpJVd8YsMknua/hCwr4H/rFIDX9Cg==","shasum":"41b8a0c7315fa8c0a8eba737f928ac061f431470","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.22.tgz","fileCount":41,"unpackedSize":90989,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWiWWCRA9TVsSAnZWagAA0zwQAJEkJV72YXix9NgXuW8E\nNjY4hJqtXwIIFYxSWfrLbX99dPWVkJ1/abTTPVc1zWOm6iiPUnjMvJFi9VfQ\nGqAIcMk27kbMYlgTqnxQdljgFxS/2kpUcmAikgAIybFTNmbPoUZ1vSyNkD0c\nA9Tp51bPte5JDwjZviV6knIVrduA/cG9QLT8oMBi39/oUxc862vm4iovEDe9\nx9y8Iw30SSnp5lQ+0wO2jL/UpDc7jnvzGPD+0R2hXUdViw/AH5AK9Hz1UGv3\n34PyjhzmvSjObqu3e/JkGocpEX6HQeYp1EXL6FZUYDDwKNzdvFoZYHrE4Xph\nYeuGedcwUY5mxDlETPzusyQTgYN6OG6+D5RM+VAk1Pn/PVpSTqB9Q42LCQMM\nziYKkPKQFlMsq60wiF3Mp8ChMEjbJbQ7guaRugVSRoGDAOWnt0COMvaJufIf\nk6jVeLhczaxtXenI+jgg+bvG/Zy01TUnQtsT7e31DEV5A0Fqrvmr0dR5o1iv\n1YHzekAZTq5zyHmh1IE8hy2EKWhHIBgmofC21EUk/gpCZprM+iN26XhyrskF\nkoBoB2upmmJx4nX94LCSP7l/52YplWS8AwcUzHqC4SRwt5DCEH8e/8U1UNHY\n1QNygokB8Ca9YIxAP14l43sV18FnN/XX/FjZmVyb+hrmEtMQ8waiMf2z7P7F\nLItf\r\n=WA1r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOYYn4RaSXj5yWnq2ajuDhGYzvnM7w5tFenCfQus6sAQIgNkJqdxiNEjma44BYiJhAN50OahOUISlzjj248VQ5bFM="}]},"maintainers":[{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.22_1599743381961_0.6822141841455811"},"_hasShrinkwrap":false},"1.4.23":{"name":"@enigmatis/polaris-middlewares","version":"1.4.23","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"^0.6.8","graphql":"^14.5.8"},"devDependencies":{"@enigmatis/polaris-common":"^1.6.0","@enigmatis/polaris-graphql-logger":"^2.0.3","@enigmatis/polaris-typeorm":"^2.3.20","@types/jest":"^26.0.13","apollo-server-plugin-base":"^0.6.8","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^1.19.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.9.7"},"gitHead":"a405b2ba8094d4409ac5832a15eed92aeadb502d","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.23","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-rwuPuD09gNTBMaHmlNE0eE80PYgO5rrbfsCfbvd5o8RCaBOlJr3Q7Nkc98KInl2Uvb+N+6zNPV2gLSWPEDRyWA==","shasum":"f2acc7fc06a0ba604669a642f4314755f8a0b111","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.23.tgz","fileCount":41,"unpackedSize":91472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYJjfCRA9TVsSAnZWagAAk8IQAJpf83h7/SF/AjnNyZxU\ndBuIAObvuQW1UTc9gMHJqbFDITdq+dk8IlVk/lsIJqsFhY6/rRNHmzKOZLF+\nIqfizAQslqUUWQQ/oGG7JdO/HR0rxoiIY3Cz74bMa79VtOMKEI+KmLSUDOwc\nS7aHjePyT/L6pz2+3qP2i01fjS7r8dY9AgtIjTEXEe1i2SiOOXVl3Nx844+p\nvYL/Tp3FJFhVMU16Iwq7CdTqPlO+VHILlD+llxCOut+U+O3a3IRSZ18P4iqQ\n69+vAx3wSWpUjkdbDaCOKbP8M5P30kCq06EWIlLrcE2PP7vuHES8yIrznERx\nUjaQcO1pQreiOD0lrhsB6wV/SozYmYpcDKgrtbmP6D+bHF4nq8qTUc76qOJe\nvEhRJmTjqpmVOzQRB+0kbcVz2qlcBWbrYFJpPRrfYFL5DPooFeJw65TqOxkZ\nF4sMTracVACQcixF1PtfjvmijG2BukPJn+POdkajTcxwv1YE5ivMuHa4chbf\nuM65l2FQyU5Qv5M24OUSY1f3/tLuxzIF2ns59awuKjRI1CSEs+PRpYZnNCkK\nCzHtOy4ir7zxheotOK/gEKC8leDXk2sV4fQtpJmh0hwCGSFl7MlW1kXVfecU\nnjwLhlr86br4fcUpUIco6eYMbNRUPi+Dch0eMmUwevrYUydWuMG0ul1eZ4uf\nxKlV\r\n=0EaO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEfwcz0jKoLNKAuesK3X9gGNQ2BE3Qlac0Q6RgZZ4AhPAiEAp+ltyeUFhrehAvQRdq7ov0pCl1iqGhhUTSOKc7Y0GFE="}]},"maintainers":[{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.23_1600166110427_0.34509864880898444"},"_hasShrinkwrap":false},"1.4.24":{"name":"@enigmatis/polaris-middlewares","version":"1.4.24","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@enigmatis/polaris-common":"^1.6.1","@enigmatis/polaris-graphql-logger":"^2.0.4","@enigmatis/polaris-typeorm":"^2.3.21","@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"d5eeba7014fbe3199e04f9d52ba4f3b064741dde","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.4.24","_nodeVersion":"12.18.4","_npmVersion":"lerna/3.22.1/node@v12.18.4+x64 (linux)","dist":{"integrity":"sha512-nM5YC2hiypHTF4m4eY7U2Pwzh1aw4JVXBjWN2veYJDkfo8Rb8nq7Hsg01unqPilGnwMq3NFufZ6rg5kXxuBZyg==","shasum":"9097390c28b6452305c830dfd4ec4e3917f92c62","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.4.24.tgz","fileCount":41,"unpackedSize":91934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaJ/6CRA9TVsSAnZWagAAcFsP/1ja9Eohc3Ug96qJvC5U\nI0XBSUBjNyYBwH0k7CQIUz54irM7xSToVVGdnBlvL4B6zyGA82HTzqQmEDXL\n4z2/tYbZAVNFD4zJ03dEDyld5GK4Xl7WJ9NYMda/HqmA/WtbIy7EMNfnolHK\nas2BfyZ3aFS/B7zVXPYZU0eaITv8KnHZP5D8l/Y5LR6wZHX1I1gbA5sAifr0\nCsFPTwp56DvBDuntt13oLteLTmMqmDVxi95F6L2T8vJvWmk7fuu4M+x7DIed\nTziefmWkh4awAoYr3CYQkuj1EDoj8iiWCXVVf1dve1xd8u0vA6ye0Ds3Xu0b\n73lIT1MHocA7+RVt/FqFgOxGSxMA0ntcpgTPLSTdf4gBAwHVR7KX7/glkBsj\ntHnYjcQq34NwlATz7wYlYN8S/D7nQULhKxI52vkOzp3RDHWnA80Kgd9nKSTA\nHdCthE5dPtdEvwytLc8SaEI4pknsy+We8fvclkt60VlieM7XrUWbDp/W0x9Y\n54H9l3sx9C22TKIxhAEg9l0ZTD52UEbBSJR2B/H47/GSpvD5r6j5eJJ8v3fH\nes4hGu62ST/VGENOPjUybz5gM3/71F09DMCAnLbcMknJxDFvqBUjandHJRhu\nQcsv/Cnju20ppr2RRzTD8QDQZuOuygqu/md5nYdgE+B5QxoyfW8WmJrazdOL\n4dHn\r\n=tReW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDr6Y7ezh7R1dJJ6TLUESeEMPJZgJ4LkxEXpO+TLea8KAiAQUPmCGJDezot44+dZcgL67JLOcqR73wNJlo2ELiMUyQ=="}]},"maintainers":[{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"osher-sade","email":"osher.sade@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.4.24_1600692218322_0.6221122353892128"},"_hasShrinkwrap":false},"1.5.0":{"name":"@enigmatis/polaris-middlewares","version":"1.5.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@enigmatis/polaris-common":"^1.7.0","@enigmatis/polaris-graphql-logger":"^2.1.0","@enigmatis/polaris-typeorm":"^2.4.0","@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"938d939971cb6fc4659ba13935581ff9c1e1a5b5","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.5.0","_nodeVersion":"12.19.0","_npmVersion":"lerna/3.22.1/node@v12.19.0+x64 (linux)","dist":{"integrity":"sha512-w2LUmeUlS0TxTmVcqcyNgkJIMlrW2T3TSTvtpiaYK86IOX0zK+FG8JBHmSELwRja3MJWp8I2neJ8nNRUmxldKA==","shasum":"d45fb60c98780ae97ba125568128bfb8192df5bc","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.5.0.tgz","fileCount":44,"unpackedSize":97447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkAAYCRA9TVsSAnZWagAAlssP/0nMKIo/k7NAYFwBFN35\nS+jF6hF/YXRGsOWA6+MSmud+STNgFhThGXn9FMGruzo0as6hzmpBZ5UJP3Rs\nbeOSqcxHw5EK2/e231glgvqawfg8NXvo1NOYCihhjjdGtB4rPWHxPxojk3c1\nZhH19QPnhsjlHyq7/LHR+4YAPwWRkZMEvGhkt2SFdEXgkPRLtZB0yYSUyeCB\n31fnlCEfuvimEgrxBP4hK0xbJHdbMp8dFFAV80bDlFso9lk8EBannMxENzTM\nQ/XEhGL+hTd11Cr+yR9fOoO8HkJ6gF1Rs6dKg19w4vEVrgg4PsvkcotKT8rc\nifNwP/Ew0ff8e6CScrM3y5p4TTUSTiomBMzmEssyhzjTsb1BzJo8kwT/exxG\nijoAQhTG/ZktyCk8vixIZJcr6bTdN9sUlpIDLtCNIscY4qR0YF5vzSn9pGih\ndPMIpNwWZM5wPf2TliFn3Jc7mG7Bt0np4d3n7s14R3+qfXd/AMwf+5pSVode\nNzEDziHQunP1oIz/q2Zh4RyGD9aM26Fs3bqKhQK+1obz+nsjhBAaggKMpBW+\nnm1UUigSkKaapkHIWDTR5kHW+rMEWbZHVWrYE+dGp6tMEUNi0L5NiC9OlJzg\nIJltL6G0WdINnEHmKSrqzHWyORjLiB2JNzB4u9drwbgsCAHefQJRWXrJVxb5\niP/8\r\n=8raA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkcTRiukvkPbqNl/YgChRfZi83etspUbjAbS61xjAGawIhAN5I3tGAXPFYI4/ycMBsfv5PbSFyQlSJTOV6OZYROr/0"}]},"maintainers":[{"name":"enigmatis324","email":"enigmatis324@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.5.0_1603272727615_0.5638306196819527"},"_hasShrinkwrap":false},"1.6.0":{"name":"@enigmatis/polaris-middlewares","version":"1.6.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@enigmatis/polaris-common":"^1.8.0","@enigmatis/polaris-graphql-logger":"^2.2.0","@enigmatis/polaris-typeorm":"^2.5.0","@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"a96aab378fad6118dac9be8fb5a7125996e8adba","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.6.0","_nodeVersion":"12.19.0","_npmVersion":"lerna/3.22.1/node@v12.19.0+x64 (linux)","dist":{"integrity":"sha512-QF9VnnlPCatB+O9pGG4OcAZ2KCK3tXDr1kjsnNIRE77EULYei9eGjl7hGBzMMijeErFDd6xxdrM7dn0IsWoiDA==","shasum":"bde60260c0f6ed170eb08dc6ad8c357d28719239","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.6.0.tgz","fileCount":53,"unpackedSize":103750,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflYaQCRA9TVsSAnZWagAANHEP/3TOAY0cJoSVEhclGVPa\nQ4WyXGI+znwBqlF5xG7uJpNW6vYhlahnelsO961qLLqM4Q8qKNexpnAdkVWJ\nIS08eeaXOrlz1UK7CZQrCQ3s3diq/Ok3OPviJL8kVrcNJB+WF+coWxdJoPgz\nxjM5MLzMt/xjF1hKAJa44s6qBoRtcNV2epQLXRNA/5sdbe6l+EluBoxfIlfh\nIyA2K+E6mEXG3dSztPDLHrmQbDxMEx5BSdoivtZXf5sX+uGI80pp/AIdMb3I\n+QL2RLTW6E8pnTLbhyxHOP17ZSALzhvQhZQ6Je9wKoKA5Az/qBHI1bE2XuBy\niEybfucOZJ6dZjCEDfY/UrZuRhRc4QYu/GlVWdmdswDWS3we5BuQB0X3HYq6\nBouIcxFpaCjcFzRm3fWqJ6mvjr7M+/AD1yW7Qom4og3IZB6iaPjfxBpsdCpv\nt2vL3xuPWIvnY4KSHaAmsMy5Knp32JX2mME1zOl/IgjUXf8i6zVil//CdCPS\nrOKSF+94/fchK5ntSlE6S/q9EkrunZCZgNtTmW9cqeCFW+TbjtMAneM0UWUE\nfN5tKbq+50Iiqb8c6ZhO+VlCuxfARaCJ5Hh1wzTQ3yrHdLtJ62/6/fOakDJR\ngHsBy7QhcLSQ0B0cdaGJNP1hPIuiXtjSAfCh0K8MnTcrm4j8pqBBDoZLIW1s\nCcUe\r\n=Ywyc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd+ttehWGZbP/W94YUVhmpdz7kG+PT89X1KxzboGflFQIgaLKC4dCS4Nq2kHhRS+vdmm9xi1u0BJ4IqJ5WINobgHo="}]},"maintainers":[{"name":"enigmatis324","email":"enigmatis324@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.6.0_1603634832417_0.2646527685199338"},"_hasShrinkwrap":false},"1.6.1":{"name":"@enigmatis/polaris-middlewares","version":"1.6.1","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@enigmatis/polaris-common":"^1.8.0","@enigmatis/polaris-graphql-logger":"^2.2.0","@enigmatis/polaris-typeorm":"^2.5.1","@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"3089ede2866b99dffe042d48ffab91cd5d258fb7","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.6.1","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.22.1/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-7dHC58nVp8d3l0hsruk34olzObijlw+PK7csQPuGJkxvN4lgiGNyKZr9w6YiAqw8VZ+jyUbgIdHle8PXjc5UBw==","shasum":"a07f555fe6d6105f7d541d904113e61e8812e77c","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.6.1.tgz","fileCount":53,"unpackedSize":103985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmTCBCRA9TVsSAnZWagAAXWQP/1AEUfCWhtY0qyHPBA6A\n7HC94UgMiEDWTD4JesefeXE9XhORp5rmPzamY/cyouUDLymnLcUMgmX+h29j\nlhLBYIfNbdvzbkf6OR47v8y0CV14T4ynzYJ4KsSJfDNmHLFXlrP4tn8P7tES\nYgEarzLvXeqzoILoX+R3vtBk/JpFOX9WhvAAI/GoE6e3quf3VYUwG00PB+H5\n51TQemEmf62/yJrZ6eFv/Z1+O07wP84FuRRag0pLSwwoxq6Y+5fBBxUp2LsT\nKxmpIR3kYAGaQeh3FWAaSiWv5tTMxe6a33+iAA/wu8/OIYbdOkljVC3cNYtK\nVmRIY/TMGUA5jhbPfihM0KRP35mo8gpBMliWrcSZnUZ2vjt9ciF553Ae+r9L\njLDnt9Heo+uvgpXs+pa2FNW1A7NBPTkb3bfFcJsckwAGXGrRs3mPWe2zEBNP\nSqvpoiV4dxJg7jjgKxq3/T2DDJNRBJvMrZqWOxxvYyYrHu481JpFEMUrujHf\nuTWkqK0IIUVN2+OiaAgRVijWsWHY6IaiwDg3ajnBDuJXFq2Mn/RppdbAQkjR\nUW1zaifOT1URAqBI5fbQdAsRdoVvYwUzK2Ys0r6u24P3cK/8pdB6znxdnUiU\nx3djjce3hLioomdDZYyAKs0wj2LfP9CianJYBTLJmMzNhQwLaTgj1fVBMH+t\nldyg\r\n=UU3g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRWcUURAgUbA0V5842LJ5gO67wECynEvJrAyjHbimasAiBMKpW3cFwWfKKqtfsnHGCZcs3DYlHadG8PRHVn7aL86A=="}]},"maintainers":[{"name":"enigmatis324","email":"enigmatis324@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.6.1_1603874944607_0.08484567372634966"},"_hasShrinkwrap":false},"1.6.2":{"name":"@enigmatis/polaris-middlewares","version":"1.6.2","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@enigmatis/polaris-common":"^1.8.1","@enigmatis/polaris-graphql-logger":"^2.2.1","@enigmatis/polaris-typeorm":"^2.5.2","@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"48275eb78cabf62638f10e3ecf7958cd69ec9798","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.6.2","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.22.1/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-2UZzD9tM8fVZj+mNur465VxR3hcyC2RzH2Dt9v8WPej1kDe6QGsfGgbcf8IodWJsaEEY4mmuSWR7IBUugjWWzg==","shasum":"2f94e8f932239640b34a8737fa48cde7fa2850bb","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.6.2.tgz","fileCount":53,"unpackedSize":104220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfosxVCRA9TVsSAnZWagAAVN0P/12rMm6taOZNeMhjXuDt\nDTdAzfkdPGaGqArownvZH7DA3J4WRYJIKXF35p8ZCZO3HoqiE429ScMTYp0X\nxQ+vWI/yUjqNN98lwQqbe0pJ93h016geXU4f2/N1wbFbE7Tu/dz2ouJ+clLx\ndyF8gs6GGQhzhYg6oHLJraLQLmllqsLwHYkhUWIoUpvUMEqlIep6pkJtNH1K\n5uTTQAvGTciyHbuvzbgMBYwRJkGpof0jmBQVo+9i2UwhpwCxFxszlNVUv2Vi\niV8OQPXSJH15x0GxjQclR180yhHxlOvAtl9ns6Ud2KBE6kNW2dZDJGT2uonr\nbLCPewx05NEXR8gIvW3N55btUUhd+DXDtfhkwHvaIsBWBwPTeu2tyje8RTkx\nML/t6SMKxPi1Je8ttn2JRmd5LgH7JXJoMmgRw4PoUvD0eLOKoPt9yCA0iUqo\nUWwEA1j1xQBkHvkLmBzhSY7t1woW5S7Ai4/6O6QqQZKLzZ+lEYSzVCWhE8nP\nFQQ2OqIbkQG+OuT0nFYMV6n+4zONMcl5Cg3kYtfwobiKGUjSBFEJkTDbz/f/\naz75h830FHxfmLY40g7ZdfWl2/Z6zxHlnSmd1iJ7R3mzTR9Gm1vAW1LhwWsD\nVCNRuyiiLVD3hkksUis9Zpx3ZWnpfESOsQ6zytE0emeyLqFIfrW0zntHuMZt\nnhU8\r\n=wysA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdpDJg1XKCHyNFK/3C5w0cA9wihtFFHDqtoCLYUsKGAAIgateQRfwzFoRAP0BXKIwUSOLcIthHFDgGyveyVQ9cxLg="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"enigmatis324","email":"enigmatis324@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.6.2_1604504660973_0.3017859479449718"},"_hasShrinkwrap":false},"1.6.3":{"name":"@enigmatis/polaris-middlewares","version":"1.6.3","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@enigmatis/polaris-common":"^1.8.2","@enigmatis/polaris-graphql-logger":"^2.2.2","@enigmatis/polaris-typeorm":"^2.5.3","@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"e9dc745877090d188ff70a861a110b94bf093f97","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.6.3","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.22.1/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-vDp87kjhwra+fmWCYEy6BKQwDXTTpWkYLnABGl/UvXx47iPvIYlEXtfBTUJkvle9cboo4RsWwcgBecfzygzUKQ==","shasum":"716e22cf19f7545dbbe89f5435476298242f7221","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.6.3.tgz","fileCount":56,"unpackedSize":108707,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqTLoCRA9TVsSAnZWagAAnKIP/RICG1BNxmsHawpRh2JV\n2DPRtyz2LA1nuRbTEJQuw+oD5jTS5zY5c9o3MwIqJr4Fd1RSXX8qyDQuydiD\nradTRSiGIouIBQqFxHrfsjoxLo9f8oe4+cwqcwCZUQ2Mfk//r3hWC6Z2bptr\nsWjT00JaR0hv/RmiW6ng1ggPTuC53CAUYs7xHk5lutXUMxXhXJpnd7g4mzKJ\nZ7ybcYKxLbthT+J5ZA6ZuVWThB5aF5eGfA4qT6gOlUrvNW3TR0EKBMdNuHn8\nCj+dgeYzOxydY/+Fu3kBGR+dwyKHoAH8PXrjPNSKv5IfjKrVUv3Zll+4nI1R\nBTYarQ/6mjEwO/fZePjxCMGNLAhxqs7Nl++zxvUPUcGswFqR/OqF19frkRR5\nPOg45Lg0VpALgGbHln3/wN04qEWt2PawUduttiQKEXwd5ox7yi7HBVb2W4q0\nkbwGyQXfXLd/Gz4dnm9+ZDefxuNW0KirmMr1eo2aksJdcrP7s0yNp2T0ztZz\nrD2mfiApXoG6B7HLKhSMab2AM6kO63aVFj6INZVF4F4OfbjOzjvmZ+DJgKNa\nigucExoxd1XlwnQOjunpbETO/fGSGoWkpcAxTKNB06aqDnpuid5jGIEU7M1r\nXzdJR6pCib9UEdZmVRaiYf30f+zfK9wuMy+3EKXdF9eHHCVjD+Ke2mnnVkjn\nRgtS\r\n=+hPy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnBPaV1uMf5KaKYWBR1jPla3Y/TIBgb6PnNYbfOLNC8AiEAtjpGteB2pyJdzIJ0ArNSexDYrXuUJtmeJSW12SdI/ZE="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"enigmatis324","email":"enigmatis324@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.6.3_1604924136096_0.3208149789853767"},"_hasShrinkwrap":false},"1.7.0":{"name":"@enigmatis/polaris-middlewares","version":"1.7.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-schema":"^1.4.3","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@enigmatis/polaris-common":"^1.9.0","@enigmatis/polaris-graphql-logger":"^2.3.0","@enigmatis/polaris-schema":"^1.5.0","@enigmatis/polaris-typeorm":"^2.6.0","@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"7cc0c7161382fbdfe8f6ff8620320fba54dc35f8","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.7.0","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-Zc/5JL3IhfivBzrpz5JBtUTj4b+yMCsETEv5Kr02DnpCWXq52WvgTGYZbHtICDmnzSJNAIdlzZnnPCGWHTQcOg==","shasum":"db9e758f0ed3a467376c8f87ac0fbd3bb66c0c11","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.7.0.tgz","fileCount":59,"unpackedSize":116542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxfTaCRA9TVsSAnZWagAAzQYP+gLP6zKfFf+v5YNddWFZ\nTFH5Xmd+u9voPMZDUoRhWh/t1Nr7kREq63sOyDM+6FWOScZ6PKtKU4eUwx2r\ng9cb5CI+UEUe6Zx2aT3dV5y8p0AADvQM6OLNU0ZpM42DDLbYHyLQa1Kuvo59\nvDx2Sj0vMXMtm5AGCcfXzjousHW4NcYsIsfb1Lx5AT5MsO2J7ZOFRZO1ue8J\nIqXjpEUSRxuAryO5sLvjGZrFfnsyWIp8I7lZlFvV7ysjgy7UDOUDwgsDu3PC\nUzyX9jcpbJnph6TXsdrMGTAPLNKYAJq8AVhhHQLKanD6k4D9Yk/je+R/085H\nxhCQ19NvUVqiO0jrdVLDhuw/wY1D9hkTXY6Lfc8ecsGs49K2mbVCAznYrXC0\nHRx/ezj2joINRpwxxR4UL9O7iCK941IMK83Q+FmnKsOXg0y82iIxselvY665\n3Hh/hf74+kN5WUTj19lnrGbxqSIgKlseSZ9kALtzRV5ZYxUj3XAMUSyTEQfC\npOp32lm45bl5pyFdMrN2kN6THhVFtc3GRCqNGgwygRbo+oxzwQsLCw9By5fO\niqil2ZyunHBBZfVo1vKIxvdXmQ44+3mYB0f4lq0MakJcCcCpA1/NUkmzHpsE\nEYW34z3kRFcPlOcVl+rP0FhD8obLeJHOrU7W5rZi+2FiKhbznAu/pvDwSCqs\nSIaJ\r\n=BVN9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFe7p3NcAbe4QDoAS8NTfNP9PIdA0825BKq6E3ZG78HOAiEAlLP7Ehjhj47yBv+3xQKc+txMevHcGINRnUObewtWUxQ="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"enigmatis324","email":"enigmatis324@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.7.0_1606808794356_0.24635391775888715"},"_hasShrinkwrap":false},"1.7.1":{"name":"@enigmatis/polaris-middlewares","version":"1.7.1","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-schema":"^1.4.3","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@enigmatis/polaris-common":"^1.9.1","@enigmatis/polaris-graphql-logger":"^2.3.1","@enigmatis/polaris-schema":"^1.5.1","@enigmatis/polaris-typeorm":"^2.6.1","@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"da78c1910d25d0eb2b0fe36a3bd7e11d620d2559","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.7.1","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-fF1aKVo/Bm5XwLHCdY+mA3OeggiZuN35a2eq8MofXfYrY8ZY1Ubq2fp3SU7wZS30QX8/zsaQcbUF8drpZhws5Q==","shasum":"7174895beb0cb3ad9372ada249e5b9b1b9814ad4","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.7.1.tgz","fileCount":59,"unpackedSize":116870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzJzwCRA9TVsSAnZWagAAp7wQAJ4EdtLZeNyL3DFMjBgu\n4cEo1t7IzwN17bjxdm9ja9xvMGm7Hs9ankLutG0PqrdDr2PZN7DlvlcYhZJA\n8HgoBTXumYzB/DcANKThlN/mIi2cCW8nxaU+hJmdckHn9b/o2ZI85+BIzzVj\n1aLdJ1HWWXYVj4iNfNz0myHhna//6zLVKh5WAgcYvcTA/NAtxeeACmxw/4Lu\n/0JD2rTeDO+VsiNgBUo1vX1a2DeMX6iyQe3Q13r3NG8bkS7M8HK4dXn6M3no\nwuE9tjdCXcjG01pjiofOORuvpADFfcX0z2wh3oXGNvfPhSt9M657PITG7H8Q\nTF0HdexbK/8CyjzzyHRBoaJ0EIfTCZFnIOCffKGUWU3KaCzMLsig5MyxHPco\npvebPiJjQUrIfLGRuLIwsbnNljRrKoik0u3VaY+OffXexb5yGm/uPJHfPnTO\nRqiTdGrIwL1La+H0R1mHVrt9H9eDlp2QOdykwn7jODWH4yQj9CEasTb2Sdtj\nRhd6UJX1dIUVTZgAw2fVSLbqlDb1lUpz7yQI31qENv3i/zoUylv3ODtRJotB\n4K/gyTx20k5TcpHmwLqYqhzPtYlI8wCTxLQemIJ3apIyJSapMHWEpPalqcU8\nzTa4VwFKaCeCrQJp4AACyq/uexNs6njcQmdjCcwN0iKWOlQkcsK/0V3QTk8B\nWDfJ\r\n=mAcU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCH2d/6+CDFe7oro5HH5bJkPA3v9XltLuoufq5vnNf0roCIF+icawoPPaiXL80oe+RdJhWV6cstAWimAJ0eWDgBsKM"}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"enigmatis324","email":"enigmatis324@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"yarinvak","email":"yarinvak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.7.1_1607245039639_0.32114830882101075"},"_hasShrinkwrap":false},"1.8.0":{"name":"@enigmatis/polaris-middlewares","version":"1.8.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-schema":"^1.4.3","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@enigmatis/polaris-common":"^1.10.0","@enigmatis/polaris-graphql-logger":"^2.3.2","@enigmatis/polaris-schema":"^1.5.2","@enigmatis/polaris-typeorm":"^2.7.0","@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"a69d7da4f14646b4b19464993da8eb5847021eee","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.8.0","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-JfcN47DwVjnWHTBbvCosv0CSouJt7WDtucH44LNW3Lj7LlruGC7vJTKhoQS/mptN6P4mj8qE+WEsfSm+u6HXyw==","shasum":"70995a649291130f4cbd1e9acb3c99734b4358a6","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.8.0.tgz","fileCount":59,"unpackedSize":118262,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9GRJCRA9TVsSAnZWagAATgAQAJpcnuz/GvIy9sqUVOY1\n5+nVA8lEyittuUZDCXk8pMgkFuAXmaAY4BvtwVfDnOfgKiuFRMUcJ827ARw2\n+LJt8IzasyPHaGGaZrAE1OcmsHhScNQ0VpepPl+a8P0fFjDvijeTZIPh0wTc\nGxhg/eB90Qu8QZ5DDmvjruzVY78H+hPNcy+daxcrZ7JFPEuw/0+hASAQHDxC\nhnvsjlmB0B57Ekha6wgZIcidcXK1I4fR21GhN1QFDG7wwUna/C+iimQlqFmA\n8AUQQoE0OFUSHvRrS5I7YWkwW8k6GBXpBxTCPHQiufE77IHz5jNgbmFjcIIx\npAHTTY78SR2uJZfuauT0+TpdI3D+OtbXUcHNSeEYoRTRZYYfegIKl5Uir9vc\nlf4BshtltcmwkU1uAfT9d8rhvJDfL9COrdiO0ttNLeFNZcfcw5lvocuYgzLj\nEerbJiiDPJFPJ4Y5Jyqz+qj8jQ3Oy4GauhzBfxBgMdxBQfsXM8Lr9vjGfxML\nRz04Jbj8bLpeIFu3+NX4XD3RVIRnFGWkRkzDQBvmGcAdwbfp6pKib58WBuQO\nMUUTG2hlWF/9goX0LHqSKTVaKDbm9Er1dBgmFV1oUVV+w8VO0ZnLLUMOq166\nqUTEnqH9a3W//B6jfumXbUEcEQEYvIjPkCjuNBajh7eG+C7ULIl4AgSbgjzM\n+lsd\r\n=WIRX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDx/5eaItqmzwTyPL8dN8XgAd7U3/dwyzco0IPrTKDDsgIgQfuNEB2jNEo+89fVf0utnznAkLHOqqHZ4GTRNeFb31Q="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.8.0_1609851976808_0.5432158979364643"},"_hasShrinkwrap":false},"1.8.0-snapshot.0":{"name":"@enigmatis/polaris-middlewares","version":"1.8.0-snapshot.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.10.0-snapshot.0","@enigmatis/polaris-graphql-logger":"^2.3.2-snapshot.0","@enigmatis/polaris-schema":"^1.5.2-snapshot.0","@enigmatis/polaris-typeorm":"^2.7.0-snapshot.0","graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"9300d5b0f602107789c7951aff52cdf79aba76db","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.8.0-snapshot.0","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-dpcaaNKA7/YVMb8oL2+2JLu2tL//cIv7xqIwcXGTwfAKVQz5yvIrZpKq2fe4xCLEtkxPPyk9sSMPLEsOqOnoMw==","shasum":"064faea2949cf1b533ec9c57398ecda79bc42c4d","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.8.0-snapshot.0.tgz","fileCount":56,"unpackedSize":118978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBEwSCRA9TVsSAnZWagAA2y4P/A8pOq+7qkBOaJrLAhBZ\n5Ce8q3IqO5GS1s+KFaoaYl8veBKu/3nGov5jL6xoEGz0lYAJ80AFTFEqbf8N\nqniZ5WtAttrBm1RJd8vltucMNASTUPltgcEab1tU2Njeh/J6B66NBagTV/os\ngKPD9LKWAJlxhSJfv0EZM3XiJtv3OfzVni3qoxgruV4bp+uU9px5dX/Vpsql\n52yAKkXmJNydXRDYPZ3uQw3wadKncqeMCl4mUfDrJ8d8aZxX37CI+g6pMElo\nel9oJuRWpU7/yJTqTGNv2ULCFnFnpVP2a2+iMOobjNdSh0RYbISn5n8L5yLV\niX+dU3RZeXPniKj3jDuD6mwC9K/zfnvjNuUwT5Wh0TiuP3vUCoCrQcUxz88f\n76NvRLJidWGuWOVf9c5RFGL+3ikW1YaDOh4E7HEfVPixr5Lw41oaL+oWoaF/\nDwDnMY4N4jyLoY+l4J/wxMaiBiW6aP1iV1AhXAGuxVnWkI6P/OXZJGNmN6Qd\n/w4trv30LzQUcGyI29WFhDww9SZCBf+MdPCLL7VZx91f4EEcS1JYibTVloTF\nGhcIMrZItX9A/2AcKoZwNC1Sekm5QSa0q0i7RZyjr1G6bc81ripHRXtnSHnZ\n26hl0En0wktlOuWZZpuVF/YhuzggCkRJFyxmadzQXLOr0J7uvvmQVEPCU6Jp\n8iCE\r\n=6ueI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmiYtjEEFwzPPIYRTc1+3Y7Wjfu56l6gWHbcu8obq/8AiEAl4pIhNMLwNa5VQq1hlUyl0nB5+0P0Ay6DgIUiJn9cZw="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.8.0-snapshot.0_1610894354452_0.20771632792777694"},"_hasShrinkwrap":false},"1.8.1-snapshot.0":{"name":"@enigmatis/polaris-middlewares","version":"1.8.1-snapshot.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.10.1-snapshot.0","@enigmatis/polaris-graphql-logger":"^2.3.3-snapshot.0","@enigmatis/polaris-schema":"^1.5.3-snapshot.0","@enigmatis/polaris-typeorm":"^2.7.1-snapshot.0","graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"a0a8403bbe7a0ef3fa0fb571cf7a9f433c26035a","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.8.1-snapshot.0","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-RbB73T7uUySm/TkmM0ajsH4flhrSbpXgQXWSu/hOTkoxUp/xM61eW11fCQZmENblMDQgpZD6O/zACFXULXarmA==","shasum":"ae40a07d0a7aaf7b4f4ca7a5ff8325e1e0d23ae7","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.8.1-snapshot.0.tgz","fileCount":56,"unpackedSize":119246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBFjACRA9TVsSAnZWagAAYNgP/0MOhjtnwzvV6Ih4pEuX\nsiXXbVGVb4n0h04ulSeTL2dOIZBy72g9urv9pBQLyL87f8ilwkk3+xNxISPa\nJukxbiWQkwDNiUGTDiGmVsLui0a4NlIk+pWBcf+1y35Cv0E0OD8dLsYtBUPe\nPEQEuFoOhkHeyVzPLmqDuNcE6v7fWFhDvBShIt6VAEBokF9qThNFzuH7+Cxq\nWFS1WtlN/caufxSCbpxfDNUqzKkLOlfwAgz9fqkJaj7t+7lNwvIN2H0pPFU6\nKtiFZCZzaGXS/7/L/UfrT0bvkFd4lJe5q9SdS23DmPNa6XbdvXKdTh9e/hsq\nna+SRBA/dnDaPmkcEyv58ujS1fgUOZMX+ORgGx5fPhO82+CIO2IgQp90xfLv\nHe0p5rX0/xWRU0hr4L46+AWqPJPNFMOqARAhmK3XjvBuRHwouwQQUHMjMc6Z\nlQKopEiI3xEio/PvzGZAIJr41WFtA6pbg7oKLikrDmPlMQ8+TybnQTGc4o6e\nG67h3TF3vOGl5seMQePSUU5kubS/L8q81VPJbn8JIsw5Z/9c9/k9D7gRIdt/\n/lD/pY6s/bDnjycP3Ys2swjv1aBYOnKE4cgIv4sfSvDJijAIxXN0dnA3Vj1m\n9r8Xmt9fCl6feEDefFCjcPFXmIZGPXbFGhjyFiDGwGCCXUW3Gg71YrQxuwFF\nKH0k\r\n=uwjY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG6NusKR05BIzb52nnl95AGlva2SLSuz2mc10aVxdZKmAiAZ8YoWcvIqhUHpoYu2AUsmDn8XP6mJZfZ3d5J27i9C2g=="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.8.1-snapshot.0_1610897600014_0.8477828335103035"},"_hasShrinkwrap":false},"1.8.1":{"name":"@enigmatis/polaris-middlewares","version":"1.8.1","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"@enigmatis/polaris-common":"^1.0.9","@enigmatis/polaris-graphql-logger":"^1.2.0","@enigmatis/polaris-schema":"^1.4.3","@enigmatis/polaris-typeorm":"^2.3.4","apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@enigmatis/polaris-common":"^1.10.1","@enigmatis/polaris-graphql-logger":"^2.3.3","@enigmatis/polaris-schema":"^1.5.3","@enigmatis/polaris-typeorm":"^2.7.1","@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"003f8b55c0dd43a617b54f618354536b5dd7c455","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.8.1","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-1T5P5VE8As8/4QrhpPOptydJyj0zYKMpIpLlGVomYhOB/fta3pzh0QBazBxjcLqQ0dg7RVz4p6QXiXhLGKLzOA==","shasum":"eaec2fe22b4721e7e76817d4cc4ddf2be592063d","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.8.1.tgz","fileCount":59,"unpackedSize":118497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgErPpCRA9TVsSAnZWagAABugP/RVxRCL/iUkcPyeuuNxu\nFJZtviq7RRnUPV5yqWdcXBvOth88dm2/J0l12tLxF4ik6sbJI2vQjEwKl2I2\nHNIX7Uid+XglFSImHXECoSOXZ4t/clcfcIBVwvdSN8YqjYAzu8XuSD/cjLQ2\n7LfTBB5x+mRRzoPX3smZMy3fDeqxl0s0i1xXuNm0OhH5YhGE5lYRfd9wyCcF\n7YTvCpVelJL4sLGrUmCHQKQSmJiN0CpGJxMA959nyz3MtQy9If7Y4RQyQZKt\nFXmaoUtqIJZqixyBnuMgJarlgAna5pTFJCXVfWcwUOUTo1wdmoyAPua0j4hG\n1YHPIYXhuBraunPxvFib9XT9ujcEIekMD/UWySbF62zsoHHmT01TXHcAGE0q\nM76laqLgOldQaCWZ9FJ7PTxIquw8zCeJeK1eK7H/HpyTq9LZIy5Lh5CMq7nW\n8c/OJeZznPVeZv6AMg0MXs6QpDeI8exo6oyCnLMWVBxlD5B+CSwdKa7vIupD\nfus046oKlJtnQi2Y9C2BsnT6gkgCkjR+qi51e3GM85vTJQ8diPCBbj7ZhNee\nKWnEsFEPMKgN4ASEwrcTBXwLbUr6oDkW3rXfH084MUL/ygqlrgUVgh0fbZMT\nNnYhm5q39VrIVFaKFHpSiulOlgQPzIPwwxdBl6PKDDYvPpSK+FmDzoEArVTJ\nv+6j\r\n=GQQf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSZ5SagleIcE8Mn1kBd7/yTbdoq7A11fgvrONsHPGKGwIgQbQxUgHjl/0JmhijcYiXI1bo/ZTXCbzXk3tqffzzBYA="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.8.1_1611838440740_0.22006686579744783"},"_hasShrinkwrap":false},"1.8.2":{"name":"@enigmatis/polaris-middlewares","version":"1.8.2","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.12.0","@enigmatis/polaris-graphql-logger":"^2.3.4","@enigmatis/polaris-schema":"^1.6.0","@enigmatis/polaris-typeorm":"^2.7.2","graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"26c83dc5b9fc1a12476ed920447fee87afa52c31","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.8.2","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-vzp33RP6XY4akhe6OSofT0vefmuuvNogvGuDgUH1TXTDs+nIU9vB7lBnBomEv1wSnk35JWrC0nextDK6GptPdw==","shasum":"96d66f169537f336ce3baa8b2f7c548a3315e929","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.8.2.tgz","fileCount":56,"unpackedSize":120415,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFtGoCRA9TVsSAnZWagAAMlQQAJwJxjU34BaUgoNrJ6Lx\nOqi9QLzOXe8izlQL3NJ1U06a9Cqm1tbluFEU86wo5OwoKPkLtq6xpleOjhCg\n9KvOdM2c/rCQM7NzrWDao/rnD6wdLPzpDTrvuNbM1y6FSuIPZn0OodOL4WND\nl26L6h1fNinYU44t7du7V0oM95HsB0QH7d9vKMtzEN6VEcb4iMXZWBi1dvmA\n6BQ8sPtmdPeWzXhLM43QladFUP++nVfORrhVuYnY6bP2Ej7BG48fXHk/kqQl\nquKvuZgnXs2u097uK+hwavzxtH0qOWGGmgD2Q6I3AiPf7g1P+J0ACxSgVRw9\n9N1SN8ahqQnyV+m9UpSLl3bVt6RkhzscV8FKzTatSjxPslYkFQWE/77JxrSK\n+lmYP89P25lWz8Lmkxlzi+LjHEsuG7RtGTy2kYupaDRnLc2AEuEQMcvB0+Ho\ntanC5JuUyD6S3knP20ctpeU/T9TMRHnDde+mG34Hry6u21RHYI3gxQMSuyGd\nFPb3iZFdu/bxlBJYqpmP8i/9KJ3kyV5F3HYnjDS7/pnHcbb0oIdYsH9bQCtU\ngSQ14awV9LsWpEXitMGnfqOy7fA/tAJYfCvsMx7EeUcZ8IPUuxyfl2k4XYFk\n7xQkkn2TmtkWjTGnLI5GSZeJhREfw0ErAE8L1s7bx8OiZVwpANH4bF7RTzOy\nV+Ey\r\n=ui9Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBNr0V8p7o23y5mQrpbM/OHAU3PfnVAbQeMOvrYX3ajgAiBE/rVGM4M5Z9244A0pj5vuYUzbbE3FXNqwafHrRrxecQ=="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.8.2_1612108199562_0.35152982333955807"},"_hasShrinkwrap":false},"1.8.3":{"name":"@enigmatis/polaris-middlewares","version":"1.8.3","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.12.0","@enigmatis/polaris-graphql-logger":"^2.3.4","@enigmatis/polaris-schema":"^1.6.0","@enigmatis/polaris-typeorm":"^2.7.3","graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"da45ba17d3088b60f3f7f6a884f1c46af06d1df6","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.8.3","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-EG9fJwWxHqh+nV167loAhcQISgQgQRRrLp5mtyesR/18gm9MvRVVqRYqsaxOvPYioBCr5fd6mWPUbZyvecDjeQ==","shasum":"076ec508fc7a9ff87b3290d0f99a0a7b49ac113b","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.8.3.tgz","fileCount":56,"unpackedSize":120650,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGSJHCRA9TVsSAnZWagAADywP/1ebn5MInHDD1fb/5bwx\nzvlnMxxoqm2PEqt6/wKW7/2iwE0g7MyXA3T4HYZIjVm+AXt1AdewXxeLR90h\nwXZ21WLW1GeZkCosBtmn4lAItw3ysz5EYgf2ff2mNyvtj/Hds+MsAugsFkgg\nuE5E3ICNb1iIp6MRx/23e28PVxNtazA+5GUUEQ/2FB8Gk75E51sY7zBIOuzh\n8ZG+gor746ClvVA4DwmJ7hQ/iQ/BS1I253Q+ffRbK2wdbW8rJcLs3He7Gc7+\nb4N75mmpX8IhoCN7KSr62KLE6X155FF2bp6al+SoBYlZm5jvLQMNLS2QdE3Z\nOyX6TOgjFQIhd66YDEJ5E9VkhStfaGh+2i53aoEgEux72gRNj6NHY31RWrp/\n3jH6V2GN2gv+EuXdyxOob+MMToRUalX58UAhn/ctaroZwhb7Q3tUd7u9QIaM\n+iFQCzZxPIxrp0GbxZDTrheuxFK3MG9I6j6rSjossZ5exvw3Pb2qUePjWyzB\nNO7DogZcLyCpaC6aco0DmuNu/e519qxs+qAYSuLzrGXnOpfaeOEh+4PUhk6q\naVWJSOnvmBVyaq1GOGC2iK/eZLzgNPiS6eC3EBk8LJ9lUr3Z11oXKfaViMLX\nv4E+E8U4Zq+MnUaJdNhvJEmm3q3YJ5HeD8j2SUtdp1AsKARuRqqWOVEUj4mW\n8rzh\r\n=EE16\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGy2oervDuuJ89tWPrxDbXGw00bYRRuF+SRQ61poc5LAiEAp7GvWDX6IoRwTh3GLQYldNUwX047NSMweegY/4+/o2E="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.8.3_1612259910879_0.8595149385507608"},"_hasShrinkwrap":false},"1.9.0":{"name":"@enigmatis/polaris-middlewares","version":"1.9.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.13.0","@enigmatis/polaris-graphql-logger":"^2.4.0","@enigmatis/polaris-schema":"^1.7.0","@enigmatis/polaris-typeorm":"^2.8.0","graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"8439dca4918441e3ef73c319db9fee4d44e9ccb0","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.9.0","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-NitgSldcLKZ605DeLLgk97m1L0VfH3rPU3VBZwaDSyNwQw0Q2dpZDfuo05fQv/7EnbpzgTh6/KCPZCPOz0dm3g==","shasum":"638d7a3513a759a91609d8297edd4bd8d7d5e35a","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.9.0.tgz","fileCount":56,"unpackedSize":121990,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgH+/ICRA9TVsSAnZWagAAahEP/RnYGSrfnm+i6CawMC+I\nlEdqYp2mQ/Ha84EK97Xv3PF3lAZZHiuoVPboYbzo4U8Rm/KgwLbwLQeQBZaN\n02UKNgiID6PL5l2+/bMUF5Yuurp/LX/d8IVInOMogrePK0GvbWhniQCcvHhr\nRxYzxmdFK9OZq86SpMQdrdn1VBSXO5lt19+2guW2+ADa3BVbQLTh8gUNashL\nPMxRuYSThc1AiSovo+SoIk4UhxjUwCV5+9wuu/e3a8pZt2napG8i7+aTj/an\nsBJFH+a+y/L+QTt5DXa4vtmuuhn2NaufY01QaYwZA43LmGy9jsZhBD2aJ3a5\n7bMZJ/Aev6sq9dc+JvBelPFLIbyw1G8jWHTeosxEtj9+wkmUvcQXsmH/zHYV\nOlSdIpx1/J6/GL8jy9ERVOpePMnOVBe5MT3q/el6MuFvmS5GX8BJTfjWuSf7\nQByBot2qBc4/hhP6vOhyjWxwk5TDxJYIDwSVMbZoeqhNzcEXSmkSD4afFtvM\nMaPj03T9mUrrTvFNO340aDfw7KxB6z+P3ZSvhtQUmZSC8w+x/d9Jf66VhNBU\nxprHTtgIvM9QFBsa1KBfc3eAC6b1M0IqcQL9qetZoAxr77wbrtoYT7w/MqIh\nN84t9bsoPI6/nvHuaoukhtqeq4UeSvUJE+rmuXGonwE38QGaCtfY2Sld3PXd\noa39\r\n=x9sV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5RCGG/0m3wwpDu4IgMrKfbNxpIYWz2ajx7VW3T4s5wQIhALlXukoltHc4zKOJBsur/Fz5c4XfrwSheUtkOUE1BRKT"}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.9.0_1612705736090_0.062047710000559864"},"_hasShrinkwrap":false},"1.9.1":{"name":"@enigmatis/polaris-middlewares","version":"1.9.1","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.14.0","@enigmatis/polaris-graphql-logger":"^2.5.0","@enigmatis/polaris-schema":"^1.7.1","@enigmatis/polaris-typeorm":"^2.9.0","graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"6d031371869bca85249f06fabe557db1fec75837","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.9.1","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-ISgaTe+2BSjLKFxZw18yoruV4u9WZ5NZaL3b7mFe4QqbIQBHb1ZoTKMmy1kT1zuA4WzY9qI3mgj+u/uhmS6mUA==","shasum":"6b51293ccec76aff588a92dc395202bf38d359c4","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.9.1.tgz","fileCount":56,"unpackedSize":122225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMhzuCRA9TVsSAnZWagAAiFMP/3pgJhQRYHUsSVW5SBBf\nIckzYKTjRwr+Zdm7umlT5eX6uZ9aBMLnk63v399BgHvIDeuOcgNGYCD9V65y\nniNhmkHuz1K4cWALGNyWtRmOpFUmFE5PQz5XqPI/oQu2LFhhSyaMlUwG4l+s\nGcljJMJpjjMSoU1wRTIHfrGQpjiINFQkv68szMY9Wcpyf4N2F/XuxrUajkV1\nr+zJTGMErf1gN72dOSpEF5x2IMxKtqWLo4EBhy3y7Rscmlw0yfqD9ltbLwu6\nIX4vfs8y5V/ZTHxCkGqx5r1J2zWdUOfrG/rKmm+coZlP2NKwQfLfHdaPCjwD\nsDxOlVXK+g5ErAW1kXbe8NfAS91+C4t/MJ6C5+E3JtC851tu4wrvc6L281S0\nX3Pw8Vj8KYoMm2JtO0+PVv2YPSeht1JbR1vKE+yTuFSLAAEG3VdUYSNRecbo\nynKQpwTqM02W0X1AVD4V20RMOKF2rtOUkTKjyOPCBjTtZvTg2Pxkisdxn5La\nsjVvSEdlRkgRdhjJyWPxeMDLpBUTQwVWzzAC1OlJpV6/g+VwwOEJ/Aylv3sm\nCreBKySD6smCVtlMBz/Gaeq0dBUwXpp0uX3RnAAHRNj6ceipH6LyqglCM2f1\nBsLl206eLwg90n1E9t/iy1RLhZHgUGLaLaKtyDQhZiS8KOGtg7/W3xYm4MTs\nl+/t\r\n=hacA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENaEQuI1e9Exc41W3IjUEPOK4Hde7Jo64dHyyxLd7T0AiEA2x3xmyxIBDSRLipZyKLeV32NooGyOYJoHjtIKp+jDkI="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.9.1_1613896942016_0.8887027910458289"},"_hasShrinkwrap":false},"1.10.0":{"name":"@enigmatis/polaris-middlewares","version":"1.10.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.15.0","@enigmatis/polaris-graphql-logger":"^2.6.0","@enigmatis/polaris-schema":"^1.8.0","@enigmatis/polaris-typeorm":"^2.10.0","graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"a27d2f0e0c7c7bec4dc28827040b4c0693e97150","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.10.0","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-oVJhM85pniatw7+A9NL8NUSuWaqhFhDy28djsBcMuJ/qLvCZ1iMwc/OEv7htZb1G4WL8k2mvbFtM3VZ3tDSN5A==","shasum":"310c11968046bbaf5a681a7cc198846a95aa8ec5","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.10.0.tgz","fileCount":56,"unpackedSize":122860,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRLWlCRA9TVsSAnZWagAATvYP/j1QXIgD8YOSo1Zg7amQ\nGJRMZdlhE+AMmwG1QVE01/n+rtAimMTUgCJAT2BM1/ChubmPfCsp/L+nHgTl\n18RUMUHfFH9KgMt25ulEorZ2VKq3RM/tHb8rqqRjw1uumQGX637Ns0isbq/U\n1IwTisGjGyHoq2X+Gsn3nbvXWyENgYqNEQBd0U1RV0Sx0wd4pW4uDkBCn4G+\nVw93NxDsqgvOhHqKTR1A4CyETsrjsIE+Ky0TPZP65pD2xzzbVo6gGCZAxFek\nhlBALxz2V+7wHfR06NsCDLSXwUf20XRFl/sIWYsXErES9Gk9ehojVAofHGN4\nMPxvLSJpAYJJAt3wjalby/XOVymSSS+hSZ58MLNx030+agNfe11w9poFlmbR\nWPQSPKthmIkXV+xdVlb7XkbZU9m2uk/drqBZwXs9tYbk9Ocjut/Rx+mVZueH\ni4lIniXt5dcwAf2ibzREMmVnWGPBylGFTAcfBCaihKOTA655G89XC2JwHz2i\niZOSSey6EKA6f8XTTrJi+2zqdur3uu0unNzEvAhRJZNZ72+ZWEmvbY6L0Ju8\nHu9TsGP/n9WXV1cNkzPj7lUe/5ID+yqap8YidXuVxWLqeGEtM/pAwR26u87R\npEuNOPalHkUfPcrzTQGI3JfaHzAOMfRgoQp7afSszkKussKLaxFDiJY40Jzb\nCBlp\r\n=IZs+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8XG2I4Dk8/RC092Y0he904maz1gJkcaisZd06FF3rzgIgV5EGP/aauoGOnd2Cbb6R56kxt6bUW9ray7j7Zg2KOiI="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.10.0_1615115685117_0.40838319793833344"},"_hasShrinkwrap":false},"1.10.1":{"name":"@enigmatis/polaris-middlewares","version":"1.10.1","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.15.0","@enigmatis/polaris-graphql-logger":"^2.6.0","@enigmatis/polaris-schema":"^1.8.1","@enigmatis/polaris-typeorm":"^2.10.1","graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"c15d32fd48afc5a846bd352dabea7c1968569cc8","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.10.1","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-najRdc9Jj2W5bRXs9/t7E9XLlMb7EbV5K4ndR9ibwSXSdAPkAGS5vnxgVO+9yZQ7kv6QdGLkW/CAOEr/bPsVew==","shasum":"d8c52a8dce5c4ff331c4e71329d58a65ae9b42de","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.10.1.tgz","fileCount":56,"unpackedSize":123098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSHOxCRA9TVsSAnZWagAAErYQAKAPNeltNCNzN10BG66M\nktodoV2IijCYl/6C9n2ZsPz3Lcg57RWquVV7NOIj1RL1gnc/TJIUwT9Xph8u\nRnMKJfDyvXkKiTzIA9tKoi93P3ffL+bpm7fjkmwgP28njesbpkBrRftiGI0D\nAP58XdsxU3U0BvMz3dDe0zEv9Gmd+oeNwGMOCHmXeWG3zL+wF5PXy6qgXqOZ\nVquoEQbMPhGsRCo/AWRaZiCoT14abZp3j7bf4nbERFPYaO0YPJg0XKLNIbXo\nKaKd5ZF4N8Y8FpfhGTfM6/+jJQUnMEaSDSBnSHLdcrCwkzxC9IqdXqtWuAWt\ne8o6+t2LuThX1t88XgrlMo1eAVh88gh+pMeWJyZgPBM9gh//eARsQExpB9hl\nSNvWChWzmvmhKC3Cw05N86Gc78kDI6Z7PCsTNbGtYOClBycrcOlSQeq/DE6Q\nVI95vxSS3nwfazXC2WS4SHXqpDTX3pyvMU7gmQsRJ0MRQm7FySPkXDOglvQa\nHSG/71/kq9QFjMqH/c/k7L60JHo4kmNJerXx+vh6b3/sX6NRKCJVdh4naFjv\nFIsnB+oMPSXnu3yVeyCTEhAIUvFU0oAyTvwoOTTUC5yOlnnAYF850WhfjVZ5\nXx4onvrC9QhOHhPxg+tmDeke90kFhkg6TsZOtL1Jd/JhiMwX7lv1nMkMopnp\nLiMK\r\n=oV+x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrO3RLWZj221wV4nTbw7NzJFaDuoOGcs9XKKAWQT8wVQIgQr90QgK4IUsU0W4k2fCdDZEXr2o5USNTtkolvnexnLA="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.10.1_1615360945456_0.32834052979621764"},"_hasShrinkwrap":false},"1.10.2":{"name":"@enigmatis/polaris-middlewares","version":"1.10.2","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.15.0","@enigmatis/polaris-graphql-logger":"^2.6.0","@enigmatis/polaris-schema":"^1.8.1","@enigmatis/polaris-typeorm":"^2.11.0","graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.3.0"},"devDependencies":{"@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"01f09f9a50127acd6dec2c3be91788533152377a","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.10.2","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-fBuYOJMvxogia+9HWx6XwoIcMFdhNCNJ1/Y4eSjdW2SXmTHGnIHKWmb6y8bwvlEhcA+DGAdLsy0jc87gX+tuCw==","shasum":"3c51ab115f55e1c58bddf71ca08cd82ce8f304a5","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.10.2.tgz","fileCount":56,"unpackedSize":123336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgTiW9CRA9TVsSAnZWagAAvk0P/3ZqE0NWWfiKaxr0QREm\nO7HjHMkAQiCoLluQI0xjhfjWUP88ZL6GhwWxhngiKDIMHxiixbRkJZ99s2yS\nGQTtmyH+oCkJZo3PpTEjkDK19a9wXs1xaBhON+Sd33e3Ur0DNNNMmWGeg6L/\nXNmshABBj344TXzkNYlImOrZv3RSPe/N7hHUfzzNfV/jK++it+MZmGnK4gIX\ncpX4/yBEbbqv3I416UysdgAfaU/Bvaa2v8dNlYrcvgA58OlkSGo0kdmBj1Ki\nducd3OB2yX11ZL0H9WJs82fRK12SRzk9mHdUfJ7K+HpD6WZvHn/UHGfk/mPz\n4R66Tq0jK7UjCO54KbxEtVwpsu3aYZLvEQVQmgefOA9PWLeCL3/MPI/uZNC1\nSI47CScUokz403DdB5b+Uly0+C3p0MxaXxGl9L8fbfjLh8UP1xoI28v8uZdj\n4129A4agWb8Saemb+K/Ra9ivfPaUan393EDEKZZ8gl34ob9Nsh0S+I/3vB36\nR4hm7V7FgfYw5kAccT2X3VVrHjbc4Gyviivir88YVDf4IZOoJv76j0NH2LM8\n6vuNXDTNXCExww3j6f+pTriUtHgGRi9rMOxLrqq2C/oeKiyMogvQ3Y02jWWy\nyy86zZMWA1oF/qlo3QoJd1fbUZe/egAC+VLfAjLdPo9rqucNUEq7NwX1doqu\nvbMz\r\n=ubxf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGzjqaNQcCw/czt5jFUBQ2fJA0hn5wirRCqWiKiLg6f0AiAZe2AgMT9XKuy8mrcex3oOEB581Xi+L60ILPAuhY5GTw=="}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.10.2_1615734204645_0.3462532830137661"},"_hasShrinkwrap":false},"1.11.0":{"name":"@enigmatis/polaris-middlewares","version":"1.11.0","description":"handling middlewares in polaris","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"npm run tslint-check && tslint -p .","tslint-check":"tslint-config-prettier-check ./tslint.json","lint:fix":"npm run tslint-check && tslint -p . --fix","test":"jest --runInBand","coverage":"jest --runInBand --coverage","build":"rimraf dist && tsc -p tsconfig.json","prepare":"npm run lint:fix && npm run build"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-middlewares.git"},"keywords":["polaris","graphql","graphql-ts"],"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"license":"ISC","bugs":{"url":"https://github.com/Enigmatis/polaris-united/issues"},"homepage":"https://github.com/Enigmatis/polaris-united/tree/master/packages/polaris-middlewares#readme","dependencies":{"@enigmatis/polaris-common":"^1.16.0","@enigmatis/polaris-graphql-logger":"^2.7.0","@enigmatis/polaris-schema":"^1.9.0","@enigmatis/polaris-typeorm":"^2.11.1","graphql-extensions":"^0.10.3","uuid":"^8.3.1"},"peerDependencies":{"apollo-server-plugin-base":"0.6.10","apollo-server-types":"^0.5.1","graphql":"^15.5.0"},"devDependencies":{"@types/jest":"^26.0.13","graphql-extensions":"^0.10.3","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","semantic-release":"^17.1.1","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-consistent-codestyle":"^1.16.0","tslint-eslint-rules":"^5.4.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.2"},"gitHead":"0477652088e0faae8b5524b87ef16609c4493bfd","readme":"![Polaris-logo](static/img/polaris-logo.png)\n\n# polaris-middlewares\n\n[![NPM version](https://img.shields.io/npm/v/@enigmatis/polaris-middlewares.svg?style=flat-square)](https://www.npmjs.com/package/@enigmatis/polaris-middlewares)\n[![Build Status](https://travis-ci.com/Enigmatis/polaris-united.svg?branch=master)](https://travis-ci.com/Enigmatis/polaris-united)\n\nThis package contains middlewares for polaris graphql server.\\\nYou can use these middlewares & extensions separately using your apollo server.\n\nFor example:\n\n```javascript\nimport { makeExecutableSchema, applyMiddleware, ApolloServer } from 'apollo-server';\nimport {\n    DataVersionMiddleware,\n    SoftDeleteMiddleware,\n    RealitiesMiddleware,\n    IrrelevantEntitiesMiddleware,\n} from '@enigmatis/polaris-middlewares';\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\nconst schemaWithMiddlewares = applyMiddleware(\n    schema,\n    DataVersionMiddleware.getMiddleware(),\n    SoftDeleteMiddleware.getMiddleware(),\n    RealitiesMiddleware.getMiddleware(),\n    IrrelevantEntitiesMiddleware.getMiddleware(),\n);\nconst apolloServer = new ApolloServer({\n    schema: schemaWithMiddlewares,\n    context: ctx => getPolarisContext(ctx),\n});\n```\n\n## Data Version Middleware\n\nData version is a sequence that indicates a version of an entity.\nIf you want to use polling in order to receive query differences (Deltas), you can use the data version middleware.\n\nThis middleware filters array of entities: if the entity/entities have the field `dataVersion` set on them, the middleware return only entities that have a bigger `dataVersion` than\nthe data version that is set on the context (`context.requestHeaders.dataVersion`).\nIf no `dataVersion` is set on context, no filter will be applied.\nIf a single entity is returned, the filter will be applied as well.\nIf an array of entities with no data version field is returned, no filter will be applied.\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', dataVersion: 2 },\n    { title: 'y', dataVersion: 5 },\n];\n\nconst afterMiddleware = [{ title: 'x', dataVersion: 5 }]; // context.requestHeaders.dataVersion is set to 3\n```\n\n## Soft Delete Middleware\n\nIt works similar to data version middleware, filtering out all entities which are soft deleted (has a property called `deleted` set to true).\n\nFor example:\n\n```javascript\nconst beforeMiddleware = [\n    { title: 'x', deleted: true },\n    { title: 'y', deleted: false },\n];\nconst afterMiddleware = [{ title: 'y', deleted: false }];\n```\n\n## Irrelevant entities Middleware\n\nThese are entities with greater data version than the data version that was provided in the request,\nbut that do not pass the filter you provided. For example, if you ask for items with data version greater than 1,\nwhich start with the letter 'a', the response will contain (in it's extensions) a list of ids of irrelevant entities -\nitems which were updated after this data version (their data version is greater), but that their letter does not start with\nthe letter 'a' (so they do not fit to the filter).\\\nIf your context object contains an irrelevant entities object under property `context.returnedExtensions.irrelevantEntities`,\nit adds the value of this property to the extensions object in the graphql response.\\\n**This middleware relies on naming conventions, which means that in order to activate the logic of this middleware, you need\nto name your DB entities just like how they appear in the GraphQL schema!**\n\nfor example, setting the context irrelevant entities:\n\n```javascript\ncontext.returnedExtensions.irrelevantEntities = { books: [1, 2, 3] };\n```\n\nand the graphql response:\n\n```javascript\nconst response = {\n    data: {...},\n    errors:[],\n    extensions: {\n        books: [1, 2, 3]\n    }\n}\n```\n\n## Dates filter Middleware\n\nThis middleware filters array of entities: if a query executes with `EntityFilter` input type argument POLARIS will automatically filter \nthe entities being fetched by the filter passed to the query as an argument.\nThe filter works by the `creationTime` or/and `lastUpdateTime` fields of the entities and by the arguments passed to the query.\nSo if, for example, you want to query entities that created after specific date, you need to pass the relevant `EntityFilter`.\n","readmeFilename":"README.md","_id":"@enigmatis/polaris-middlewares@1.11.0","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (linux)","dist":{"integrity":"sha512-/M6dUFxyda6MXspAka+Wi7OOlLEAbEEQs0RIxPM6kG4c7jAHzL+2iX0GUipIBO7vStWz+vpdkt+vyeKiF1P9Eg==","shasum":"58ef44019f3d79d4eddfaf65512377430c0547db","tarball":"https://registry.npmjs.org/@enigmatis/polaris-middlewares/-/polaris-middlewares-1.11.0.tgz","fileCount":59,"unpackedSize":126340,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgTyjMCRA9TVsSAnZWagAAWPcP/1O+lW5hjnn79psur2/Q\ng/1aVRS3Kdj7fRWCZH1a6MNOthlgjccOgS5yWFU66dexO4rft/apucKWeEXG\n9FjzDbfs9YsvXnVrop09uYcSWShUL3/BZWMwj5SN/LV7HefJq/5IzVdq+40j\nRy5cQP8VNdyKo/f1bShH/ILE8QmnIZ3yjEVJD3i6DWex3yLTgrTyWqx7aLc3\nZBo/KWqJRNSzMdBPM2Nt3Wwg5fQcaJVTXdsZyZDkGvFmny8sH9DDmThuBW/q\n43bKbxcm53eiUSJu6M3JrtfAqRnS0wlZw7bm19u34IHr6IJwVBKY7nuX7V8i\nAM7+H2MRe4YvrlPHltogE4Nj2D6cJQvzAOwUf3vICYLdbjOCXQGbx7vHSX4o\n3raRQefp0ea9eIvi+gBAtwHqSNv3SVcIxh7mtiGURDP7lTcnorAuwe4u+p2e\nkVWiFQc083aKgTGnZEiwHDFLglZkzE2UJooxX0Q4vqji2hWQmA2MDr7ma3zt\n9Wx4+EYsmGu2ZvKZQYBUAYTl1tUc5RImq0geMx6Jf6795UO9z+PVmyDQjk/y\n6UXeqBj9uTy6ZsvdcZGLbDBkRyPntpPwao7gIFGDu0Y+hsLZTBTnOQZXUnFb\nQrbt2D477tbUDw/MKWjd2LyWIjccXJz01GfUBG1BlAKqeCyJ3KROk1NjIzJa\n80Rv\r\n=TTSX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSa7lEyp4ojN4kubstJrsql/hPyRX5VMdwg5MQLDFdKQIhAOgIjUl2xZkvzz5I3CyXyPXZW3jGtXArQOhRY81JfZc7"}]},"_npmUser":{"name":"enigmatis324","email":"enigmatis324@gmail.com"},"directories":{},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-middlewares_1.11.0_1615800524511_0.3595340004718057"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-29T12:46:11.362Z","1.0.0":"2019-10-29T12:46:11.703Z","modified":"2022-04-05T07:48:31.300Z","1.0.1":"2019-11-11T12:39:09.808Z","1.1.0":"2019-11-19T15:33:53.881Z","1.1.1":"2019-12-03T12:27:58.582Z","1.1.2":"2019-12-09T11:34:50.248Z","1.1.3":"2019-12-12T12:39:59.586Z","1.1.4":"2020-01-06T16:37:04.016Z","1.1.5":"2020-01-06T23:02:16.278Z","1.1.6":"2020-01-08T15:12:25.493Z","1.1.7":"2020-01-09T09:03:19.557Z","1.2.0":"2020-02-03T08:37:39.198Z","1.2.1":"2020-02-06T14:26:48.565Z","1.3.0":"2020-02-24T14:23:37.195Z","1.3.1":"2020-02-26T11:36:31.487Z","1.3.2":"2020-02-27T21:53:44.140Z","1.3.3":"2020-03-02T16:06:33.922Z","1.3.4":"2020-03-09T07:24:29.266Z","1.3.5":"2020-03-10T10:11:27.066Z","1.4.0":"2020-04-05T09:22:06.429Z","1.4.1":"2020-04-21T06:31:12.965Z","1.4.2":"2020-04-27T06:26:05.800Z","1.4.3":"2020-04-30T13:37:41.817Z","1.4.4":"2020-05-03T10:18:40.694Z","1.4.5":"2020-06-08T15:14:37.866Z","1.4.6":"2020-07-07T13:40:57.830Z","1.4.7":"2020-07-13T13:07:14.022Z","1.4.9":"2020-08-09T11:57:21.613Z","1.4.13":"2020-08-12T09:24:30.444Z","1.4.14":"2020-08-17T14:30:52.467Z","1.4.15":"2020-08-19T08:31:30.382Z","1.4.16":"2020-08-27T06:18:51.713Z","1.4.17":"2020-08-31T09:17:36.402Z","1.4.18":"2020-09-02T13:39:26.685Z","1.4.19":"2020-09-06T12:59:48.511Z","1.4.20":"2020-09-07T06:59:07.824Z","1.4.21":"2020-09-09T11:34:44.837Z","1.4.22":"2020-09-10T13:09:42.112Z","1.4.23":"2020-09-15T10:35:10.570Z","1.4.24":"2020-09-21T12:43:38.502Z","1.5.0":"2020-10-21T09:32:07.855Z","1.6.0":"2020-10-25T14:07:12.558Z","1.6.1":"2020-10-28T08:49:04.742Z","1.6.2":"2020-11-04T15:44:21.113Z","1.6.3":"2020-11-09T12:15:36.260Z","1.7.0":"2020-12-01T07:46:34.520Z","1.7.1":"2020-12-06T08:57:19.807Z","1.8.0":"2021-01-05T13:06:16.985Z","1.8.0-snapshot.0":"2021-01-17T14:39:14.597Z","1.8.1-snapshot.0":"2021-01-17T15:33:20.130Z","1.8.1":"2021-01-28T12:54:00.850Z","1.8.2":"2021-01-31T15:49:59.732Z","1.8.3":"2021-02-02T09:58:31.108Z","1.9.0":"2021-02-07T13:48:56.256Z","1.9.1":"2021-02-21T08:42:22.143Z","1.10.0":"2021-03-07T11:14:45.284Z","1.10.1":"2021-03-10T07:22:25.600Z","1.10.2":"2021-03-14T15:03:24.861Z","1.11.0":"2021-03-15T09:28:44.630Z"},"maintainers":[{"name":"yarinvak","email":"yarinvak@gmail.com"},{"name":"osher-sade","email":"osher.sade@gmail.com"},{"name":"drvoid","email":"furmanmail@gmail.com"},{"name":"ron-katz","email":"ron.katzzz@gmail.com"},{"name":"enigmatis324","email":"enigmatis324@gmail.com"}],"description":"handling middlewares in polaris","homepage":"https://github.com/Enigmatis/polaris-middlewares#readme","keywords":["polaris","graphql","graphql-ts"],"repository":{"type":"git","url":"git+https://github.com/Enigmatis/polaris-delta-middleware.git"},"author":{"name":"Yarin Vaknin","email":"yarinvak@gmail.com","url":"http://github.com/yarinvak"},"bugs":{"url":"https://github.com/Enigmatis/polaris-middlewares/issues"},"license":"ISC","readme":"","readmeFilename":""}