@sanity/client 5.0.0-esm.1 → 5.0.0-esm.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.
- package/dist/index.browser.cjs +1 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/SanityClient.ts +2 -2
- package/umd/sanityClient.js +1 -1
- package/umd/sanityClient.min.js +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16,7 +16,7 @@ function _interopDefaultCompat(e) {
|
|
|
16
16
|
}
|
|
17
17
|
var polyfilledEventSource__default = /*#__PURE__*/_interopDefaultCompat(polyfilledEventSource);
|
|
18
18
|
var name = "@sanity/client";
|
|
19
|
-
var version = "5.0.0-esm.
|
|
19
|
+
var version = "5.0.0-esm.2";
|
|
20
20
|
const middleware = [middleware$1.debug({
|
|
21
21
|
verbose: true,
|
|
22
22
|
namespace: "sanity:client"
|
|
@@ -1283,6 +1283,7 @@ const _SanityClient = class {
|
|
|
1283
1283
|
__privateAdd(this, _clientConfig2, void 0);
|
|
1284
1284
|
__privateAdd(this, _httpRequest2, void 0);
|
|
1285
1285
|
this.listen = _listen;
|
|
1286
|
+
this.observable = new ObservableSanityClient(httpRequest, config);
|
|
1286
1287
|
this.config(config);
|
|
1287
1288
|
__privateSet(this, _httpRequest2, httpRequest);
|
|
1288
1289
|
this.assets = new AssetsClient(this, __privateGet(this, _httpRequest2));
|
|
@@ -1290,7 +1291,6 @@ const _SanityClient = class {
|
|
|
1290
1291
|
this.datasets = new DatasetsClient(this);
|
|
1291
1292
|
this.projects = new ProjectsClient(this);
|
|
1292
1293
|
this.users = new UsersClient(this);
|
|
1293
|
-
this.observable = new ObservableSanityClient(httpRequest, this.config());
|
|
1294
1294
|
}
|
|
1295
1295
|
clone() {
|
|
1296
1296
|
return new _SanityClient(__privateGet(this, _httpRequest2), this.config());
|