@sanity/client 6.14.1 → 6.14.3

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 (61) hide show
  1. package/dist/_chunks/browserMiddleware-B_0VHs-S.js +1476 -0
  2. package/dist/_chunks/browserMiddleware-B_0VHs-S.js.map +1 -0
  3. package/dist/_chunks/browserMiddleware-wr3kZwY7.cjs +1493 -0
  4. package/dist/_chunks/browserMiddleware-wr3kZwY7.cjs.map +1 -0
  5. package/dist/_chunks/nodeMiddleware-C0pzwo72.js +1493 -0
  6. package/dist/_chunks/nodeMiddleware-C0pzwo72.js.map +1 -0
  7. package/dist/_chunks/nodeMiddleware-SsjaLQfQ.cjs +1510 -0
  8. package/dist/_chunks/nodeMiddleware-SsjaLQfQ.cjs.map +1 -0
  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-C01qsbyy.js +285 -0
  12. package/dist/_chunks/{resolveEditInfo-Cf8D1Agp.js.map → resolveEditInfo-C01qsbyy.js.map} +1 -1
  13. package/dist/_chunks/stegaEncodeSourceMap-BbnAw_7a.js +168 -0
  14. package/dist/_chunks/{stegaEncodeSourceMap-DU95idpa.js.map → stegaEncodeSourceMap-BbnAw_7a.js.map} +1 -1
  15. package/dist/_chunks/stegaEncodeSourceMap-D5HvcZ8_.cjs +329 -0
  16. package/dist/_chunks/{stegaEncodeSourceMap-DIcuvN0P.cjs.map → stegaEncodeSourceMap-D5HvcZ8_.cjs.map} +1 -1
  17. package/dist/_chunks/stegaEncodeSourceMap-SLOvEWQZ.cjs +166 -0
  18. package/dist/_chunks/{stegaEncodeSourceMap-8TjLXjYU.cjs.map → stegaEncodeSourceMap-SLOvEWQZ.cjs.map} +1 -1
  19. package/dist/_chunks/stegaEncodeSourceMap-Z_1_DmND.js +330 -0
  20. package/dist/_chunks/{stegaEncodeSourceMap-DLon0Yls.js.map → stegaEncodeSourceMap-Z_1_DmND.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.d.ts +6 -0
  32. package/dist/index.js +24 -15
  33. package/dist/index.js.map +1 -1
  34. package/dist/stega.browser.cjs +12 -17
  35. package/dist/stega.browser.cjs.map +1 -1
  36. package/dist/stega.browser.js +26 -11
  37. package/dist/stega.browser.js.map +1 -1
  38. package/dist/stega.cjs +12 -17
  39. package/dist/stega.cjs.map +1 -1
  40. package/dist/stega.d.ts +6 -0
  41. package/dist/stega.js +26 -11
  42. package/dist/stega.js.map +1 -1
  43. package/package.json +4 -4
  44. package/src/config.ts +1 -1
  45. package/src/types.ts +10 -1
  46. package/umd/sanityClient.js +2676 -3364
  47. package/umd/sanityClient.min.js +3 -3
  48. package/dist/_chunks/browserMiddleware-DhUBf_19.js +0 -1761
  49. package/dist/_chunks/browserMiddleware-DhUBf_19.js.map +0 -1
  50. package/dist/_chunks/browserMiddleware-FpdqDQ1o.cjs +0 -1777
  51. package/dist/_chunks/browserMiddleware-FpdqDQ1o.cjs.map +0 -1
  52. package/dist/_chunks/nodeMiddleware-BSZoKrW0.js +0 -1780
  53. package/dist/_chunks/nodeMiddleware-BSZoKrW0.js.map +0 -1
  54. package/dist/_chunks/nodeMiddleware-DmcqX3kz.cjs +0 -1796
  55. package/dist/_chunks/nodeMiddleware-DmcqX3kz.cjs.map +0 -1
  56. package/dist/_chunks/resolveEditInfo-BB1WiUDY.cjs +0 -422
  57. package/dist/_chunks/resolveEditInfo-Cf8D1Agp.js +0 -406
  58. package/dist/_chunks/stegaEncodeSourceMap-8TjLXjYU.cjs +0 -229
  59. package/dist/_chunks/stegaEncodeSourceMap-DIcuvN0P.cjs +0 -486
  60. package/dist/_chunks/stegaEncodeSourceMap-DLon0Yls.js +0 -482
  61. package/dist/_chunks/stegaEncodeSourceMap-DU95idpa.js +0 -225
@@ -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 { p as printNoDefaultExport, d as defineCreateClientExports, S as SanityClient, e as envMiddleware } from "./_chunks/browserMiddleware-B_0VHs-S.js";
2
+ import { B, b, C, O, f, c, P, a, T } from "./_chunks/browserMiddleware-B_0VHs-S.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
+ B as BasePatch,
12
+ b as BaseTransaction,
13
+ C as ClientError,
14
+ O as ObservablePatch,
15
+ f as ObservableSanityClient,
16
+ c as ObservableTransaction,
17
+ P as Patch,
18
+ SanityClient,
19
+ a as ServerError,
20
+ T as 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-SsjaLQfQ.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.d.ts CHANGED
@@ -510,6 +510,12 @@ export declare class DatasetsClient {
510
510
  export declare type DatasetsResponse = {
511
511
  name: string
512
512
  aclMode: DatasetAclMode
513
+ createdAt: string
514
+ createdByUserId: string
515
+ addonFor: string | null
516
+ datasetProfile: string
517
+ features: string[]
518
+ tags: string[]
513
519
  }[]
514
520
 
515
521
  /**
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 { p as printNoDefaultExport, d as defineCreateClientExports, S as SanityClient, m as middleware } from "./_chunks/nodeMiddleware-C0pzwo72.js";
2
+ import { B, b, C, O, e, c, P, a, T } from "./_chunks/nodeMiddleware-C0pzwo72.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
+ B as BasePatch,
12
+ b as BaseTransaction,
13
+ C as ClientError,
14
+ O as ObservablePatch,
15
+ e as ObservableSanityClient,
16
+ c as ObservableTransaction,
17
+ P as Patch,
18
+ SanityClient,
19
+ a as ServerError,
20
+ T as 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-wr3kZwY7.cjs"), getIt = require("get-it"), stegaEncodeSourceMap = require("./_chunks/stegaEncodeSourceMap-D5HvcZ8_.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 { S as SanityClient, f as ObservableSanityClient, d as defineCreateClientExports, e as envMiddleware } from "./_chunks/browserMiddleware-B_0VHs-S.js";
2
+ import { B, b, C, O, c, P, a, T, v } from "./_chunks/browserMiddleware-B_0VHs-S.js";
3
+ import { adapter, environment } from "get-it";
4
+ import { e, s } from "./_chunks/stegaEncodeSourceMap-Z_1_DmND.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
+ B as BasePatch,
12
+ b as BaseTransaction,
13
+ C as ClientError,
14
+ O as ObservablePatch,
15
+ ObservableSanityClient,
16
+ ObservableSanityStegaClient,
17
+ c as ObservableTransaction,
18
+ P as Patch,
19
+ SanityClient,
20
+ SanityStegaClient,
21
+ a as ServerError,
22
+ T as Transaction,
23
+ createClient,
24
+ e as encodeIntoResult,
25
+ requester,
26
+ s as stegaEncodeSourceMap,
27
+ adapter as unstable__adapter,
28
+ environment as unstable__environment,
29
+ v as 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-SsjaLQfQ.cjs"), getIt = require("get-it"), stegaEncodeSourceMap = require("./_chunks/stegaEncodeSourceMap-SLOvEWQZ.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.d.ts CHANGED
@@ -521,6 +521,12 @@ export declare class DatasetsClient {
521
521
  export declare type DatasetsResponse = {
522
522
  name: string
523
523
  aclMode: DatasetAclMode
524
+ createdAt: string
525
+ createdByUserId: string
526
+ addonFor: string | null
527
+ datasetProfile: string
528
+ features: string[]
529
+ tags: string[]
524
530
  }[]
525
531
 
526
532
  /**
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 { S as SanityClient, e as ObservableSanityClient, d as defineCreateClientExports, m as middleware } from "./_chunks/nodeMiddleware-C0pzwo72.js";
2
+ import { B, b, C, O, c, P, a, T, v } from "./_chunks/nodeMiddleware-C0pzwo72.js";
3
+ import { adapter, environment } from "get-it";
4
+ import { e, s } from "./_chunks/stegaEncodeSourceMap-BbnAw_7a.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
+ B as BasePatch,
12
+ b as BaseTransaction,
13
+ C as ClientError,
14
+ O as ObservablePatch,
15
+ ObservableSanityClient,
16
+ ObservableSanityStegaClient,
17
+ c as ObservableTransaction,
18
+ P as Patch,
19
+ SanityClient,
20
+ SanityStegaClient,
21
+ a as ServerError,
22
+ T as Transaction,
23
+ createClient,
24
+ e as encodeIntoResult,
25
+ requester,
26
+ s as stegaEncodeSourceMap,
27
+ adapter as unstable__adapter,
28
+ environment as unstable__environment,
29
+ v as 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.3",
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.11",
142
142
  "@types/json-diff": "^1.0.3",
143
143
  "@types/node": "^20.8.8",
144
144
  "@typescript-eslint/eslint-plugin": "^7.0.2",
@@ -155,7 +155,7 @@
155
155
  "next": "^14.1.0",
156
156
  "nock": "^13.5.3",
157
157
  "prettier": "^3.2.5",
158
- "prettier-plugin-packagejson": "^2.4.11",
158
+ "prettier-plugin-packagejson": "^2.4.12",
159
159
  "rimraf": "^5.0.1",
160
160
  "rollup": "^4.12.0",
161
161
  "sse-channel": "^4.0.0",
package/src/config.ts CHANGED
@@ -14,7 +14,7 @@ export const defaultConfig = {
14
14
  const LOCALHOSTS = ['localhost', '127.0.0.1', '0.0.0.0']
15
15
  const isLocal = (host: string) => LOCALHOSTS.indexOf(host) !== -1
16
16
 
17
- export const validateApiVersion = function validateApiVersion(apiVersion: string) {
17
+ function validateApiVersion(apiVersion: string) {
18
18
  if (apiVersion === '1' || apiVersion === 'X') {
19
19
  return
20
20
  }
package/src/types.ts CHANGED
@@ -345,7 +345,16 @@ export type DatasetAclMode = 'public' | 'private' | 'custom'
345
345
  /** @internal */
346
346
  export type DatasetResponse = {datasetName: string; aclMode: DatasetAclMode}
347
347
  /** @internal */
348
- export type DatasetsResponse = {name: string; aclMode: DatasetAclMode}[]
348
+ export type DatasetsResponse = {
349
+ name: string
350
+ aclMode: DatasetAclMode
351
+ createdAt: string
352
+ createdByUserId: string
353
+ addonFor: string | null
354
+ datasetProfile: string
355
+ features: string[]
356
+ tags: string[]
357
+ }[]
349
358
 
350
359
  /** @internal */
351
360
  export interface SanityProjectMember {