{"_id":"@sanity/gradient-client","_rev":"185-6e78cdaa966937074386add73c8ff66a","name":"@sanity/gradient-client","dist-tags":{"latest":"0.1.4"},"versions":{"0.0.1":{"name":"@sanity/gradient-client","version":"0.0.1","keywords":["gradient","client","document-store"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@sanity/gradient-client@0.0.1","maintainers":[{"name":"sanity-io","email":"hello@sanity.io"}],"homepage":"https://github.com/sanity-io/gradient-client#readme","bugs":{"url":"https://github.com/sanity-io/gradient-client/issues"},"ava":{"require":["babel-register"]},"dist":{"shasum":"1e924eab8f912f958a0ba9986af6e1900f299d44","tarball":"https://registry.npmjs.org/@sanity/gradient-client/-/gradient-client-0.0.1.tgz","integrity":"sha512-fbnSLQa94ynGY4ND9+e/iJWVr6LmTdmyHyzmmCbGUHYeiSp1JpZEmyjOnRJuXkY/XfYPLFkkiZ8aDuzd/50W5A==","signatures":[{"sig":"MEYCIQDRaAB9gHqekRcgbjCh2qJmAap7hrDR6sxKOXZ0iJHBwQIhAIINQ193CM0+twUkOdBDCFysKbjtTmcX8RYoh9o3hpm1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/client.js","_from":".","_shasum":"1e924eab8f912f958a0ba9986af6e1900f299d44","gitHead":"1af25052591e7db42e9d829befa69e5efdf80d2e","scripts":{"test":"ava --fail-fast","clean":"rimraf lib && rimraf coverage","compile":"npm run clean && BABEL_ENV=production babel -d lib/ src/","coverage":"nyc --reporter=html ava --fail-fast","posttest":"eslint .","prepublish":"in-publish && npm run compile || not-in-publish","postpublish":"npm run clean"},"_npmUser":{"name":"sanity-io","email":"hello@sanity.io"},"deprecated":"This package is deprecated","repository":{"url":"git+ssh://git@github.com/sanity-io/gradient-client.git","type":"git"},"_npmVersion":"3.10.8","description":"Client library for the Gradient document store","directories":{},"_nodeVersion":"6.5.0","dependencies":{"debug":"^2.2.0","in-publish":"^2.0.0","@sanity/request":"^0.0.1"},"devDependencies":{"ava":"^0.14.0","nyc":"^6.4.0","nock":"^8.0.0","eslint":"^2.7.0","rimraf":"^2.5.2","babel-cli":"^6.7.5","babel-eslint":"^6.0.2","babel-register":"^6.7.2","babel-preset-es2015":"^6.6.0","eslint-config-sanity":"^1.0.7","babel-plugin-transform-object-rest-spread":"^6.6.5"},"_npmOperationalInternal":{"tmp":"tmp/gradient-client-0.0.1.tgz_1474472500720_0.20926034706644714","host":"packages-12-west.internal.npmjs.com"}},"0.0.2":{"name":"@sanity/gradient-client","version":"0.0.2","keywords":["gradient","client","document-store"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@sanity/gradient-client@0.0.2","maintainers":[{"name":"bengler-adm","email":"billing@bengler.no"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rexxars","email":"rexxars@gmail.com"},{"name":"sanity-io","email":"hello@sanity.io"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"thomax","email":"thomas@bengler.no"}],"homepage":"https://github.com/sanity-io/gradient-client#readme","bugs":{"url":"https://github.com/sanity-io/gradient-client/issues"},"ava":{"require":["babel-register"]},"dist":{"shasum":"5813d8770b2e9c6eac9d3e81d7b88efb90348eea","tarball":"https://registry.npmjs.org/@sanity/gradient-client/-/gradient-client-0.0.2.tgz","integrity":"sha512-r2OX0RRWsT1LP4q1+2REkyRvLTQIQQjXMBn3GXAbTXIdzelf3w4iQnRXWnK0bNMLXv+Az7q0qjmsGeq0FEEOwA==","signatures":[{"sig":"MEQCIBJXIXMTPRglRr1R/9C6wVa2EQLn4mDGZ5omLEv66SJfAiBuarVqRoeneKt4flQoPr0U7u/e23pNOPUDDoXeeAAorw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/client.js","_from":".","_shasum":"5813d8770b2e9c6eac9d3e81d7b88efb90348eea","gitHead":"06c4559cfb3a4e4d42dcc55923746a811f22ca09","scripts":{"test":"ava --fail-fast","clean":"rimraf lib && rimraf coverage","compile":"npm run clean && BABEL_ENV=production babel -d lib/ src/","coverage":"nyc --reporter=html ava --fail-fast","posttest":"eslint .","prepublish":"in-publish && npm run compile || not-in-publish","postpublish":"npm run clean"},"_npmUser":{"name":"bjoerge","email":"bjoerge@gmail.com"},"deprecated":"This package is deprecated","repository":{"url":"git+ssh://git@github.com/sanity-io/gradient-client.git","type":"git"},"_npmVersion":"3.10.8","description":"Client library for the Gradient document store","directories":{},"_nodeVersion":"6.5.0","dependencies":{"debug":"^2.2.0","in-publish":"^2.0.0","@sanity/request":"^0.0.1"},"devDependencies":{"ava":"^0.14.0","nyc":"^6.4.0","nock":"^8.0.0","eslint":"^3.7.0","rimraf":"^2.5.2","babel-cli":"^6.7.5","babel-eslint":"^7.0.0","babel-register":"^6.7.2","babel-preset-es2015":"^6.6.0","eslint-config-sanity":"^1.0.7","babel-plugin-transform-object-rest-spread":"^6.6.5"},"_npmOperationalInternal":{"tmp":"tmp/gradient-client-0.0.2.tgz_1475491466595_0.9410134435165673","host":"packages-16-east.internal.npmjs.com"}},"0.0.3":{"name":"@sanity/gradient-client","version":"0.0.3","keywords":["gradient","client","document-store"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@sanity/gradient-client@0.0.3","maintainers":[{"name":"bengler-adm","email":"billing@bengler.no"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rexxars","email":"rexxars@gmail.com"},{"name":"sanity-io","email":"hello@sanity.io"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"thomax","email":"thomas@bengler.no"}],"homepage":"https://github.com/sanity-io/gradient-client#readme","bugs":{"url":"https://github.com/sanity-io/gradient-client/issues"},"ava":{"require":["babel-register"]},"dist":{"shasum":"3b73f85cf0c98d1adee25e0832e68b832c53c53c","tarball":"https://registry.npmjs.org/@sanity/gradient-client/-/gradient-client-0.0.3.tgz","integrity":"sha512-QSBngwPg6P4OPGzaz4nS3HsC8cePxrFYSUQ2wkCdpXMG2/X9hAOG/o9BLgyWDN9p6lKVx2AqUgLp9MHKLy/HGw==","signatures":[{"sig":"MEUCIQCKxba5s0LvgzBCeMeBAmMJa7ycNGTqfuVKaM28AxGiAQIgHvocvVfoVXnvIs5XT2QryL3oPrew6SqiWJrHwpjmF7I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/client.js","_from":".","_shasum":"3b73f85cf0c98d1adee25e0832e68b832c53c53c","gitHead":"8453d2c46572dd21dc004c04c244c29ae51eb5cd","scripts":{"test":"ava --fail-fast","clean":"rimraf lib && rimraf coverage","compile":"npm run clean && BABEL_ENV=production babel -d lib/ src/","coverage":"nyc --reporter=html ava --fail-fast","posttest":"eslint .","prepublish":"in-publish && npm run compile || not-in-publish","postpublish":"npm run clean"},"_npmUser":{"name":"bjoerge","email":"bjoerge@gmail.com"},"deprecated":"This package is deprecated","repository":{"url":"git+ssh://git@github.com/sanity-io/gradient-client.git","type":"git"},"_npmVersion":"3.10.8","description":"Client library for the Gradient document store","directories":{},"_nodeVersion":"6.5.0","dependencies":{"debug":"^2.2.0","in-publish":"^2.0.0","@sanity/request":"^0.0.1"},"devDependencies":{"ava":"^0.14.0","nyc":"^6.4.0","nock":"^8.0.0","eslint":"^3.7.0","rimraf":"^2.5.2","babel-cli":"^6.7.5","babel-eslint":"^7.0.0","babel-register":"^6.7.2","babel-preset-es2015":"^6.6.0","eslint-config-sanity":"^1.0.7","babel-plugin-transform-object-rest-spread":"^6.6.5"},"_npmOperationalInternal":{"tmp":"tmp/gradient-client-0.0.3.tgz_1475494697152_0.5205009134951979","host":"packages-12-west.internal.npmjs.com"}},"0.1.0":{"name":"@sanity/gradient-client","version":"0.1.0","keywords":["gradient","client","document-store"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@sanity/gradient-client@0.1.0","maintainers":[{"name":"bengler-adm","email":"billing@bengler.no"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rexxars","email":"rexxars@gmail.com"},{"name":"sanity-io","email":"hello@sanity.io"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"thomax","email":"thomas@bengler.no"}],"homepage":"https://github.com/sanity-io/gradient-client#readme","bugs":{"url":"https://github.com/sanity-io/gradient-client/issues"},"ava":{"require":["babel-register"]},"dist":{"shasum":"31fcde4ba0627e67aed6d789d56029c73cb29e05","tarball":"https://registry.npmjs.org/@sanity/gradient-client/-/gradient-client-0.1.0.tgz","integrity":"sha512-Kpfvxsc9hEoD3cN6C6yT/eWNRUFHMjL0dIYSh9MSbeELcUZ9jY9OrqxNAF5pcz1X6ORB3EsLWqCu8atS6vB3QA==","signatures":[{"sig":"MEUCICKqwRlD6cfkBfsf4BLY4n9+j3bqWEOaeq0uosEO/UFvAiEA5RPg5TDhSmgI5T/1iSdaVkk4I4rzCH32fos4R1cpIug=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/client.js","_from":".","_shasum":"31fcde4ba0627e67aed6d789d56029c73cb29e05","gitHead":"7e5fe09f60590f4af3655f7daefe2e5d5975f371","scripts":{"test":"ava --fail-fast","clean":"rimraf lib && rimraf coverage","compile":"npm run clean && BABEL_ENV=production babel -d lib/ src/","coverage":"nyc --reporter=html ava --fail-fast","posttest":"eslint .","prepublish":"in-publish && npm run compile || not-in-publish","postpublish":"npm run clean"},"_npmUser":{"name":"rexxars","email":"rexxars@gmail.com"},"deprecated":"This package is deprecated","repository":{"url":"git+ssh://git@github.com/sanity-io/gradient-client.git","type":"git"},"_npmVersion":"3.10.3","description":"Client library for the Gradient document store","directories":{},"_nodeVersion":"6.6.0","dependencies":{"debug":"^2.2.0","in-publish":"^2.0.0","@sanity/request":"^0.0.3"},"devDependencies":{"ava":"^0.16.0","nyc":"^6.4.0","nock":"^8.0.0","eslint":"^3.7.0","rimraf":"^2.5.2","babel-cli":"^6.7.5","babel-eslint":"^7.0.0","babel-register":"^6.7.2","babel-preset-es2015":"^6.6.0","eslint-config-sanity":"^1.0.7","babel-plugin-transform-object-rest-spread":"^6.6.5"},"_npmOperationalInternal":{"tmp":"tmp/gradient-client-0.1.0.tgz_1476269166376_0.13452300149947405","host":"packages-12-west.internal.npmjs.com"}},"0.1.1":{"name":"@sanity/gradient-client","version":"0.1.1","keywords":["gradient","client","document-store"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@sanity/gradient-client@0.1.1","maintainers":[{"name":"bengler-adm","email":"billing@bengler.no"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rexxars","email":"rexxars@gmail.com"},{"name":"sanity-io","email":"hello@sanity.io"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"thomax","email":"thomas@bengler.no"}],"homepage":"https://github.com/sanity-io/gradient-client#readme","bugs":{"url":"https://github.com/sanity-io/gradient-client/issues"},"ava":{"require":["babel-register"]},"dist":{"shasum":"920b080a476f47a9676fdfe2ded4dcbc0db32c18","tarball":"https://registry.npmjs.org/@sanity/gradient-client/-/gradient-client-0.1.1.tgz","integrity":"sha512-tsVxNrM/nzO1Xb1oKDLn8EJSqhjisPNt1XDnnjBLPJDT9iQk689HhLRNQba2sZN8xZsL8nKZkRauHXGieybWoA==","signatures":[{"sig":"MEYCIQDBotvEIax1UPkMmps9JL2TeE94MQ0aIHbTNmiy8SqwEQIhAMiZyQQZRA3gb34uBk+9c+mLYFQsMKrb4VODP2PLhCk+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/client.js","_from":".","_shasum":"920b080a476f47a9676fdfe2ded4dcbc0db32c18","gitHead":"d4a2ce59faa0216a5048f0e8e5dcbb70559f6044","scripts":{"test":"ava --fail-fast","clean":"rimraf lib && rimraf coverage","compile":"npm run clean && BABEL_ENV=production babel -d lib/ src/","coverage":"nyc --reporter=html ava --fail-fast","posttest":"eslint .","prepublish":"in-publish && npm run compile || not-in-publish","postpublish":"npm run clean"},"_npmUser":{"name":"sanity-io","email":"hello@sanity.io"},"deprecated":"This package is deprecated","repository":{"url":"git+ssh://git@github.com/sanity-io/gradient-client.git","type":"git"},"_npmVersion":"3.10.8","description":"Client library for the Gradient document store","directories":{},"_nodeVersion":"6.9.0","dependencies":{"debug":"^2.2.0","in-publish":"^2.0.0","@sanity/request":"^0.0.3"},"devDependencies":{"ava":"^0.16.0","nyc":"^6.4.0","nock":"^8.0.0","eslint":"^3.7.0","rimraf":"^2.5.2","babel-cli":"^6.7.5","babel-eslint":"^7.0.0","babel-register":"^6.7.2","babel-preset-es2015":"^6.6.0","eslint-config-sanity":"^1.0.7","babel-plugin-transform-object-rest-spread":"^6.6.5"},"_npmOperationalInternal":{"tmp":"tmp/gradient-client-0.1.1.tgz_1476888480765_0.2357017849572003","host":"packages-16-east.internal.npmjs.com"}},"0.1.2":{"name":"@sanity/gradient-client","version":"0.1.2","keywords":["gradient","client","document-store"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@sanity/gradient-client@0.1.2","maintainers":[{"name":"bengler-adm","email":"billing@bengler.no"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rexxars","email":"rexxars@gmail.com"},{"name":"sanity-io","email":"hello@sanity.io"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"thomax","email":"thomas@bengler.no"}],"homepage":"https://github.com/sanity-io/gradient-client#readme","bugs":{"url":"https://github.com/sanity-io/gradient-client/issues"},"ava":{"require":["babel-register"]},"dist":{"shasum":"618ec5b85c18613b112bf8eb0939e4276205819c","tarball":"https://registry.npmjs.org/@sanity/gradient-client/-/gradient-client-0.1.2.tgz","integrity":"sha512-DXU+xjJK626eN+kY3aSfCKwpMKv6lyOBRC6+s6ZCMgMRguwPUNmU+uAAwGojOotcPe1gJQjdD0tn7VU2QiQLWw==","signatures":[{"sig":"MEQCIAsxO/ubijBbxikzw5fPXUpRvH/Gkz33B6dklCt22lZUAiBDoA5oc3IxQx106sWfA1hVe9Sy2Bty1lkuRTzRwoU99A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/client.js","_from":".","_shasum":"618ec5b85c18613b112bf8eb0939e4276205819c","gitHead":"440986593fcf969b8608351d34dca6b98ae5cd7e","scripts":{"test":"ava --fail-fast","clean":"rimraf lib && rimraf coverage","compile":"npm run clean && BABEL_ENV=production babel -d lib/ src/","coverage":"nyc --reporter=html ava --fail-fast","posttest":"eslint .","prepublish":"in-publish && npm run compile || not-in-publish","postpublish":"npm run clean"},"_npmUser":{"name":"rexxars","email":"rexxars@gmail.com"},"deprecated":"This package is deprecated","repository":{"url":"git+ssh://git@github.com/sanity-io/gradient-client.git","type":"git"},"_npmVersion":"3.10.8","description":"Client library for the Gradient document store","directories":{},"_nodeVersion":"6.9.1","dependencies":{"debug":"^2.2.0","in-publish":"^2.0.0","@sanity/request":"^0.0.3"},"devDependencies":{"ava":"^0.16.0","nyc":"^6.4.0","nock":"^8.0.0","eslint":"^3.7.0","rimraf":"^2.5.2","babel-cli":"^6.7.5","babel-eslint":"^7.0.0","babel-register":"^6.7.2","babel-preset-es2015":"^6.6.0","eslint-config-sanity":"^1.0.7","babel-plugin-transform-object-rest-spread":"^6.6.5"},"_npmOperationalInternal":{"tmp":"tmp/gradient-client-0.1.2.tgz_1477593228066_0.029702425003051758","host":"packages-18-east.internal.npmjs.com"}},"0.1.3":{"name":"@sanity/gradient-client","version":"0.1.3","keywords":["gradient","client","document-store"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@sanity/gradient-client@0.1.3","maintainers":[{"name":"bengler-adm","email":"billing@bengler.no"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rexxars","email":"rexxars@gmail.com"},{"name":"sanity-io","email":"hello@sanity.io"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"thomax","email":"thomas@bengler.no"}],"homepage":"https://github.com/sanity-io/gradient-client#readme","bugs":{"url":"https://github.com/sanity-io/gradient-client/issues"},"ava":{"require":["babel-register"]},"dist":{"shasum":"eb0345ffbeaa8ae1b3cc51913100ab98c8d772a5","tarball":"https://registry.npmjs.org/@sanity/gradient-client/-/gradient-client-0.1.3.tgz","integrity":"sha512-nIIKgKIPbrAJF+tXobEmFLYL3xq1Zi6IwoRMRP2z/AyOLHciST2sEPuwzPOQ87XdRqlThAysOwxKGh9uc4tlcw==","signatures":[{"sig":"MEQCIENJ6SR6uutI+/DwOljQnfq+guaXzRTFUoycyefMsTCMAiBvSJrfWChggjUthX0GARriQ6KMC/svW+VGlELxARDt4A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/client.js","_from":".","_shasum":"eb0345ffbeaa8ae1b3cc51913100ab98c8d772a5","gitHead":"bc547cdd6c8a97a50c046aeb44396cbbda628eec","scripts":{"test":"ava --fail-fast","clean":"rimraf lib && rimraf coverage","compile":"npm run clean && BABEL_ENV=production babel -d lib/ src/","coverage":"nyc --reporter=html ava --fail-fast","posttest":"eslint .","prepublish":"in-publish && npm run compile || not-in-publish","postpublish":"npm run clean"},"_npmUser":{"name":"rexxars","email":"rexxars@gmail.com"},"deprecated":"This package is deprecated","repository":{"url":"git+ssh://git@github.com/sanity-io/gradient-client.git","type":"git"},"_npmVersion":"3.10.8","description":"Client library for the Gradient document store","directories":{},"_nodeVersion":"6.9.1","dependencies":{"debug":"^2.2.0","in-publish":"^2.0.0","@sanity/request":"^0.0.3"},"devDependencies":{"ava":"^0.16.0","nyc":"^6.4.0","nock":"^8.0.0","eslint":"^3.7.0","rimraf":"^2.5.2","babel-cli":"^6.7.5","babel-eslint":"^7.0.0","babel-register":"^6.7.2","babel-preset-es2015":"^6.6.0","eslint-config-sanity":"^1.0.7","babel-plugin-transform-object-rest-spread":"^6.6.5"},"_npmOperationalInternal":{"tmp":"tmp/gradient-client-0.1.3.tgz_1478253122374_0.4264714391902089","host":"packages-12-west.internal.npmjs.com"}},"0.1.4":{"name":"@sanity/gradient-client","version":"0.1.4","keywords":["gradient","client","document-store"],"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","_id":"@sanity/gradient-client@0.1.4","maintainers":[{"name":"bengler-adm","email":"billing@bengler.no"},{"name":"bjoerge","email":"bjoerge@gmail.com"},{"name":"rexxars","email":"rexxars@gmail.com"},{"name":"sanity-io","email":"hello@sanity.io"},{"name":"skogsmaskin","email":"per.kristian.nordnes@gmail.com"},{"name":"thomax","email":"thomas@bengler.no"}],"homepage":"https://github.com/sanity-io/gradient-client#readme","bugs":{"url":"https://github.com/sanity-io/gradient-client/issues"},"ava":{"require":["babel-register"]},"dist":{"shasum":"f64e4a00dd031965f3460c3564de8419a251e1a2","tarball":"https://registry.npmjs.org/@sanity/gradient-client/-/gradient-client-0.1.4.tgz","integrity":"sha512-b7XCYfTpvJMSWZi72D6hFKWyLmybtBxvGqnzlMKxEDfrYTVGMXG7YxkybjLMie+SIbe2+2pfetxzhQl2tO8lnw==","signatures":[{"sig":"MEUCIQDcoitsqWor6SGPICi8uwBzUomt1eXVEr4xH//nOa+ALAIgIMIUa8dRbqEZAft0k8QzIHkcyWe7VyPy5SIHaYlsOCU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/client.js","_from":".","_shasum":"f64e4a00dd031965f3460c3564de8419a251e1a2","gitHead":"7a445d77b80e9c41ddc7c30b065ef7bff4d4ef85","scripts":{"test":"ava --fail-fast","clean":"rimraf lib && rimraf coverage","compile":"npm run clean && BABEL_ENV=production babel -d lib/ src/","coverage":"nyc --reporter=html ava --fail-fast","posttest":"eslint .","prepublish":"in-publish && npm run compile || not-in-publish","postpublish":"npm run clean"},"_npmUser":{"name":"rexxars","email":"rexxars@gmail.com"},"deprecated":"This package is deprecated","repository":{"url":"git+ssh://git@github.com/sanity-io/gradient-client.git","type":"git"},"_npmVersion":"3.10.8","description":"Client library for the Gradient document store","directories":{},"_nodeVersion":"6.9.1","dependencies":{"debug":"^2.2.0","in-publish":"^2.0.0","@sanity/request":"^0.0.3"},"devDependencies":{"ava":"^0.16.0","nyc":"^6.4.0","nock":"^8.0.0","eslint":"^3.7.0","rimraf":"^2.5.2","babel-cli":"^6.7.5","babel-eslint":"^7.0.0","babel-register":"^6.7.2","babel-preset-es2015":"^6.6.0","eslint-config-sanity":"^1.0.7","babel-plugin-transform-object-rest-spread":"^6.6.5"},"_npmOperationalInternal":{"tmp":"tmp/gradient-client-0.1.4.tgz_1480893767363_0.6761855066288263","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2016-09-21T15:41:42.733Z","modified":"2026-04-08T15:16:27.699Z","0.0.1":"2016-09-21T15:41:42.733Z","0.0.2":"2016-10-03T10:44:28.043Z","0.0.3":"2016-10-03T11:38:19.006Z","0.1.0":"2016-10-12T10:46:08.194Z","0.1.1":"2016-10-19T14:48:01.295Z","0.1.2":"2016-10-27T18:33:50.340Z","0.1.3":"2016-11-04T09:52:04.243Z","0.1.4":"2016-12-04T23:22:49.435Z"},"bugs":{"url":"https://github.com/sanity-io/gradient-client/issues"},"author":{"name":"Sanity.io","email":"hello@sanity.io"},"license":"MIT","homepage":"https://github.com/sanity-io/gradient-client#readme","keywords":["gradient","client","document-store"],"repository":{"url":"git+ssh://git@github.com/sanity-io/gradient-client.git","type":"git"},"description":"Client library for the Gradient document store","maintainers":[{"email":"svc.npm@sanity.io","name":"sanity-svc.npm"},{"email":"developers@sanity.io","name":"sanity-io"}],"readme":"# gradient-client\n\nJavascript client for the [Gradient document store](https://github.com/sanity-io/gradient). Works in both Node.js and modern browsers.\n\n## Installation\n\n```\nnpm install @sanity/gradient-client\n```\n\n## Usage\n\n```js\nconst gradient = require('@sanity/gradient-client')\nconst client = gradient({\n  url: 'https://gradient.url:56200',\n  dataset: 'beerfiesta',\n  token: '[auth token here]'\n})\n\n// Fetching:\nclient.fetch(\n  'beerfiesta.beer[rating > $ratingThreshold] {name, rating}',\n  {$ratingThreshold: 95},\n  (err, response) => {\n    if (err) {\n      throw err\n    }\n\n    response.result.forEach(beer => {\n      console.log(`${beer.name} has a rating of ${beer.rating}`)\n    })\n  }\n)\n\n// Fetch a specific document by ID:\nclient.getDocument('beerfiesta/someId', (err, beer) => {\n  if (err) {\n    throw err\n  }\n  \n  console.log(beer)\n})\n\n// Creating:\nclient.create({\n  _type: 'beerfiesta.brewery',\n  companyName: 'Bengler',\n  location: {\n    lat: 59.923868,\n    lng: 10.757842\n  }\n}, (err, response) => {\n  if (err) {\n    throw err\n  }\n\n  console.log(`Document ID: ${response.results[0].id}`)\n})\n\n// Updating:\nclient.update(\n  'beerfiesta/S0YNUJXt2Ko0yjIDnZ9T', // Document ID\n  { // Update patch, see Gradient wiki for update operations\n    companyName: 'Bengler AS',\n    location: {\n      lat: 59.9238681\n    }\n  },\n  (err, response) => { /* handle it */ }\n)\n\n// Deleting:\nclient.delete(\n  'beerfiesta/S0YNUJXt2Ko0yjIDnZ9T', // Document ID\n  (err, response) => { /* handle it */ }\n)\n```\n\n## License\n\nMIT-licensed. See LICENSE.\n","readmeFilename":"README.md"}