Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

picosanity

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

picosanity - npm Package Compare versions

Comparing version 2.1.1-canary.0 to 2.1.1

.babelrc

10

client.d.ts

@@ -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 @@

12

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc