Socket
Socket
Sign inDemoInstall

@sanity/client

Package Overview
Dependencies
Maintainers
51
Versions
977
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/client - npm Package Compare versions

Comparing version 6.18.0-canary.0 to 6.18.0

6

package.json
{
"name": "@sanity/client",
"version": "6.18.0-canary.0",
"version": "6.18.0",
"description": "Client for retrieving, creating and patching data from Sanity.io",

@@ -121,3 +121,3 @@ "keywords": [

"@sanity/eventsource": "^5.0.2",
"get-it": "^8.4.28",
"get-it": "^8.4.29",
"rxjs": "^7.0.0"

@@ -130,3 +130,3 @@ },

"@rollup/plugin-node-resolve": "^15.2.3",
"@sanity/pkg-utils": "^6.8.11",
"@sanity/pkg-utils": "^6.8.12",
"@types/json-diff": "^1.0.3",

@@ -133,0 +133,0 @@ "@types/node": "^20.8.8",

@@ -174,6 +174,2 @@ import {Observable} from 'rxjs'

es = eventSource
// Handle race condition where the observer is unsubscribed before the EventSource is set up
if (unsubscribed) {
unsubscribe()
}
}

@@ -197,3 +193,3 @@ })

function parseEvent(event: MessageEvent) {
function parseEvent(event: Any) {
try {

@@ -200,0 +196,0 @@ const data = (event.data && JSON.parse(event.data)) || {}

@@ -41,8 +41,4 @@ import {Observable} from 'rxjs'

if ('data' in evt) {
try {
const event = parseEvent(evt)
observer.error(new Error(event.message, {cause: event}))
} catch (err) {
observer.error(err)
}
const event = parseEvent(evt)
observer.error(new Error(event.message, {cause: event}))
}

@@ -49,0 +45,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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