@sanity/client
Advanced tools
Comparing version 6.18.0-canary.0 to 6.18.0
{ | ||
"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
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
0
2184212
24431
Updatedget-it@^8.4.29