{"_id":"@dschau/gatsby-source-cosmicjs","_rev":"2-ee99a24cde9a6090df93b3842f076179","name":"@dschau/gatsby-source-cosmicjs","dist-tags":{"latest":"0.0.1-rc.1"},"versions":{"0.0.1-rc.0":{"name":"@dschau/gatsby-source-cosmicjs","publishConfig":{"access":"public"},"version":"0.0.1-rc.0","description":"Gatsby Source Plugin for building websites using Cosmic JS as a data source","author":{"name":"Tony Spiro","email":"tspiro@tonyspiro.com","url":"https://cosmicjs.com"},"repository":{"type":"git","url":"git://github.com/cosmicjs/gatsby-source-cosmicjs.git"},"bugs":{"url":"https://github.com/cosmicjs/gatsby-source-cosmicjs/issues"},"license":"MIT","homepage":"https://cosmicjs.com/","scripts":{"prepublish":"npm run build","build":"babel src --out-dir .","test":"echo \"Error: no test specified\" && exit 1","format":"prettier --write 'src/**/*.js'","watch":"babel -w src --out-dir ."},"keywords":["gatsby","gatsby-plugin","gatsby-source-plugin","cosmicjs"],"dependencies":{"axios":"^0.19.0","lodash":"^4.17.11"},"devDependencies":{"babel-cli":"^6.24.1","babel-plugin-transform-async-to-generator":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"^1.6.0","pre-commit":"^1.2.2","prettier":"^1.18.2"},"peerDependencies":{"gatsby":">=2.13.26"},"pre-commit":["format"],"licenseText":"Copyright (c) 2015-2018 COSMIC JS Solutions.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@dschau/gatsby-source-cosmicjs@0.0.1-rc.0","dist":{"shasum":"3d43f8a29da27efd1491b14cffb94fb60dd8433c","integrity":"sha512-dLBHjaSjntlkz18gsR/P2wdixjeQH95uzasfhyktg4WQKozwu7yIgQbogM5eswnQT6y1C0v+en6JicGMgXtmeA==","tarball":"https://registry.npmjs.org/@dschau/gatsby-source-cosmicjs/-/gatsby-source-cosmicjs-0.0.1-rc.0.tgz","fileCount":11,"unpackedSize":94165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdRKaCCRA9TVsSAnZWagAAU3YP/1AkK76fQxCTBfJsT+Sg\n33wa6PSNiz/5PQPVHl7+AFc2Nv7FDlYcGZCnj8VTao2XnrWYJ2IrWEjwnXah\nw8mh4bSnGHB0UfQqARL0YcTZ2IWBkMQsENgadrn5vw1X5azapT427kzxrsxS\nydPn5LlyHef4DZ7S7RM2XZYEQpi+YPQfZFr8Ivz2egS611MXfePA90Uvgvbi\nx1ZxE42pLhIIIhiNv9pWbcvQFjw27cujVQeczTC1qM22WOuy346d4AsCGKcz\nKqbSpMV2MSCzHZDRa7YVPpLYy+70Tb7+ZBAEygGGon/AWPx3FdPfC+DeSepR\n6lyAzd8XS6WJPZjGh2qewugfEXbef6/0JEyh6hc+RLSkzUS6Q3ye+gQyJxX1\nPP1Lhc6W0+tuk+pWiuUoECHjhh9edcOz2weQBCiEU1luDGSW+eEudULXS1lp\noD7cRITBp8uZ0HDVLVW0rjro3VKM48a39OiGOP7B1r28qGcs/+vKMmyWn8k3\n7nQEH5oU1aAJ8ef9LOpMpIS1DPDRwgc3iGYkXfzcj/5xIE+skto/WqjP4qcM\naS5/IN0a/7aUlIMfh8REMC83WcYi8weroPhDTzN3OX4oVQD5fMuwWVmXJuog\nnZbbeZY24qvJJcIVnwowFuvM0PxDv3XRSf/jdP10EadBz5CHHPbm+5oTBOl+\nY9L8\r\n=PDqO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6dA6j0R1VGcq4Stz6y4gnKuV9EtLP+bciJRBS3kx4PgIgKLpNvWnRtwQhvgEzG3NMZv3fG8oBnNmBnIqu9LldtzE="}]},"maintainers":[{"name":"dschau","email":"dustinschau@gmail.com"}],"_npmUser":{"name":"dschau","email":"dustinschau@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-source-cosmicjs_0.0.1-rc.0_1564780162243_0.2850786368066647"},"_hasShrinkwrap":false},"0.0.1-rc.1":{"name":"@dschau/gatsby-source-cosmicjs","publishConfig":{"access":"public"},"version":"0.0.1-rc.1","description":"Gatsby Source Plugin for building websites using Cosmic JS as a data source","author":{"name":"Tony Spiro","email":"tspiro@tonyspiro.com","url":"https://cosmicjs.com"},"repository":{"type":"git","url":"git://github.com/cosmicjs/gatsby-source-cosmicjs.git"},"bugs":{"url":"https://github.com/cosmicjs/gatsby-source-cosmicjs/issues"},"license":"MIT","homepage":"https://cosmicjs.com/","scripts":{"prepublish":"npm run build","build":"babel src --out-dir .","test":"echo \"Error: no test specified\" && exit 1","format":"prettier --write 'src/**/*.js'","watch":"babel -w src --out-dir ."},"keywords":["gatsby","gatsby-plugin","gatsby-source-plugin","cosmicjs"],"dependencies":{"axios":"^0.19.0","lodash":"^4.17.11"},"devDependencies":{"babel-cli":"^6.24.1","babel-plugin-transform-async-to-generator":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"^1.6.0","pre-commit":"^1.2.2","prettier":"^1.18.2"},"peerDependencies":{"gatsby":">=2.13.26"},"pre-commit":["format"],"licenseText":"Copyright (c) 2015-2018 COSMIC JS Solutions.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@dschau/gatsby-source-cosmicjs@0.0.1-rc.1","dist":{"shasum":"a2441728267f42f54b8fac78cc1c76b843a43e13","integrity":"sha512-OBI6Aa62/VTitZHatqpGXgFjRmukT2iSaR81rr87XcfZBh51Hg/f+/MmKnIV60Y+/M/PjVaygO8C3ZDqBTmJ0g==","tarball":"https://registry.npmjs.org/@dschau/gatsby-source-cosmicjs/-/gatsby-source-cosmicjs-0.0.1-rc.1.tgz","fileCount":11,"unpackedSize":94362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSZlyCRA9TVsSAnZWagAA4ywP/20+Xh6S0aF9/YzrgSVH\ncJKlkockTtljeGTqmQrOQHocEvlCbsNg2sQB7fI7gFB9QYDC+TIriytzvLfE\ngEiyJnPr800BqwCnqPTQCPlN+nWlpNG9tH7ad8znWLM4P+GBkpzB6p985455\nSkmRiBX0TfaTZ8PHqla3n3Ona3FxvPOn9gj8djdiuMziAo4nc4gxovtrythT\n3IOs1TSgnaXh+dqIvu2LhPzvkNvAQTnJzpnYAjZUcp9DPgguokw6BFI05Nbg\nWJxZpOgpmI9kVSr0QFKmahVSzq34dope2FlERn+5I5zMGttGl45wavxDMMSz\nDVt46EMyu/Ht1bd7jNzxxYar2+xN5aopWBkWPoQPymLUPQkl66dntaiUxm9x\nRG0N3+S1y1Mn0OMoEROFqDl1mhNRKxSja/8KgXvYfP2JmRm83lwfCDPHYq8O\nDeBaq6NUL4Re/Xgz4XEm3HFYogD4Q/Z7eRlSDLtZiK2PugM8N+jheTo6aJjG\n8nftGvjeyu7EwW8SijSOgVbbIkDbp8qpoFB15G64RUR1Klz3d13a/RKDdfs2\nxMihOWmov/+p9DGkTrFcxRWTyTrM6RUiHAvAMPZbHAGCESLbRRXgtQoatRXe\n3MSPEO8L74EXNTcr+JYRxkyVZKdHotCPeLXNDQWWsjHKcqtDy9ktyaXGCbdu\nvGGs\r\n=67HH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqDftXA+GatdGBaaUEKaSYwqXpekJXYG/XeGx4G/5V7QIhAMGJKvJr2roVVtSUaph7kpRIXZuMTZxLNkhxLFOQSsTn"}]},"maintainers":[{"name":"dschau","email":"dustinschau@gmail.com"}],"_npmUser":{"name":"dschau","email":"dustinschau@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-source-cosmicjs_0.0.1-rc.1_1565104498072_0.15683837348598417"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-02T21:09:22.034Z","0.0.1-rc.0":"2019-08-02T21:09:22.368Z","modified":"2022-04-05T05:44:08.175Z","0.0.1-rc.1":"2019-08-06T15:14:58.223Z"},"maintainers":[{"name":"dschau","email":"dustinschau@gmail.com"}],"description":"Gatsby Source Plugin for building websites using Cosmic JS as a data source","homepage":"https://cosmicjs.com/","keywords":["gatsby","gatsby-plugin","gatsby-source-plugin","cosmicjs"],"repository":{"type":"git","url":"git://github.com/cosmicjs/gatsby-source-cosmicjs.git"},"author":{"name":"Tony Spiro","email":"tspiro@tonyspiro.com","url":"https://cosmicjs.com"},"bugs":{"url":"https://github.com/cosmicjs/gatsby-source-cosmicjs/issues"},"license":"MIT","readme":"# Gatsby Source for Cosmic JS\n\nSource plugin for fetching data into [Gatsby](https://www.gatsbyjs.org) from [Cosmic JS](https://cosmicjs.com). Cosmic JS offers a [Headless CMS](https://cosmicjs.com/headless-cms) for your Gatsby website.\n\n## Starters\nInstall the [Cosmic JS Gatsby starter](https://github.com/cosmicjs/gatsby-starter):\n```\nnpm i cosmicjs -g\ncosmic init gatsby-starter\ncd gatsby-starter\ncosmic start\n```\n\nInstall the [Cosmic JS Gatsby localization starter](https://github.com/cosmicjs/gatsby-localization-starter):\n```\nnpm i cosmicjs -g\ncosmic init gatsby-starter\ncd gatsby-localization-starter\ncosmic start\n```\n\n## Install\n\n`npm install --save gatsby-source-cosmicjs`\n\n## How to use\n\n```javascript\n// In your gatsby-config.js\nplugins: [\n  {\n    resolve: `gatsby-source-cosmicjs`,\n    options: {\n      bucketSlug: ``,\n      objectTypes: [`posts`],\n      // If you have enabled read_key to fetch data (optional).\n      apiAccess: {\n        read_key: ``,\n      }\n    }\n  },\n]\n```\n\n## How to query and filter (Not Localized)\n\nYou can query the nodes created from Cosmic JS with the following:\n\n```graphql\n{\n  allCosmicjsPosts {\n    edges {\n      node {\n        id\n        slug\n        title\n      }\n    }\n  }\n}\n```\n\nand you can filter specific node using this:\n\n```graphql\n{\n  cosmicjsPosts(slug: {eq: ''}) {\n    id\n    slug\n    title\n  }\n}\n```\n\n## How to query (Localized)\n\n```graphql\n{\n  allCosmicjsPosts(filter: {locale: {eq: \"en\"}}, sort: {fields: [published_at], order: DESC}) {\n    edges {\n      node {\n        id\n        slug\n        title\n        locale\n      }\n    }\n  }\n}\n```\n","readmeFilename":"README.md"}