@sanity/client 6.15.6-canary.0 → 6.15.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1474,7 +1474,7 @@ function defineCreateClientExports(envMiddleware, ClassConstructor) {
1474
1474
  config
1475
1475
  ) };
1476
1476
  }
1477
- var name = "@sanity/client", version = "6.15.6-canary.0";
1477
+ var name = "@sanity/client", version = "6.15.6";
1478
1478
  const middleware = [
1479
1479
  middleware$1.debug({ verbose: !0, namespace: "sanity:client" }),
1480
1480
  middleware$1.headers({ "User-Agent": `${name} ${version}` }),
@@ -1455,7 +1455,7 @@ function defineCreateClientExports(envMiddleware, ClassConstructor) {
1455
1455
  config
1456
1456
  ) };
1457
1457
  }
1458
- var name = "@sanity/client", version = "6.15.6-canary.0";
1458
+ var name = "@sanity/client", version = "6.15.6";
1459
1459
  const middleware = [
1460
1460
  debug({ verbose: !0, namespace: "sanity:client" }),
1461
1461
  headers({ "User-Agent": `${name} ${version}` }),
package/dist/csm.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var resolveEditInfo = require("./_chunks/resolveEditInfo.cjs");
3
+ var resolveEditInfo = require("./_chunks-cjs/resolveEditInfo.cjs");
4
4
  const defaultUpdateFunction = (changed) => changed;
5
5
  function applySourceDocuments(result, resultSourceMap, getCachedDocument, updateFn = defaultUpdateFunction, perspective = "raw") {
6
6
  if (!resultSourceMap)
package/dist/csm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { w as walkMap, r as resolveMapping, p as parseJsonPath, t as toString, D as DRAFTS_PREFIX, g as getPublishedId, a as get, j as jsonPath, s as studioPathToJsonPath, b as resolveEditInfo, c as createEditUrl } from "./_chunks/resolveEditInfo.js";
2
- import { e, d } from "./_chunks/resolveEditInfo.js";
1
+ import { w as walkMap, r as resolveMapping, p as parseJsonPath, t as toString, D as DRAFTS_PREFIX, g as getPublishedId, a as get, j as jsonPath, s as studioPathToJsonPath, b as resolveEditInfo, c as createEditUrl } from "./_chunks-es/resolveEditInfo.js";
2
+ import { e, d } from "./_chunks-es/resolveEditInfo.js";
3
3
  const defaultUpdateFunction = (changed) => changed;
4
4
  function applySourceDocuments(result, resultSourceMap, getCachedDocument, updateFn = defaultUpdateFunction, perspective = "raw") {
5
5
  if (!resultSourceMap)
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var browserMiddleware = require("./_chunks/browserMiddleware.cjs"), getIt = require("get-it");
3
+ var browserMiddleware = require("./_chunks-cjs/browserMiddleware.cjs"), getIt = require("get-it");
4
4
  function defineDeprecatedCreateClient(createClient2) {
5
5
  return function(config) {
6
6
  return browserMiddleware.printNoDefaultExport(), createClient2(config);
@@ -1,5 +1,5 @@
1
- import { p as printNoDefaultExport, d as defineCreateClientExports, S as SanityClient, e as envMiddleware } from "./_chunks/browserMiddleware.js";
2
- import { B, b, C, O, f, c, P, a, T } from "./_chunks/browserMiddleware.js";
1
+ import { p as printNoDefaultExport, d as defineCreateClientExports, S as SanityClient, e as envMiddleware } from "./_chunks-es/browserMiddleware.js";
2
+ import { B, b, C, O, f, c, P, a, T } from "./_chunks-es/browserMiddleware.js";
3
3
  import { adapter, environment } from "get-it";
4
4
  function defineDeprecatedCreateClient(createClient2) {
5
5
  return function(config) {
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var nodeMiddleware = require("./_chunks/nodeMiddleware.cjs"), getIt = require("get-it");
3
+ var nodeMiddleware = require("./_chunks-cjs/nodeMiddleware.cjs"), getIt = require("get-it");
4
4
  function defineDeprecatedCreateClient(createClient2) {
5
5
  return function(config) {
6
6
  return nodeMiddleware.printNoDefaultExport(), createClient2(config);
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { p as printNoDefaultExport, d as defineCreateClientExports, S as SanityClient, m as middleware } from "./_chunks/nodeMiddleware.js";
2
- import { B, b, C, O, e, c, P, a, T } from "./_chunks/nodeMiddleware.js";
1
+ import { p as printNoDefaultExport, d as defineCreateClientExports, S as SanityClient, m as middleware } from "./_chunks-es/nodeMiddleware.js";
2
+ import { B, b, C, O, e, c, P, a, T } from "./_chunks-es/nodeMiddleware.js";
3
3
  import { adapter, environment } from "get-it";
4
4
  function defineDeprecatedCreateClient(createClient2) {
5
5
  return function(config) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var browserMiddleware = require("./_chunks/browserMiddleware.cjs"), getIt = require("get-it"), stegaEncodeSourceMap = require("./_chunks/stegaEncodeSourceMap.cjs");
3
+ var browserMiddleware = require("./_chunks-cjs/browserMiddleware.cjs"), getIt = require("get-it"), stegaEncodeSourceMap = require("./_chunks-cjs/stegaEncodeSourceMap.cjs");
4
4
  class SanityStegaClient extends browserMiddleware.SanityClient {
5
5
  }
6
6
  class ObservableSanityStegaClient extends browserMiddleware.ObservableSanityClient {
@@ -1,7 +1,7 @@
1
- import { S as SanityClient, f as ObservableSanityClient, d as defineCreateClientExports, e as envMiddleware } from "./_chunks/browserMiddleware.js";
2
- import { B, b, C, O, c, P, a, T, v } from "./_chunks/browserMiddleware.js";
1
+ import { S as SanityClient, f as ObservableSanityClient, d as defineCreateClientExports, e as envMiddleware } from "./_chunks-es/browserMiddleware.js";
2
+ import { B, b, C, O, c, P, a, T, v } from "./_chunks-es/browserMiddleware.js";
3
3
  import { adapter, environment } from "get-it";
4
- import { e, s } from "./_chunks/stegaEncodeSourceMap.js";
4
+ import { e, s } from "./_chunks-es/stegaEncodeSourceMap.js";
5
5
  class SanityStegaClient extends SanityClient {
6
6
  }
7
7
  class ObservableSanityStegaClient extends ObservableSanityClient {
package/dist/stega.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var nodeMiddleware = require("./_chunks/nodeMiddleware.cjs"), getIt = require("get-it"), stegaEncodeSourceMap = require("./_chunks/stegaEncodeSourceMap.cjs");
3
+ var nodeMiddleware = require("./_chunks-cjs/nodeMiddleware.cjs"), getIt = require("get-it"), stegaEncodeSourceMap = require("./_chunks-cjs/stegaEncodeSourceMap.cjs");
4
4
  class SanityStegaClient extends nodeMiddleware.SanityClient {
5
5
  }
6
6
  class ObservableSanityStegaClient extends nodeMiddleware.ObservableSanityClient {
package/dist/stega.js CHANGED
@@ -1,7 +1,7 @@
1
- import { S as SanityClient, e as ObservableSanityClient, d as defineCreateClientExports, m as middleware } from "./_chunks/nodeMiddleware.js";
2
- import { B, b, C, O, c, P, a, T, v } from "./_chunks/nodeMiddleware.js";
1
+ import { S as SanityClient, e as ObservableSanityClient, d as defineCreateClientExports, m as middleware } from "./_chunks-es/nodeMiddleware.js";
2
+ import { B, b, C, O, c, P, a, T, v } from "./_chunks-es/nodeMiddleware.js";
3
3
  import { adapter, environment } from "get-it";
4
- import { e, s } from "./_chunks/stegaEncodeSourceMap.js";
4
+ import { e, s } from "./_chunks-es/stegaEncodeSourceMap.js";
5
5
  class SanityStegaClient extends SanityClient {
6
6
  }
7
7
  class ObservableSanityStegaClient extends ObservableSanityClient {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "6.15.6-canary.0",
3
+ "version": "6.15.6",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
@@ -125,7 +125,7 @@
125
125
  "dependencies": {
126
126
  "@sanity/eventsource": "^5.0.0",
127
127
  "@vercel/stega": "0.1.0",
128
- "get-it": "8.4.14-canary.0",
128
+ "get-it": "^8.4.14",
129
129
  "rxjs": "^7.0.0"
130
130
  },
131
131
  "devDependencies": {
@@ -133,12 +133,12 @@
133
133
  "@edge-runtime/vm": "^3.2.0",
134
134
  "@rollup/plugin-commonjs": "^25.0.7",
135
135
  "@rollup/plugin-node-resolve": "^15.2.3",
136
- "@sanity/pkg-utils": "^5.0.2",
136
+ "@sanity/pkg-utils": "^5.0.4",
137
137
  "@types/json-diff": "^1.0.3",
138
138
  "@types/node": "^20.8.8",
139
- "@typescript-eslint/eslint-plugin": "^7.2.0",
140
- "@typescript-eslint/parser": "^7.2.0",
141
- "@vitest/coverage-v8": "1.3.1",
139
+ "@typescript-eslint/eslint-plugin": "^7.3.1",
140
+ "@typescript-eslint/parser": "^7.3.1",
141
+ "@vitest/coverage-v8": "1.4.0",
142
142
  "eslint": "^8.57.0",
143
143
  "eslint-config-prettier": "^9.1.0",
144
144
  "eslint-plugin-prettier": "^5.1.3",
@@ -156,7 +156,7 @@
156
156
  "sse-channel": "^4.0.0",
157
157
  "terser": "^5.29.2",
158
158
  "typescript": "^5.4.2",
159
- "vitest": "1.3.1",
159
+ "vitest": "1.4.0",
160
160
  "vitest-github-actions-reporter": "0.11.1"
161
161
  },
162
162
  "engines": {
File without changes