@ahoo-wang/fetcher-wow 4.0.1 → 5.0.0
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.cjs.js → index.cjs} +2 -2
- package/dist/index.cjs.map +1 -0
- package/dist/index.es.js +10 -6
- package/dist/index.es.js.map +1 -1
- package/dist/query/locale/{en_US.cjs.js → en_US.cjs} +1 -1
- package/dist/query/locale/en_US.cjs.map +1 -0
- package/dist/query/locale/{zh_CN.cjs.js → zh_CN.cjs} +1 -1
- package/dist/query/locale/zh_CN.cjs.map +1 -0
- package/dist/query/queryClients.d.ts +1 -1
- package/dist/query/queryClients.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/index.cjs.js.map +0 -1
- package/dist/query/locale/en_US.cjs.js.map +0 -1
- package/dist/query/locale/zh_CN.cjs.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1832,7 +1832,7 @@ function $(e) {
|
|
|
1832
1832
|
let n = t(e.resourceAttribution ?? "", e.aggregateName ?? "");
|
|
1833
1833
|
return e.contextAlias && (n = t(e.contextAlias, n)), {
|
|
1834
1834
|
...e,
|
|
1835
|
-
basePath: n
|
|
1835
|
+
basePath: e.basePath ?? n
|
|
1836
1836
|
};
|
|
1837
1837
|
}
|
|
1838
1838
|
var Dt = class {
|
|
@@ -1842,28 +1842,32 @@ var Dt = class {
|
|
|
1842
1842
|
createSnapshotQueryClient(e) {
|
|
1843
1843
|
let t = $({
|
|
1844
1844
|
...this.defaultOptions,
|
|
1845
|
-
...e
|
|
1845
|
+
...e,
|
|
1846
|
+
basePath: e?.basePath ?? this.defaultOptions.basePath
|
|
1846
1847
|
});
|
|
1847
1848
|
return new J(t);
|
|
1848
1849
|
}
|
|
1849
1850
|
createLoadStateAggregateClient(e) {
|
|
1850
1851
|
let t = $({
|
|
1851
1852
|
...this.defaultOptions,
|
|
1852
|
-
...e
|
|
1853
|
+
...e,
|
|
1854
|
+
basePath: e?.basePath ?? this.defaultOptions.basePath
|
|
1853
1855
|
});
|
|
1854
1856
|
return new X(t);
|
|
1855
1857
|
}
|
|
1856
1858
|
createOwnerLoadStateAggregateClient(e) {
|
|
1857
1859
|
let t = $({
|
|
1858
1860
|
...this.defaultOptions,
|
|
1859
|
-
...e
|
|
1861
|
+
...e,
|
|
1862
|
+
basePath: e?.basePath ?? this.defaultOptions.basePath
|
|
1860
1863
|
});
|
|
1861
1864
|
return new Q(t);
|
|
1862
1865
|
}
|
|
1863
1866
|
createEventStreamQueryClient(e) {
|
|
1864
1867
|
let t = $({
|
|
1865
1868
|
...this.defaultOptions,
|
|
1866
|
-
...e
|
|
1869
|
+
...e,
|
|
1870
|
+
basePath: e?.basePath ?? this.defaultOptions.basePath
|
|
1867
1871
|
});
|
|
1868
1872
|
return new K(t);
|
|
1869
1873
|
}
|
|
@@ -1952,7 +1956,7 @@ function It(e, t, n) {
|
|
|
1952
1956
|
let i = e;
|
|
1953
1957
|
for (let e of r) {
|
|
1954
1958
|
if (Array.isArray(i)) {
|
|
1955
|
-
let t =
|
|
1959
|
+
let t = /^\d+$/.test(e) ? Number(e) : NaN;
|
|
1956
1960
|
if (isNaN(t) || t < 0 || !Number.isInteger(t)) return n;
|
|
1957
1961
|
i = i[t];
|
|
1958
1962
|
} else if (typeof i == "object") i = i[e];
|