Socket
Socket
Sign inDemoInstall

@sanity/client

Package Overview
Dependencies
Maintainers
48
Versions
986
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.15.15 to 6.15.16-canary.0

dist/_chunks-cjs/vercelStegaCleanAll.cjs

2

dist/_chunks-es/stegaEncodeSourceMap.js

@@ -1,2 +0,2 @@

import { g as b } from "./browserMiddleware.js";
import { b } from "./vercelStegaCleanAll.js";
const reKeySegment = /_key\s*==\s*['"](.*)['"]/;

@@ -3,0 +3,0 @@ function isKeySegment(segment) {

@@ -1,5 +0,5 @@

import { S as SanityClient, f as ObservableSanityClient, d as defineCreateClientExports, e as envMiddleware } from "./_chunks-es/browserMiddleware.js";
import { B, b, C, O, c, P, a, T, v } from "./_chunks-es/browserMiddleware.js";
import { adapter, environment } from "get-it";
import { SanityClient, ObservableSanityClient, requester as requester$1, createClient as createClient$1 } from "@sanity/client";
export * from "@sanity/client";
import { e, s } from "./_chunks-es/stegaEncodeSourceMap.js";
import { v } from "./_chunks-es/vercelStegaCleanAll.js";
class SanityStegaClient extends SanityClient {

@@ -9,16 +9,6 @@ }

}
const exp = defineCreateClientExports(envMiddleware, SanityClient), requester = exp.requester, createClient = exp.createClient;
const requester = requester$1, createClient = createClient$1;
export {
B as BasePatch,
b as BaseTransaction,
C as ClientError,
O as ObservablePatch,
ObservableSanityClient,
ObservableSanityStegaClient,
c as ObservableTransaction,
P as Patch,
SanityClient,
SanityStegaClient,
a as ServerError,
T as Transaction,
createClient,

@@ -28,6 +18,4 @@ e as encodeIntoResult,

s as stegaEncodeSourceMap,
adapter as unstable__adapter,
environment as unstable__environment,
v as vercelStegaCleanAll
};
//# sourceMappingURL=stega.browser.js.map

@@ -1,5 +0,5 @@

import { S as SanityClient, e as ObservableSanityClient, d as defineCreateClientExports, m as middleware } from "./_chunks-es/nodeMiddleware.js";
import { B, b, C, O, c, P, a, T, v } from "./_chunks-es/nodeMiddleware.js";
import { adapter, environment } from "get-it";
import { SanityClient, ObservableSanityClient, requester as requester$1, createClient as createClient$1 } from "@sanity/client";
export * from "@sanity/client";
import { e, s } from "./_chunks-es/stegaEncodeSourceMap.js";
import { v } from "./_chunks-es/vercelStegaCleanAll.js";
class SanityStegaClient extends SanityClient {

@@ -9,16 +9,6 @@ }

}
const exp = defineCreateClientExports(middleware, SanityClient), requester = exp.requester, createClient = exp.createClient;
const requester = requester$1, createClient = createClient$1;
export {
B as BasePatch,
b as BaseTransaction,
C as ClientError,
O as ObservablePatch,
ObservableSanityClient,
ObservableSanityStegaClient,
c as ObservableTransaction,
P as Patch,
SanityClient,
SanityStegaClient,
a as ServerError,
T as Transaction,
createClient,

@@ -28,6 +18,4 @@ e as encodeIntoResult,

s as stegaEncodeSourceMap,
adapter as unstable__adapter,
environment as unstable__environment,
v as vercelStegaCleanAll
};
//# sourceMappingURL=stega.js.map
{
"name": "@sanity/client",
"version": "6.15.15",
"version": "6.15.16-canary.0",
"description": "Client for retrieving, creating and patching data from Sanity.io",

@@ -58,16 +58,6 @@ "keywords": [

"browser": {
"source": "./src/stega/index.browser.ts",
"source": "./src/stega/index.ts",
"import": "./dist/stega.browser.js",
"require": "./dist/stega.browser.cjs"
},
"react-native": {
"import": "./dist/index.browser.js",
"require": "./dist/index.browser.cjs"
},
"react-server": "./dist/stega.browser.js",
"bun": "./dist/stega.browser.js",
"deno": "./dist/stega.browser.js",
"edge": "./dist/stega.browser.js",
"edge-light": "./dist/stega.browser.js",
"worker": "./dist/stega.browser.js",
"import": "./dist/stega.js",

@@ -84,5 +74,3 @@ "require": "./dist/stega.cjs",

"./dist/index.cjs": "./dist/index.browser.cjs",
"./dist/index.js": "./dist/index.browser.js",
"./dist/stega.cjs": "./dist/stega.browser.cjs",
"./dist/stega.js": "./dist/stega.browser.js"
"./dist/index.js": "./dist/index.browser.js"
},

@@ -89,0 +77,0 @@ "types": "./dist/index.d.ts",

@@ -0,4 +1,5 @@

import type {ContentSourceMap} from '@sanity/client/csm'
import {parseJsonPath} from '../csm/jsonPath'
import {resolveMapping} from '../csm/resolveMapping'
import type {ContentSourceMap} from '../csm/types'
import {walkMap} from '../csm/walkMap'

@@ -5,0 +6,0 @@ import type {Encoder} from './types'

@@ -1,16 +0,36 @@

export * from '../defineCreateClient'
export * from '@sanity/client'
import {
createClient as originalCreateClient,
ObservableSanityClient,
requester as originalRequester,
SanityClient,
} from '@sanity/client'
import defineCreateClientExports from '../defineCreateClient'
import envMiddleware from '../http/nodeMiddleware'
import {SanityClient} from '../SanityClient'
import type {ClientConfig} from './types'
export {encodeIntoResult} from './encodeIntoResult'
export {stegaEncodeSourceMap} from './stegaEncodeSourceMap'
export * from './types'
export {vercelStegaCleanAll} from './vercelStegaCleanAll'
const exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)
/**
* @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead
* @public
*/
export class SanityStegaClient extends SanityClient {}
export * from './shared'
/**
* @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead
* @public
*/
export class ObservableSanityStegaClient extends ObservableSanityClient {}
/** @public */
export const requester = exp.requester
/**
* @deprecated -- Use `import {requester} from '@sanity/client'` instead
* @public
*/
export const requester = originalRequester
/** @public */
export const createClient = exp.createClient
/**
* @deprecated -- Use `import {createClient} from '@sanity/client'` instead
* @public
*/
export const createClient = originalCreateClient

@@ -0,1 +1,2 @@

import type {ClientConfig, InitializedClientConfig, RawQueryResponse} from '@sanity/client'
import type {

@@ -7,4 +8,3 @@ ContentSourceMap,

StudioUrl,
} from '../csm'
import {ClientConfig, InitializedClientConfig, RawQueryResponse} from '../types'
} from '@sanity/client/csm'

@@ -17,4 +17,3 @@ export type {

StudioUrl,
} from '../csm/types'
export type * from '../types'
} from '@sanity/client/csm'

@@ -21,0 +20,0 @@ export type {ContentSourceMap, ResolveStudioUrl}

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