picosanity
Advanced tools
Comparing version 2.1.1-canary.0 to 2.1.1
@@ -0,1 +1,2 @@ | ||
/// <reference lib="dom" /> | ||
type QueryParams = {[key: string]: unknown} | ||
@@ -46,2 +47,11 @@ | ||
fetch<R = any>(query: string, params: QueryParams): Promise<R> | ||
/** | ||
* @alpha | ||
* @deprecated Don't rely on this existing, unless you: | ||
* a) Work at Sanity and can ask Espen: "is this a valid use case?" | ||
* b) Have a miniature schnauzer named Kokos which makes your life worth living, | ||
* AND your name just so happens to be Espen. | ||
*/ | ||
fetcher: (url: string, init: RequestInit) => Promise<Response> | ||
} | ||
@@ -48,0 +58,0 @@ |
{ | ||
"name": "picosanity", | ||
"version": "2.1.1-canary.0", | ||
"version": "2.1.1", | ||
"description": "Tiny Sanity client alternative should you only need to do queries", | ||
"main": "lib/index.js", | ||
"browser": "lib/browser.js", | ||
"umd": "umd/client.js", | ||
"unpkg": "umd/client.js", | ||
"typings": "client.d.ts", | ||
"browser": { | ||
"./lib/index.js": "./lib/browser.js", | ||
"./lib-legacy/index.js": "./lib-legacy/browser.js" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf lib/ umd/", | ||
"build": "npm run clean && npm run compile && NODE_ENV=production webpack", | ||
"compile": "babel --config-file=./babel.modern.json --copy-files -d lib/ src/ && babel --config-file=./babel.legacy.json --copy-files -d lib-legacy/ src/", | ||
"compile": "babel --copy-files -d lib/ src/", | ||
"posttest": "eslint .", | ||
@@ -30,3 +27,3 @@ "test": "jest", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=8" | ||
}, | ||
@@ -40,3 +37,2 @@ "author": "Espen Hovlandsdal <espen@hovlandsdal.com>", | ||
"dependencies": { | ||
"get-it": "^5.0.3", | ||
"node-fetch": "^2.6.0" | ||
@@ -43,0 +39,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
0
2
14232
21
252
- Removedget-it@^5.0.3
- Removed@sanity/timed-out@4.0.2(transitive)
- Removedcapture-stack-trace@1.0.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcreate-error-class@3.0.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddecompress-response@3.3.0(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedform-urlencoded@2.0.9(transitive)
- Removedfrom2@2.3.0(transitive)
- Removedget-it@5.2.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedinto-stream@3.1.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-retry-allowed@1.2.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@3.0.1(transitive)
- Removedmimic-response@1.0.1(transitive)
- Removedms@2.0.0(transitive)
- Removednano-pubsub@1.0.2(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedp-is-promise@1.1.0(transitive)
- Removedparse-headers@2.0.5(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedprogress-stream@2.0.0(transitive)
- Removedquerystringify@2.2.0(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedrequires-port@1.0.0(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsame-origin@0.1.1(transitive)
- Removedsimple-concat@1.0.1(transitive)
- Removedspeedometer@1.0.0(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedurl-parse@1.5.10(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)