@powerhousedao/ph-cli 6.0.0-dev.68 → 6.0.0-dev.69
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/src/cli.js +100 -51
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
package/dist/src/cli.js
CHANGED
|
@@ -305531,6 +305531,47 @@ var init_actions = __esm(() => {
|
|
|
305531
305531
|
init_utils9();
|
|
305532
305532
|
});
|
|
305533
305533
|
|
|
305534
|
+
// ../../packages/document-model/dist/src/core/controller.js
|
|
305535
|
+
class PHDocumentController {
|
|
305536
|
+
module;
|
|
305537
|
+
document;
|
|
305538
|
+
constructor(module2, initialDocument) {
|
|
305539
|
+
this.module = module2;
|
|
305540
|
+
this.document = initialDocument ?? module2.utils.createDocument();
|
|
305541
|
+
for (const actionType in this.module.actions) {
|
|
305542
|
+
Object.defineProperty(this, actionType, {
|
|
305543
|
+
value: (input) => {
|
|
305544
|
+
const action = this.module.actions[actionType](input);
|
|
305545
|
+
this.document = this.module.reducer(this.document, action);
|
|
305546
|
+
return this;
|
|
305547
|
+
}
|
|
305548
|
+
});
|
|
305549
|
+
}
|
|
305550
|
+
}
|
|
305551
|
+
get header() {
|
|
305552
|
+
return this.document.header;
|
|
305553
|
+
}
|
|
305554
|
+
get state() {
|
|
305555
|
+
return this.document.state;
|
|
305556
|
+
}
|
|
305557
|
+
get initialState() {
|
|
305558
|
+
return this.document.initialState;
|
|
305559
|
+
}
|
|
305560
|
+
get operations() {
|
|
305561
|
+
return this.document.operations;
|
|
305562
|
+
}
|
|
305563
|
+
get clipboard() {
|
|
305564
|
+
return this.document.clipboard;
|
|
305565
|
+
}
|
|
305566
|
+
static forDocumentModel(module2) {
|
|
305567
|
+
return class extends PHDocumentController {
|
|
305568
|
+
constructor(initialDocument) {
|
|
305569
|
+
super(module2, initialDocument);
|
|
305570
|
+
}
|
|
305571
|
+
};
|
|
305572
|
+
}
|
|
305573
|
+
}
|
|
305574
|
+
|
|
305534
305575
|
// ../../packages/document-model/dist/src/core/header.js
|
|
305535
305576
|
async function createVerificationSigner(pubKey) {
|
|
305536
305577
|
const cryptoKey = await crypto.subtle.importKey("jwk", pubKey, { name: "ECDSA", namedCurve: "P-256" }, true, ["verify"]);
|
|
@@ -315215,6 +315256,9 @@ var init_files = __esm(() => {
|
|
|
315215
315256
|
import_jszip = __toESM(require_lib11(), 1);
|
|
315216
315257
|
});
|
|
315217
315258
|
|
|
315259
|
+
// ../../packages/document-model/dist/src/core/logger-types.js
|
|
315260
|
+
var init_logger_types = () => {};
|
|
315261
|
+
|
|
315218
315262
|
// ../../packages/document-model/dist/src/core/logger.js
|
|
315219
315263
|
class ConsoleLogger {
|
|
315220
315264
|
#tags;
|
|
@@ -315328,9 +315372,6 @@ var init_logger = __esm(() => {
|
|
|
315328
315372
|
logger = new ConsoleLogger;
|
|
315329
315373
|
});
|
|
315330
315374
|
|
|
315331
|
-
// ../../packages/document-model/dist/src/core/logger-types.js
|
|
315332
|
-
var init_logger_types = () => {};
|
|
315333
|
-
|
|
315334
315375
|
// ../../node_modules/.pnpm/mutative@1.3.0/node_modules/mutative/dist/mutative.esm.mjs
|
|
315335
315376
|
function has(target, key) {
|
|
315336
315377
|
return target instanceof Map ? target.has(key) : Object.prototype.hasOwnProperty.call(target, key);
|
|
@@ -317075,8 +317116,8 @@ var init_core3 = __esm(() => {
|
|
|
317075
317116
|
init_errors4();
|
|
317076
317117
|
init_files();
|
|
317077
317118
|
init_header();
|
|
317078
|
-
init_logger();
|
|
317079
317119
|
init_logger_types();
|
|
317120
|
+
init_logger();
|
|
317080
317121
|
init_operations();
|
|
317081
317122
|
init_reducer();
|
|
317082
317123
|
init_schemas3();
|
|
@@ -317431,7 +317472,7 @@ var init_schemas4 = __esm(() => {
|
|
|
317431
317472
|
});
|
|
317432
317473
|
|
|
317433
317474
|
// ../../packages/document-model/dist/src/document-model/actions.js
|
|
317434
|
-
var setName = (name4) => createAction("SET_NAME", { name: name4 }, undefined, SetNameActionInputSchema, "global"), setModelName = (input) => createAction("SET_MODEL_NAME", { ...input }, undefined, SetModelNameInputSchema, "global"), setModelId = (input) => createAction("SET_MODEL_ID", { ...input }, undefined, SetModelIdInputSchema, "global"), setModelExtension = (input) => createAction("SET_MODEL_EXTENSION", { ...input }, undefined, SetModelExtensionInputSchema, "global"), setModelDescription = (input) => createAction("SET_MODEL_DESCRIPTION", { ...input }, undefined, SetModelDescriptionInputSchema, "global"), setAuthorName = (input) => createAction("SET_AUTHOR_NAME", { ...input }, undefined, SetAuthorNameInputSchema, "global"), setAuthorWebsite = (input) => createAction("SET_AUTHOR_WEBSITE", { ...input }, undefined, SetAuthorWebsiteInputSchema, "global"), addModule = (input) => createAction("ADD_MODULE", { ...input }, undefined, AddModuleInputSchema, "global"), setModuleName = (input) => createAction("SET_MODULE_NAME", { ...input }, undefined, SetModuleNameInputSchema, "global"), setModuleDescription = (input) => createAction("SET_MODULE_DESCRIPTION", { ...input }, undefined, SetModuleDescriptionInputSchema, "global"), deleteModule = (input) => createAction("DELETE_MODULE", { ...input }, undefined, DeleteModuleInputSchema, "global"), reorderModules = (input) => createAction("REORDER_MODULES", { ...input }, undefined, ReorderModulesInputSchema, "global"), addOperation = (input) => createAction("ADD_OPERATION", { ...input }, undefined, AddOperationInputSchema, "global"), setOperationName = (input) => createAction("SET_OPERATION_NAME", { ...input }, undefined, SetOperationNameInputSchema, "global"), setOperationScope = (input) => createAction("SET_OPERATION_SCOPE", { ...input }, undefined, SetOperationScopeInputSchema, "global"), setOperationSchema = (input) => createAction("SET_OPERATION_SCHEMA", { ...input }, undefined, SetOperationSchemaInputSchema, "global"), setOperationDescription = (input) => createAction("SET_OPERATION_DESCRIPTION", { ...input }, undefined, SetOperationDescriptionInputSchema, "global"), setOperationTemplate = (input) => createAction("SET_OPERATION_TEMPLATE", { ...input }, undefined, SetOperationTemplateInputSchema, "global"), setOperationReducer = (input) => createAction("SET_OPERATION_REDUCER", { ...input }, undefined, SetOperationReducerInputSchema, "global"), moveOperation = (input) => createAction("MOVE_OPERATION", { ...input }, undefined, MoveOperationInputSchema, "global"), deleteOperation = (input) => createAction("DELETE_OPERATION", { ...input }, undefined, DeleteOperationInputSchema, "global"), reorderModuleOperations = (input) => createAction("REORDER_MODULE_OPERATIONS", { ...input }, undefined, ReorderModuleOperationsInputSchema, "global"), addOperationError = (input) => createAction("ADD_OPERATION_ERROR", { ...input }, undefined, AddOperationErrorInputSchema, "global"), setOperationErrorCode = (input) => createAction("SET_OPERATION_ERROR_CODE", { ...input }, undefined, SetOperationErrorCodeInputSchema, "global"), setOperationErrorName = (input) => createAction("SET_OPERATION_ERROR_NAME", { ...input }, undefined, SetOperationErrorNameInputSchema, "global"), setOperationErrorDescription = (input) => createAction("SET_OPERATION_ERROR_DESCRIPTION", { ...input }, undefined, SetOperationErrorDescriptionInputSchema, "global"), setOperationErrorTemplate = (input) => createAction("SET_OPERATION_ERROR_TEMPLATE", { ...input }, undefined, SetOperationErrorTemplateInputSchema, "global"), deleteOperationError = (input) => createAction("DELETE_OPERATION_ERROR", { ...input }, undefined, DeleteOperationErrorInputSchema, "global"), reorderOperationErrors = (input) => createAction("REORDER_OPERATION_ERRORS", { ...input }, undefined, ReorderOperationErrorsInputSchema, "global"), setStateSchema = (input) => createAction("SET_STATE_SCHEMA", { ...input }, undefined, SetStateSchemaInputSchema, "global"), setInitialState = (input) => createAction("SET_INITIAL_STATE", { ...input }, undefined, SetInitialStateInputSchema, "global"), addStateExample = (input) => createAction("ADD_STATE_EXAMPLE", { ...input }, undefined, AddStateExampleInputSchema, "global"), updateStateExample = (input) => createAction("UPDATE_STATE_EXAMPLE", { ...input }, undefined, UpdateStateExampleInputSchema, "global"), deleteStateExample = (input) => createAction("DELETE_STATE_EXAMPLE", { ...input }, undefined, DeleteStateExampleInputSchema, "global"), reorderStateExamples = (input) => createAction("REORDER_STATE_EXAMPLES", { ...input }, undefined, ReorderStateExamplesInputSchema, "global"), addChangeLogItem = (input) => createAction("ADD_CHANGE_LOG_ITEM", { ...input }, undefined, AddChangeLogItemInputSchema, "global"), updateChangeLogItem = (input) => createAction("UPDATE_CHANGE_LOG_ITEM", { ...input }, undefined, UpdateChangeLogItemInputSchema, "global"), deleteChangeLogItem = (input) => createAction("DELETE_CHANGE_LOG_ITEM", { ...input }, undefined, DeleteChangeLogItemInputSchema, "global"), reorderChangeLogItems = (input) => createAction("REORDER_CHANGE_LOG_ITEMS", { ...input }, undefined, ReorderChangeLogItemsInputSchema, "global"), releaseNewVersion = () => createAction("RELEASE_NEW_VERSION", {}, undefined, undefined, "global"), baseActions, documentModelActions, actions2;
|
|
317475
|
+
var setName = (name4) => createAction("SET_NAME", typeof name4 === "string" ? { name: name4 } : name4, undefined, SetNameActionInputSchema, "global"), setModelName = (input) => createAction("SET_MODEL_NAME", { ...input }, undefined, SetModelNameInputSchema, "global"), setModelId = (input) => createAction("SET_MODEL_ID", { ...input }, undefined, SetModelIdInputSchema, "global"), setModelExtension = (input) => createAction("SET_MODEL_EXTENSION", { ...input }, undefined, SetModelExtensionInputSchema, "global"), setModelDescription = (input) => createAction("SET_MODEL_DESCRIPTION", { ...input }, undefined, SetModelDescriptionInputSchema, "global"), setAuthorName = (input) => createAction("SET_AUTHOR_NAME", { ...input }, undefined, SetAuthorNameInputSchema, "global"), setAuthorWebsite = (input) => createAction("SET_AUTHOR_WEBSITE", { ...input }, undefined, SetAuthorWebsiteInputSchema, "global"), addModule = (input) => createAction("ADD_MODULE", { ...input }, undefined, AddModuleInputSchema, "global"), setModuleName = (input) => createAction("SET_MODULE_NAME", { ...input }, undefined, SetModuleNameInputSchema, "global"), setModuleDescription = (input) => createAction("SET_MODULE_DESCRIPTION", { ...input }, undefined, SetModuleDescriptionInputSchema, "global"), deleteModule = (input) => createAction("DELETE_MODULE", { ...input }, undefined, DeleteModuleInputSchema, "global"), reorderModules = (input) => createAction("REORDER_MODULES", { ...input }, undefined, ReorderModulesInputSchema, "global"), addOperation = (input) => createAction("ADD_OPERATION", { ...input }, undefined, AddOperationInputSchema, "global"), setOperationName = (input) => createAction("SET_OPERATION_NAME", { ...input }, undefined, SetOperationNameInputSchema, "global"), setOperationScope = (input) => createAction("SET_OPERATION_SCOPE", { ...input }, undefined, SetOperationScopeInputSchema, "global"), setOperationSchema = (input) => createAction("SET_OPERATION_SCHEMA", { ...input }, undefined, SetOperationSchemaInputSchema, "global"), setOperationDescription = (input) => createAction("SET_OPERATION_DESCRIPTION", { ...input }, undefined, SetOperationDescriptionInputSchema, "global"), setOperationTemplate = (input) => createAction("SET_OPERATION_TEMPLATE", { ...input }, undefined, SetOperationTemplateInputSchema, "global"), setOperationReducer = (input) => createAction("SET_OPERATION_REDUCER", { ...input }, undefined, SetOperationReducerInputSchema, "global"), moveOperation = (input) => createAction("MOVE_OPERATION", { ...input }, undefined, MoveOperationInputSchema, "global"), deleteOperation = (input) => createAction("DELETE_OPERATION", { ...input }, undefined, DeleteOperationInputSchema, "global"), reorderModuleOperations = (input) => createAction("REORDER_MODULE_OPERATIONS", { ...input }, undefined, ReorderModuleOperationsInputSchema, "global"), addOperationError = (input) => createAction("ADD_OPERATION_ERROR", { ...input }, undefined, AddOperationErrorInputSchema, "global"), setOperationErrorCode = (input) => createAction("SET_OPERATION_ERROR_CODE", { ...input }, undefined, SetOperationErrorCodeInputSchema, "global"), setOperationErrorName = (input) => createAction("SET_OPERATION_ERROR_NAME", { ...input }, undefined, SetOperationErrorNameInputSchema, "global"), setOperationErrorDescription = (input) => createAction("SET_OPERATION_ERROR_DESCRIPTION", { ...input }, undefined, SetOperationErrorDescriptionInputSchema, "global"), setOperationErrorTemplate = (input) => createAction("SET_OPERATION_ERROR_TEMPLATE", { ...input }, undefined, SetOperationErrorTemplateInputSchema, "global"), deleteOperationError = (input) => createAction("DELETE_OPERATION_ERROR", { ...input }, undefined, DeleteOperationErrorInputSchema, "global"), reorderOperationErrors = (input) => createAction("REORDER_OPERATION_ERRORS", { ...input }, undefined, ReorderOperationErrorsInputSchema, "global"), setStateSchema = (input) => createAction("SET_STATE_SCHEMA", { ...input }, undefined, SetStateSchemaInputSchema, "global"), setInitialState = (input) => createAction("SET_INITIAL_STATE", { ...input }, undefined, SetInitialStateInputSchema, "global"), addStateExample = (input) => createAction("ADD_STATE_EXAMPLE", { ...input }, undefined, AddStateExampleInputSchema, "global"), updateStateExample = (input) => createAction("UPDATE_STATE_EXAMPLE", { ...input }, undefined, UpdateStateExampleInputSchema, "global"), deleteStateExample = (input) => createAction("DELETE_STATE_EXAMPLE", { ...input }, undefined, DeleteStateExampleInputSchema, "global"), reorderStateExamples = (input) => createAction("REORDER_STATE_EXAMPLES", { ...input }, undefined, ReorderStateExamplesInputSchema, "global"), addChangeLogItem = (input) => createAction("ADD_CHANGE_LOG_ITEM", { ...input }, undefined, AddChangeLogItemInputSchema, "global"), updateChangeLogItem = (input) => createAction("UPDATE_CHANGE_LOG_ITEM", { ...input }, undefined, UpdateChangeLogItemInputSchema, "global"), deleteChangeLogItem = (input) => createAction("DELETE_CHANGE_LOG_ITEM", { ...input }, undefined, DeleteChangeLogItemInputSchema, "global"), reorderChangeLogItems = (input) => createAction("REORDER_CHANGE_LOG_ITEMS", { ...input }, undefined, ReorderChangeLogItemsInputSchema, "global"), releaseNewVersion = () => createAction("RELEASE_NEW_VERSION", {}, undefined, undefined, "global"), baseActions, documentModelActions, actions2;
|
|
317435
317476
|
var init_actions2 = __esm(() => {
|
|
317436
317477
|
init_core3();
|
|
317437
317478
|
init_schemas4();
|
|
@@ -318293,49 +318334,6 @@ type DocumentModelGlobalState {
|
|
|
318293
318334
|
};
|
|
318294
318335
|
});
|
|
318295
318336
|
|
|
318296
|
-
// ../../packages/document-model/dist/src/document-model/document-type.js
|
|
318297
|
-
var documentModelDocumentType = "powerhouse/document-model";
|
|
318298
|
-
|
|
318299
|
-
// ../../packages/document-model/dist/src/document-model/document-schema.js
|
|
318300
|
-
function isDocumentModelState(state2) {
|
|
318301
|
-
return DocumentModelPHStateSchema.safeParse(state2).success;
|
|
318302
|
-
}
|
|
318303
|
-
function assertIsDocumentModelState(state2) {
|
|
318304
|
-
DocumentModelPHStateSchema.parse(state2);
|
|
318305
|
-
}
|
|
318306
|
-
function isDocumentModelDocument(document2) {
|
|
318307
|
-
return DocumentModelSchema.safeParse(document2).success;
|
|
318308
|
-
}
|
|
318309
|
-
function assertIsDocumentModelDocument(document2) {
|
|
318310
|
-
DocumentModelSchema.parse(document2);
|
|
318311
|
-
}
|
|
318312
|
-
var BaseDocumentHeaderSchema, BaseDocumentStateSchema, DocumentModelHeaderSchema, DocumentModelPHStateSchema, DocumentModelSchema;
|
|
318313
|
-
var init_document_schema = __esm(() => {
|
|
318314
|
-
init_zod();
|
|
318315
|
-
init_schemas4();
|
|
318316
|
-
BaseDocumentHeaderSchema = exports_external2.object({
|
|
318317
|
-
id: exports_external2.string(),
|
|
318318
|
-
name: exports_external2.string(),
|
|
318319
|
-
createdAtUtcIso: exports_external2.string(),
|
|
318320
|
-
lastModifiedAtUtcIso: exports_external2.string(),
|
|
318321
|
-
documentType: exports_external2.string()
|
|
318322
|
-
});
|
|
318323
|
-
BaseDocumentStateSchema = exports_external2.object({
|
|
318324
|
-
global: exports_external2.unknown()
|
|
318325
|
-
});
|
|
318326
|
-
DocumentModelHeaderSchema = BaseDocumentHeaderSchema.extend({
|
|
318327
|
-
documentType: exports_external2.literal(documentModelDocumentType)
|
|
318328
|
-
});
|
|
318329
|
-
DocumentModelPHStateSchema = BaseDocumentStateSchema.extend({
|
|
318330
|
-
global: DocumentModelGlobalStateSchema()
|
|
318331
|
-
});
|
|
318332
|
-
DocumentModelSchema = exports_external2.object({
|
|
318333
|
-
header: DocumentModelHeaderSchema,
|
|
318334
|
-
state: DocumentModelPHStateSchema,
|
|
318335
|
-
initialState: DocumentModelPHStateSchema
|
|
318336
|
-
});
|
|
318337
|
-
});
|
|
318338
|
-
|
|
318339
318337
|
// ../../node_modules/.pnpm/change-case@5.4.4/node_modules/change-case/dist/index.js
|
|
318340
318338
|
function split3(value) {
|
|
318341
318339
|
let result = value.trim();
|
|
@@ -319070,6 +319068,49 @@ var init_files2 = __esm(() => {
|
|
|
319070
319068
|
init_reducers();
|
|
319071
319069
|
});
|
|
319072
319070
|
|
|
319071
|
+
// ../../packages/document-model/dist/src/document-model/document-type.js
|
|
319072
|
+
var documentModelDocumentType = "powerhouse/document-model";
|
|
319073
|
+
|
|
319074
|
+
// ../../packages/document-model/dist/src/document-model/document-schema.js
|
|
319075
|
+
function isDocumentModelState(state2) {
|
|
319076
|
+
return DocumentModelPHStateSchema.safeParse(state2).success;
|
|
319077
|
+
}
|
|
319078
|
+
function assertIsDocumentModelState(state2) {
|
|
319079
|
+
DocumentModelPHStateSchema.parse(state2);
|
|
319080
|
+
}
|
|
319081
|
+
function isDocumentModelDocument(document2) {
|
|
319082
|
+
return DocumentModelSchema.safeParse(document2).success;
|
|
319083
|
+
}
|
|
319084
|
+
function assertIsDocumentModelDocument(document2) {
|
|
319085
|
+
DocumentModelSchema.parse(document2);
|
|
319086
|
+
}
|
|
319087
|
+
var BaseDocumentHeaderSchema, BaseDocumentStateSchema, DocumentModelHeaderSchema, DocumentModelPHStateSchema, DocumentModelSchema;
|
|
319088
|
+
var init_document_schema = __esm(() => {
|
|
319089
|
+
init_zod();
|
|
319090
|
+
init_schemas4();
|
|
319091
|
+
BaseDocumentHeaderSchema = exports_external2.object({
|
|
319092
|
+
id: exports_external2.string(),
|
|
319093
|
+
name: exports_external2.string(),
|
|
319094
|
+
createdAtUtcIso: exports_external2.string(),
|
|
319095
|
+
lastModifiedAtUtcIso: exports_external2.string(),
|
|
319096
|
+
documentType: exports_external2.string()
|
|
319097
|
+
});
|
|
319098
|
+
BaseDocumentStateSchema = exports_external2.object({
|
|
319099
|
+
global: exports_external2.unknown()
|
|
319100
|
+
});
|
|
319101
|
+
DocumentModelHeaderSchema = BaseDocumentHeaderSchema.extend({
|
|
319102
|
+
documentType: exports_external2.literal(documentModelDocumentType)
|
|
319103
|
+
});
|
|
319104
|
+
DocumentModelPHStateSchema = BaseDocumentStateSchema.extend({
|
|
319105
|
+
global: DocumentModelGlobalStateSchema()
|
|
319106
|
+
});
|
|
319107
|
+
DocumentModelSchema = exports_external2.object({
|
|
319108
|
+
header: DocumentModelHeaderSchema,
|
|
319109
|
+
state: DocumentModelPHStateSchema,
|
|
319110
|
+
initialState: DocumentModelPHStateSchema
|
|
319111
|
+
});
|
|
319112
|
+
});
|
|
319113
|
+
|
|
319073
319114
|
// ../../packages/document-model/dist/src/document-model/state.js
|
|
319074
319115
|
function defaultGlobalState() {
|
|
319075
319116
|
return {
|
|
@@ -319164,10 +319205,18 @@ var init_module = __esm(() => {
|
|
|
319164
319205
|
};
|
|
319165
319206
|
});
|
|
319166
319207
|
|
|
319208
|
+
// ../../packages/document-model/dist/src/document-model/controller.js
|
|
319209
|
+
var DocumentModelController;
|
|
319210
|
+
var init_controller = __esm(() => {
|
|
319211
|
+
init_module();
|
|
319212
|
+
DocumentModelController = PHDocumentController.forDocumentModel(documentModelDocumentModelModule);
|
|
319213
|
+
});
|
|
319214
|
+
|
|
319167
319215
|
// ../../packages/document-model/dist/src/document-model/index.js
|
|
319168
319216
|
var init_document_model2 = __esm(() => {
|
|
319169
319217
|
init_actions2();
|
|
319170
319218
|
init_constants5();
|
|
319219
|
+
init_controller();
|
|
319171
319220
|
init_document_schema();
|
|
319172
319221
|
init_files2();
|
|
319173
319222
|
init_module();
|
|
@@ -331051,8 +331100,8 @@ var init_run_asap = __esm(() => {
|
|
|
331051
331100
|
return new Error("MessageChannel is not supported");
|
|
331052
331101
|
}
|
|
331053
331102
|
return (task) => {
|
|
331054
|
-
const
|
|
331055
|
-
const signal =
|
|
331103
|
+
const controller4 = new AbortController;
|
|
331104
|
+
const signal = controller4.signal;
|
|
331056
331105
|
const mc = new MessageChannel;
|
|
331057
331106
|
mc.port1.postMessage(null);
|
|
331058
331107
|
mc.port2.addEventListener("message", () => {
|
|
@@ -331061,7 +331110,7 @@ var init_run_asap = __esm(() => {
|
|
|
331061
331110
|
mc.port2.close();
|
|
331062
331111
|
}, { once: true, signal });
|
|
331063
331112
|
mc.port2.start();
|
|
331064
|
-
return () =>
|
|
331113
|
+
return () => controller4.abort();
|
|
331065
331114
|
};
|
|
331066
331115
|
})();
|
|
331067
331116
|
usePostMessage = (() => {
|