@sanity/client 6.14.1 → 6.14.2

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.
Files changed (53) hide show
  1. package/dist/_chunks/browserMiddleware-BHXO2Lcy.cjs +1491 -0
  2. package/dist/_chunks/{browserMiddleware-FpdqDQ1o.cjs.map → browserMiddleware-BHXO2Lcy.cjs.map} +1 -1
  3. package/dist/_chunks/browserMiddleware-jPnXCUlp.js +1474 -0
  4. package/dist/_chunks/{browserMiddleware-DhUBf_19.js.map → browserMiddleware-jPnXCUlp.js.map} +1 -1
  5. package/dist/_chunks/nodeMiddleware-CrO2pNEp.js +1491 -0
  6. package/dist/_chunks/{nodeMiddleware-BSZoKrW0.js.map → nodeMiddleware-CrO2pNEp.js.map} +1 -1
  7. package/dist/_chunks/nodeMiddleware-JJNfI4Rf.cjs +1508 -0
  8. package/dist/_chunks/{nodeMiddleware-DmcqX3kz.cjs.map → nodeMiddleware-JJNfI4Rf.cjs.map} +1 -1
  9. package/dist/_chunks/resolveEditInfo-BNCwZySb.cjs +284 -0
  10. package/dist/_chunks/{resolveEditInfo-BB1WiUDY.cjs.map → resolveEditInfo-BNCwZySb.cjs.map} +1 -1
  11. package/dist/_chunks/resolveEditInfo-qA5twkfC.js +285 -0
  12. package/dist/_chunks/{resolveEditInfo-Cf8D1Agp.js.map → resolveEditInfo-qA5twkfC.js.map} +1 -1
  13. package/dist/_chunks/stegaEncodeSourceMap-B9_uz7Zb.cjs +166 -0
  14. package/dist/_chunks/{stegaEncodeSourceMap-8TjLXjYU.cjs.map → stegaEncodeSourceMap-B9_uz7Zb.cjs.map} +1 -1
  15. package/dist/_chunks/stegaEncodeSourceMap-BvBJpbrr.cjs +329 -0
  16. package/dist/_chunks/{stegaEncodeSourceMap-DIcuvN0P.cjs.map → stegaEncodeSourceMap-BvBJpbrr.cjs.map} +1 -1
  17. package/dist/_chunks/stegaEncodeSourceMap-De3F_oJN.js +330 -0
  18. package/dist/_chunks/{stegaEncodeSourceMap-DLon0Yls.js.map → stegaEncodeSourceMap-De3F_oJN.js.map} +1 -1
  19. package/dist/_chunks/stegaEncodeSourceMap-bRxIGJ-b.js +168 -0
  20. package/dist/_chunks/{stegaEncodeSourceMap-DU95idpa.js.map → stegaEncodeSourceMap-bRxIGJ-b.js.map} +1 -1
  21. package/dist/csm.cjs +22 -56
  22. package/dist/csm.cjs.map +1 -1
  23. package/dist/csm.js +36 -54
  24. package/dist/csm.js.map +1 -1
  25. package/dist/index.browser.cjs +15 -21
  26. package/dist/index.browser.cjs.map +1 -1
  27. package/dist/index.browser.js +24 -15
  28. package/dist/index.browser.js.map +1 -1
  29. package/dist/index.cjs +15 -21
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.js +24 -15
  32. package/dist/index.js.map +1 -1
  33. package/dist/stega.browser.cjs +12 -17
  34. package/dist/stega.browser.cjs.map +1 -1
  35. package/dist/stega.browser.js +26 -11
  36. package/dist/stega.browser.js.map +1 -1
  37. package/dist/stega.cjs +12 -17
  38. package/dist/stega.cjs.map +1 -1
  39. package/dist/stega.js +26 -11
  40. package/dist/stega.js.map +1 -1
  41. package/package.json +3 -3
  42. package/umd/sanityClient.js +2670 -3360
  43. package/umd/sanityClient.min.js +3 -3
  44. package/dist/_chunks/browserMiddleware-DhUBf_19.js +0 -1761
  45. package/dist/_chunks/browserMiddleware-FpdqDQ1o.cjs +0 -1777
  46. package/dist/_chunks/nodeMiddleware-BSZoKrW0.js +0 -1780
  47. package/dist/_chunks/nodeMiddleware-DmcqX3kz.cjs +0 -1796
  48. package/dist/_chunks/resolveEditInfo-BB1WiUDY.cjs +0 -422
  49. package/dist/_chunks/resolveEditInfo-Cf8D1Agp.js +0 -406
  50. package/dist/_chunks/stegaEncodeSourceMap-8TjLXjYU.cjs +0 -229
  51. package/dist/_chunks/stegaEncodeSourceMap-DIcuvN0P.cjs +0 -486
  52. package/dist/_chunks/stegaEncodeSourceMap-DLon0Yls.js +0 -482
  53. package/dist/_chunks/stegaEncodeSourceMap-DU95idpa.js +0 -225
