New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/client

Package Overview
Dependencies
Maintainers
70
Versions
1024
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.27.1 to 6.27.2-canary.0

10

dist/index.js

@@ -882,3 +882,3 @@ import { getIt } from "get-it";

}
const requiredApiVersion = "2021-03-26";
const requiredApiVersion = "2021-03-25";
class LiveClient {

@@ -890,3 +890,3 @@ #client;

/**
* Requires `apiVersion` to be `2021-03-26` or later.
* Requires `apiVersion` to be `2021-03-25` or later.
*/

@@ -912,6 +912,2 @@ events({

);
if (includeDrafts && apiVersion !== "X")
throw new Error(
"The live events API requires API version X when 'includeDrafts: true'. This API is experimental and may change or even be removed."
);
const path = _getDataUrl(this.#client, "live/events"), url = new URL(this.#client.getUrl(path, !1)), tag = _tag && requestTagPrefix ? [requestTagPrefix, _tag].join(".") : _tag;

@@ -1485,3 +1481,3 @@ tag && url.searchParams.set("tag", tag), includeDrafts && url.searchParams.set("includeDrafts", "true");

}
var name = "@sanity/client", version = "6.27.1";
var name = "@sanity/client", version = "6.27.2-canary.0";
const middleware = [

@@ -1488,0 +1484,0 @@ debug({ verbose: !0, namespace: "sanity:client" }),

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

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

"coverage": "vitest run --coverage",
"lint": "eslint . --ext .cjs,.js,.ts --max-warnings 0",
"lint": "eslint . --max-warnings 0",
"minify": "terser -c -m -- umd/sanityClient.js > umd/sanityClient.min.js",

@@ -129,17 +129,21 @@ "prepublishOnly": "npm run build",

"@edge-runtime/vm": "^5.0.0",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.19.0",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-node-resolve": "^16.0.0",
"@sanity/client-latest": "npm:@sanity/client@latest",
"@sanity/pkg-utils": "^7.0.2",
"@sanity/pkg-utils": "^7.0.3",
"@types/json-diff": "^1.0.3",
"@types/node": "^22.9.0",
"@typescript-eslint/eslint-plugin": "^8.21.0",
"@typescript-eslint/parser": "^8.21.0",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"@vercel/stega": "0.1.2",
"@vitest/coverage-v8": "3.0.2",
"eslint": "^8.57.1",
"@vitest/coverage-v8": "3.0.4",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-formatter-compact": "^8.40.0",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-simple-import-sort": "^12.1.1",
"faucet": "^0.0.4",
"globals": "^15.14.0",
"happy-dom": "^12.10.3",

@@ -149,3 +153,3 @@ "json-diff": "^1.0.6",

"msw": "^2.7.0",
"next": "^15.1.5",
"next": "^15.1.6",
"nock": "^13.5.6",

@@ -155,7 +159,7 @@ "prettier": "^3.4.2",

"rimraf": "^5.0.7",
"rollup": "^4.31.0",
"rollup": "^4.32.0",
"sse-channel": "^4.0.0",
"terser": "^5.37.0",
"typescript": "5.7.3",
"vitest": "3.0.2",
"vitest": "3.0.4",
"vitest-github-actions-reporter": "0.11.1"

@@ -162,0 +166,0 @@ },

@@ -7,2 +7,3 @@ import {catchError, concat, EMPTY, mergeMap, Observable, of} from 'rxjs'

import type {
LiveEvent,
LiveEventMessage,

@@ -19,3 +20,3 @@ LiveEventReconnect,

const requiredApiVersion = '2021-03-26'
const requiredApiVersion = '2021-03-25'

@@ -32,3 +33,3 @@ /**

/**
* Requires `apiVersion` to be `2021-03-26` or later.
* Requires `apiVersion` to be `2021-03-25` or later.
*/

@@ -39,3 +40,2 @@ events({

}: {
/** @alpha this API is experimental and may change or even be removed */
includeDrafts?: boolean

@@ -48,3 +48,3 @@ /**

tag?: string
} = {}): Observable<LiveEventMessage | LiveEventRestart | LiveEventReconnect | LiveEventWelcome> {
} = {}): Observable<LiveEvent> {
const {

@@ -70,7 +70,2 @@ projectId,

}
if (includeDrafts && apiVersion !== 'X') {
throw new Error(
`The live events API requires API version X when 'includeDrafts: true'. This API is experimental and may change or even be removed.`,
)
}
const path = _getDataUrl(this.#client, 'live/events')

@@ -77,0 +72,0 @@ const url = new URL(this.#client.getUrl(path, false))

@@ -1020,3 +1020,3 @@ // deno-lint-ignore-file no-empty-interface

resultSourceMap?: ContentSourceMap
/** Requires `apiVersion` to be `2021-03-26` or later. */
/** Requires `apiVersion` to be `2021-03-25` or later. */
syncTags?: SyncTag[]

@@ -1297,2 +1297,5 @@ }

/** @public */
export type LiveEvent = LiveEventRestart | LiveEventReconnect | LiveEventMessage | LiveEventWelcome
/** @public */
export interface SanityQueries {}

@@ -1299,0 +1302,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 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

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