@milaboratories/pf-spec 1.0.16 → 1.1.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/generated/pframes_rs_wasip2.core.wasm +0 -0
- package/dist/generated/pframes_rs_wasip2.js +104 -0
- package/dist/generated/pframes_rs_wasip2.js.map +1 -1
- package/dist/p-frame.d.ts +7 -0
- package/dist/p-frame.d.ts.map +1 -1
- package/dist/p-frame.js +9 -0
- package/dist/p-frame.js.map +1 -1
- package/package.json +5 -5
- package/src/p-frame.ts +12 -0
|
Binary file
|
|
@@ -5116,6 +5116,109 @@ Frame.prototype.discoverColumns = function discoverColumns(arg1) {
|
|
|
5116
5116
|
}
|
|
5117
5117
|
});
|
|
5118
5118
|
};
|
|
5119
|
+
let specMethodFrameDiscoverRoots;
|
|
5120
|
+
Frame.prototype.discoverRoots = function discoverRoots(arg1) {
|
|
5121
|
+
getOrCreateAsyncState(0).throwIfTrapped();
|
|
5122
|
+
const [task, _wasm_call_currentTaskID] = createNewCurrentTask({
|
|
5123
|
+
componentIdx: 0,
|
|
5124
|
+
isAsync: false,
|
|
5125
|
+
isManualAsync: false,
|
|
5126
|
+
preserveFutureResult: false,
|
|
5127
|
+
entryFnName: "specMethodFrameDiscoverRoots",
|
|
5128
|
+
getCallbackFn: () => null,
|
|
5129
|
+
callbackFnName: null,
|
|
5130
|
+
errHandling: "throw-result-err",
|
|
5131
|
+
callingWasmExport: true
|
|
5132
|
+
});
|
|
5133
|
+
task.setCalleeIsAsync(false);
|
|
5134
|
+
task.setFuncTypeIsAsync(false);
|
|
5135
|
+
task.setReturnResultTypeIdx(22);
|
|
5136
|
+
task.enterSync();
|
|
5137
|
+
CURRENT_TASK_MAY_BLOCK.value = task.mayBlock() ? 1 : 0;
|
|
5138
|
+
task.setReturnMemoryIdx(0);
|
|
5139
|
+
task.setReturnMemory((() => memory0)());
|
|
5140
|
+
return _withGlobalCurrentTaskMeta({
|
|
5141
|
+
taskID: task.id(),
|
|
5142
|
+
componentIdx: task.componentIdx(),
|
|
5143
|
+
fn: () => {
|
|
5144
|
+
try {
|
|
5145
|
+
var handle1 = this[symbolRscHandle];
|
|
5146
|
+
if (!handle1 || (handleTable7[(handle1 << 1) + 1] & T_FLAG) === 0) throw new TypeError("Resource error: Not a valid \"Frame\" resource.");
|
|
5147
|
+
var handle0 = handleTable7[(handle1 << 1) + 1] & -1073741825;
|
|
5148
|
+
var encodeRes = _utf8AllocateAndEncode(arg1, realloc0, memory0);
|
|
5149
|
+
var ptr2 = encodeRes.ptr;
|
|
5150
|
+
var len2 = encodeRes.len;
|
|
5151
|
+
_debugLog("[iface=\"milaboratories:pframes/spec\", function=\"[method]frame.discover-roots\"][Instruction::CallWasm] enter", {
|
|
5152
|
+
funcName: "[method]frame.discover-roots",
|
|
5153
|
+
paramCount: 3,
|
|
5154
|
+
async: false,
|
|
5155
|
+
postReturn: true
|
|
5156
|
+
});
|
|
5157
|
+
let ret;
|
|
5158
|
+
try {
|
|
5159
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
5160
|
+
taskID: task.id(),
|
|
5161
|
+
componentIdx: task.componentIdx(),
|
|
5162
|
+
fn: () => specMethodFrameDiscoverRoots(handle0, ptr2, len2)
|
|
5163
|
+
});
|
|
5164
|
+
} catch (err) {
|
|
5165
|
+
_debugLog("[Instruction::CallWasm] error during sync call", {
|
|
5166
|
+
taskID: task.id(),
|
|
5167
|
+
err
|
|
5168
|
+
});
|
|
5169
|
+
getOrCreateAsyncState(0).markTrapped(err);
|
|
5170
|
+
task.setErrored(err);
|
|
5171
|
+
task.reject(err);
|
|
5172
|
+
task.exit();
|
|
5173
|
+
throw err;
|
|
5174
|
+
}
|
|
5175
|
+
task.endFirstSlice();
|
|
5176
|
+
let variant5;
|
|
5177
|
+
switch (dataView(memory0).getUint8((ret >>> 0) + 0, true)) {
|
|
5178
|
+
case 0:
|
|
5179
|
+
var ptr3 = dataView(memory0).getUint32((ret >>> 0) + 4, true) >>> 0;
|
|
5180
|
+
var len3 = dataView(memory0).getUint32((ret >>> 0) + 8, true);
|
|
5181
|
+
variant5 = {
|
|
5182
|
+
tag: "ok",
|
|
5183
|
+
val: TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr3, len3))
|
|
5184
|
+
};
|
|
5185
|
+
break;
|
|
5186
|
+
case 1:
|
|
5187
|
+
var ptr4 = dataView(memory0).getUint32((ret >>> 0) + 4, true) >>> 0;
|
|
5188
|
+
var len4 = dataView(memory0).getUint32((ret >>> 0) + 8, true);
|
|
5189
|
+
variant5 = {
|
|
5190
|
+
tag: "err",
|
|
5191
|
+
val: TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr4, len4))
|
|
5192
|
+
};
|
|
5193
|
+
break;
|
|
5194
|
+
default: throw new TypeError("invalid variant discriminant for expected");
|
|
5195
|
+
}
|
|
5196
|
+
_debugLog("[iface=\"milaboratories:pframes/spec\", function=\"[method]frame.discover-roots\"][Instruction::Return]", {
|
|
5197
|
+
funcName: "[method]frame.discover-roots",
|
|
5198
|
+
paramCount: 1,
|
|
5199
|
+
async: false,
|
|
5200
|
+
postReturn: true
|
|
5201
|
+
});
|
|
5202
|
+
const retCopy = variant5;
|
|
5203
|
+
task.resolve([retCopy.val]);
|
|
5204
|
+
let cstate = getOrCreateAsyncState(0);
|
|
5205
|
+
cstate.mayLeave = false;
|
|
5206
|
+
postReturn1(ret);
|
|
5207
|
+
cstate.mayLeave = true;
|
|
5208
|
+
task.exit();
|
|
5209
|
+
if (typeof retCopy === "object" && retCopy.tag === "err") throw retCopy.val;
|
|
5210
|
+
return retCopy.val;
|
|
5211
|
+
} catch (err) {
|
|
5212
|
+
if (!task.isResolvedState()) {
|
|
5213
|
+
task.setErrored(err);
|
|
5214
|
+
task.reject(err);
|
|
5215
|
+
}
|
|
5216
|
+
if (!task.isExited()) task.exit({ skipExclusiveLockCheck: true });
|
|
5217
|
+
throw err;
|
|
5218
|
+
}
|
|
5219
|
+
}
|
|
5220
|
+
});
|
|
5221
|
+
};
|
|
5119
5222
|
let specMethodFrameFindColumns;
|
|
5120
5223
|
Frame.prototype.findColumns = function findColumns(arg1) {
|
|
5121
5224
|
getOrCreateAsyncState(0).throwIfTrapped();
|
|
@@ -7736,6 +7839,7 @@ await (() => {
|
|
|
7736
7839
|
specMethodFrameGetColumn = exports1["milaboratories:pframes/spec#[method]frame.get-column"];
|
|
7737
7840
|
specMethodFrameListColumns = exports1["milaboratories:pframes/spec#[method]frame.list-columns"];
|
|
7738
7841
|
specMethodFrameDiscoverColumns = exports1["milaboratories:pframes/spec#[method]frame.discover-columns"];
|
|
7842
|
+
specMethodFrameDiscoverRoots = exports1["milaboratories:pframes/spec#[method]frame.discover-roots"];
|
|
7739
7843
|
specMethodFrameFindColumns = exports1["milaboratories:pframes/spec#[method]frame.find-columns"];
|
|
7740
7844
|
specMethodFrameEvaluateQuery = exports1["milaboratories:pframes/spec#[method]frame.evaluate-query"];
|
|
7741
7845
|
specMethodFrameRewriteLegacyQuery = exports1["milaboratories:pframes/spec#[method]frame.rewrite-legacy-query"];
|