@@ -1,22 +1,12 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var browserMiddleware = require('./_chunks/browserMiddleware-FpdqDQ1o.cjs');
6
- var getIt = require('get-it');
7
-
8
- function defineDeprecatedCreateClient(createClient) {
9
- return function deprecatedCreateClient(config) {
10
- browserMiddleware.printNoDefaultExport();
11
- return createClient(config);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3
+ var browserMiddleware = require("./_chunks/browserMiddleware-BHXO2Lcy.cjs"), getIt = require("get-it");
4
+ function defineDeprecatedCreateClient(createClient2) {
5
+ return function(config) {
6
+ return browserMiddleware.printNoDefaultExport(), createClient2(config);
12
7
  };
13
8
  }
14
-
15
- const exp = browserMiddleware.defineCreateClientExports(browserMiddleware.envMiddleware, browserMiddleware.SanityClient);
16
- const requester = exp.requester;
17
- const createClient = exp.createClient;
18
- const deprecatedCreateClient = defineDeprecatedCreateClient(createClient);
19
-
9
+ const exp = browserMiddleware.defineCreateClientExports(browserMiddleware.envMiddleware, browserMiddleware.SanityClient), requester = exp.requester, createClient = exp.createClient, deprecatedCreateClient = defineDeprecatedCreateClient(createClient);
20
10
  exports.BasePatch = browserMiddleware.BasePatch;
21
11
  exports.BaseTransaction = browserMiddleware.BaseTransaction;
22
12
  exports.ClientError = browserMiddleware.ClientError;
@@ -28,12 +18,16 @@ exports.SanityClient = browserMiddleware.SanityClient;
28
18
  exports.ServerError = browserMiddleware.ServerError;
29
19
  exports.Transaction = browserMiddleware.Transaction;
30
20
  Object.defineProperty(exports, "unstable__adapter", {
31
- enumerable: true,
32
- get: function () { return getIt.adapter; }
21
+ enumerable: !0,
22
+ get: function() {
23
+ return getIt.adapter;
24
+ }
33
25
  });
34
26
  Object.defineProperty(exports, "unstable__environment", {
35
- enumerable: true,
36
- get: function () { return getIt.environment; }
27
+ enumerable: !0,
28
+ get: function() {
29
+ return getIt.environment;
30
+ }
37
31
  });
38
32
  exports.createClient = createClient;
39
33
  exports.default = deprecatedCreateClient;
@@ -1 +1 @@
1
- {"version":3,"file":"index.browser.cjs","sources":["../src/defineDeprecatedCreateClient.ts","../src/index.browser.ts"],"sourcesContent":["import {printNoDefaultExport} from './warnings'\n\n/* @internal */\nexport function defineDeprecatedCreateClient<SanityClientType, ClientConfigType>(\n createClient: (config: ClientConfigType) => SanityClientType,\n) {\n return function deprecatedCreateClient(config: ClientConfigType) {\n printNoDefaultExport()\n return createClient(config)\n }\n}\n","import defineCreateClientExports, {ClientConfig, SanityClient} from './defineCreateClient'\nimport {defineDeprecatedCreateClient} from './defineDeprecatedCreateClient'\nimport envMiddleware from './http/browserMiddleware'\n\nexport * from './defineCreateClient'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n\n/**\n * @public\n * @deprecated Use the named export `createClient` instead of the `default` export\n */\nconst deprecatedCreateClient = defineDeprecatedCreateClient(createClient)\nexport default deprecatedCreateClient\n"],"names":["printNoDefaultExport","defineCreateClientExports","envMiddleware","SanityClient"],"mappings":";;;;;;;AAGO,SAAS,6BACd,YACA,EAAA;AACA,EAAO,OAAA,SAAS,uBAAuB,MAA0B,EAAA;AAC/D,IAAqBA,sCAAA,EAAA,CAAA;AACrB,IAAA,OAAO,aAAa,MAAM,CAAA,CAAA;AAAA,GAC5B,CAAA;AACF;;ACJA,MAAM,GAAA,GAAMC,2CAAsD,CAAAC,+BAAA,EAAeC,8BAAY,CAAA,CAAA;AAGtF,MAAM,YAAY,GAAI,CAAA,UAAA;AAGtB,MAAM,eAAe,GAAI,CAAA,aAAA;AAM1B,MAAA,sBAAA,GAAyB,6BAA6B,YAAY;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.browser.cjs","sources":["../src/defineDeprecatedCreateClient.ts","../src/index.browser.ts"],"sourcesContent":["import {printNoDefaultExport} from './warnings'\n\n/* @internal */\nexport function defineDeprecatedCreateClient<SanityClientType, ClientConfigType>(\n createClient: (config: ClientConfigType) => SanityClientType,\n) {\n return function deprecatedCreateClient(config: ClientConfigType) {\n printNoDefaultExport()\n return createClient(config)\n }\n}\n","import defineCreateClientExports, {ClientConfig, SanityClient} from './defineCreateClient'\nimport {defineDeprecatedCreateClient} from './defineDeprecatedCreateClient'\nimport envMiddleware from './http/browserMiddleware'\n\nexport * from './defineCreateClient'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n\n/**\n * @public\n * @deprecated Use the named export `createClient` instead of the `default` export\n */\nconst deprecatedCreateClient = defineDeprecatedCreateClient(createClient)\nexport default deprecatedCreateClient\n"],"names":["createClient","printNoDefaultExport","defineCreateClientExports","envMiddleware","SanityClient"],"mappings":";;;AAGO,SAAS,6BACdA,eACA;AACA,SAAO,SAAgC,QAA0B;AAC1C,WAAAC,uCAAA,GACdD,cAAa,MAAM;AAAA,EAAA;AAE9B;ACJA,MAAM,MAAME,kBAAsD,0BAAAC,iCAAeC,kBAAAA,YAAY,GAGhF,YAAY,IAAI,WAGhB,eAAe,IAAI,cAM1B,yBAAyB,6BAA6B,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,18 +1,27 @@
1
- import { printNoDefaultExport, defineCreateClientExports, SanityClient, envMiddleware } from './_chunks/browserMiddleware-DhUBf_19.js';
2
- export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableSanityClient, ObservableTransaction, Patch, ServerError, Transaction } from './_chunks/browserMiddleware-DhUBf_19.js';
3
- export { adapter as unstable__adapter, environment as unstable__environment } from 'get-it';
4
-
5
- function defineDeprecatedCreateClient(createClient) {
6
- return function deprecatedCreateClient(config) {
7
- printNoDefaultExport();
8
- return createClient(config);
1
+ import { printNoDefaultExport, defineCreateClientExports, SanityClient, envMiddleware } from "./_chunks/browserMiddleware-jPnXCUlp.js";
2
+ import { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableSanityClient, ObservableTransaction, Patch, ServerError, Transaction } from "./_chunks/browserMiddleware-jPnXCUlp.js";
3
+ import { adapter, environment } from "get-it";
4
+ function defineDeprecatedCreateClient(createClient2) {
5
+ return function(config) {
6
+ return printNoDefaultExport(), createClient2(config);
9
7
  };
10
8
  }
11
-
12
- const exp = defineCreateClientExports(envMiddleware, SanityClient);
13
- const requester = exp.requester;
14
- const createClient = exp.createClient;
15
- const deprecatedCreateClient = defineDeprecatedCreateClient(createClient);
16
-
17
- export { SanityClient, createClient, deprecatedCreateClient as default, requester };
9
+ const exp = defineCreateClientExports(envMiddleware, SanityClient), requester = exp.requester, createClient = exp.createClient, deprecatedCreateClient = defineDeprecatedCreateClient(createClient);
10
+ export {
11
+ BasePatch,
12
+ BaseTransaction,
13
+ ClientError,
14
+ ObservablePatch,
15
+ ObservableSanityClient,
16
+ ObservableTransaction,
17
+ Patch,
18
+ SanityClient,
19
+ ServerError,
20
+ Transaction,
21
+ createClient,
22
+ deprecatedCreateClient as default,
23
+ requester,
24
+ adapter as unstable__adapter,
25
+ environment as unstable__environment
26
+ };
18
27
  //# sourceMappingURL=index.browser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.browser.js","sources":["../src/defineDeprecatedCreateClient.ts","../src/index.browser.ts"],"sourcesContent":["import {printNoDefaultExport} from './warnings'\n\n/* @internal */\nexport function defineDeprecatedCreateClient<SanityClientType, ClientConfigType>(\n createClient: (config: ClientConfigType) => SanityClientType,\n) {\n return function deprecatedCreateClient(config: ClientConfigType) {\n printNoDefaultExport()\n return createClient(config)\n }\n}\n","import defineCreateClientExports, {ClientConfig, SanityClient} from './defineCreateClient'\nimport {defineDeprecatedCreateClient} from './defineDeprecatedCreateClient'\nimport envMiddleware from './http/browserMiddleware'\n\nexport * from './defineCreateClient'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n\n/**\n * @public\n * @deprecated Use the named export `createClient` instead of the `default` export\n */\nconst deprecatedCreateClient = defineDeprecatedCreateClient(createClient)\nexport default deprecatedCreateClient\n"],"names":[],"mappings":";;;;AAGO,SAAS,6BACd,YACA,EAAA;AACA,EAAO,OAAA,SAAS,uBAAuB,MAA0B,EAAA;AAC/D,IAAqB,oBAAA,EAAA,CAAA;AACrB,IAAA,OAAO,aAAa,MAAM,CAAA,CAAA;AAAA,GAC5B,CAAA;AACF;;ACJA,MAAM,GAAA,GAAM,yBAAsD,CAAA,aAAA,EAAe,YAAY,CAAA,CAAA;AAGtF,MAAM,YAAY,GAAI,CAAA,UAAA;AAGtB,MAAM,eAAe,GAAI,CAAA,aAAA;AAM1B,MAAA,sBAAA,GAAyB,6BAA6B,YAAY;;;;"}
1
+ {"version":3,"file":"index.browser.js","sources":["../src/defineDeprecatedCreateClient.ts","../src/index.browser.ts"],"sourcesContent":["import {printNoDefaultExport} from './warnings'\n\n/* @internal */\nexport function defineDeprecatedCreateClient<SanityClientType, ClientConfigType>(\n createClient: (config: ClientConfigType) => SanityClientType,\n) {\n return function deprecatedCreateClient(config: ClientConfigType) {\n printNoDefaultExport()\n return createClient(config)\n }\n}\n","import defineCreateClientExports, {ClientConfig, SanityClient} from './defineCreateClient'\nimport {defineDeprecatedCreateClient} from './defineDeprecatedCreateClient'\nimport envMiddleware from './http/browserMiddleware'\n\nexport * from './defineCreateClient'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n\n/**\n * @public\n * @deprecated Use the named export `createClient` instead of the `default` export\n */\nconst deprecatedCreateClient = defineDeprecatedCreateClient(createClient)\nexport default deprecatedCreateClient\n"],"names":["createClient"],"mappings":";;;AAGO,SAAS,6BACdA,eACA;AACA,SAAO,SAAgC,QAA0B;AAC1C,WAAA,qBAAA,GACdA,cAAa,MAAM;AAAA,EAAA;AAE9B;ACJA,MAAM,MAAM,0BAAsD,eAAe,YAAY,GAGhF,YAAY,IAAI,WAGhB,eAAe,IAAI,cAM1B,yBAAyB,6BAA6B,YAAY;"}
package/dist/index.cjs CHANGED
@@ -1,22 +1,12 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var nodeMiddleware = require('./_chunks/nodeMiddleware-DmcqX3kz.cjs');
6
- var getIt = require('get-it');
7
-
8
- function defineDeprecatedCreateClient(createClient) {
9
- return function deprecatedCreateClient(config) {
10
- nodeMiddleware.printNoDefaultExport();
11
- return createClient(config);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3
+ var nodeMiddleware = require("./_chunks/nodeMiddleware-JJNfI4Rf.cjs"), getIt = require("get-it");
4
+ function defineDeprecatedCreateClient(createClient2) {
5
+ return function(config) {
6
+ return nodeMiddleware.printNoDefaultExport(), createClient2(config);
12
7
  };
13
8
  }
14
-
15
- const exp = nodeMiddleware.defineCreateClientExports(nodeMiddleware.middleware, nodeMiddleware.SanityClient);
16
- const requester = exp.requester;
17
- const createClient = exp.createClient;
18
- const deprecatedCreateClient = defineDeprecatedCreateClient(createClient);
19
-
9
+ const exp = nodeMiddleware.defineCreateClientExports(nodeMiddleware.middleware, nodeMiddleware.SanityClient), requester = exp.requester, createClient = exp.createClient, deprecatedCreateClient = defineDeprecatedCreateClient(createClient);
20
10
  exports.BasePatch = nodeMiddleware.BasePatch;
21
11
  exports.BaseTransaction = nodeMiddleware.BaseTransaction;
22
12
  exports.ClientError = nodeMiddleware.ClientError;
@@ -28,12 +18,16 @@ exports.SanityClient = nodeMiddleware.SanityClient;
28
18
  exports.ServerError = nodeMiddleware.ServerError;
29
19
  exports.Transaction = nodeMiddleware.Transaction;
30
20
  Object.defineProperty(exports, "unstable__adapter", {
31
- enumerable: true,
32
- get: function () { return getIt.adapter; }
21
+ enumerable: !0,
22
+ get: function() {
23
+ return getIt.adapter;
24
+ }
33
25
  });
34
26
  Object.defineProperty(exports, "unstable__environment", {
35
- enumerable: true,
36
- get: function () { return getIt.environment; }
27
+ enumerable: !0,
28
+ get: function() {
29
+ return getIt.environment;
30
+ }
37
31
  });
38
32
  exports.createClient = createClient;
39
33
  exports.default = deprecatedCreateClient;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/defineDeprecatedCreateClient.ts","../src/index.ts"],"sourcesContent":["import {printNoDefaultExport} from './warnings'\n\n/* @internal */\nexport function defineDeprecatedCreateClient<SanityClientType, ClientConfigType>(\n createClient: (config: ClientConfigType) => SanityClientType,\n) {\n return function deprecatedCreateClient(config: ClientConfigType) {\n printNoDefaultExport()\n return createClient(config)\n }\n}\n","import defineCreateClientExports, {ClientConfig, SanityClient} from './defineCreateClient'\nimport {defineDeprecatedCreateClient} from './defineDeprecatedCreateClient'\nimport envMiddleware from './http/nodeMiddleware'\n\nexport * from './defineCreateClient'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n\n/**\n * @public\n * @deprecated Use the named export `createClient` instead of the `default` export\n */\nconst deprecatedCreateClient = defineDeprecatedCreateClient(createClient)\nexport default deprecatedCreateClient\n"],"names":["printNoDefaultExport","defineCreateClientExports","envMiddleware","SanityClient"],"mappings":";;;;;;;AAGO,SAAS,6BACd,YACA,EAAA;AACA,EAAO,OAAA,SAAS,uBAAuB,MAA0B,EAAA;AAC/D,IAAqBA,mCAAA,EAAA,CAAA;AACrB,IAAA,OAAO,aAAa,MAAM,CAAA,CAAA;AAAA,GAC5B,CAAA;AACF;;ACJA,MAAM,GAAA,GAAMC,wCAAsD,CAAAC,yBAAA,EAAeC,2BAAY,CAAA,CAAA;AAGtF,MAAM,YAAY,GAAI,CAAA,UAAA;AAGtB,MAAM,eAAe,GAAI,CAAA,aAAA;AAM1B,MAAA,sBAAA,GAAyB,6BAA6B,YAAY;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../src/defineDeprecatedCreateClient.ts","../src/index.ts"],"sourcesContent":["import {printNoDefaultExport} from './warnings'\n\n/* @internal */\nexport function defineDeprecatedCreateClient<SanityClientType, ClientConfigType>(\n createClient: (config: ClientConfigType) => SanityClientType,\n) {\n return function deprecatedCreateClient(config: ClientConfigType) {\n printNoDefaultExport()\n return createClient(config)\n }\n}\n","import defineCreateClientExports, {ClientConfig, SanityClient} from './defineCreateClient'\nimport {defineDeprecatedCreateClient} from './defineDeprecatedCreateClient'\nimport envMiddleware from './http/nodeMiddleware'\n\nexport * from './defineCreateClient'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n\n/**\n * @public\n * @deprecated Use the named export `createClient` instead of the `default` export\n */\nconst deprecatedCreateClient = defineDeprecatedCreateClient(createClient)\nexport default deprecatedCreateClient\n"],"names":["createClient","printNoDefaultExport","defineCreateClientExports","envMiddleware","SanityClient"],"mappings":";;;AAGO,SAAS,6BACdA,eACA;AACA,SAAO,SAAgC,QAA0B;AAC1C,WAAAC,oCAAA,GACdD,cAAa,MAAM;AAAA,EAAA;AAE9B;ACJA,MAAM,MAAME,eAAsD,0BAAAC,2BAAeC,eAAAA,YAAY,GAGhF,YAAY,IAAI,WAGhB,eAAe,IAAI,cAM1B,yBAAyB,6BAA6B,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.js CHANGED
@@ -1,18 +1,27 @@
1
- import { printNoDefaultExport, defineCreateClientExports, SanityClient, middleware } from './_chunks/nodeMiddleware-BSZoKrW0.js';
2
- export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableSanityClient, ObservableTransaction, Patch, ServerError, Transaction } from './_chunks/nodeMiddleware-BSZoKrW0.js';
3
- export { adapter as unstable__adapter, environment as unstable__environment } from 'get-it';
4
-
5
- function defineDeprecatedCreateClient(createClient) {
6
- return function deprecatedCreateClient(config) {
7
- printNoDefaultExport();
8
- return createClient(config);
1
+ import { printNoDefaultExport, defineCreateClientExports, SanityClient, middleware } from "./_chunks/nodeMiddleware-CrO2pNEp.js";
2
+ import { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableSanityClient, ObservableTransaction, Patch, ServerError, Transaction } from "./_chunks/nodeMiddleware-CrO2pNEp.js";
3
+ import { adapter, environment } from "get-it";
4
+ function defineDeprecatedCreateClient(createClient2) {
5
+ return function(config) {
6
+ return printNoDefaultExport(), createClient2(config);
9
7
  };
10
8
  }
11
-
12
- const exp = defineCreateClientExports(middleware, SanityClient);
13
- const requester = exp.requester;
14
- const createClient = exp.createClient;
15
- const deprecatedCreateClient = defineDeprecatedCreateClient(createClient);
16
-
17
- export { SanityClient, createClient, deprecatedCreateClient as default, requester };
9
+ const exp = defineCreateClientExports(middleware, SanityClient), requester = exp.requester, createClient = exp.createClient, deprecatedCreateClient = defineDeprecatedCreateClient(createClient);
10
+ export {
11
+ BasePatch,
12
+ BaseTransaction,
13
+ ClientError,
14
+ ObservablePatch,
15
+ ObservableSanityClient,
16
+ ObservableTransaction,
17
+ Patch,
18
+ SanityClient,
19
+ ServerError,
20
+ Transaction,
21
+ createClient,
22
+ deprecatedCreateClient as default,
23
+ requester,
24
+ adapter as unstable__adapter,
25
+ environment as unstable__environment
26
+ };
18
27
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/defineDeprecatedCreateClient.ts","../src/index.ts"],"sourcesContent":["import {printNoDefaultExport} from './warnings'\n\n/* @internal */\nexport function defineDeprecatedCreateClient<SanityClientType, ClientConfigType>(\n createClient: (config: ClientConfigType) => SanityClientType,\n) {\n return function deprecatedCreateClient(config: ClientConfigType) {\n printNoDefaultExport()\n return createClient(config)\n }\n}\n","import defineCreateClientExports, {ClientConfig, SanityClient} from './defineCreateClient'\nimport {defineDeprecatedCreateClient} from './defineDeprecatedCreateClient'\nimport envMiddleware from './http/nodeMiddleware'\n\nexport * from './defineCreateClient'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n\n/**\n * @public\n * @deprecated Use the named export `createClient` instead of the `default` export\n */\nconst deprecatedCreateClient = defineDeprecatedCreateClient(createClient)\nexport default deprecatedCreateClient\n"],"names":["envMiddleware"],"mappings":";;;;AAGO,SAAS,6BACd,YACA,EAAA;AACA,EAAO,OAAA,SAAS,uBAAuB,MAA0B,EAAA;AAC/D,IAAqB,oBAAA,EAAA,CAAA;AACrB,IAAA,OAAO,aAAa,MAAM,CAAA,CAAA;AAAA,GAC5B,CAAA;AACF;;ACJA,MAAM,GAAA,GAAM,yBAAsD,CAAAA,UAAA,EAAe,YAAY,CAAA,CAAA;AAGtF,MAAM,YAAY,GAAI,CAAA,UAAA;AAGtB,MAAM,eAAe,GAAI,CAAA,aAAA;AAM1B,MAAA,sBAAA,GAAyB,6BAA6B,YAAY;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/defineDeprecatedCreateClient.ts","../src/index.ts"],"sourcesContent":["import {printNoDefaultExport} from './warnings'\n\n/* @internal */\nexport function defineDeprecatedCreateClient<SanityClientType, ClientConfigType>(\n createClient: (config: ClientConfigType) => SanityClientType,\n) {\n return function deprecatedCreateClient(config: ClientConfigType) {\n printNoDefaultExport()\n return createClient(config)\n }\n}\n","import defineCreateClientExports, {ClientConfig, SanityClient} from './defineCreateClient'\nimport {defineDeprecatedCreateClient} from './defineDeprecatedCreateClient'\nimport envMiddleware from './http/nodeMiddleware'\n\nexport * from './defineCreateClient'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n\n/**\n * @public\n * @deprecated Use the named export `createClient` instead of the `default` export\n */\nconst deprecatedCreateClient = defineDeprecatedCreateClient(createClient)\nexport default deprecatedCreateClient\n"],"names":["createClient","envMiddleware"],"mappings":";;;AAGO,SAAS,6BACdA,eACA;AACA,SAAO,SAAgC,QAA0B;AAC1C,WAAA,qBAAA,GACdA,cAAa,MAAM;AAAA,EAAA;AAE9B;ACJA,MAAM,MAAM,0BAAsDC,YAAe,YAAY,GAGhF,YAAY,IAAI,WAGhB,eAAe,IAAI,cAM1B,yBAAyB,6BAA6B,YAAY;"}
@@ -1,20 +1,11 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var browserMiddleware = require('./_chunks/browserMiddleware-FpdqDQ1o.cjs');
6
- var getIt = require('get-it');
7
- var stegaEncodeSourceMap = require('./_chunks/stegaEncodeSourceMap-DIcuvN0P.cjs');
8
-
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3
+ var browserMiddleware = require("./_chunks/browserMiddleware-BHXO2Lcy.cjs"), getIt = require("get-it"), stegaEncodeSourceMap = require("./_chunks/stegaEncodeSourceMap-BvBJpbrr.cjs");
9
4
  class SanityStegaClient extends browserMiddleware.SanityClient {
10
5
  }
11
6
  class ObservableSanityStegaClient extends browserMiddleware.ObservableSanityClient {
12
7
  }
13
-
14
- const exp = browserMiddleware.defineCreateClientExports(browserMiddleware.envMiddleware, browserMiddleware.SanityClient);
15
- const requester = exp.requester;
16
- const createClient = exp.createClient;
17
-
8
+ const exp = browserMiddleware.defineCreateClientExports(browserMiddleware.envMiddleware, browserMiddleware.SanityClient), requester = exp.requester, createClient = exp.createClient;
18
9
  exports.BasePatch = browserMiddleware.BasePatch;
19
10
  exports.BaseTransaction = browserMiddleware.BaseTransaction;
20
11
  exports.ClientError = browserMiddleware.ClientError;
@@ -27,12 +18,16 @@ exports.ServerError = browserMiddleware.ServerError;
27
18
  exports.Transaction = browserMiddleware.Transaction;
28
19
  exports.vercelStegaCleanAll = browserMiddleware.vercelStegaCleanAll;
29
20
  Object.defineProperty(exports, "unstable__adapter", {
30
- enumerable: true,
31
- get: function () { return getIt.adapter; }
21
+ enumerable: !0,
22
+ get: function() {
23
+ return getIt.adapter;
24
+ }
32
25
  });
33
26
  Object.defineProperty(exports, "unstable__environment", {
34
- enumerable: true,
35
- get: function () { return getIt.environment; }
27
+ enumerable: !0,
28
+ get: function() {
29
+ return getIt.environment;
30
+ }
36
31
  });
37
32
  exports.encodeIntoResult = stegaEncodeSourceMap.encodeIntoResult;
38
33
  exports.stegaEncodeSourceMap = stegaEncodeSourceMap.stegaEncodeSourceMap;
@@ -1 +1 @@
1
- {"version":3,"file":"stega.browser.cjs","sources":["../src/stega/shared.ts","../src/stega/index.browser.ts"],"sourcesContent":["import {ObservableSanityClient, SanityClient} from '../SanityClient'\n\nexport * from '../SanityClient'\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\nexport {vercelStegaCleanAll} from './vercelStegaCleanAll'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n","export * from '../defineCreateClient'\n\nimport defineCreateClientExports from '../defineCreateClient'\nimport envMiddleware from '../http/browserMiddleware'\nimport {SanityClient} from '../SanityClient'\nimport type {ClientConfig} from './types'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\nexport * from './shared'\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n"],"names":["SanityClient","ObservableSanityClient","defineCreateClientExports","envMiddleware"],"mappings":";;;;;;;;AAYO,MAAM,0BAA0BA,8BAAa,CAAA;AAAC,CAAA;AAM9C,MAAM,oCAAoCC,wCAAuB,CAAA;AAAC;;ACXzE,MAAM,GAAA,GAAMC,2CAAsD,CAAAC,+BAAA,EAAeH,8BAAY,CAAA,CAAA;AAKtF,MAAM,YAAY,GAAI,CAAA,UAAA;AAGtB,MAAM,eAAe,GAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"stega.browser.cjs","sources":["../src/stega/shared.ts","../src/stega/index.browser.ts"],"sourcesContent":["import {ObservableSanityClient, SanityClient} from '../SanityClient'\n\nexport * from '../SanityClient'\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\nexport {vercelStegaCleanAll} from './vercelStegaCleanAll'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n","export * from '../defineCreateClient'\n\nimport defineCreateClientExports from '../defineCreateClient'\nimport envMiddleware from '../http/browserMiddleware'\nimport {SanityClient} from '../SanityClient'\nimport type {ClientConfig} from './types'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\nexport * from './shared'\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n"],"names":["SanityClient","ObservableSanityClient","defineCreateClientExports","envMiddleware"],"mappings":";;;AAYO,MAAM,0BAA0BA,kBAAAA,aAAa;AAAC;AAM9C,MAAM,oCAAoCC,kBAAAA,uBAAuB;AAAC;ACXzE,MAAM,MAAMC,kBAAsD,0BAAAC,iCAAeH,kBAAAA,YAAY,GAKhF,YAAY,IAAI,WAGhB,eAAe,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,16 +1,31 @@
1
- import { SanityClient, ObservableSanityClient, defineCreateClientExports, envMiddleware } from './_chunks/browserMiddleware-DhUBf_19.js';
2
- export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableTransaction, Patch, ServerError, Transaction, vercelStegaCleanAll } from './_chunks/browserMiddleware-DhUBf_19.js';
3
- export { adapter as unstable__adapter, environment as unstable__environment } from 'get-it';
4
- export { encodeIntoResult, stegaEncodeSourceMap } from './_chunks/stegaEncodeSourceMap-DLon0Yls.js';
5
-
1
+ import { SanityClient, ObservableSanityClient, defineCreateClientExports, envMiddleware } from "./_chunks/browserMiddleware-jPnXCUlp.js";
2
+ import { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableTransaction, Patch, ServerError, Transaction, vercelStegaCleanAll } from "./_chunks/browserMiddleware-jPnXCUlp.js";
3
+ import { adapter, environment } from "get-it";
4
+ import { encodeIntoResult, stegaEncodeSourceMap } from "./_chunks/stegaEncodeSourceMap-De3F_oJN.js";
6
5
  class SanityStegaClient extends SanityClient {
7
6
  }
8
7
  class ObservableSanityStegaClient extends ObservableSanityClient {
9
8
  }
10
-
11
- const exp = defineCreateClientExports(envMiddleware, SanityClient);
12
- const requester = exp.requester;
13
- const createClient = exp.createClient;
14
-
15
- export { ObservableSanityClient, ObservableSanityStegaClient, SanityClient, SanityStegaClient, createClient, requester };
9
+ const exp = defineCreateClientExports(envMiddleware, SanityClient), requester = exp.requester, createClient = exp.createClient;
10
+ export {
11
+ BasePatch,
12
+ BaseTransaction,
13
+ ClientError,
14
+ ObservablePatch,
15
+ ObservableSanityClient,
16
+ ObservableSanityStegaClient,
17
+ ObservableTransaction,
18
+ Patch,
19
+ SanityClient,
20
+ SanityStegaClient,
21
+ ServerError,
22
+ Transaction,
23
+ createClient,
24
+ encodeIntoResult,
25
+ requester,
26
+ stegaEncodeSourceMap,
27
+ adapter as unstable__adapter,
28
+ environment as unstable__environment,
29
+ vercelStegaCleanAll
30
+ };
16
31
  //# sourceMappingURL=stega.browser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stega.browser.js","sources":["../src/stega/shared.ts","../src/stega/index.browser.ts"],"sourcesContent":["import {ObservableSanityClient, SanityClient} from '../SanityClient'\n\nexport * from '../SanityClient'\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\nexport {vercelStegaCleanAll} from './vercelStegaCleanAll'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n","export * from '../defineCreateClient'\n\nimport defineCreateClientExports from '../defineCreateClient'\nimport envMiddleware from '../http/browserMiddleware'\nimport {SanityClient} from '../SanityClient'\nimport type {ClientConfig} from './types'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\nexport * from './shared'\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n"],"names":[],"mappings":";;;;;AAYO,MAAM,0BAA0B,YAAa,CAAA;AAAC,CAAA;AAM9C,MAAM,oCAAoC,sBAAuB,CAAA;AAAC;;ACXzE,MAAM,GAAA,GAAM,yBAAsD,CAAA,aAAA,EAAe,YAAY,CAAA,CAAA;AAKtF,MAAM,YAAY,GAAI,CAAA,UAAA;AAGtB,MAAM,eAAe,GAAI,CAAA;;;;"}
1
+ {"version":3,"file":"stega.browser.js","sources":["../src/stega/shared.ts","../src/stega/index.browser.ts"],"sourcesContent":["import {ObservableSanityClient, SanityClient} from '../SanityClient'\n\nexport * from '../SanityClient'\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\nexport {vercelStegaCleanAll} from './vercelStegaCleanAll'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n","export * from '../defineCreateClient'\n\nimport defineCreateClientExports from '../defineCreateClient'\nimport envMiddleware from '../http/browserMiddleware'\nimport {SanityClient} from '../SanityClient'\nimport type {ClientConfig} from './types'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\nexport * from './shared'\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n"],"names":[],"mappings":";;;;AAYO,MAAM,0BAA0B,aAAa;AAAC;AAM9C,MAAM,oCAAoC,uBAAuB;AAAC;ACXzE,MAAM,MAAM,0BAAsD,eAAe,YAAY,GAKhF,YAAY,IAAI,WAGhB,eAAe,IAAI;"}
package/dist/stega.cjs CHANGED
@@ -1,20 +1,11 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var nodeMiddleware = require('./_chunks/nodeMiddleware-DmcqX3kz.cjs');
6
- var getIt = require('get-it');
7
- var stegaEncodeSourceMap = require('./_chunks/stegaEncodeSourceMap-8TjLXjYU.cjs');
8
-
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3
+ var nodeMiddleware = require("./_chunks/nodeMiddleware-JJNfI4Rf.cjs"), getIt = require("get-it"), stegaEncodeSourceMap = require("./_chunks/stegaEncodeSourceMap-B9_uz7Zb.cjs");
9
4
  class SanityStegaClient extends nodeMiddleware.SanityClient {
10
5
  }
11
6
  class ObservableSanityStegaClient extends nodeMiddleware.ObservableSanityClient {
12
7
  }
13
-
14
- const exp = nodeMiddleware.defineCreateClientExports(nodeMiddleware.middleware, nodeMiddleware.SanityClient);
15
- const requester = exp.requester;
16
- const createClient = exp.createClient;
17
-
8
+ const exp = nodeMiddleware.defineCreateClientExports(nodeMiddleware.middleware, nodeMiddleware.SanityClient), requester = exp.requester, createClient = exp.createClient;
18
9
  exports.BasePatch = nodeMiddleware.BasePatch;
19
10
  exports.BaseTransaction = nodeMiddleware.BaseTransaction;
20
11
  exports.ClientError = nodeMiddleware.ClientError;
@@ -27,12 +18,16 @@ exports.ServerError = nodeMiddleware.ServerError;
27
18
  exports.Transaction = nodeMiddleware.Transaction;
28
19
  exports.vercelStegaCleanAll = nodeMiddleware.vercelStegaCleanAll;
29
20
  Object.defineProperty(exports, "unstable__adapter", {
30
- enumerable: true,
31
- get: function () { return getIt.adapter; }
21
+ enumerable: !0,
22
+ get: function() {
23
+ return getIt.adapter;
24
+ }
32
25
  });
33
26
  Object.defineProperty(exports, "unstable__environment", {
34
- enumerable: true,
35
- get: function () { return getIt.environment; }
27
+ enumerable: !0,
28
+ get: function() {
29
+ return getIt.environment;
30
+ }
36
31
  });
37
32
  exports.encodeIntoResult = stegaEncodeSourceMap.encodeIntoResult;
38
33
  exports.stegaEncodeSourceMap = stegaEncodeSourceMap.stegaEncodeSourceMap;
@@ -1 +1 @@
1
- {"version":3,"file":"stega.cjs","sources":["../src/stega/shared.ts","../src/stega/index.ts"],"sourcesContent":["import {ObservableSanityClient, SanityClient} from '../SanityClient'\n\nexport * from '../SanityClient'\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\nexport {vercelStegaCleanAll} from './vercelStegaCleanAll'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n","export * from '../defineCreateClient'\n\nimport defineCreateClientExports from '../defineCreateClient'\nimport envMiddleware from '../http/nodeMiddleware'\nimport {SanityClient} from '../SanityClient'\nimport type {ClientConfig} from './types'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\nexport * from './shared'\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n"],"names":["SanityClient","ObservableSanityClient","defineCreateClientExports","envMiddleware"],"mappings":";;;;;;;;AAYO,MAAM,0BAA0BA,2BAAa,CAAA;AAAC,CAAA;AAM9C,MAAM,oCAAoCC,qCAAuB,CAAA;AAAC;;ACXzE,MAAM,GAAA,GAAMC,wCAAsD,CAAAC,yBAAA,EAAeH,2BAAY,CAAA,CAAA;AAKtF,MAAM,YAAY,GAAI,CAAA,UAAA;AAGtB,MAAM,eAAe,GAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"stega.cjs","sources":["../src/stega/shared.ts","../src/stega/index.ts"],"sourcesContent":["import {ObservableSanityClient, SanityClient} from '../SanityClient'\n\nexport * from '../SanityClient'\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\nexport {vercelStegaCleanAll} from './vercelStegaCleanAll'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n","export * from '../defineCreateClient'\n\nimport defineCreateClientExports from '../defineCreateClient'\nimport envMiddleware from '../http/nodeMiddleware'\nimport {SanityClient} from '../SanityClient'\nimport type {ClientConfig} from './types'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\nexport * from './shared'\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n"],"names":["SanityClient","ObservableSanityClient","defineCreateClientExports","envMiddleware"],"mappings":";;;AAYO,MAAM,0BAA0BA,eAAAA,aAAa;AAAC;AAM9C,MAAM,oCAAoCC,eAAAA,uBAAuB;AAAC;ACXzE,MAAM,MAAMC,eAAsD,0BAAAC,2BAAeH,eAAAA,YAAY,GAKhF,YAAY,IAAI,WAGhB,eAAe,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/stega.js CHANGED
@@ -1,16 +1,31 @@
1
- import { SanityClient, ObservableSanityClient, defineCreateClientExports, middleware } from './_chunks/nodeMiddleware-BSZoKrW0.js';
2
- export { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableTransaction, Patch, ServerError, Transaction, vercelStegaCleanAll } from './_chunks/nodeMiddleware-BSZoKrW0.js';
3
- export { adapter as unstable__adapter, environment as unstable__environment } from 'get-it';
4
- export { encodeIntoResult, stegaEncodeSourceMap } from './_chunks/stegaEncodeSourceMap-DU95idpa.js';
5
-
1
+ import { SanityClient, ObservableSanityClient, defineCreateClientExports, middleware } from "./_chunks/nodeMiddleware-CrO2pNEp.js";
2
+ import { BasePatch, BaseTransaction, ClientError, ObservablePatch, ObservableTransaction, Patch, ServerError, Transaction, vercelStegaCleanAll } from "./_chunks/nodeMiddleware-CrO2pNEp.js";
3
+ import { adapter, environment } from "get-it";
4
+ import { encodeIntoResult, stegaEncodeSourceMap } from "./_chunks/stegaEncodeSourceMap-bRxIGJ-b.js";
6
5
  class SanityStegaClient extends SanityClient {
7
6
  }
8
7
  class ObservableSanityStegaClient extends ObservableSanityClient {
9
8
  }
10
-
11
- const exp = defineCreateClientExports(middleware, SanityClient);
12
- const requester = exp.requester;
13
- const createClient = exp.createClient;
14
-
15
- export { ObservableSanityClient, ObservableSanityStegaClient, SanityClient, SanityStegaClient, createClient, requester };
9
+ const exp = defineCreateClientExports(middleware, SanityClient), requester = exp.requester, createClient = exp.createClient;
10
+ export {
11
+ BasePatch,
12
+ BaseTransaction,
13
+ ClientError,
14
+ ObservablePatch,
15
+ ObservableSanityClient,
16
+ ObservableSanityStegaClient,
17
+ ObservableTransaction,
18
+ Patch,
19
+ SanityClient,
20
+ SanityStegaClient,
21
+ ServerError,
22
+ Transaction,
23
+ createClient,
24
+ encodeIntoResult,
25
+ requester,
26
+ stegaEncodeSourceMap,
27
+ adapter as unstable__adapter,
28
+ environment as unstable__environment,
29
+ vercelStegaCleanAll
30
+ };
16
31
  //# sourceMappingURL=stega.js.map
package/dist/stega.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"stega.js","sources":["../src/stega/shared.ts","../src/stega/index.ts"],"sourcesContent":["import {ObservableSanityClient, SanityClient} from '../SanityClient'\n\nexport * from '../SanityClient'\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\nexport {vercelStegaCleanAll} from './vercelStegaCleanAll'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n","export * from '../defineCreateClient'\n\nimport defineCreateClientExports from '../defineCreateClient'\nimport envMiddleware from '../http/nodeMiddleware'\nimport {SanityClient} from '../SanityClient'\nimport type {ClientConfig} from './types'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\nexport * from './shared'\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n"],"names":["envMiddleware"],"mappings":";;;;;AAYO,MAAM,0BAA0B,YAAa,CAAA;AAAC,CAAA;AAM9C,MAAM,oCAAoC,sBAAuB,CAAA;AAAC;;ACXzE,MAAM,GAAA,GAAM,yBAAsD,CAAAA,UAAA,EAAe,YAAY,CAAA,CAAA;AAKtF,MAAM,YAAY,GAAI,CAAA,UAAA;AAGtB,MAAM,eAAe,GAAI,CAAA;;;;"}
1
+ {"version":3,"file":"stega.js","sources":["../src/stega/shared.ts","../src/stega/index.ts"],"sourcesContent":["import {ObservableSanityClient, SanityClient} from '../SanityClient'\n\nexport * from '../SanityClient'\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\nexport {vercelStegaCleanAll} from './vercelStegaCleanAll'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n","export * from '../defineCreateClient'\n\nimport defineCreateClientExports from '../defineCreateClient'\nimport envMiddleware from '../http/nodeMiddleware'\nimport {SanityClient} from '../SanityClient'\nimport type {ClientConfig} from './types'\n\nconst exp = defineCreateClientExports<SanityClient, ClientConfig>(envMiddleware, SanityClient)\n\nexport * from './shared'\n\n/** @public */\nexport const requester = exp.requester\n\n/** @public */\nexport const createClient = exp.createClient\n"],"names":["envMiddleware"],"mappings":";;;;AAYO,MAAM,0BAA0B,aAAa;AAAC;AAM9C,MAAM,oCAAoC,uBAAuB;AAAC;ACXzE,MAAM,MAAM,0BAAsDA,YAAe,YAAY,GAKhF,YAAY,IAAI,WAGhB,eAAe,IAAI;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "6.14.1",
3
+ "version": "6.14.2",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
@@ -130,7 +130,7 @@
130
130
  "dependencies": {
131
131
  "@sanity/eventsource": "^5.0.0",
132
132
  "@vercel/stega": "0.1.0",
133
- "get-it": "^8.4.7",
133
+ "get-it": "^8.4.9",
134
134
  "rxjs": "^7.0.0"
135
135
  },
136
136
  "devDependencies": {
@@ -138,7 +138,7 @@
138
138
  "@edge-runtime/vm": "^3.2.0",
139
139
  "@rollup/plugin-commonjs": "^25.0.7",
140
140
  "@rollup/plugin-node-resolve": "^15.2.3",
141
- "@sanity/pkg-utils": "^4.2.6",
141
+ "@sanity/pkg-utils": "^4.2.8",
142
142
  "@types/json-diff": "^1.0.3",
143
143
  "@types/node": "^20.8.8",
144
144
  "@typescript-eslint/eslint-plugin": "^7.0.2",