@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.js
CHANGED
|
@@ -5,7 +5,7 @@ import { BaseError } from 'make-error';
|
|
|
5
5
|
import { map, filter } from 'rxjs/operators';
|
|
6
6
|
import polyfilledEventSource from '@sanity/eventsource';
|
|
7
7
|
var name = "@sanity/client";
|
|
8
|
-
var version = "5.0.0-esm.
|
|
8
|
+
var version = "5.0.0-esm.2";
|
|
9
9
|
const middleware = [debug({
|
|
10
10
|
verbose: true,
|
|
11
11
|
namespace: "sanity:client"
|
|
@@ -1272,6 +1272,7 @@ const _SanityClient = class {
|
|
|
1272
1272
|
__privateAdd(this, _clientConfig2, void 0);
|
|
1273
1273
|
__privateAdd(this, _httpRequest2, void 0);
|
|
1274
1274
|
this.listen = _listen;
|
|
1275
|
+
this.observable = new ObservableSanityClient(httpRequest, config);
|
|
1275
1276
|
this.config(config);
|
|
1276
1277
|
__privateSet(this, _httpRequest2, httpRequest);
|
|
1277
1278
|
this.assets = new AssetsClient(this, __privateGet(this, _httpRequest2));
|
|
@@ -1279,7 +1280,6 @@ const _SanityClient = class {
|
|
|
1279
1280
|
this.datasets = new DatasetsClient(this);
|
|
1280
1281
|
this.projects = new ProjectsClient(this);
|
|
1281
1282
|
this.users = new UsersClient(this);
|
|
1282
|
-
this.observable = new ObservableSanityClient(httpRequest, this.config());
|
|
1283
1283
|
}
|
|
1284
1284
|
clone() {
|
|
1285
1285
|
return new _SanityClient(__privateGet(this, _httpRequest2), this.config());
|