@instantdb/platform 0.22.93 → 0.22.94
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/.turbo/turbo-build.log +8 -8
- package/dist/standalone/index.js +70 -70
- package/dist/standalone/index.umd.cjs +11 -11
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
|
|
2
|
-
> @instantdb/platform@0.22.
|
|
2
|
+
> @instantdb/platform@0.22.94 build /home/runner/work/instant/instant/client/packages/platform
|
|
3
3
|
> rm -rf dist; npm run build:tshy && npm run build:standalone && npm run check-exports
|
|
4
4
|
|
|
5
5
|
npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm.
|
|
6
6
|
npm warn Unknown user config "always-auth". This will stop working in the next major version of npm.
|
|
7
7
|
|
|
8
|
-
> @instantdb/platform@0.22.
|
|
8
|
+
> @instantdb/platform@0.22.94 build:tshy
|
|
9
9
|
> tshy
|
|
10
10
|
|
|
11
11
|
npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm.
|
|
12
12
|
npm warn Unknown user config "always-auth". This will stop working in the next major version of npm.
|
|
13
13
|
|
|
14
|
-
> @instantdb/platform@0.22.
|
|
14
|
+
> @instantdb/platform@0.22.94 build:standalone
|
|
15
15
|
> vite build
|
|
16
16
|
|
|
17
17
|
[36mvite v5.4.14 [32mbuilding for production...[36m[39m
|
|
18
18
|
transforming...
|
|
19
|
-
[32m✓[39m
|
|
19
|
+
[32m✓[39m 78 modules transformed.
|
|
20
20
|
rendering chunks...
|
|
21
21
|
computing gzip size...
|
|
22
|
-
[2mdist/standalone/[22m[36mindex.umd.cjs [39m[1m[2m350.68 kB[22m[1m[22m[2m │ gzip: 95.
|
|
22
|
+
[2mdist/standalone/[22m[36mindex.umd.cjs [39m[1m[2m350.68 kB[22m[1m[22m[2m │ gzip: 95.22 kB[22m
|
|
23
23
|
[2mdist/standalone/[22m[36mindex.js [39m[1m[2m457.04 kB[22m[1m[22m[2m │ gzip: 107.08 kB[22m
|
|
24
|
-
[32m✓ built in 2.
|
|
24
|
+
[32m✓ built in 2.15s[39m
|
|
25
25
|
npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm.
|
|
26
26
|
npm warn Unknown user config "always-auth". This will stop working in the next major version of npm.
|
|
27
27
|
|
|
28
|
-
> @instantdb/platform@0.22.
|
|
28
|
+
> @instantdb/platform@0.22.94 check-exports
|
|
29
29
|
> attw --pack .
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
@instantdb/platform v0.22.
|
|
32
|
+
@instantdb/platform v0.22.94
|
|
33
33
|
|
|
34
34
|
Build tools:
|
|
35
35
|
- @arethetypeswrong/cli@^0.17.4
|
package/dist/standalone/index.js
CHANGED
|
@@ -23,7 +23,7 @@ const j = {
|
|
|
23
23
|
mutable: "mutable",
|
|
24
24
|
immutable: "immutable"
|
|
25
25
|
}, Bt = {};
|
|
26
|
-
function
|
|
26
|
+
function _e(r, t) {
|
|
27
27
|
return r instanceof Map ? r.has(t) : Object.prototype.hasOwnProperty.call(r, t);
|
|
28
28
|
}
|
|
29
29
|
function rs(r, t) {
|
|
@@ -53,7 +53,7 @@ function St(r) {
|
|
|
53
53
|
function v(r) {
|
|
54
54
|
return typeof r != "object" ? null : r == null ? void 0 : r[Ms];
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function _t(r) {
|
|
57
57
|
var t;
|
|
58
58
|
const s = v(r);
|
|
59
59
|
return s ? (t = s.copy) !== null && t !== void 0 ? t : s.original : r;
|
|
@@ -64,18 +64,18 @@ function Se(r, t) {
|
|
|
64
64
|
let s;
|
|
65
65
|
return Object.getPrototypeOf(r) === Object.prototype || Array.isArray(r) || r instanceof Map || r instanceof Set || !!(t != null && t.mark) && ((s = t.mark(r, ee)) === ee.immutable || typeof s == "function");
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function _s(r, t = []) {
|
|
68
68
|
if (Object.hasOwnProperty.call(r, "key")) {
|
|
69
69
|
const s = r.parent.copy, e = v(me(s, r.key));
|
|
70
70
|
if (e !== null && (e == null ? void 0 : e.original) !== r.original)
|
|
71
71
|
return null;
|
|
72
72
|
const i = r.parent.type === 3, a = i ? Array.from(r.parent.setMap.keys()).indexOf(r.key) : r.key;
|
|
73
|
-
if (!(i && s.size > a ||
|
|
73
|
+
if (!(i && s.size > a || _e(s, a)))
|
|
74
74
|
return null;
|
|
75
75
|
t.push(a);
|
|
76
76
|
}
|
|
77
77
|
if (r.parent)
|
|
78
|
-
return
|
|
78
|
+
return _s(r.parent, t);
|
|
79
79
|
t.reverse();
|
|
80
80
|
try {
|
|
81
81
|
yi(r.copy, t);
|
|
@@ -90,7 +90,7 @@ function ze(r) {
|
|
|
90
90
|
function me(r, t) {
|
|
91
91
|
return ze(r) === 2 ? r.get(t) : r[t];
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Rt(r, t, s) {
|
|
94
94
|
ze(r) === 2 ? r.set(t, s) : r[t] = s;
|
|
95
95
|
}
|
|
96
96
|
function yt(r, t) {
|
|
@@ -171,7 +171,7 @@ function V(r) {
|
|
|
171
171
|
}
|
|
172
172
|
function Fe(r) {
|
|
173
173
|
if (!Se(r))
|
|
174
|
-
return
|
|
174
|
+
return _t(r);
|
|
175
175
|
if (Array.isArray(r))
|
|
176
176
|
return r.map(Fe);
|
|
177
177
|
if (r instanceof Map) {
|
|
@@ -218,7 +218,7 @@ function gi(r, t) {
|
|
|
218
218
|
} else
|
|
219
219
|
r.forEach((e, i) => t(i, e, r));
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Rs(r, t, s) {
|
|
222
222
|
if (St(r) || !Se(r, s) || t.has(r) || Object.isFrozen(r))
|
|
223
223
|
return;
|
|
224
224
|
const e = r instanceof Set, i = e ? /* @__PURE__ */ new Map() : void 0;
|
|
@@ -228,9 +228,9 @@ function _s(r, t, s) {
|
|
|
228
228
|
const c = v(n);
|
|
229
229
|
V(c);
|
|
230
230
|
const h = !((o = c.assignedMap) === null || o === void 0) && o.size || c.operated ? c.copy : c.original;
|
|
231
|
-
|
|
231
|
+
Rt(e ? i : r, a, h);
|
|
232
232
|
} else
|
|
233
|
-
|
|
233
|
+
Rs(n, t, s);
|
|
234
234
|
}), i) {
|
|
235
235
|
const a = r, n = Array.from(a);
|
|
236
236
|
a.clear(), n.forEach((o) => {
|
|
@@ -240,17 +240,17 @@ function _s(r, t, s) {
|
|
|
240
240
|
}
|
|
241
241
|
function wi(r, t) {
|
|
242
242
|
const s = r.type === 3 ? r.setMap : r.copy;
|
|
243
|
-
r.finalities.revoke.length > 1 && r.assignedMap.get(t) && s &&
|
|
243
|
+
r.finalities.revoke.length > 1 && r.assignedMap.get(t) && s && Rs(me(s, t), r.finalities.handledSet, r.options);
|
|
244
244
|
}
|
|
245
245
|
function It(r) {
|
|
246
246
|
r.type === 3 && r.copy && (r.copy.clear(), r.setMap.forEach((t) => {
|
|
247
|
-
r.copy.add(
|
|
247
|
+
r.copy.add(_t(t));
|
|
248
248
|
}));
|
|
249
249
|
}
|
|
250
250
|
function Et(r, t, s, e) {
|
|
251
251
|
if (r.operated && r.assignedMap && r.assignedMap.size > 0 && !r.finalized) {
|
|
252
252
|
if (s && e) {
|
|
253
|
-
const a =
|
|
253
|
+
const a = _s(r);
|
|
254
254
|
a && t(r, a, s, e);
|
|
255
255
|
}
|
|
256
256
|
r.finalized = !0;
|
|
@@ -263,7 +263,7 @@ function jt(r, t, s, e) {
|
|
|
263
263
|
const c = r.type === 3 ? r.setMap : r.copy;
|
|
264
264
|
if (Ae(me(c, t), s)) {
|
|
265
265
|
let h = i.original;
|
|
266
|
-
i.copy && (h = i.copy), It(r), Et(r, e, a, n), r.options.enableAutoFreeze && (r.options.updatedValues = (o = r.options.updatedValues) !== null && o !== void 0 ? o : /* @__PURE__ */ new WeakMap(), r.options.updatedValues.set(h, i.original)),
|
|
266
|
+
i.copy && (h = i.copy), It(r), Et(r, e, a, n), r.options.enableAutoFreeze && (r.options.updatedValues = (o = r.options.updatedValues) !== null && o !== void 0 ? o : /* @__PURE__ */ new WeakMap(), r.options.updatedValues.set(h, i.original)), Rt(c, t, h);
|
|
267
267
|
}
|
|
268
268
|
}), r.options.enableAutoFreeze && i.finalities !== r.finalities && (r.options.enableAutoFreeze = !1)), Se(s, r.options) && r.finalities.draft.push(() => {
|
|
269
269
|
const a = r.type === 3 ? r.setMap : r.copy;
|
|
@@ -318,7 +318,7 @@ function Ti(r, t, s, e, i) {
|
|
|
318
318
|
}
|
|
319
319
|
function Ai({ original: r, copy: t, assignedMap: s }, e, i, a, n) {
|
|
320
320
|
s.forEach((o, c) => {
|
|
321
|
-
const h = me(r, c), l = Ge(me(t, c)), p = o ?
|
|
321
|
+
const h = me(r, c), l = Ge(me(t, c)), p = o ? _e(r, c) ? j.Replace : j.Add : j.Remove;
|
|
322
322
|
if (Ae(h, l) && p === j.Replace)
|
|
323
323
|
return;
|
|
324
324
|
const d = e.concat(c), f = Te(d, n);
|
|
@@ -593,7 +593,7 @@ const Ei = Reflect.ownKeys(rt), js = /* @__PURE__ */ new WeakSet(), Us = {
|
|
|
593
593
|
if (h)
|
|
594
594
|
return h.bind(r.proxy);
|
|
595
595
|
}
|
|
596
|
-
if (!
|
|
596
|
+
if (!_e(o, t)) {
|
|
597
597
|
const h = rs(o, t);
|
|
598
598
|
return h ? "value" in h ? h.value : (
|
|
599
599
|
// !case: support for getter
|
|
@@ -629,7 +629,7 @@ const Ei = Reflect.ownKeys(rt), js = /* @__PURE__ */ new WeakSet(), Us = {
|
|
|
629
629
|
if (a != null && a.set)
|
|
630
630
|
return a.set.call(r.proxy, s), !0;
|
|
631
631
|
const n = yt(X(r), t), o = v(n);
|
|
632
|
-
return o && Ae(o.original, s) ? (r.copy[t] = s, r.assignedMap = (e = r.assignedMap) !== null && e !== void 0 ? e : /* @__PURE__ */ new Map(), r.assignedMap.set(t, !1), !0) : (Ae(s, n) && (s !== void 0 ||
|
|
632
|
+
return o && Ae(o.original, s) ? (r.copy[t] = s, r.assignedMap = (e = r.assignedMap) !== null && e !== void 0 ? e : /* @__PURE__ */ new Map(), r.assignedMap.set(t, !1), !0) : (Ae(s, n) && (s !== void 0 || _e(r.original, t)) || (V(r), se(r), _e(r.original, t) && Ae(s, r.original[t]) ? r.assignedMap.delete(t) : r.assignedMap.set(t, !0), r.copy[t] = s, jt(r, t, s, je)), !0);
|
|
633
633
|
},
|
|
634
634
|
has(r, t) {
|
|
635
635
|
return t in X(r);
|
|
@@ -684,7 +684,7 @@ function $s(r) {
|
|
|
684
684
|
const E = me(F, e), k = v(E);
|
|
685
685
|
if (k) {
|
|
686
686
|
let B = k.original;
|
|
687
|
-
k.operated && (B =
|
|
687
|
+
k.operated && (B = _t(E)), It(k), Et(k, je, p, d), l.options.enableAutoFreeze && (l.options.updatedValues = (f = l.options.updatedValues) !== null && f !== void 0 ? f : /* @__PURE__ */ new WeakMap(), l.options.updatedValues.set(B, k.original)), Rt(F, e, B);
|
|
688
688
|
}
|
|
689
689
|
(x = A.callbacks) === null || x === void 0 || x.forEach((B) => {
|
|
690
690
|
B(p, d);
|
|
@@ -780,11 +780,11 @@ function Nt(r, t, s) {
|
|
|
780
780
|
function Bi(r) {
|
|
781
781
|
return r.startsWith("lookup__");
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function _i(r) {
|
|
784
784
|
const [t, s, ...e] = r.split("__");
|
|
785
785
|
return [s, JSON.parse(e.join("__"))];
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Ri(r) {
|
|
788
788
|
return new Proxy({
|
|
789
789
|
__etype: r
|
|
790
790
|
}, {
|
|
@@ -792,14 +792,14 @@ function _i(r) {
|
|
|
792
792
|
if (s === "__etype")
|
|
793
793
|
return r;
|
|
794
794
|
const e = s;
|
|
795
|
-
return Bi(e) ? Nt(r,
|
|
795
|
+
return Bi(e) ? Nt(r, _i(e), []) : Nt(r, e, []);
|
|
796
796
|
}
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
function ji() {
|
|
800
800
|
return new Proxy({}, {
|
|
801
801
|
get(r, t) {
|
|
802
|
-
return
|
|
802
|
+
return Ri(t);
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
805
|
}
|
|
@@ -829,7 +829,7 @@ class Ue extends Ut {
|
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
typeof window < "u" && typeof window.localStorage < "u" && (window.localStorage.getItem("devBackend"), window.localStorage.getItem("__instantLogging"), window.localStorage.getItem("__devtoolLocalDash"));
|
|
832
|
-
const at = "v0.22.
|
|
832
|
+
const at = "v0.22.94";
|
|
833
833
|
class Q {
|
|
834
834
|
constructor(t, s, e, i = { indexed: !1, unique: !1 }) {
|
|
835
835
|
this.valueType = t, this.required = s, this.isIndexed = e, this.config = i, this.metadata = {};
|
|
@@ -1928,7 +1928,7 @@ function vt(r) {
|
|
|
1928
1928
|
function Br(r) {
|
|
1929
1929
|
return r.map((t) => vt(t));
|
|
1930
1930
|
}
|
|
1931
|
-
function
|
|
1931
|
+
function _r(r, t) {
|
|
1932
1932
|
const [s, e] = r;
|
|
1933
1933
|
if (s === "add-attr" || s === "update-attr") {
|
|
1934
1934
|
const c = vt(r);
|
|
@@ -1942,9 +1942,9 @@ function Rr(r, t) {
|
|
|
1942
1942
|
return { ...n, backgroundJob: o };
|
|
1943
1943
|
}
|
|
1944
1944
|
function Pt(r, t) {
|
|
1945
|
-
return r.map((s) =>
|
|
1945
|
+
return r.map((s) => _r(s, t));
|
|
1946
1946
|
}
|
|
1947
|
-
async function
|
|
1947
|
+
async function Rr(r, t, s, e) {
|
|
1948
1948
|
const i = await H(
|
|
1949
1949
|
`${r}/superadmin/apps/${s}/schema/push/plan`,
|
|
1950
1950
|
{
|
|
@@ -2131,8 +2131,8 @@ class Ie extends Error {
|
|
|
2131
2131
|
super("PlatformApi was not provided auth.");
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
|
-
var O,
|
|
2135
|
-
class
|
|
2134
|
+
var O, R;
|
|
2135
|
+
class _n {
|
|
2136
2136
|
/**
|
|
2137
2137
|
* @param config – Runtime configuration.
|
|
2138
2138
|
* @param config.auth.token – OAuth access-token obtained via the oauth flow
|
|
@@ -2141,8 +2141,8 @@ class Rn {
|
|
|
2141
2141
|
*/
|
|
2142
2142
|
constructor(t) {
|
|
2143
2143
|
oe(this, O);
|
|
2144
|
-
oe(this,
|
|
2145
|
-
ce(this, O, t == null ? void 0 : t.auth), ce(this,
|
|
2144
|
+
oe(this, R);
|
|
2145
|
+
ce(this, O, t == null ? void 0 : t.auth), ce(this, R, (t == null ? void 0 : t.apiURI) || "https://api.instantdb.com");
|
|
2146
2146
|
}
|
|
2147
2147
|
token() {
|
|
2148
2148
|
if (!T(this, O))
|
|
@@ -2162,7 +2162,7 @@ class Rn {
|
|
|
2162
2162
|
!("clientId" in T(this, O)))
|
|
2163
2163
|
return null;
|
|
2164
2164
|
const t = await wr({
|
|
2165
|
-
apiURI: T(this,
|
|
2165
|
+
apiURI: T(this, R),
|
|
2166
2166
|
clientId: T(this, O).clientId,
|
|
2167
2167
|
clientSecret: T(this, O).clientSecret,
|
|
2168
2168
|
refreshToken: T(this, O).refreshToken
|
|
@@ -2206,7 +2206,7 @@ class Rn {
|
|
|
2206
2206
|
* according to `Opts`.
|
|
2207
2207
|
*/
|
|
2208
2208
|
async getApp(t, s) {
|
|
2209
|
-
return this.withRetry(Or, [T(this,
|
|
2209
|
+
return this.withRetry(Or, [T(this, R), this.token(), t, s]);
|
|
2210
2210
|
}
|
|
2211
2211
|
/**
|
|
2212
2212
|
* List **all apps** owned by the auth owner.
|
|
@@ -2223,7 +2223,7 @@ class Rn {
|
|
|
2223
2223
|
* @returns An array wrapper; each element’s shape follows `Opts`.
|
|
2224
2224
|
*/
|
|
2225
2225
|
async getApps(t) {
|
|
2226
|
-
return this.withRetry(Nr, [T(this,
|
|
2226
|
+
return this.withRetry(Nr, [T(this, R), this.token(), t]);
|
|
2227
2227
|
}
|
|
2228
2228
|
/**
|
|
2229
2229
|
* List **all orgs** that the auth owner is a member of.
|
|
@@ -2235,7 +2235,7 @@ class Rn {
|
|
|
2235
2235
|
* @returns An array of orgs
|
|
2236
2236
|
*/
|
|
2237
2237
|
async getOrgs() {
|
|
2238
|
-
return this.withRetry(kr, [T(this,
|
|
2238
|
+
return this.withRetry(kr, [T(this, R), this.token()]);
|
|
2239
2239
|
}
|
|
2240
2240
|
/**
|
|
2241
2241
|
* List **all apps** owned by the auth owner.
|
|
@@ -2253,7 +2253,7 @@ class Rn {
|
|
|
2253
2253
|
*/
|
|
2254
2254
|
async getAppsForOrg(t, s) {
|
|
2255
2255
|
return this.withRetry(vr, [
|
|
2256
|
-
T(this,
|
|
2256
|
+
T(this, R),
|
|
2257
2257
|
this.token(),
|
|
2258
2258
|
t,
|
|
2259
2259
|
s
|
|
@@ -2269,7 +2269,7 @@ class Rn {
|
|
|
2269
2269
|
* @param appId -- UUID of the app
|
|
2270
2270
|
*/
|
|
2271
2271
|
async getSchema(t) {
|
|
2272
|
-
return this.withRetry(qt, [T(this,
|
|
2272
|
+
return this.withRetry(qt, [T(this, R), this.token(), t]);
|
|
2273
2273
|
}
|
|
2274
2274
|
/**
|
|
2275
2275
|
* Gets the permissions for an app by its id.
|
|
@@ -2281,7 +2281,7 @@ class Rn {
|
|
|
2281
2281
|
* @param appId -- UUID of the app
|
|
2282
2282
|
*/
|
|
2283
2283
|
async getPerms(t) {
|
|
2284
|
-
return this.withRetry(Ks, [T(this,
|
|
2284
|
+
return this.withRetry(Ks, [T(this, R), this.token(), t]);
|
|
2285
2285
|
}
|
|
2286
2286
|
/**
|
|
2287
2287
|
* Create a new app.
|
|
@@ -2310,7 +2310,7 @@ class Rn {
|
|
|
2310
2310
|
* @param fields.orgId -- Optional id of the org that the app will be placed in
|
|
2311
2311
|
*/
|
|
2312
2312
|
async createApp(t) {
|
|
2313
|
-
return this.withRetry(Dr, [T(this,
|
|
2313
|
+
return this.withRetry(Dr, [T(this, R), this.token(), t]);
|
|
2314
2314
|
}
|
|
2315
2315
|
/**
|
|
2316
2316
|
* Create a new temporary app.
|
|
@@ -2335,7 +2335,7 @@ class Rn {
|
|
|
2335
2335
|
* @param fields.perms -- Optional permissions for the app
|
|
2336
2336
|
*/
|
|
2337
2337
|
async createTemporaryApp(t) {
|
|
2338
|
-
return Lr(T(this,
|
|
2338
|
+
return Lr(T(this, R), t);
|
|
2339
2339
|
}
|
|
2340
2340
|
/**
|
|
2341
2341
|
* Update the title of an app by its id.
|
|
@@ -2351,7 +2351,7 @@ class Rn {
|
|
|
2351
2351
|
*/
|
|
2352
2352
|
async updateApp(t, s) {
|
|
2353
2353
|
return this.withRetry(Mr, [
|
|
2354
|
-
T(this,
|
|
2354
|
+
T(this, R),
|
|
2355
2355
|
this.token(),
|
|
2356
2356
|
t,
|
|
2357
2357
|
s
|
|
@@ -2367,7 +2367,7 @@ class Rn {
|
|
|
2367
2367
|
* @param appId -- UUID of the app
|
|
2368
2368
|
*/
|
|
2369
2369
|
async deleteApp(t) {
|
|
2370
|
-
return this.withRetry(Fr, [T(this,
|
|
2370
|
+
return this.withRetry(Fr, [T(this, R), this.token(), t]);
|
|
2371
2371
|
}
|
|
2372
2372
|
/**
|
|
2373
2373
|
* Dry-run a **schema push** and receive a _plan_ of steps the server would
|
|
@@ -2378,8 +2378,8 @@ class Rn {
|
|
|
2378
2378
|
* ```
|
|
2379
2379
|
*/
|
|
2380
2380
|
async planSchemaPush(t, s) {
|
|
2381
|
-
return this.withRetry(
|
|
2382
|
-
T(this,
|
|
2381
|
+
return this.withRetry(Rr, [
|
|
2382
|
+
T(this, R),
|
|
2383
2383
|
this.token(),
|
|
2384
2384
|
t,
|
|
2385
2385
|
s
|
|
@@ -2420,7 +2420,7 @@ class Rn {
|
|
|
2420
2420
|
await this.refreshToken();
|
|
2421
2421
|
} catch {
|
|
2422
2422
|
}
|
|
2423
|
-
$r(T(this,
|
|
2423
|
+
$r(T(this, R), this.token(), t, s).subscribe({
|
|
2424
2424
|
complete(n) {
|
|
2425
2425
|
i(n);
|
|
2426
2426
|
},
|
|
@@ -2450,15 +2450,15 @@ class Rn {
|
|
|
2450
2450
|
async pushPerms(t, s) {
|
|
2451
2451
|
if (!T(this, O))
|
|
2452
2452
|
throw new Ie();
|
|
2453
|
-
return this.withRetry(qr, [T(this,
|
|
2453
|
+
return this.withRetry(qr, [T(this, R), this.token(), t, s]);
|
|
2454
2454
|
}
|
|
2455
2455
|
async tokenInfo() {
|
|
2456
2456
|
if (!T(this, O))
|
|
2457
2457
|
throw new Ie();
|
|
2458
|
-
return this.withRetry(zr, [T(this,
|
|
2458
|
+
return this.withRetry(zr, [T(this, R), this.token()]);
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
|
-
O = new WeakMap(),
|
|
2461
|
+
O = new WeakMap(), R = new WeakMap();
|
|
2462
2462
|
function Vr(r, t) {
|
|
2463
2463
|
if (r == null) return {};
|
|
2464
2464
|
var s = {};
|
|
@@ -3162,13 +3162,13 @@ function z(r, t) {
|
|
|
3162
3162
|
binop: t
|
|
3163
3163
|
});
|
|
3164
3164
|
}
|
|
3165
|
-
let
|
|
3165
|
+
let Re = -1;
|
|
3166
3166
|
const Vt = [], Ht = [], Kt = [], Jt = [], Wt = [], Xt = [];
|
|
3167
3167
|
function g(r, t = {}) {
|
|
3168
|
-
return ++
|
|
3168
|
+
return ++Re, Ht.push(r), Kt.push(t.binop ?? -1), Jt.push(t.beforeExpr ?? !1), Wt.push(t.startsExpr ?? !1), Xt.push(t.prefix ?? !1), Vt.push(new Js(r, t)), Re;
|
|
3169
3169
|
}
|
|
3170
3170
|
function S(r, t = {}) {
|
|
3171
|
-
return ++
|
|
3171
|
+
return ++Re, zt.set(r, Re), Ht.push(r), Kt.push(t.binop ?? -1), Jt.push(t.beforeExpr ?? !1), Wt.push(t.startsExpr ?? !1), Xt.push(t.prefix ?? !1), Vt.push(new Js("name", t)), Re;
|
|
3172
3172
|
}
|
|
3173
3173
|
const ra = {
|
|
3174
3174
|
bracketL: g("[", {
|
|
@@ -5779,19 +5779,19 @@ var Ba = (r) => class extends r {
|
|
|
5779
5779
|
this.state.canStartJSXElement = na(i);
|
|
5780
5780
|
}
|
|
5781
5781
|
};
|
|
5782
|
-
class
|
|
5782
|
+
class _a extends Zt {
|
|
5783
5783
|
constructor() {
|
|
5784
5784
|
super(...arguments);
|
|
5785
5785
|
m(this, "tsNames", /* @__PURE__ */ new Map());
|
|
5786
5786
|
}
|
|
5787
5787
|
}
|
|
5788
|
-
class
|
|
5788
|
+
class Ra extends es {
|
|
5789
5789
|
constructor() {
|
|
5790
5790
|
super(...arguments);
|
|
5791
5791
|
m(this, "importsStack", []);
|
|
5792
5792
|
}
|
|
5793
5793
|
createScope(s) {
|
|
5794
|
-
return this.importsStack.push(/* @__PURE__ */ new Set()), new
|
|
5794
|
+
return this.importsStack.push(/* @__PURE__ */ new Set()), new _a(s);
|
|
5795
5795
|
}
|
|
5796
5796
|
enter(s) {
|
|
5797
5797
|
s === 512 && this.importsStack.push(/* @__PURE__ */ new Set()), super.enter(s);
|
|
@@ -7858,7 +7858,7 @@ var cn = (r) => class extends r {
|
|
|
7858
7858
|
}));
|
|
7859
7859
|
}
|
|
7860
7860
|
getScopeHandler() {
|
|
7861
|
-
return
|
|
7861
|
+
return Ra;
|
|
7862
7862
|
}
|
|
7863
7863
|
tsIsIdentifier() {
|
|
7864
7864
|
return N(this.state.type);
|
|
@@ -12275,21 +12275,21 @@ const Hn = (r, t) => {
|
|
|
12275
12275
|
]);
|
|
12276
12276
|
for (const P of k) {
|
|
12277
12277
|
const M = E.get(P) || [], K = F.get(P) || [], xe = M.map(
|
|
12278
|
-
(
|
|
12278
|
+
(_) => A(_)
|
|
12279
12279
|
), Ve = K.map(
|
|
12280
|
-
(
|
|
12280
|
+
(_) => A(_)
|
|
12281
12281
|
), L = Ve.filter(
|
|
12282
|
-
(
|
|
12282
|
+
(_) => !xe.includes(_)
|
|
12283
12283
|
), Oe = xe.filter(
|
|
12284
|
-
(
|
|
12284
|
+
(_) => !Ve.includes(_)
|
|
12285
12285
|
);
|
|
12286
12286
|
xe.filter(
|
|
12287
|
-
(
|
|
12288
|
-
).forEach((
|
|
12287
|
+
(_) => Ve.includes(_)
|
|
12288
|
+
).forEach((_) => {
|
|
12289
12289
|
const U = M.find(
|
|
12290
|
-
(Pe) => A(Pe) ===
|
|
12290
|
+
(Pe) => A(Pe) === _
|
|
12291
12291
|
), J = K.find(
|
|
12292
|
-
(Pe) => A(Pe) ===
|
|
12292
|
+
(Pe) => A(Pe) === _
|
|
12293
12293
|
);
|
|
12294
12294
|
!U || !J || i.push(
|
|
12295
12295
|
...Ds(
|
|
@@ -12312,9 +12312,9 @@ const Hn = (r, t) => {
|
|
|
12312
12312
|
reverseEntityName: (ie = M[0]) == null ? void 0 : ie.reverse.on
|
|
12313
12313
|
}
|
|
12314
12314
|
);
|
|
12315
|
-
mt.deleted.forEach((
|
|
12315
|
+
mt.deleted.forEach((_) => {
|
|
12316
12316
|
const U = M.find(
|
|
12317
|
-
(J) => A(J) ===
|
|
12317
|
+
(J) => A(J) === _
|
|
12318
12318
|
);
|
|
12319
12319
|
U && i.push({
|
|
12320
12320
|
type: "delete-attr",
|
|
@@ -12323,16 +12323,16 @@ const Hn = (r, t) => {
|
|
|
12323
12323
|
namespace: U.forward.on
|
|
12324
12324
|
}
|
|
12325
12325
|
});
|
|
12326
|
-
}), mt.created.forEach((
|
|
12326
|
+
}), mt.created.forEach((_) => {
|
|
12327
12327
|
const U = K.find(
|
|
12328
|
-
(J) => A(J) ===
|
|
12328
|
+
(J) => A(J) === _
|
|
12329
12329
|
);
|
|
12330
12330
|
U && i.push(Cn(U));
|
|
12331
|
-
}), mt.renamed.forEach((
|
|
12331
|
+
}), mt.renamed.forEach((_) => {
|
|
12332
12332
|
const U = M.find(
|
|
12333
|
-
(Pe) => A(Pe) ===
|
|
12333
|
+
(Pe) => A(Pe) === _.from
|
|
12334
12334
|
), J = K.find(
|
|
12335
|
-
(Pe) => A(Pe) ===
|
|
12335
|
+
(Pe) => A(Pe) === _.to
|
|
12336
12336
|
);
|
|
12337
12337
|
!U || !J || (i.push({
|
|
12338
12338
|
type: "update-attr",
|
|
@@ -12416,7 +12416,7 @@ const Hn = (r, t) => {
|
|
|
12416
12416
|
export {
|
|
12417
12417
|
pe as InstantOAuthError,
|
|
12418
12418
|
Dn as OAuthHandler,
|
|
12419
|
-
|
|
12419
|
+
_n as PlatformApi,
|
|
12420
12420
|
Hs as ProgressPromise,
|
|
12421
12421
|
be as SchemaValidationError,
|
|
12422
12422
|
nt as apiSchemaToInstantSchemaDef,
|