{"_id":"@adarovsky/apollo-link-scalars","_rev":"3-249160f6daa9657ad3d7112db56fa1cb","name":"@adarovsky/apollo-link-scalars","dist-tags":{"latest":"0.1.11"},"versions":{"0.1.9":{"name":"@adarovsky/apollo-link-scalars","version":"0.1.9","author":{"name":"Eduardo Turiño","email":"eturino@eturino.com"},"description":"custom apollo link to allow to parse custom scalars","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"https://github.com/eturino/apollo-link-scalars"},"homepage":"https://github.com/eturino/apollo-link-scalars","bugs":{"url":"https://github.com/eturino/apollo-link-scalars/issues"},"license":"MIT","keywords":[],"scripts":{"describe":"npm-scripts-info","build":"run-s clean && run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:tslint":"tslint --fix --project .","type-check":"tsc --noEmit","test":"run-s build test:* type-check","test:lint":"tslint --project . && prettier \"src/**/*.ts\" --list-different","test:unit":"jest --coverage --config=\"jest.config.js\"","cov":"run-s build cov:html && open-cli coverage/index.html","cov:html":"jest --coverage --config=\"jest.html.config.js\"","watch":"run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"","doc":"run-s doc:html && open-cli build/docs/index.html","doc:html":"typedoc --theme ./node_modules/typedoc-themes-color/theme src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs","doc:json":"typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json","doc:publish":"gh-pages -m \"[ci skip] Updates\" -d build/docs","version":"standard-version","reset":"git clean -dfx -e .idea && git reset --hard && yarn","clean":"trash build test","prepare-release":"run-s reset test doc:html version doc:publish"},"scripts-info":{"info":"Display information about the package scripts","build":"Clean and rebuild the project","fix":"Try to automatically fix any linting problems","test":"Lint and unit test the project","watch":"Watch and rebuild the project on save, then rerun relevant tests","doc":"Generate HTML API documentation and open it in a browser","doc:json":"Generate API documentation in typedoc JSON format","version":"Bump package.json version, update CHANGELOG.md, tag release","reset":"Delete all untracked files (except `.idea`) and reset the repo to the last commit","prepare-release":"One-step: clean, build, test, publish docs, and prep a release"},"engines":{"node":">=10.0"},"peerDependencies":{"graphql":"^15.3.0"},"dependencies":{"apollo-link":"^1.2.13","lodash":"^4.17.15","zen-observable-ts":"^0.8.21"},"devDependencies":{"@bitjson/npm-scripts-info":"^1.0.0","@commitlint/cli":"^9.0.1","@commitlint/config-conventional":"^9.0.1","@types/graphql":"^14.5.0","@types/inquirer":"^6.5.0","@types/jest":"^26.0.0","@types/lodash":"^4.14.149","apollo-server-testing":"^2.12.0","cz-conventional-changelog":"^3.1.0","gh-pages":"^3.1.0","github-release-from-changelog":"^2.1.1","graphql-tag":"^2.10.3","graphql-tools":"^6.0.10","husky":"^4.2.5","inquirer":"^7.1.0","jest":"^26.1.0","npm-run-all":"^4.1.5","open-cli":"^6.0.1","prettier":"^2.0.4","replace-in-file":"^6.1.0","standard-version":"^8.0.0","strip-json-comments":"^3.1.0","trash-cli":"^3.0.0","ts-jest":"^26.1.1","ts-loader":"^7.0.0","ts-node":"^8.8.2","tslint":"^6.1.1","tslint-config-prettier":"^1.18.0","tslint-immutable":"^6.0.1","typedoc":"^0.17.4","typedoc-themes-color":"^0.0.10","typescript":"^3.8.3"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"licenseText":"MIT License\n\nCopyright (c) 2019 Eduardo Turiño\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@adarovsky/apollo-link-scalars@0.1.9","dist":{"shasum":"3e617bc9937cf0d1db2b72ae08ce6f46cd065418","integrity":"sha512-0CWQS9E5xNhTMZ3VGWTY462p2EK9NzvjFTFjZEpenF78ohlnzCKXVnttuDd1fNXj83xRgmEJ8qfUefgLG+TJrg==","tarball":"https://registry.npmjs.org/@adarovsky/apollo-link-scalars/-/apollo-link-scalars-0.1.9.tgz","fileCount":86,"unpackedSize":464671,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBaT4CRA9TVsSAnZWagAAxr0P/06NlrZy6rm5g/qaVFoB\nZbMfhFlu3uhm6yxp0m9d/Zvzj88E34TjN+HyR2lrxSSNX+GmHhpWB8Rxe2QY\nSRAc+jooH1UmA7hhxUvXKRlmMF49tZD3I84X9EpGBEumbkRu20f87RHKgL0U\nbz4d5wiSBpmujIkaubcJk6ajyH0kuvbGm6GsBncdD/+b23jUYw3QJn4l+NaB\njewLMGxiOrcEfZMD7Dp9qhenQRONbS5i4xjK5KxvvgSkt5FkB0UZXqe/lUQb\ni0VKI9bQncmpb8muCVv3J8i9cA4pCqyNuET/CEVC1aWR8y1ClSdUIdiF3G8B\nxN4GeDhb3EodoeAysyLW4kqrlhqTixJ3qh37EBLf5TfNC2bxbNupO79IjS7k\nvzk9aoC24Vo4pGO7qxPnC0j3yg5B2g1famgAQM4txlOQNTmnuear7i/ut1eJ\nlGm5kp/b81Hej93vFE6zOJmo1egm11SK605Ta5gW49S6kg1quC28FpWn8I3m\nlIz+cY1RZmXLAh8YClMwxbQZS4D/s8TF/9taJQWt3H9JG2+K7Bo/NjuhIP9+\nWsKcvcWHj2aab6wz/KdDTv3PdDdg2WgvpxMlzQvQOqQMh4Rxufxq+waF1F+5\nu5e3xKE3V9a7L4cpvF889VBRJn13CbTX49H46aHa9eV1qnBparuvAQfUaE+V\nwy7D\r\n=GkxO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2IMwMUKF9PDxomRnjY1MNwdt7lzrMi2AoRbFttG66NwIhAPSHsXKzF4KLU4uKjZIZkbx8XnluZYLn77A2Yas7seyu"}]},"maintainers":[{"name":"adarovsky","email":"adarovsky@me.com"}],"_npmUser":{"name":"adarovsky","email":"adarovsky@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-scalars_0.1.9_1594205431804_0.11164764080614153"},"_hasShrinkwrap":false},"0.1.10":{"name":"@adarovsky/apollo-link-scalars","version":"0.1.10","author":{"name":"Eduardo Turiño","email":"eturino@eturino.com"},"description":"custom apollo link to allow to parse custom scalars","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"https://github.com/eturino/apollo-link-scalars"},"homepage":"https://github.com/eturino/apollo-link-scalars","bugs":{"url":"https://github.com/eturino/apollo-link-scalars/issues"},"license":"MIT","keywords":[],"scripts":{"describe":"npm-scripts-info","build":"run-s clean && run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:tslint":"tslint --fix --project .","type-check":"tsc --noEmit","test":"run-s build test:* type-check","test:lint":"tslint --project . && prettier \"src/**/*.ts\" --list-different","test:unit":"jest --coverage --config=\"jest.config.js\"","cov":"run-s build cov:html && open-cli coverage/index.html","cov:html":"jest --coverage --config=\"jest.html.config.js\"","watch":"run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"","doc":"run-s doc:html && open-cli build/docs/index.html","doc:html":"typedoc --theme ./node_modules/typedoc-themes-color/theme src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs","doc:json":"typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json","doc:publish":"gh-pages -m \"[ci skip] Updates\" -d build/docs","version":"standard-version","reset":"git clean -dfx -e .idea && git reset --hard && yarn","clean":"trash build test","prepare-release":"run-s reset test doc:html version doc:publish"},"scripts-info":{"info":"Display information about the package scripts","build":"Clean and rebuild the project","fix":"Try to automatically fix any linting problems","test":"Lint and unit test the project","watch":"Watch and rebuild the project on save, then rerun relevant tests","doc":"Generate HTML API documentation and open it in a browser","doc:json":"Generate API documentation in typedoc JSON format","version":"Bump package.json version, update CHANGELOG.md, tag release","reset":"Delete all untracked files (except `.idea`) and reset the repo to the last commit","prepare-release":"One-step: clean, build, test, publish docs, and prep a release"},"engines":{"node":">=10.0"},"peerDependencies":{"graphql":"^15.3.0"},"dependencies":{"apollo-link":"^1.2.13","lodash":"^4.17.15","zen-observable-ts":"^0.8.21"},"devDependencies":{"@bitjson/npm-scripts-info":"^1.0.0","@commitlint/cli":"^9.0.1","@commitlint/config-conventional":"^9.0.1","@types/graphql":"^14.5.0","@types/inquirer":"^6.5.0","@types/jest":"^26.0.0","@types/lodash":"^4.14.149","apollo-server-testing":"^2.12.0","cz-conventional-changelog":"^3.1.0","gh-pages":"^3.1.0","github-release-from-changelog":"^2.1.1","graphql-tag":"^2.10.3","graphql-tools":"^6.0.10","husky":"^4.2.5","inquirer":"^7.1.0","jest":"^26.1.0","npm-run-all":"^4.1.5","open-cli":"^6.0.1","prettier":"^2.0.4","replace-in-file":"^6.1.0","standard-version":"^8.0.0","strip-json-comments":"^3.1.0","trash-cli":"^3.0.0","ts-jest":"^26.1.1","ts-loader":"^7.0.0","ts-node":"^8.8.2","tslint":"^6.1.1","tslint-config-prettier":"^1.18.0","tslint-immutable":"^6.0.1","typedoc":"^0.17.4","typedoc-themes-color":"^0.0.10","typescript":"^3.8.3"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"licenseText":"MIT License\n\nCopyright (c) 2019 Eduardo Turiño\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@adarovsky/apollo-link-scalars@0.1.10","dist":{"shasum":"bdbc992ea4be22311494cfc0c09fb5babb2642d2","integrity":"sha512-MbS8aoqC2qRk8ZHWxcnkB/w0hwZyLav4ASwXMQOeFM4MZy70e0szWN+WGLyxH3pK2Ti4q4LHNECRzLSauBRXdg==","tarball":"https://registry.npmjs.org/@adarovsky/apollo-link-scalars/-/apollo-link-scalars-0.1.10.tgz","fileCount":86,"unpackedSize":464772,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBaceCRA9TVsSAnZWagAABEwP/RHRbnTEQ5KBG4Biagcp\n3KemrlxagTJTe2d1LKwn7PZH+P3xa/mhwTcOztChxrjeuyZQixiwvkW0HQha\nScFxdqbZagbTTBU5QZ8IXeQJUtBN+3ZbNn4lbSCV6/EfzmlN6/9QWx8tEpph\nWxqj5eatG4nHHu+VAZmaiz7nOBr63kfx2AEbD7ZV3JYjwOfd+JfqjfS4/M8o\nPCMlUGJ5kVYtf2ZMIhWo5oJ5sK9FRNvNIdg1PYZglXwqiCpuALB6S6+ba5hm\ncpy6rYYftJLp9CcAQRovqEZ/Dj8kJwFmwrwa6rnsQq3Xfs7450F6NVxPr8av\nW7XCPqEv4RZqUproP6QHAfRQGZBbtRrDq3XzYECaKgbqAvgxwfFi+RyzRlZi\nfye3zm3yeZnQIbowYJRBvIDFbSwcRWYoB9c7uDwFv8+Kt1LdVuK6xl06i6sR\npvC+nx6bTtWh1nKChtjtFF9wZb6dvH7ulXHM5+8uAB2EVrRZVMD92Qmt3lqP\nMmcS/CRDim+LhS0lE2G0ou5Z3APwzKOBo6AkI5obU/m+Ep4CMj+vZOXH5gNI\n/k70eQqB6ySpW3CnMkKFQ6EurcSxkILfAsVmC8TWFpi4JlHG/soHmrt3D20U\nr2OwJeyg1kLbebMJNjLTAQD2DVhfxExiXc0InCHIJwN/OQwFIk6nzqi+hQj4\navVm\r\n=430y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwGKSCbeMKkkIA/0QnEsyJuiARowErzbvGe8+Q5wsbVwIgMR/VtOOmZrE5StBlJ8hv/coDH8I3GKghQEVxURD42oo="}]},"maintainers":[{"name":"adarovsky","email":"adarovsky@me.com"}],"_npmUser":{"name":"adarovsky","email":"adarovsky@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-scalars_0.1.10_1594205981894_0.9743141291538646"},"_hasShrinkwrap":false},"0.1.11":{"name":"@adarovsky/apollo-link-scalars","version":"0.1.11","author":{"name":"Eduardo Turiño","email":"eturino@eturino.com"},"description":"custom apollo link to allow to parse custom scalars","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"https://github.com/eturino/apollo-link-scalars"},"homepage":"https://github.com/eturino/apollo-link-scalars","bugs":{"url":"https://github.com/eturino/apollo-link-scalars/issues"},"license":"MIT","keywords":[],"scripts":{"describe":"npm-scripts-info","build":"run-s clean && run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:tslint":"tslint --fix --project .","type-check":"tsc --noEmit","test":"run-s build test:* type-check","test:lint":"tslint --project . && prettier \"src/**/*.ts\" --list-different","test:unit":"jest --coverage --config=\"jest.config.js\"","cov":"run-s build cov:html && open-cli coverage/index.html","cov:html":"jest --coverage --config=\"jest.html.config.js\"","watch":"run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"","doc":"run-s doc:html && open-cli build/docs/index.html","doc:html":"typedoc --theme ./node_modules/typedoc-themes-color/theme src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs","doc:json":"typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json","doc:publish":"gh-pages -m \"[ci skip] Updates\" -d build/docs","version":"standard-version","reset":"git clean -dfx -e .idea && git reset --hard && yarn","clean":"trash build test","prepare-release":"run-s reset test doc:html version doc:publish"},"scripts-info":{"info":"Display information about the package scripts","build":"Clean and rebuild the project","fix":"Try to automatically fix any linting problems","test":"Lint and unit test the project","watch":"Watch and rebuild the project on save, then rerun relevant tests","doc":"Generate HTML API documentation and open it in a browser","doc:json":"Generate API documentation in typedoc JSON format","version":"Bump package.json version, update CHANGELOG.md, tag release","reset":"Delete all untracked files (except `.idea`) and reset the repo to the last commit","prepare-release":"One-step: clean, build, test, publish docs, and prep a release"},"engines":{"node":">=10.0"},"peerDependencies":{"graphql":"^15.3.0"},"dependencies":{"apollo-link":"^1.2.13","lodash":"^4.17.15","zen-observable-ts":"^0.8.21"},"devDependencies":{"@bitjson/npm-scripts-info":"^1.0.0","@commitlint/cli":"^9.0.1","@commitlint/config-conventional":"^9.0.1","@types/graphql":"^14.5.0","@types/inquirer":"^6.5.0","@types/jest":"^26.0.0","@types/lodash":"^4.14.149","apollo-server-testing":"^2.12.0","cz-conventional-changelog":"^3.1.0","gh-pages":"^3.1.0","github-release-from-changelog":"^2.1.1","graphql-tag":"^2.10.3","graphql-tools":"^6.0.10","husky":"^4.2.5","inquirer":"^7.1.0","jest":"^26.1.0","npm-run-all":"^4.1.5","open-cli":"^6.0.1","prettier":"^2.0.4","replace-in-file":"^6.1.0","standard-version":"^8.0.0","strip-json-comments":"^3.1.0","trash-cli":"^3.0.0","ts-jest":"^26.1.1","ts-loader":"^7.0.0","ts-node":"^8.8.2","tslint":"^6.1.1","tslint-config-prettier":"^1.18.0","tslint-immutable":"^6.0.1","typedoc":"^0.17.4","typedoc-themes-color":"^0.0.10","typescript":"^3.8.3"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"licenseText":"MIT License\n\nCopyright (c) 2019 Eduardo Turiño\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@adarovsky/apollo-link-scalars@0.1.11","dist":{"shasum":"bdbc992ea4be22311494cfc0c09fb5babb2642d2","integrity":"sha512-MbS8aoqC2qRk8ZHWxcnkB/w0hwZyLav4ASwXMQOeFM4MZy70e0szWN+WGLyxH3pK2Ti4q4LHNECRzLSauBRXdg==","tarball":"https://registry.npmjs.org/@adarovsky/apollo-link-scalars/-/apollo-link-scalars-0.1.11.tgz","fileCount":86,"unpackedSize":464772,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBadRCRA9TVsSAnZWagAAgC8P/A+AEECeqUfhZfEr0phJ\nwgzT5T4pKtQd2/y2cU4fT+kzvufMzZfCPzA42/eRaOJUq5HzeDD5iGllwgbT\nDaowz4Yc+tepkk3bRBVy68FADvPH8q4KitZf3I3YGvi85N243NxnxmbciSDz\njpbGS1Wogsh8kZKszvOZ0ackFcj7gO2e5vfNxO9nAbiKqjwBhPr2WutRliYh\nFWuBGVHGE2e4ZtPuLCvMLC50EDhNHCw7KdnSXNmkvaBTupQKNCJBcKDwzkGw\nXFYiqQoiCcK89N9rRWX5n+8CpcetIXTYIJduflSwIZUi3DHBXxAPiIYHQEa5\nn1pavqxUWwF4pqc/GJUBavH0SN0oaYm1aUl7IxfzZ5IQBqM8BcY4F0ZuObW/\naxu0/ZaaKoPas1RmLfeXrIdUT4um2WPv7mq67UruB+tMULofZlaIpNiYv3y1\nbWwxrQ65ILuSbXZAcvQtQCZWgXaTEKBXnsB60tn3a2oYjv95J9TMytAHjYTD\nRF/nl9ptUNySceOyytLORYN2T+r+f/ns3vEPdT5if2MVK6ywJkis82nPchfo\nJUElsLD8LHO5zguVaR9W7pvvcPpXqtTLQ04+zAhsSNGkJRnxKzPhHqnTymJ/\n7bqFhyXbczJI/6QNn3gTQZ13zD7unI3v6jNjX5SZgmg0RExZ5Bhhvoe4BBwb\noH9W\r\n=UnAL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCueWv8BLYAkSm52ozFqdwqwtFkBvQRcf8QXpv9SWEK1AIgFix5Ts6i572KI8uyjlG+aLa55/Jn7qEfcLRyTAY3BMU="}]},"maintainers":[{"name":"adarovsky","email":"adarovsky@me.com"}],"_npmUser":{"name":"adarovsky","email":"adarovsky@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-scalars_0.1.11_1594206033284_0.7202412931395261"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-08T10:50:31.765Z","0.1.9":"2020-07-08T10:50:31.966Z","modified":"2022-04-04T11:26:46.449Z","0.1.10":"2020-07-08T10:59:42.095Z","0.1.11":"2020-07-08T11:00:33.433Z"},"maintainers":[{"name":"adarovsky","email":"adarovsky@me.com"}],"description":"custom apollo link to allow to parse custom scalars","homepage":"https://github.com/eturino/apollo-link-scalars","keywords":[],"repository":{"type":"git","url":"https://github.com/eturino/apollo-link-scalars"},"author":{"name":"Eduardo Turiño","email":"eturino@eturino.com"},"bugs":{"url":"https://github.com/eturino/apollo-link-scalars/issues"},"license":"MIT","readme":"# `apollo-link-scalars`\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n[![npm version](https://badge.fury.io/js/apollo-link-scalars.svg)](https://badge.fury.io/js/apollo-link-scalars)\n[![Build Status](https://travis-ci.org/eturino/apollo-link-scalars.svg?branch=master)](https://travis-ci.org/eturino/apollo-link-scalars)\n[![codebeat badge](https://codebeat.co/badges/a90150b8-7456-4f39-af0e-773f6fbf4324)](https://codebeat.co/projects/github-com-eturino-apollo-link-scalars-master)\n[![Maintainability](https://api.codeclimate.com/v1/badges/bfc3427f46454051044b/maintainability)](https://codeclimate.com/github/eturino/apollo-link-scalars/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/bfc3427f46454051044b/test_coverage)](https://codeclimate.com/github/eturino/apollo-link-scalars/test_coverage)\n\n[TypeDoc generated docs in here](https://eturino.github.io/apollo-link-scalars)\n\n[Github repo here](https://github.com/eturino/apollo-link-scalars)\n\nCustom Apollo Link to allow to parse custom scalars from responses, as well as serialize custom scalars in inputs. It can also validate enums, and cleanup `__typename` from inputs. (see [Usage](#usage) and [Options](#options)).\n\n## Disclaimer: Potential cache interaction\n\nParsing scalars at link level means that Apollo cache will receive them already parsed. Depending on what kind of parsing is performed, this may interact with the cache JSON serialization of, for example,`apollo-cache-persist`. While `apollo-cache-persist` has an option to turn that serialisation off, others may have similar issues.\n\nIn the [original Apollo Client Github issue thread about scalar parsing](https://github.com/apollographql/apollo-client/issues/585), [this situation](https://github.com/apollographql/apollo-client/issues/585#issuecomment-400792837) [was discussed](https://github.com/apollographql/apollo-client/issues/585#issuecomment-400777797).\n\nAt the time of this writing, Apollo Client still does not support this over 4 years after the original ticket was opened. A potential solution of parsing after the cache might have some other issues, like returning different instances for the cached data, which may not be ideal in some situations that rely on that (e.g. react re-render control). I think some users will benefit more from the automatic parsing and serializing than the cost of the potential cache interactions.\n\n## Installation\n\n`yarn add apollo-link-scalars` or `npm install apollo-link-scalars`.\n\n## Usage\n\nWe need to pass a `GraphQLSchema`, and optionally we can also pass a map of custom serialization/parsing functions for specific types.\n\nYou can build the link by calling the `withScalars()` function, passing to it the `schema` and optionally a `typesMap`.\n\n```typescript\nimport { withScalars } from \"apollo-link-scalars\";\nimport { ApolloLink } from \"apollo-link\";\nimport { HttpLink } from \"apollo-link-http\";\nimport { schema } from \"./my-schema\";\n\nconst link = ApolloLink.from([\n  withScalars({ schema }),\n  new HttpLink({ uri: \"http://example.org/graphql\" })\n]);\n\n// we can also pass a custom map of functions. These will have priority over the GraphQLTypes parsing and serializing functions from the Schema.\nconst typesMap = {\n  CustomScalar: {\n    serialize: (parsed: CustomScalar) => parsed.toString(),\n    parseValue: (raw: string | number | null): CustomScalar | null => {\n      return raw ? new CustomScalar(raw) : null;\n    }\n  }\n};\n\nconst link2 = ApolloLink.from([\n  withScalars({ schema, typesMap }),\n  new HttpLink({ uri: \"http://example.org/graphql\" })\n]);\n```\n\n### Options\n\nWe can pass extra options to `withScalars()` to modify the behaviour\n\n- **`removeTypenameFromInputs`** (`Boolean`, default `false`): when enabled, it will remove from the inputs the `__typename` if it is found. This could be useful if we are using data received from a query as an input on another query.\n- **`validateEnums`** (`Boolean`, default `false`): when enabled, it will validate the enums on parsing, throwing an error if it sees a value that is not one of the enum values.\n\n```typescript\nwithScalars({\n  schema,\n  typesMap,\n  validateEnums: true,\n  removeTypenameFromInputs: true\n});\n```\n\n### Example of loading a schema\n\n```typescript\nimport gql from \"graphql-tag\";\nimport { GraphQLScalarType, Kind } from \"graphql\";\nimport { makeExecutableSchema } from \"graphql-tools\";\n\n// GraphQL Schema definition.\nconst typeDefs = gql`\n  type Query {\n    myList: [MyObject!]!\n  }\n\n  type MyObject {\n    day: Date\n    days: [Date]!\n    nested: MyObject\n  }\n\n  \"represents a Date with time\"\n  scalar Date\n`;\n\nconst resolvers = {\n  // example of scalar type, which will parse the string into a custom class CustomDate which receives a Date object\n  Date: new GraphQLScalarType({\n    name: \"Date\",\n    serialize: (parsed: CustomDate | null) => parsed && parsed.toISOString(),\n    parseValue: (raw: any) => raw && new CustomDate(new Date(raw)),\n    parseLiteral(ast) {\n      if (ast.kind === Kind.STRING || ast.kind === Kind.INT) {\n        return new CustomDate(new Date(ast.value));\n      }\n      return null;\n    }\n  })\n};\n\n// GraphQL Schema, required to use the link\nconst schema = makeExecutableSchema({\n  typeDefs,\n  resolvers\n});\n```\n\n#### Synchronously creating a link instance with [`graphql-code-generator`](https://graphql-code-generator.com/) setup\n\n> Warning: Be sure to watch your bundle size and know what you are doing.\n\nCodegen config to generate introspection data:\n\n`codegen.yml`\n\n```yml\n---\ngenerates:\n  src/__generated__/graphql.schema.json:\n    plugins:\n      - \"introspection\"\n    config:\n      minify: true\n```\n\nSynchronous code to create link instance in common scenario:\n\n```typescript\nimport introspectionResult from \"./__generated__/graphql.schema.json\";\nimport { buildClientSchema, IntrospectionQuery } from \"graphql\";\n\nconst schema = buildClientSchema(introspectionResult)\n// note: sometimes it seems to be needed to cast it as Introspection Query\n// `const schema = buildClientSchema((introspectionResult as unknown) as IntrospectionQuery)`\n\nconst scalarsLink = withScalars({\n  schema,\n  typesMap: { … },\n});\n```\n\n## Acknowledgements\n\nThe link code is heavily based on [`apollo-link-response-resolver`](https://github.com/with-heart/apollo-link-response-resolver) by [will-heart](https://github.com/with-heart).\n\nWhile the approach in `apollo-link-response-resolver` is to apply resolvers based on the types taken from `__typename`, this follows the query and the schema to parse based on scalar types. Note that [`apollo-link-response-resolver` is archived now](https://github.com/with-heart/apollo-link-response-resolver/issues/18)\n\nI started working on this after following the Apollo feature request https://github.com/apollographql/apollo-feature-requests/issues/2.\n\n## Development, Commits, versioning and publishing\n\n<details><summary>See documentation for development</summary>\n<p>\n\nSee [The Typescript-Starter docs](https://github.com/bitjson/typescript-starter#bump-version-update-changelog-commit--tag-release).\n\n### Commits and CHANGELOG\n\nFor commits, you should use [`commitizen`](https://github.com/commitizen/cz-cli)\n\n```sh\nyarn global add commitizen\n\n#commit your changes:\ngit cz\n```\n\nAs typescript-starter docs state:\n\nThis project is tooled for [conventional changelog](https://github.com/conventional-changelog/conventional-changelog) to make managing releases easier. See the [standard-version](https://github.com/conventional-changelog/standard-version) documentation for more information on the workflow, or [`CHANGELOG.md`](CHANGELOG.md) for an example.\n\n```sh\n# bump package.json version, update CHANGELOG.md, git tag the release\nyarn run version\n```\n\nYou may find a tool like [**`wip`**](https://github.com/bitjson/wip) helpful for managing work in progress before you're ready to create a meaningful commit.\n\n### Creating the first version\n\nOnce you are ready to create the first version, run the following (note that `reset` is destructive and will remove all files not in the git repo from the directory).\n\n```sh\n# Reset the repo to the latest commit and build everything\nyarn run reset && yarn run test && yarn run doc:html\n\n# Then version it with standard-version options. e.g.:\n# don't bump package.json version\nyarn run version -- --first-release\n\n# Other popular options include:\n\n# PGP sign it:\n# $ yarn run version -- --sign\n\n# alpha release:\n# $ yarn run version -- --prerelease alpha\n```\n\nAnd after that, remember to [publish the docs](#publish-the-docs).\n\nAnd finally push the new tags to github and publish the package to npm.\n\n```sh\n# Push to git\ngit push --follow-tags origin master\n\n# Publish to NPM (allowing public access, required if the package name is namespaced like `@somewhere/some-lib`)\nyarn publish --access public\n```\n\n### Publish the Docs\n\n```sh\nyarn run doc:html && yarn run doc:publish\n```\n\nThis will generate the docs and publish them in github pages.\n\n### Generate a version\n\nThere is a single yarn command for preparing a new release. See [One-step publish preparation script in TypeScript-Starter](https://github.com/bitjson/typescript-starter#one-step-publish-preparation-script)\n\n```sh\n# Prepare a standard release\nyarn prepare-release\n\n# Push to git\ngit push --follow-tags origin master\n\n# Publish to NPM (allowing public access, required if the package name is namespaced like `@somewhere/some-lib`)\nyarn publish --access public\n```\n\n</p>\n</details>\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"http://eturino.com\"><img src=\"https://avatars3.githubusercontent.com/u/1095800?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Eduardo Turiño</b></sub></a><br /><a href=\"#ideas-eturino\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"#infra-eturino\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a> <a href=\"https://github.com/eturino/apollo-link-scalars/commits?author=eturino\" title=\"Tests\">⚠️</a> <a href=\"https://github.com/eturino/apollo-link-scalars/commits?author=eturino\" title=\"Code\">💻</a> <a href=\"https://github.com/eturino/apollo-link-scalars/commits?author=eturino\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"http://gsamokovarov.com\"><img src=\"https://avatars0.githubusercontent.com/u/604618?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Genadi Samokovarov</b></sub></a><br /><a href=\"https://github.com/eturino/apollo-link-scalars/issues?q=author%3Agsamokovarov\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/eturino/apollo-link-scalars/commits?author=gsamokovarov\" title=\"Tests\">⚠️</a> <a href=\"https://github.com/eturino/apollo-link-scalars/commits?author=gsamokovarov\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/brabeji\"><img src=\"https://avatars3.githubusercontent.com/u/2237954?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Jiří Brabec</b></sub></a><br /><a href=\"https://github.com/eturino/apollo-link-scalars/commits?author=brabeji\" title=\"Documentation\">📖</a> <a href=\"https://github.com/eturino/apollo-link-scalars/issues?q=author%3Abrabeji\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/eturino/apollo-link-scalars/commits?author=brabeji\" title=\"Tests\">⚠️</a> <a href=\"https://github.com/eturino/apollo-link-scalars/commits?author=brabeji\" title=\"Code\">💻</a> <a href=\"#ideas-brabeji\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n    <td align=\"center\"><a href=\"https://twitter.com/JakubPetriska\"><img src=\"https://avatars3.githubusercontent.com/u/5531859?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Jakub Petriska</b></sub></a><br /><a href=\"https://github.com/eturino/apollo-link-scalars/issues?q=author%3AJakubPetriska\" title=\"Bug reports\">🐛</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","readmeFilename":"README.md"}