@mdbase-dev/sdk 0.2.11 → 0.2.16
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/app-host/bases-wire.d.ts +9 -1
- package/dist/app-host/bases-wire.js +54 -4
- package/dist/app-host/bases-wire.js.map +1 -1
- package/dist/application/asset-pins.json +4 -4
- package/dist/application/startup-timing.js +6 -0
- package/dist/application/startup-timing.js.map +1 -1
- package/dist/application/worker.js +87 -15
- package/dist/browser/mdbase-sdk.js +109 -29
- package/dist/browser/mdbase-sdk.min.js +53 -53
- package/dist/client.d.ts +8 -3
- package/dist/client.js +38 -8
- package/dist/client.js.map +1 -1
- package/dist/collection-api.d.ts +1 -1
- package/dist/contract-query.d.ts +9 -0
- package/dist/contract-query.js.map +1 -1
- package/dist/describe-error.d.ts +1 -1
- package/dist/describe-error.js +5 -4
- package/dist/describe-error.js.map +1 -1
- package/dist/native/provenance.json +5 -5
- package/dist/native/runtime.wasm +0 -0
- package/dist/performance-mark.d.ts +2 -1
- package/dist/performance-mark.js.map +1 -1
- package/dist/testing/memory-replica.js +67 -9
- package/dist/testing/memory-replica.js.map +1 -1
- package/package.json +1 -1
|
@@ -3039,6 +3039,22 @@ var MdbaseSDK = (() => {
|
|
|
3039
3039
|
if (limit === 0) throw bad2("window limit must be positive");
|
|
3040
3040
|
return { offset, limit };
|
|
3041
3041
|
}
|
|
3042
|
+
function checkedRowProperties(names) {
|
|
3043
|
+
if (!Array.isArray(names) || names.length > ROW_PROPERTIES_MAX) throw bad2("bounded rowProperties list required");
|
|
3044
|
+
const seen2 = /* @__PURE__ */ new Set();
|
|
3045
|
+
const out = [];
|
|
3046
|
+
let total = 0;
|
|
3047
|
+
for (const name3 of names) {
|
|
3048
|
+
if (typeof name3 !== "string" || name3.length === 0) throw bad2("non-empty row property name required");
|
|
3049
|
+
const len = utf8.encode(name3).length;
|
|
3050
|
+
if (len > ROW_PROPERTY_NAME_MAX || seen2.has(name3)) throw bad2("distinct bounded row property name required");
|
|
3051
|
+
total += len;
|
|
3052
|
+
if (total > ROW_PROPERTY_BYTES_MAX) throw bad2("row property names exceed bound");
|
|
3053
|
+
seen2.add(name3);
|
|
3054
|
+
out.push(name3);
|
|
3055
|
+
}
|
|
3056
|
+
return out;
|
|
3057
|
+
}
|
|
3042
3058
|
function encodeAppBasesRequest(request3) {
|
|
3043
3059
|
if (!(request3.hints instanceof Map) || request3.hints.size > ITEMS_MAX) throw bad2("bounded hints map required");
|
|
3044
3060
|
const hints = /* @__PURE__ */ new Map();
|
|
@@ -3062,6 +3078,9 @@ var MdbaseSDK = (() => {
|
|
|
3062
3078
|
const window2 = checkedWindow(request3.window);
|
|
3063
3079
|
value2.set(6, /* @__PURE__ */ new Map([[0, window2.offset], [1, window2.limit]]));
|
|
3064
3080
|
}
|
|
3081
|
+
if (request3.rowProperties !== void 0) {
|
|
3082
|
+
value2.set(7, checkedRowProperties(request3.rowProperties));
|
|
3083
|
+
}
|
|
3065
3084
|
const bytes10 = encode(value2);
|
|
3066
3085
|
if (bytes10.length > REQUEST_MAX) throw bad2("request bytes exceed bound");
|
|
3067
3086
|
return bytes10;
|
|
@@ -3081,7 +3100,7 @@ var MdbaseSDK = (() => {
|
|
|
3081
3100
|
})
|
|
3082
3101
|
};
|
|
3083
3102
|
}
|
|
3084
|
-
function decodeAppBasesResult(bytes10, expectedWindow) {
|
|
3103
|
+
function decodeAppBasesResult(bytes10, expectedWindow, expectedRowProperties) {
|
|
3085
3104
|
if (!(bytes10 instanceof Uint8Array) || !bytes10.length || bytes10.length > FRAME_MAX) throw bad2("response bytes exceed bound");
|
|
3086
3105
|
const decoded = decode(bytes10);
|
|
3087
3106
|
if (!(decoded instanceof Map)) throw bad2("result struct required");
|
|
@@ -3093,7 +3112,11 @@ var MdbaseSDK = (() => {
|
|
|
3093
3112
|
}
|
|
3094
3113
|
const hasWindow = value2.has(8);
|
|
3095
3114
|
const hasSummaries = value2.has(9);
|
|
3096
|
-
const
|
|
3115
|
+
const hasRowProperties = value2.has(10);
|
|
3116
|
+
const expectRowProps = expectedRowProperties === void 0 || expectedRowProperties === null || expectedRowProperties === false ? false : true;
|
|
3117
|
+
if (hasRowProperties !== expectRowProps) throw bad2("rowProperties response differs from request");
|
|
3118
|
+
const allowedProps = Array.isArray(expectedRowProperties) ? new Set(checkedRowProperties(expectedRowProperties)) : null;
|
|
3119
|
+
const m2 = fields(value2, [0, 1, 2, 3, 4, 5, 6, ...hasWindow ? [8] : [], ...hasSummaries ? [9] : [], ...hasRowProperties ? [10] : []]);
|
|
3097
3120
|
if (expectedWindow !== void 0 && hasWindow !== (expectedWindow !== null)) throw bad2("window response differs from request");
|
|
3098
3121
|
const view2 = decodeDescriptor(m2.get(1));
|
|
3099
3122
|
const columnsWire = fields(m2.get(2), [0, 1]), columns = list2(columnsWire.get(0), 64).map((v) => text(v));
|
|
@@ -3102,11 +3125,27 @@ var MdbaseSDK = (() => {
|
|
|
3102
3125
|
if (index >= columns.length) throw bad2("unavailable column index out of bounds");
|
|
3103
3126
|
return { index, code: text(i.get(1)), detail: text(i.get(2)) };
|
|
3104
3127
|
});
|
|
3105
|
-
const
|
|
3128
|
+
const baseRows = list2(m2.get(3), ROWS_MAX).map((v) => {
|
|
3106
3129
|
const row3 = tuple3(v, 4), cells = list2(row3[3], 64);
|
|
3107
3130
|
if (cells.length !== columns.length) throw bad2("row cell count differs from columns");
|
|
3108
3131
|
return { record: uuid.dec(row3[0]), path: text(row3[1]), sourceRevision: hash.dec(row3[2]), cells: cells.map((v2) => decodeAppBasesCell(v2)) };
|
|
3109
3132
|
});
|
|
3133
|
+
const rows2 = hasRowProperties ? (() => {
|
|
3134
|
+
const entries = list2(m2.get(10), ROWS_MAX);
|
|
3135
|
+
if (entries.length !== baseRows.length) throw bad2("rowProperties count differs from rows");
|
|
3136
|
+
return baseRows.map((row3, index) => {
|
|
3137
|
+
const entry2 = tuple3(entries[index], 2);
|
|
3138
|
+
const types = list2(entry2[0], ITEMS_MAX).map((t) => text(t));
|
|
3139
|
+
const propsMap = fmMap.dec(entry2[1]);
|
|
3140
|
+
if (propsMap.size > ROW_PROPERTIES_MAX) throw bad2("rowProperties entry exceeds bound");
|
|
3141
|
+
const properties2 = /* @__PURE__ */ Object.create(null);
|
|
3142
|
+
for (const [k, v] of propsMap) {
|
|
3143
|
+
if (allowedProps && !allowedProps.has(k)) throw bad2("unexpected row property in response");
|
|
3144
|
+
Object.defineProperty(properties2, k, { value: toPlain(v), enumerable: true, writable: true, configurable: true });
|
|
3145
|
+
}
|
|
3146
|
+
return { ...row3, types, properties: { ...properties2 } };
|
|
3147
|
+
});
|
|
3148
|
+
})() : baseRows;
|
|
3110
3149
|
const groups = list2(m2.get(4), ROWS_MAX).map((v) => {
|
|
3111
3150
|
const group = tuple3(v, 2), key3 = decodeAppBasesCell(group[0]);
|
|
3112
3151
|
if (!isGroupKey(key3)) throw bad2("group key must be a qualified scalar or list");
|
|
@@ -3220,12 +3259,13 @@ var MdbaseSDK = (() => {
|
|
|
3220
3259
|
if (expected && (view2.record !== uuid.dec(uuid.enc(expected.record)) || view2.sourceRevision !== hash.dec(hash.enc(expected.sourceRevision)) || view2.ordinal !== expected.ordinal)) throw bad2("exact source identity/revision/ordinal differs from request");
|
|
3221
3260
|
return { kind: "success", view: view2, source, clock: discoveryClock(m2.get(3)), collectionRevision: hash.dec(m2.get(4)) };
|
|
3222
3261
|
}
|
|
3223
|
-
var APP_BASES_PROFILE, FRAME_MAX, REQUEST_MAX, TEXT_MAX, ITEMS_MAX, ROWS_MAX, utf8, bad2;
|
|
3262
|
+
var APP_BASES_PROFILE, FRAME_MAX, REQUEST_MAX, TEXT_MAX, ITEMS_MAX, ROWS_MAX, ROW_PROPERTIES_MAX, ROW_PROPERTY_NAME_MAX, ROW_PROPERTY_BYTES_MAX, utf8, bad2;
|
|
3224
3263
|
var init_bases_wire = __esm({
|
|
3225
3264
|
"src/app-host/bases-wire.ts"() {
|
|
3226
3265
|
"use strict";
|
|
3227
3266
|
init_cbor();
|
|
3228
3267
|
init_codec();
|
|
3268
|
+
init_plain();
|
|
3229
3269
|
init_values();
|
|
3230
3270
|
init_wire();
|
|
3231
3271
|
APP_BASES_PROFILE = "whole-view-synthetic-policy-reference-v1";
|
|
@@ -3234,6 +3274,9 @@ var MdbaseSDK = (() => {
|
|
|
3234
3274
|
TEXT_MAX = 4096;
|
|
3235
3275
|
ITEMS_MAX = 4096;
|
|
3236
3276
|
ROWS_MAX = 65536;
|
|
3277
|
+
ROW_PROPERTIES_MAX = 128;
|
|
3278
|
+
ROW_PROPERTY_NAME_MAX = 256;
|
|
3279
|
+
ROW_PROPERTY_BYTES_MAX = 16 * 1024;
|
|
3237
3280
|
utf8 = new TextEncoder();
|
|
3238
3281
|
bad2 = (message3, unknown4 = false) => new SchemaError("app-bases-v1", message3, unknown4);
|
|
3239
3282
|
}
|
|
@@ -6983,7 +7026,7 @@ var MdbaseSDK = (() => {
|
|
|
6983
7026
|
function connect(opts) {
|
|
6984
7027
|
return MdbaseClient.connect(opts);
|
|
6985
7028
|
}
|
|
6986
|
-
var CHANGES_PAGE, DEVICE_WAITS, VALIDATE_PAGE, BASES_DISCOVERY_UNREADABLE, Write, LiveQuery, READ_METHODS, MdbaseClient;
|
|
7029
|
+
var CHANGES_PAGE, DEVICE_WAITS, VALIDATE_PAGE, BASES_DISCOVERY_UNREADABLE, BASES_ROW_PROPERTIES, CONTRACT_QUERY_ORDER, Write, LiveQuery, READ_METHODS, MdbaseClient;
|
|
6987
7030
|
var init_client = __esm({
|
|
6988
7031
|
"src/client.ts"() {
|
|
6989
7032
|
"use strict";
|
|
@@ -7020,6 +7063,8 @@ var MdbaseSDK = (() => {
|
|
|
7020
7063
|
DEVICE_WAITS = /* @__PURE__ */ new Set(["no_device_online", "not_served", "device_not_serving"]);
|
|
7021
7064
|
VALIDATE_PAGE = "validate-page-v1";
|
|
7022
7065
|
BASES_DISCOVERY_UNREADABLE = "bases-discovery-unreadable-v1";
|
|
7066
|
+
BASES_ROW_PROPERTIES = "bases-row-properties-v1";
|
|
7067
|
+
CONTRACT_QUERY_ORDER = "contract-query-order-v1";
|
|
7023
7068
|
Write = class {
|
|
7024
7069
|
constructor(receipt4) {
|
|
7025
7070
|
this.receipt = receipt4;
|
|
@@ -7389,7 +7434,7 @@ var MdbaseSDK = (() => {
|
|
|
7389
7434
|
versions: API_VERSIONS,
|
|
7390
7435
|
clientName: opts.app.name,
|
|
7391
7436
|
clientVersion: opts.app.version,
|
|
7392
|
-
features: [.../* @__PURE__ */ new Set([...opts.features ?? [], "declared-collection-setup-v1", "file-stream-failure-v1", VALIDATE_PAGE, BASES_DISCOVERY_UNREADABLE])],
|
|
7437
|
+
features: [.../* @__PURE__ */ new Set([...opts.features ?? [], "declared-collection-setup-v1", "file-stream-failure-v1", VALIDATE_PAGE, BASES_DISCOVERY_UNREADABLE, BASES_ROW_PROPERTIES, CONTRACT_QUERY_ORDER])],
|
|
7393
7438
|
...tz ? { timezone: tz } : {}
|
|
7394
7439
|
};
|
|
7395
7440
|
}
|
|
@@ -7948,21 +7993,43 @@ var MdbaseSDK = (() => {
|
|
|
7948
7993
|
return result2;
|
|
7949
7994
|
}
|
|
7950
7995
|
/** Canonical contract projections with validation issues and ordinary cursor
|
|
7951
|
-
* metadata. Positive page sizes
|
|
7952
|
-
*
|
|
7953
|
-
*
|
|
7996
|
+
* metadata. Positive page sizes clamp to the producer's maximum (1000 when
|
|
7997
|
+
* `contract-query-order-v1` is negotiated, 128 on older producers); use the
|
|
7998
|
+
* returned cursor for the remaining records. `orderBy` uses the spec 11
|
|
7999
|
+
* `order_by` grammar over contract fields and `file.*`, bound to the cursor;
|
|
8000
|
+
* older producers refuse `orderBy` with `upgrade_required`. */
|
|
7954
8001
|
async queryContract(contract, options = {}) {
|
|
7955
8002
|
const requested = options.pageSize ?? 128;
|
|
7956
8003
|
if (!Number.isInteger(requested) || requested < 1 || !contract.id || contract.id.length > 1024 || !contract.version || contract.version.length > 128 || options.where !== void 0 && (!options.where || options.where.length > 4096))
|
|
7957
8004
|
throw mdbaseError("invalid_request", "invalid contract page selection");
|
|
7958
|
-
|
|
8005
|
+
let orderWire;
|
|
8006
|
+
if (options.orderBy !== void 0) {
|
|
8007
|
+
if (!Array.isArray(options.orderBy) || options.orderBy.length < 1 || options.orderBy.length > 8)
|
|
8008
|
+
throw mdbaseError("invalid_request", "invalid contract order_by", "invalid_query");
|
|
8009
|
+
const terms = [];
|
|
8010
|
+
for (const term of options.orderBy) {
|
|
8011
|
+
if (!term || typeof term !== "object" || Array.isArray(term))
|
|
8012
|
+
throw mdbaseError("invalid_request", "invalid contract order_by term", "invalid_query");
|
|
8013
|
+
const keys2 = Object.keys(term);
|
|
8014
|
+
if (keys2.some((k) => k !== "field" && k !== "direction") || typeof term.field !== "string" || !term.field || term.field.length > 256 || term.direction !== void 0 && term.direction !== "asc" && term.direction !== "desc")
|
|
8015
|
+
throw mdbaseError("invalid_request", "invalid contract order_by term", "invalid_query");
|
|
8016
|
+
terms.push(term.direction === void 0 ? { field: term.field } : { field: term.field, direction: term.direction });
|
|
8017
|
+
}
|
|
8018
|
+
orderWire = toValue(terms);
|
|
8019
|
+
}
|
|
8020
|
+
const session = await this.readyForRead(options.signal);
|
|
8021
|
+
const extended2 = session.hello.features.includes(CONTRACT_QUERY_ORDER);
|
|
8022
|
+
if (orderWire !== void 0 && !extended2)
|
|
8023
|
+
throw mdbaseError("upgrade_required", "This replica does not support ordered contract queries.", "contract_query_order_unsupported");
|
|
8024
|
+
const limit = Math.min(requested, extended2 ? 1e3 : 128);
|
|
7959
8025
|
const result2 = await this.call("query_contract_v1", params([
|
|
7960
8026
|
[0, 1],
|
|
7961
8027
|
[1, contract.id],
|
|
7962
8028
|
[2, contract.version],
|
|
7963
8029
|
[3, limit],
|
|
7964
8030
|
[4, options.cursor],
|
|
7965
|
-
[5, options.where]
|
|
8031
|
+
[5, options.where],
|
|
8032
|
+
[6, orderWire]
|
|
7966
8033
|
]), { codec: contractQueryResult, retry: true, ...options.signal ? { signal: options.signal } : {} });
|
|
7967
8034
|
if (result2.version !== 1) throw mdbaseError("upgrade_required", "unsupported contract query result", "contract_query_version");
|
|
7968
8035
|
if (result2.records.length !== result2.page.records.length || result2.records.some((record5, i) => record5.id !== result2.page.records[i]?.id))
|
|
@@ -8475,16 +8542,22 @@ var MdbaseSDK = (() => {
|
|
|
8475
8542
|
}
|
|
8476
8543
|
/** Independent native app-host Bases READ, exact original held session.
|
|
8477
8544
|
* Unsupported transports refuse: no generic execute_view/data fallback.
|
|
8545
|
+
* Passing `request.rowProperties` projects catalog `types` and those effective
|
|
8546
|
+
* frontmatter properties onto each returned row in the same read; older
|
|
8547
|
+
* replicas without `bases-row-properties-v1` refuse with `upgrade_required`.
|
|
8478
8548
|
* `o.signal` cancels the read. */
|
|
8479
8549
|
async executeAppBases(request3, o = {}) {
|
|
8480
8550
|
const signal = o.signal;
|
|
8481
8551
|
const window2 = request3.window === void 0 ? null : { ...request3.window };
|
|
8482
|
-
const
|
|
8552
|
+
const rowProperties = request3.rowProperties === void 0 ? void 0 : [...request3.rowProperties];
|
|
8553
|
+
const bytes10 = encodeAppBasesRequest({ ...request3, ...window2 === null ? {} : { window: window2 }, ...rowProperties === void 0 ? {} : { rowProperties } });
|
|
8483
8554
|
const session = await this.readyForRead(signal);
|
|
8555
|
+
if (rowProperties !== void 0 && !session.hello.features.includes(BASES_ROW_PROPERTIES))
|
|
8556
|
+
throw mdbaseError("upgrade_required", "This replica does not support projected Bases row properties.", "bases_row_properties_unsupported");
|
|
8484
8557
|
const reply = await session.readAppBases(bytes10, signal);
|
|
8485
8558
|
if (session !== this.session || session.closed || this.readFencedAt !== null) throw mdbaseError("unavailable", "original Bases session is no longer current");
|
|
8486
8559
|
try {
|
|
8487
|
-
return decodeAppBasesResult(reply, window2);
|
|
8560
|
+
return decodeAppBasesResult(reply, window2, rowProperties ?? null);
|
|
8488
8561
|
} catch (error5) {
|
|
8489
8562
|
throw schemaToError(error5, "app Bases result");
|
|
8490
8563
|
}
|
|
@@ -9926,6 +9999,8 @@ var MdbaseSDK = (() => {
|
|
|
9926
9999
|
change_entity_unsupported: "update_required",
|
|
9927
10000
|
timer_operation_recovery_unavailable: "update_required",
|
|
9928
10001
|
contract_query_version: "update_required",
|
|
10002
|
+
contract_query_order_unsupported: "update_required",
|
|
10003
|
+
bases_row_properties_unsupported: "update_required",
|
|
9929
10004
|
unsupported_push_version: "update_required",
|
|
9930
10005
|
// The SDK re-checks a concurrent change or an occupied step by itself.
|
|
9931
10006
|
fenced: "busy",
|
|
@@ -26276,6 +26351,18 @@ ${end.comment}` : end.comment;
|
|
|
26276
26351
|
}
|
|
26277
26352
|
});
|
|
26278
26353
|
|
|
26354
|
+
// src/app-host/opening-progress.ts
|
|
26355
|
+
function isAppOpeningProgress(value2) {
|
|
26356
|
+
return typeof value2 === "string" && stages.includes(value2);
|
|
26357
|
+
}
|
|
26358
|
+
var stages;
|
|
26359
|
+
var init_opening_progress = __esm({
|
|
26360
|
+
"src/app-host/opening-progress.ts"() {
|
|
26361
|
+
"use strict";
|
|
26362
|
+
stages = ["joining", "opening_store", "connecting_log", "syncing", "loading_snapshot", "replaying", "waiting_for_key", "verifying_read", "checking_setup"];
|
|
26363
|
+
}
|
|
26364
|
+
});
|
|
26365
|
+
|
|
26279
26366
|
// src/app-grant/native-completion.ts
|
|
26280
26367
|
function object4(value2) {
|
|
26281
26368
|
return value2 !== null && typeof value2 === "object" && !Array.isArray(value2) ? value2 : null;
|
|
@@ -49234,18 +49321,6 @@ ${end.comment}` : end.comment;
|
|
|
49234
49321
|
}
|
|
49235
49322
|
});
|
|
49236
49323
|
|
|
49237
|
-
// src/app-host/opening-progress.ts
|
|
49238
|
-
function isAppOpeningProgress(value2) {
|
|
49239
|
-
return typeof value2 === "string" && stages.includes(value2);
|
|
49240
|
-
}
|
|
49241
|
-
var stages;
|
|
49242
|
-
var init_opening_progress = __esm({
|
|
49243
|
-
"src/app-host/opening-progress.ts"() {
|
|
49244
|
-
"use strict";
|
|
49245
|
-
stages = ["joining", "opening_store", "connecting_log", "syncing", "loading_snapshot", "replaying", "waiting_for_key", "verifying_read", "checking_setup"];
|
|
49246
|
-
}
|
|
49247
|
-
});
|
|
49248
|
-
|
|
49249
49324
|
// src/application/native-authorization-rpc.ts
|
|
49250
49325
|
function exact2(v, keys2) {
|
|
49251
49326
|
if (!v || typeof v !== "object" || Array.isArray(v) || Object.keys(v).sort().join() !== keys2.split(",").sort().join()) return fail19();
|
|
@@ -50951,12 +51026,12 @@ ${end.comment}` : end.comment;
|
|
|
50951
51026
|
// src/application/asset-pins.json
|
|
50952
51027
|
var asset_pins_default = {
|
|
50953
51028
|
runtime: {
|
|
50954
|
-
sha256: "
|
|
50955
|
-
bytes:
|
|
50956
|
-
maxBytes:
|
|
51029
|
+
sha256: "6e66a067bf508611cfb2a1f98f45728f4ebd2b2e8e679d2d4cb84d3a558b1c5c",
|
|
51030
|
+
bytes: 4053495,
|
|
51031
|
+
maxBytes: 4053495,
|
|
50957
51032
|
source: {
|
|
50958
51033
|
repository: "mdbase-dev/mdbase-connect",
|
|
50959
|
-
commit: "
|
|
51034
|
+
commit: "7e62ac196c10d60cb34dc47d10f0dfd765ba4ff9"
|
|
50960
51035
|
}
|
|
50961
51036
|
},
|
|
50962
51037
|
sqlite: {
|
|
@@ -51010,6 +51085,7 @@ ${end.comment}` : end.comment;
|
|
|
51010
51085
|
}
|
|
51011
51086
|
|
|
51012
51087
|
// src/application/startup-timing.ts
|
|
51088
|
+
init_opening_progress();
|
|
51013
51089
|
init_performance_mark();
|
|
51014
51090
|
var PREFIX = "mdbase:startup:";
|
|
51015
51091
|
var WAITS = /* @__PURE__ */ new Set(["signed_out", "authorizing", "choosing", "needs_approval", "needs_setup", "problem", "unavailable", "closed"]);
|
|
@@ -51062,6 +51138,10 @@ ${end.comment}` : end.comment;
|
|
|
51062
51138
|
if (changed3) performanceMark("mdbase:open:requested");
|
|
51063
51139
|
if (selection.requested.approved && (changed3 || !previous?.selection.requested.approved)) performanceMark("mdbase:open:approved");
|
|
51064
51140
|
}
|
|
51141
|
+
if (phase.kind === "opening" && isAppOpeningProgress(phase.progress)) {
|
|
51142
|
+
const prev = previous?.phase.kind === "opening" && previous.phase.collectionId === phase.collectionId ? previous.phase.progress : null;
|
|
51143
|
+
if (prev !== phase.progress) performanceMark(`mdbase:open:stage:${phase.progress}`);
|
|
51144
|
+
}
|
|
51065
51145
|
if (phase.kind === "ready" && (previous?.phase.kind !== "ready" || previous.phase.connection !== phase.connection)) performanceMark("mdbase:open:ready");
|
|
51066
51146
|
}
|
|
51067
51147
|
|