@metamask/snaps-controllers 7.0.1 → 8.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/CHANGELOG.md +26 -1
- package/dist/{chunk-Q2ON6SMV.js → chunk-2UAU42DO.js} +17 -25
- package/dist/chunk-2UAU42DO.js.map +1 -0
- package/dist/{chunk-Y5KX5ICF.mjs → chunk-3Y4IJKZY.mjs} +3 -3
- package/dist/chunk-3Y4IJKZY.mjs.map +1 -0
- package/dist/{chunk-XE5IWVNV.js → chunk-4DPX4O3T.js} +17 -6
- package/dist/chunk-4DPX4O3T.js.map +1 -0
- package/dist/{chunk-YVNRYLOC.js → chunk-74GN6MIJ.js} +3 -3
- package/dist/{chunk-NOLPMHXS.js → chunk-BOFPNIRX.js} +21 -3
- package/dist/chunk-BOFPNIRX.js.map +1 -0
- package/dist/{chunk-3ZC4LB7T.js → chunk-E5RRFMGF.js} +3 -3
- package/dist/chunk-E5RRFMGF.js.map +1 -0
- package/dist/{chunk-WVGK5B5P.mjs → chunk-FCCGRGQS.mjs} +83 -48
- package/dist/chunk-FCCGRGQS.mjs.map +1 -0
- package/dist/{chunk-NSLYI2LS.js → chunk-FCRPOA4I.js} +12 -4
- package/dist/chunk-FCRPOA4I.js.map +1 -0
- package/dist/{chunk-63GNCRER.js → chunk-G4S6UXQ2.js} +4 -4
- package/dist/chunk-G4S6UXQ2.js.map +1 -0
- package/dist/{chunk-MYWDTEX2.js → chunk-GRBWVPLF.js} +4 -4
- package/dist/{chunk-36YC4Z3T.mjs → chunk-GTDDODNP.mjs} +13 -2
- package/dist/chunk-GTDDODNP.mjs.map +1 -0
- package/dist/{chunk-5MVIYRYL.mjs → chunk-IPYO7FKR.mjs} +40 -26
- package/dist/chunk-IPYO7FKR.mjs.map +1 -0
- package/dist/{chunk-75VM3O4K.mjs → chunk-P5MRZOGW.mjs} +2 -2
- package/dist/{chunk-Z6SOB3SY.js → chunk-PAFO2KIN.js} +3 -3
- package/dist/chunk-PAFO2KIN.js.map +1 -0
- package/dist/{chunk-25LS4KZK.mjs → chunk-PXKCSAT6.mjs} +3 -3
- package/dist/chunk-PXKCSAT6.mjs.map +1 -0
- package/dist/{chunk-BJOQRBH2.mjs → chunk-QLEQIXCE.mjs} +2 -2
- package/dist/chunk-QLEQIXCE.mjs.map +1 -0
- package/dist/{chunk-K276CM3B.mjs → chunk-QP5LV734.mjs} +20 -28
- package/dist/chunk-QP5LV734.mjs.map +1 -0
- package/dist/{chunk-SCERVW3B.mjs → chunk-RS3WN6D3.mjs} +2 -2
- package/dist/chunk-RS3WN6D3.mjs.map +1 -0
- package/dist/{chunk-54TYYPAN.js → chunk-SIW7ZXQF.js} +83 -48
- package/dist/chunk-SIW7ZXQF.js.map +1 -0
- package/dist/{chunk-Q4I5QTVC.mjs → chunk-TO6ZEBIA.mjs} +11 -3
- package/dist/chunk-TO6ZEBIA.mjs.map +1 -0
- package/dist/chunk-U4DZUKNN.js +80 -0
- package/dist/chunk-U4DZUKNN.js.map +1 -0
- package/dist/{chunk-2KCUVQFS.mjs → chunk-X5MFC3VX.mjs} +2 -2
- package/dist/{chunk-VOZOZKRC.mjs → chunk-XO7KDFBY.mjs} +21 -3
- package/dist/chunk-XO7KDFBY.mjs.map +1 -0
- package/dist/{chunk-ZETJVFUS.mjs → chunk-XSFI32LB.mjs} +2 -2
- package/dist/{chunk-WQYMF7QP.js → chunk-Y7ZOSPEN.js} +3 -3
- package/dist/{chunk-CJN25EXL.js → chunk-YP37KUG5.js} +46 -32
- package/dist/chunk-YP37KUG5.js.map +1 -0
- package/dist/chunk-ZQNBP53T.mjs +80 -0
- package/dist/chunk-ZQNBP53T.mjs.map +1 -0
- package/dist/{chunk-N7WIJNHY.js → chunk-ZVGZG25U.js} +4 -4
- package/dist/chunk-ZVGZG25U.js.map +1 -0
- package/dist/cronjob/CronjobController.js +12 -12
- package/dist/cronjob/CronjobController.mjs +11 -11
- package/dist/cronjob/index.js +12 -12
- package/dist/cronjob/index.mjs +11 -11
- package/dist/index.js +14 -12
- package/dist/index.mjs +13 -11
- package/dist/interface/SnapInterfaceController.js +3 -3
- package/dist/interface/SnapInterfaceController.mjs +2 -2
- package/dist/interface/index.js +3 -3
- package/dist/interface/index.mjs +2 -2
- package/dist/interface/utils.js +2 -4
- package/dist/interface/utils.mjs +5 -7
- package/dist/node.js +16 -14
- package/dist/node.mjs +15 -13
- package/dist/react-native.js +15 -13
- package/dist/react-native.mjs +14 -12
- package/dist/services/AbstractExecutionService.js +4 -4
- package/dist/services/AbstractExecutionService.mjs +3 -3
- package/dist/services/browser.js +9 -9
- package/dist/services/browser.mjs +8 -8
- package/dist/services/iframe/IframeExecutionService.js +5 -5
- package/dist/services/iframe/IframeExecutionService.mjs +4 -4
- package/dist/services/iframe/index.js +5 -5
- package/dist/services/iframe/index.mjs +4 -4
- package/dist/services/index.js +8 -8
- package/dist/services/index.mjs +7 -7
- package/dist/services/node-js/NodeProcessExecutionService.js +9 -9
- package/dist/services/node-js/NodeProcessExecutionService.mjs +8 -8
- package/dist/services/node-js/NodeThreadExecutionService.js +9 -9
- package/dist/services/node-js/NodeThreadExecutionService.mjs +8 -8
- package/dist/services/node-js/index.js +10 -10
- package/dist/services/node-js/index.mjs +9 -9
- package/dist/services/node.js +10 -10
- package/dist/services/node.mjs +9 -9
- package/dist/services/offscreen/OffscreenExecutionService.js +6 -6
- package/dist/services/offscreen/OffscreenExecutionService.mjs +5 -5
- package/dist/services/offscreen/index.js +6 -6
- package/dist/services/offscreen/index.mjs +5 -5
- package/dist/services/proxy/ProxyExecutionService.js +5 -5
- package/dist/services/proxy/ProxyExecutionService.mjs +4 -4
- package/dist/services/react-native.js +9 -9
- package/dist/services/react-native.mjs +8 -8
- package/dist/services/webview/WebViewExecutionService.js +6 -6
- package/dist/services/webview/WebViewExecutionService.mjs +5 -5
- package/dist/services/webview/index.js +6 -6
- package/dist/services/webview/index.mjs +5 -5
- package/dist/services/webworker/WebWorkerExecutionService.js +5 -5
- package/dist/services/webworker/WebWorkerExecutionService.mjs +4 -4
- package/dist/services/webworker/index.js +5 -5
- package/dist/services/webworker/index.mjs +4 -4
- package/dist/snaps/SnapController.js +4 -4
- package/dist/snaps/SnapController.mjs +3 -3
- package/dist/snaps/Timer.js +2 -2
- package/dist/snaps/Timer.mjs +1 -1
- package/dist/snaps/index.js +4 -4
- package/dist/snaps/index.mjs +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/interface/SnapInterfaceController.d.ts +5 -4
- package/dist/types/interface/utils.d.ts +11 -20
- package/dist/types/services/AbstractExecutionService.d.ts +18 -12
- package/dist/types/services/ExecutionService.d.ts +1 -1
- package/dist/types/services/iframe/IframeExecutionService.d.ts +2 -2
- package/dist/types/services/node-js/NodeProcessExecutionService.d.ts +2 -2
- package/dist/types/services/node-js/NodeThreadExecutionService.d.ts +2 -2
- package/dist/types/services/proxy/ProxyExecutionService.d.ts +2 -2
- package/dist/types/services/webworker/WebWorkerExecutionService.d.ts +2 -2
- package/dist/types/snaps/SnapController.d.ts +5 -6
- package/dist/types/snaps/Timer.d.ts +7 -0
- package/dist/types/utils.d.ts +12 -0
- package/dist/utils.js +5 -3
- package/dist/utils.mjs +4 -2
- package/package.json +8 -7
- package/dist/chunk-25LS4KZK.mjs.map +0 -1
- package/dist/chunk-36YC4Z3T.mjs.map +0 -1
- package/dist/chunk-3ZC4LB7T.js.map +0 -1
- package/dist/chunk-54TYYPAN.js.map +0 -1
- package/dist/chunk-5MVIYRYL.mjs.map +0 -1
- package/dist/chunk-63GNCRER.js.map +0 -1
- package/dist/chunk-BJOQRBH2.mjs.map +0 -1
- package/dist/chunk-CJN25EXL.js.map +0 -1
- package/dist/chunk-K276CM3B.mjs.map +0 -1
- package/dist/chunk-KLK7ZRMH.js +0 -55
- package/dist/chunk-KLK7ZRMH.js.map +0 -1
- package/dist/chunk-N7WIJNHY.js.map +0 -1
- package/dist/chunk-NOLPMHXS.js.map +0 -1
- package/dist/chunk-NSLYI2LS.js.map +0 -1
- package/dist/chunk-Q2ON6SMV.js.map +0 -1
- package/dist/chunk-Q4I5QTVC.mjs.map +0 -1
- package/dist/chunk-RIU3ZIXZ.mjs +0 -55
- package/dist/chunk-RIU3ZIXZ.mjs.map +0 -1
- package/dist/chunk-SCERVW3B.mjs.map +0 -1
- package/dist/chunk-VOZOZKRC.mjs.map +0 -1
- package/dist/chunk-WVGK5B5P.mjs.map +0 -1
- package/dist/chunk-XE5IWVNV.js.map +0 -1
- package/dist/chunk-Y5KX5ICF.mjs.map +0 -1
- package/dist/chunk-Z6SOB3SY.js.map +0 -1
- /package/dist/{chunk-YVNRYLOC.js.map → chunk-74GN6MIJ.js.map} +0 -0
- /package/dist/{chunk-MYWDTEX2.js.map → chunk-GRBWVPLF.js.map} +0 -0
- /package/dist/{chunk-75VM3O4K.mjs.map → chunk-P5MRZOGW.mjs.map} +0 -0
- /package/dist/{chunk-2KCUVQFS.mjs.map → chunk-X5MFC3VX.mjs.map} +0 -0
- /package/dist/{chunk-ZETJVFUS.mjs.map → chunk-XSFI32LB.mjs.map} +0 -0
- /package/dist/{chunk-WQYMF7QP.js.map → chunk-Y7ZOSPEN.js.map} +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// src/interface/utils.ts
|
|
2
|
+
import { assert } from "@metamask/snaps-sdk";
|
|
3
|
+
import { isJSXElementUnsafe } from "@metamask/snaps-sdk/jsx";
|
|
4
|
+
import {
|
|
5
|
+
getJsxChildren,
|
|
6
|
+
getJsxElementFromComponent
|
|
7
|
+
} from "@metamask/snaps-utils";
|
|
8
|
+
function getJsxInterface(component) {
|
|
9
|
+
if (isJSXElementUnsafe(component)) {
|
|
10
|
+
return component;
|
|
11
|
+
}
|
|
12
|
+
return getJsxElementFromComponent(component);
|
|
13
|
+
}
|
|
14
|
+
function assertNameIsUnique(state, name) {
|
|
15
|
+
assert(
|
|
16
|
+
state[name] === void 0,
|
|
17
|
+
`Duplicate component names are not allowed, found multiple instances of: "${name}".`
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function constructInputState(oldState, element) {
|
|
21
|
+
return element.props.value ?? oldState[element.props.name] ?? null;
|
|
22
|
+
}
|
|
23
|
+
function constructFormInputState(oldState, component, form) {
|
|
24
|
+
const oldFormState = oldState[form];
|
|
25
|
+
const oldInputState = oldFormState?.[component.props.name];
|
|
26
|
+
return component.props.value ?? oldInputState ?? null;
|
|
27
|
+
}
|
|
28
|
+
function getFieldInput(element) {
|
|
29
|
+
if (Array.isArray(element.props.children)) {
|
|
30
|
+
return element.props.children[0];
|
|
31
|
+
}
|
|
32
|
+
return element.props.children;
|
|
33
|
+
}
|
|
34
|
+
function constructFormState(oldState, component, form, newState) {
|
|
35
|
+
if (component.type === "Button") {
|
|
36
|
+
return newState;
|
|
37
|
+
}
|
|
38
|
+
const input = getFieldInput(component);
|
|
39
|
+
assertNameIsUnique(newState, input.props.name);
|
|
40
|
+
newState[input.props.name] = constructFormInputState(oldState, input, form);
|
|
41
|
+
return newState;
|
|
42
|
+
}
|
|
43
|
+
function constructState(oldState, component, newState = {}) {
|
|
44
|
+
if (component.type === "Box") {
|
|
45
|
+
const children = getJsxChildren(component);
|
|
46
|
+
return children.reduce(
|
|
47
|
+
(accumulator, node) => constructState(oldState, node, accumulator),
|
|
48
|
+
newState
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
if (component.type === "Form") {
|
|
52
|
+
assertNameIsUnique(newState, component.props.name);
|
|
53
|
+
const children = getJsxChildren(component);
|
|
54
|
+
newState[component.props.name] = children.reduce(
|
|
55
|
+
(accumulator, node) => {
|
|
56
|
+
return constructFormState(
|
|
57
|
+
oldState,
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
59
|
+
node,
|
|
60
|
+
component.props.name,
|
|
61
|
+
accumulator
|
|
62
|
+
);
|
|
63
|
+
},
|
|
64
|
+
{}
|
|
65
|
+
);
|
|
66
|
+
return newState;
|
|
67
|
+
}
|
|
68
|
+
if (component.type === "Input") {
|
|
69
|
+
assertNameIsUnique(newState, component.props.name);
|
|
70
|
+
newState[component.props.name] = constructInputState(oldState, component);
|
|
71
|
+
}
|
|
72
|
+
return newState;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export {
|
|
76
|
+
getJsxInterface,
|
|
77
|
+
assertNameIsUnique,
|
|
78
|
+
constructState
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=chunk-ZQNBP53T.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/interface/utils.ts"],"sourcesContent":["import { assert } from '@metamask/snaps-sdk';\nimport type {\n FormState,\n InterfaceState,\n ComponentOrElement,\n} from '@metamask/snaps-sdk';\nimport type {\n ButtonElement,\n FieldElement,\n InputElement,\n JSXElement,\n} from '@metamask/snaps-sdk/jsx';\nimport { isJSXElementUnsafe } from '@metamask/snaps-sdk/jsx';\nimport {\n getJsxChildren,\n getJsxElementFromComponent,\n} from '@metamask/snaps-utils';\n\n/**\n * Get a JSX element from a component or JSX element. If the component is a\n * JSX element, it is returned as is. Otherwise, the component is converted to\n * a JSX element.\n *\n * @param component - The component to convert.\n * @returns The JSX element.\n */\nexport function getJsxInterface(component: ComponentOrElement): JSXElement {\n if (isJSXElementUnsafe(component)) {\n return component;\n }\n\n return getJsxElementFromComponent(component);\n}\n\n/**\n * Assert that the component name is unique in state.\n *\n * @param state - The interface state to verify against.\n * @param name - The component name to verify.\n */\nexport function assertNameIsUnique(state: InterfaceState, name: string) {\n assert(\n state[name] === undefined,\n `Duplicate component names are not allowed, found multiple instances of: \"${name}\".`,\n );\n}\n\n/**\n * Construct the state for an input field.\n *\n * @param oldState - The previous state.\n * @param element - The input element.\n * @returns The input state.\n */\nfunction constructInputState(oldState: InterfaceState, element: InputElement) {\n return element.props.value ?? oldState[element.props.name] ?? null;\n}\n\n/**\n * Construct the state for a form input.\n *\n * @param oldState - The previous state.\n * @param component - The input element.\n * @param form - The parent form name of the input.\n * @returns The input state.\n */\nfunction constructFormInputState(\n oldState: InterfaceState,\n component: InputElement,\n form: string,\n) {\n const oldFormState = oldState[form] as FormState;\n const oldInputState = oldFormState?.[component.props.name];\n return component.props.value ?? oldInputState ?? null;\n}\n\n/**\n * Get the input field from a field element.\n *\n * @param element - The field element.\n * @returns The input element.\n */\nfunction getFieldInput(element: FieldElement) {\n if (Array.isArray(element.props.children)) {\n return element.props.children[0];\n }\n\n return element.props.children;\n}\n\n/**\n * Construct the state for a form input.\n *\n * @param oldState - The previous state.\n * @param component - The field element.\n * @param form - The parent form name of the input.\n * @param newState - The new state.\n * @returns The input state.\n */\nfunction constructFormState(\n oldState: InterfaceState,\n component: FieldElement | ButtonElement,\n form: string,\n newState: FormState,\n): FormState {\n if (component.type === 'Button') {\n return newState;\n }\n\n const input = getFieldInput(component);\n assertNameIsUnique(newState, input.props.name);\n\n newState[input.props.name] = constructFormInputState(oldState, input, form);\n\n return newState;\n}\n\n/**\n * Construct the interface state for a given component tree.\n *\n * @param oldState - The previous state.\n * @param component - The UI component to construct state from.\n * @param newState - The state that is being constructed.\n * @returns The interface state of the passed component.\n */\nexport function constructState(\n oldState: InterfaceState,\n component: JSXElement,\n newState: InterfaceState = {},\n): InterfaceState {\n if (component.type === 'Box') {\n const children = getJsxChildren(component);\n return children.reduce(\n (accumulator, node) =>\n constructState(oldState, node as JSXElement, accumulator),\n newState,\n );\n }\n\n if (component.type === 'Form') {\n assertNameIsUnique(newState, component.props.name);\n\n const children = getJsxChildren(component);\n newState[component.props.name] = children.reduce<FormState>(\n (accumulator, node) => {\n return constructFormState(\n oldState,\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n node as FieldElement | ButtonElement,\n component.props.name,\n accumulator,\n );\n },\n {},\n );\n\n return newState;\n }\n\n if (component.type === 'Input') {\n assertNameIsUnique(newState, component.props.name);\n newState[component.props.name] = constructInputState(oldState, component);\n }\n\n return newState;\n}\n"],"mappings":";AAAA,SAAS,cAAc;AAYvB,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAUA,SAAS,gBAAgB,WAA2C;AACzE,MAAI,mBAAmB,SAAS,GAAG;AACjC,WAAO;AAAA,EACT;AAEA,SAAO,2BAA2B,SAAS;AAC7C;AAQO,SAAS,mBAAmB,OAAuB,MAAc;AACtE;AAAA,IACE,MAAM,IAAI,MAAM;AAAA,IAChB,4EAA4E,IAAI;AAAA,EAClF;AACF;AASA,SAAS,oBAAoB,UAA0B,SAAuB;AAC5E,SAAO,QAAQ,MAAM,SAAS,SAAS,QAAQ,MAAM,IAAI,KAAK;AAChE;AAUA,SAAS,wBACP,UACA,WACA,MACA;AACA,QAAM,eAAe,SAAS,IAAI;AAClC,QAAM,gBAAgB,eAAe,UAAU,MAAM,IAAI;AACzD,SAAO,UAAU,MAAM,SAAS,iBAAiB;AACnD;AAQA,SAAS,cAAc,SAAuB;AAC5C,MAAI,MAAM,QAAQ,QAAQ,MAAM,QAAQ,GAAG;AACzC,WAAO,QAAQ,MAAM,SAAS,CAAC;AAAA,EACjC;AAEA,SAAO,QAAQ,MAAM;AACvB;AAWA,SAAS,mBACP,UACA,WACA,MACA,UACW;AACX,MAAI,UAAU,SAAS,UAAU;AAC/B,WAAO;AAAA,EACT;AAEA,QAAM,QAAQ,cAAc,SAAS;AACrC,qBAAmB,UAAU,MAAM,MAAM,IAAI;AAE7C,WAAS,MAAM,MAAM,IAAI,IAAI,wBAAwB,UAAU,OAAO,IAAI;AAE1E,SAAO;AACT;AAUO,SAAS,eACd,UACA,WACA,WAA2B,CAAC,GACZ;AAChB,MAAI,UAAU,SAAS,OAAO;AAC5B,UAAM,WAAW,eAAe,SAAS;AACzC,WAAO,SAAS;AAAA,MACd,CAAC,aAAa,SACZ,eAAe,UAAU,MAAoB,WAAW;AAAA,MAC1D;AAAA,IACF;AAAA,EACF;AAEA,MAAI,UAAU,SAAS,QAAQ;AAC7B,uBAAmB,UAAU,UAAU,MAAM,IAAI;AAEjD,UAAM,WAAW,eAAe,SAAS;AACzC,aAAS,UAAU,MAAM,IAAI,IAAI,SAAS;AAAA,MACxC,CAAC,aAAa,SAAS;AACrB,eAAO;AAAA,UACL;AAAA;AAAA,UAEA;AAAA,UACA,UAAU,MAAM;AAAA,UAChB;AAAA,QACF;AAAA,MACF;AAAA,MACA,CAAC;AAAA,IACH;AAEA,WAAO;AAAA,EACT;AAEA,MAAI,UAAU,SAAS,SAAS;AAC9B,uBAAmB,UAAU,UAAU,MAAM,IAAI;AACjD,aAAS,UAAU,MAAM,IAAI,IAAI,oBAAoB,UAAU,SAAS;AAAA,EAC1E;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSIW7ZXQFjs = require('./chunk-SIW7ZXQF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkEXN2TFDJjs = require('./chunk-EXN2TFDJ.js');
|
|
@@ -8,7 +8,7 @@ var _chunkEXN2TFDJjs = require('./chunk-EXN2TFDJ.js');
|
|
|
8
8
|
// src/services/node-js/NodeProcessExecutionService.ts
|
|
9
9
|
var _postmessagestream = require('@metamask/post-message-stream');
|
|
10
10
|
var _child_process = require('child_process');
|
|
11
|
-
var NodeProcessExecutionService = class extends
|
|
11
|
+
var NodeProcessExecutionService = class extends _chunkSIW7ZXQFjs.AbstractExecutionService {
|
|
12
12
|
async initEnvStream() {
|
|
13
13
|
const worker = _child_process.fork.call(void 0,
|
|
14
14
|
_chunkEXN2TFDJjs.__require.resolve(
|
|
@@ -28,11 +28,11 @@ var NodeProcessExecutionService = class extends _chunk54TYYPANjs.AbstractExecuti
|
|
|
28
28
|
return Promise.resolve({ worker, stream });
|
|
29
29
|
}
|
|
30
30
|
terminateJob(jobWrapper) {
|
|
31
|
-
jobWrapper.worker
|
|
31
|
+
jobWrapper.worker?.kill();
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
exports.NodeProcessExecutionService = NodeProcessExecutionService;
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-ZVGZG25U.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/services/node-js/NodeProcessExecutionService.ts"],"names":[],"mappings":";;;;;;;;AACA,SAAS,kCAAkC;AAE3C,SAAS,YAAY;AAKd,IAAM,8BAAN,cAA0C,yBAAuC;AAAA,EACtF,MAAgB,gBAGb;AACD,UAAM,SAAS;AAAA,MACb,UAAQ;AAAA,QACN;AAAA,MACF;AAAA,MACA;AAAA,QACE,OAAO;AAAA,MACT;AAAA,IACF;AAIA,WAAO,QAAQ,GAAG,QAAQ,CAAC,SAAS;AAElC,cAAQ,IAAI,KAAK,SAAS,CAAC;AAAA,IAC7B,CAAC;AAED,WAAO,QAAQ,GAAG,QAAQ,CAAC,SAAS;AAElC,cAAQ,MAAM,KAAK,SAAS,CAAC;AAAA,IAC/B,CAAC;AAED,UAAM,SAAS,IAAI,2BAA2B,EAAE,SAAS,OAAO,CAAC;AACjE,WAAO,QAAQ,QAAQ,EAAE,QAAQ,OAAO,CAAC;AAAA,EAC3C;AAAA,EAEU,aAAa,YAAkD;AACvE,eAAW,QAAQ,KAAK;AAAA,EAC1B;AACF","sourcesContent":["import type { BasePostMessageStream } from '@metamask/post-message-stream';\nimport { ProcessParentMessageStream } from '@metamask/post-message-stream';\nimport type { ChildProcess } from 'child_process';\nimport { fork } from 'child_process';\n\nimport type { TerminateJobArgs } from '..';\nimport { AbstractExecutionService } from '..';\n\nexport class NodeProcessExecutionService extends AbstractExecutionService<ChildProcess> {\n protected async initEnvStream(): Promise<{\n worker: ChildProcess;\n stream: BasePostMessageStream;\n }> {\n const worker = fork(\n require.resolve(\n '@metamask/snaps-execution-environments/dist/browserify/node-process/bundle.js',\n ),\n {\n stdio: 'pipe',\n },\n );\n\n // Capturing `stdout` and `stderr` from the worker prevents the worker from\n // writing to them directly, making it easier to capture them Jest.\n worker.stdout?.on('data', (data) => {\n // eslint-disable-next-line no-console\n console.log(data.toString());\n });\n\n worker.stderr?.on('data', (data) => {\n // eslint-disable-next-line no-console\n console.error(data.toString());\n });\n\n const stream = new ProcessParentMessageStream({ process: worker });\n return Promise.resolve({ worker, stream });\n }\n\n protected terminateJob(jobWrapper: TerminateJobArgs<ChildProcess>): void {\n jobWrapper.worker?.kill();\n }\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGRBWVPLFjs = require('../chunk-GRBWVPLF.js');
|
|
5
5
|
require('../chunk-JAUAKTUL.js');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-YP37KUG5.js');
|
|
7
7
|
require('../chunk-WEY7ICES.js');
|
|
8
8
|
require('../chunk-PT22IXNS.js');
|
|
9
9
|
require('../chunk-LWBPKSU2.js');
|
|
@@ -16,26 +16,26 @@ require('../chunk-AP7CJ6DA.js');
|
|
|
16
16
|
require('../chunk-5YBORD3A.js');
|
|
17
17
|
require('../chunk-YYPUPKQY.js');
|
|
18
18
|
require('../chunk-VNOCJWOK.js');
|
|
19
|
-
require('../chunk-
|
|
20
|
-
require('../chunk-
|
|
19
|
+
require('../chunk-2UAU42DO.js');
|
|
20
|
+
require('../chunk-U4DZUKNN.js');
|
|
21
21
|
require('../chunk-4URGXJP7.js');
|
|
22
22
|
require('../chunk-OHMCPTOI.js');
|
|
23
23
|
require('../chunk-D74XJG2L.js');
|
|
24
|
-
require('../chunk-
|
|
24
|
+
require('../chunk-E5RRFMGF.js');
|
|
25
25
|
require('../chunk-HOY6NKQR.js');
|
|
26
|
-
require('../chunk-
|
|
27
|
-
require('../chunk-
|
|
28
|
-
require('../chunk-
|
|
29
|
-
require('../chunk-
|
|
26
|
+
require('../chunk-PAFO2KIN.js');
|
|
27
|
+
require('../chunk-Y7ZOSPEN.js');
|
|
28
|
+
require('../chunk-FCRPOA4I.js');
|
|
29
|
+
require('../chunk-SIW7ZXQF.js');
|
|
30
30
|
require('../chunk-OIEUL55W.js');
|
|
31
31
|
require('../chunk-7Y6P5FRN.js');
|
|
32
32
|
require('../chunk-BO2ZDPWV.js');
|
|
33
33
|
require('../chunk-NXZVKBSV.js');
|
|
34
|
-
require('../chunk-
|
|
35
|
-
require('../chunk-
|
|
34
|
+
require('../chunk-4DPX4O3T.js');
|
|
35
|
+
require('../chunk-BOFPNIRX.js');
|
|
36
36
|
require('../chunk-EXN2TFDJ.js');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
exports.CronjobController =
|
|
40
|
+
exports.CronjobController = _chunkGRBWVPLFjs.CronjobController; exports.DAILY_TIMEOUT = _chunkGRBWVPLFjs.DAILY_TIMEOUT;
|
|
41
41
|
//# sourceMappingURL=CronjobController.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CronjobController,
|
|
3
3
|
DAILY_TIMEOUT
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XSFI32LB.mjs";
|
|
5
5
|
import "../chunk-BAEXVO3U.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-IPYO7FKR.mjs";
|
|
7
7
|
import "../chunk-QL3QGUTM.mjs";
|
|
8
8
|
import "../chunk-42ODFZSH.mjs";
|
|
9
9
|
import "../chunk-B3UTLNYS.mjs";
|
|
@@ -16,23 +16,23 @@ import "../chunk-NC5PBDKD.mjs";
|
|
|
16
16
|
import "../chunk-YIQM6ZKA.mjs";
|
|
17
17
|
import "../chunk-P7Y6MIZW.mjs";
|
|
18
18
|
import "../chunk-U74FML7Z.mjs";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-QP5LV734.mjs";
|
|
20
|
+
import "../chunk-ZQNBP53T.mjs";
|
|
21
21
|
import "../chunk-IABOI7TW.mjs";
|
|
22
22
|
import "../chunk-ESQPQNEF.mjs";
|
|
23
23
|
import "../chunk-V6NFZ47P.mjs";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-RS3WN6D3.mjs";
|
|
25
25
|
import "../chunk-KCMULJ2M.mjs";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-QLEQIXCE.mjs";
|
|
27
|
+
import "../chunk-X5MFC3VX.mjs";
|
|
28
|
+
import "../chunk-TO6ZEBIA.mjs";
|
|
29
|
+
import "../chunk-FCCGRGQS.mjs";
|
|
30
30
|
import "../chunk-3RNW7OKG.mjs";
|
|
31
31
|
import "../chunk-ZVOYOZFT.mjs";
|
|
32
32
|
import "../chunk-6EZSNS4O.mjs";
|
|
33
33
|
import "../chunk-4HVWEABQ.mjs";
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-GTDDODNP.mjs";
|
|
35
|
+
import "../chunk-XO7KDFBY.mjs";
|
|
36
36
|
import "../chunk-YRZVIDCF.mjs";
|
|
37
37
|
export {
|
|
38
38
|
CronjobController,
|
package/dist/cronjob/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGRBWVPLFjs = require('../chunk-GRBWVPLF.js');
|
|
5
5
|
require('../chunk-JAUAKTUL.js');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-YP37KUG5.js');
|
|
7
7
|
require('../chunk-WEY7ICES.js');
|
|
8
8
|
require('../chunk-PT22IXNS.js');
|
|
9
9
|
require('../chunk-LWBPKSU2.js');
|
|
@@ -16,26 +16,26 @@ require('../chunk-AP7CJ6DA.js');
|
|
|
16
16
|
require('../chunk-5YBORD3A.js');
|
|
17
17
|
require('../chunk-YYPUPKQY.js');
|
|
18
18
|
require('../chunk-VNOCJWOK.js');
|
|
19
|
-
require('../chunk-
|
|
20
|
-
require('../chunk-
|
|
19
|
+
require('../chunk-2UAU42DO.js');
|
|
20
|
+
require('../chunk-U4DZUKNN.js');
|
|
21
21
|
require('../chunk-4URGXJP7.js');
|
|
22
22
|
require('../chunk-OHMCPTOI.js');
|
|
23
23
|
require('../chunk-D74XJG2L.js');
|
|
24
|
-
require('../chunk-
|
|
24
|
+
require('../chunk-E5RRFMGF.js');
|
|
25
25
|
require('../chunk-HOY6NKQR.js');
|
|
26
|
-
require('../chunk-
|
|
27
|
-
require('../chunk-
|
|
28
|
-
require('../chunk-
|
|
29
|
-
require('../chunk-
|
|
26
|
+
require('../chunk-PAFO2KIN.js');
|
|
27
|
+
require('../chunk-Y7ZOSPEN.js');
|
|
28
|
+
require('../chunk-FCRPOA4I.js');
|
|
29
|
+
require('../chunk-SIW7ZXQF.js');
|
|
30
30
|
require('../chunk-OIEUL55W.js');
|
|
31
31
|
require('../chunk-7Y6P5FRN.js');
|
|
32
32
|
require('../chunk-BO2ZDPWV.js');
|
|
33
33
|
require('../chunk-NXZVKBSV.js');
|
|
34
|
-
require('../chunk-
|
|
35
|
-
require('../chunk-
|
|
34
|
+
require('../chunk-4DPX4O3T.js');
|
|
35
|
+
require('../chunk-BOFPNIRX.js');
|
|
36
36
|
require('../chunk-EXN2TFDJ.js');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
exports.CronjobController =
|
|
40
|
+
exports.CronjobController = _chunkGRBWVPLFjs.CronjobController; exports.DAILY_TIMEOUT = _chunkGRBWVPLFjs.DAILY_TIMEOUT;
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
package/dist/cronjob/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CronjobController,
|
|
3
3
|
DAILY_TIMEOUT
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XSFI32LB.mjs";
|
|
5
5
|
import "../chunk-BAEXVO3U.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-IPYO7FKR.mjs";
|
|
7
7
|
import "../chunk-QL3QGUTM.mjs";
|
|
8
8
|
import "../chunk-42ODFZSH.mjs";
|
|
9
9
|
import "../chunk-B3UTLNYS.mjs";
|
|
@@ -16,23 +16,23 @@ import "../chunk-NC5PBDKD.mjs";
|
|
|
16
16
|
import "../chunk-YIQM6ZKA.mjs";
|
|
17
17
|
import "../chunk-P7Y6MIZW.mjs";
|
|
18
18
|
import "../chunk-U74FML7Z.mjs";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-QP5LV734.mjs";
|
|
20
|
+
import "../chunk-ZQNBP53T.mjs";
|
|
21
21
|
import "../chunk-IABOI7TW.mjs";
|
|
22
22
|
import "../chunk-ESQPQNEF.mjs";
|
|
23
23
|
import "../chunk-V6NFZ47P.mjs";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-RS3WN6D3.mjs";
|
|
25
25
|
import "../chunk-KCMULJ2M.mjs";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-QLEQIXCE.mjs";
|
|
27
|
+
import "../chunk-X5MFC3VX.mjs";
|
|
28
|
+
import "../chunk-TO6ZEBIA.mjs";
|
|
29
|
+
import "../chunk-FCCGRGQS.mjs";
|
|
30
30
|
import "../chunk-3RNW7OKG.mjs";
|
|
31
31
|
import "../chunk-ZVOYOZFT.mjs";
|
|
32
32
|
import "../chunk-6EZSNS4O.mjs";
|
|
33
33
|
import "../chunk-4HVWEABQ.mjs";
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-GTDDODNP.mjs";
|
|
35
|
+
import "../chunk-XO7KDFBY.mjs";
|
|
36
36
|
import "../chunk-YRZVIDCF.mjs";
|
|
37
37
|
export {
|
|
38
38
|
CronjobController,
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGRBWVPLFjs = require('./chunk-GRBWVPLF.js');
|
|
5
5
|
require('./chunk-JAUAKTUL.js');
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ require('./chunk-JAUAKTUL.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkYP37KUG5js = require('./chunk-YP37KUG5.js');
|
|
13
13
|
require('./chunk-WEY7ICES.js');
|
|
14
14
|
|
|
15
15
|
|
|
@@ -43,26 +43,26 @@ var _chunkYYPUPKQYjs = require('./chunk-YYPUPKQY.js');
|
|
|
43
43
|
require('./chunk-VNOCJWOK.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
47
|
-
require('./chunk-
|
|
46
|
+
var _chunk2UAU42DOjs = require('./chunk-2UAU42DO.js');
|
|
47
|
+
require('./chunk-U4DZUKNN.js');
|
|
48
48
|
require('./chunk-4URGXJP7.js');
|
|
49
49
|
require('./chunk-OHMCPTOI.js');
|
|
50
50
|
require('./chunk-D74XJG2L.js');
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var _chunkE5RRFMGFjs = require('./chunk-E5RRFMGF.js');
|
|
54
54
|
require('./chunk-HOY6NKQR.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkPAFO2KINjs = require('./chunk-PAFO2KIN.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
61
|
-
require('./chunk-
|
|
60
|
+
var _chunkY7ZOSPENjs = require('./chunk-Y7ZOSPEN.js');
|
|
61
|
+
require('./chunk-FCRPOA4I.js');
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkSIW7ZXQFjs = require('./chunk-SIW7ZXQF.js');
|
|
66
66
|
require('./chunk-OIEUL55W.js');
|
|
67
67
|
|
|
68
68
|
|
|
@@ -77,8 +77,9 @@ require('./chunk-NXZVKBSV.js');
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
require('./chunk-
|
|
80
|
+
|
|
81
|
+
var _chunk4DPX4O3Tjs = require('./chunk-4DPX4O3T.js');
|
|
82
|
+
require('./chunk-BOFPNIRX.js');
|
|
82
83
|
require('./chunk-EXN2TFDJ.js');
|
|
83
84
|
|
|
84
85
|
|
|
@@ -114,5 +115,6 @@ require('./chunk-EXN2TFDJ.js');
|
|
|
114
115
|
|
|
115
116
|
|
|
116
117
|
|
|
117
|
-
|
|
118
|
+
|
|
119
|
+
exports.AbstractExecutionService = _chunkSIW7ZXQFjs.AbstractExecutionService; exports.BaseNpmLocation = _chunkXWDEGRM5js.BaseNpmLocation; exports.CronjobController = _chunkGRBWVPLFjs.CronjobController; exports.DAILY_TIMEOUT = _chunkGRBWVPLFjs.DAILY_TIMEOUT; exports.DEFAULT_NPM_REGISTRY = _chunkXWDEGRM5js.DEFAULT_NPM_REGISTRY; exports.HttpLocation = _chunkRDBT3ZJQjs.HttpLocation; exports.IframeExecutionService = _chunkPAFO2KINjs.IframeExecutionService; exports.JsonSnapsRegistry = _chunkCPUUURMTjs.JsonSnapsRegistry; exports.LocalLocation = _chunkLWBPKSU2js.LocalLocation; exports.NpmLocation = _chunkXWDEGRM5js.NpmLocation; exports.OffscreenExecutionService = _chunkY7ZOSPENjs.OffscreenExecutionService; exports.ProxyPostMessageStream = _chunk7Y6P5FRNjs.ProxyPostMessageStream; exports.SNAP_APPROVAL_INSTALL = _chunkYP37KUG5js.SNAP_APPROVAL_INSTALL; exports.SNAP_APPROVAL_RESULT = _chunkYP37KUG5js.SNAP_APPROVAL_RESULT; exports.SNAP_APPROVAL_UPDATE = _chunkYP37KUG5js.SNAP_APPROVAL_UPDATE; exports.SnapController = _chunkYP37KUG5js.SnapController; exports.SnapInterfaceController = _chunk2UAU42DOjs.SnapInterfaceController; exports.SnapsRegistryStatus = _chunk4CA3O64Hjs.SnapsRegistryStatus; exports.TARBALL_SIZE_SAFETY_LIMIT = _chunkXWDEGRM5js.TARBALL_SIZE_SAFETY_LIMIT; exports.WebWorkerExecutionService = _chunkE5RRFMGFjs.WebWorkerExecutionService; exports.controllerName = _chunkYP37KUG5js.controllerName; exports.delay = _chunk4DPX4O3Tjs.delay; exports.delayWithTimer = _chunk4DPX4O3Tjs.delayWithTimer; exports.detectSnapLocation = _chunkPT22IXNSjs.detectSnapLocation; exports.fetchNpmMetadata = _chunkXWDEGRM5js.fetchNpmMetadata; exports.fetchSnap = _chunk4DPX4O3Tjs.fetchSnap; exports.getNpmCanonicalBasePath = _chunkXWDEGRM5js.getNpmCanonicalBasePath; exports.getRunnableSnaps = _chunkYYPUPKQYjs.getRunnableSnaps; exports.getSnapFiles = _chunk4DPX4O3Tjs.getSnapFiles; exports.hasTimedOut = _chunk4DPX4O3Tjs.hasTimedOut; exports.permissionsDiff = _chunk4DPX4O3Tjs.permissionsDiff; exports.setDiff = _chunk4DPX4O3Tjs.setDiff; exports.setupMultiplex = _chunkSIW7ZXQFjs.setupMultiplex; exports.withTimeout = _chunk4DPX4O3Tjs.withTimeout;
|
|
118
120
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CronjobController,
|
|
3
3
|
DAILY_TIMEOUT
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XSFI32LB.mjs";
|
|
5
5
|
import "./chunk-BAEXVO3U.mjs";
|
|
6
6
|
import {
|
|
7
7
|
SNAP_APPROVAL_INSTALL,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
SNAP_APPROVAL_UPDATE,
|
|
10
10
|
SnapController,
|
|
11
11
|
controllerName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IPYO7FKR.mjs";
|
|
13
13
|
import "./chunk-QL3QGUTM.mjs";
|
|
14
14
|
import {
|
|
15
15
|
detectSnapLocation
|
|
@@ -43,26 +43,26 @@ import {
|
|
|
43
43
|
import "./chunk-U74FML7Z.mjs";
|
|
44
44
|
import {
|
|
45
45
|
SnapInterfaceController
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-QP5LV734.mjs";
|
|
47
|
+
import "./chunk-ZQNBP53T.mjs";
|
|
48
48
|
import "./chunk-IABOI7TW.mjs";
|
|
49
49
|
import "./chunk-ESQPQNEF.mjs";
|
|
50
50
|
import "./chunk-V6NFZ47P.mjs";
|
|
51
51
|
import {
|
|
52
52
|
WebWorkerExecutionService
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-RS3WN6D3.mjs";
|
|
54
54
|
import "./chunk-KCMULJ2M.mjs";
|
|
55
55
|
import {
|
|
56
56
|
IframeExecutionService
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-QLEQIXCE.mjs";
|
|
58
58
|
import {
|
|
59
59
|
OffscreenExecutionService
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-X5MFC3VX.mjs";
|
|
61
|
+
import "./chunk-TO6ZEBIA.mjs";
|
|
62
62
|
import {
|
|
63
63
|
AbstractExecutionService,
|
|
64
64
|
setupMultiplex
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-FCCGRGQS.mjs";
|
|
66
66
|
import "./chunk-3RNW7OKG.mjs";
|
|
67
67
|
import {
|
|
68
68
|
ProxyPostMessageStream
|
|
@@ -75,10 +75,11 @@ import {
|
|
|
75
75
|
fetchSnap,
|
|
76
76
|
getSnapFiles,
|
|
77
77
|
hasTimedOut,
|
|
78
|
+
permissionsDiff,
|
|
78
79
|
setDiff,
|
|
79
80
|
withTimeout
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-GTDDODNP.mjs";
|
|
82
|
+
import "./chunk-XO7KDFBY.mjs";
|
|
82
83
|
import "./chunk-YRZVIDCF.mjs";
|
|
83
84
|
export {
|
|
84
85
|
AbstractExecutionService,
|
|
@@ -111,6 +112,7 @@ export {
|
|
|
111
112
|
getRunnableSnaps,
|
|
112
113
|
getSnapFiles,
|
|
113
114
|
hasTimedOut,
|
|
115
|
+
permissionsDiff,
|
|
114
116
|
setDiff,
|
|
115
117
|
setupMultiplex,
|
|
116
118
|
withTimeout
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunk2UAU42DOjs = require('../chunk-2UAU42DO.js');
|
|
4
|
+
require('../chunk-U4DZUKNN.js');
|
|
5
5
|
require('../chunk-EXN2TFDJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.SnapInterfaceController =
|
|
8
|
+
exports.SnapInterfaceController = _chunk2UAU42DOjs.SnapInterfaceController;
|
|
9
9
|
//# sourceMappingURL=SnapInterfaceController.js.map
|
package/dist/interface/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-VNOCJWOK.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunk2UAU42DOjs = require('../chunk-2UAU42DO.js');
|
|
5
|
+
require('../chunk-U4DZUKNN.js');
|
|
6
6
|
require('../chunk-EXN2TFDJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.SnapInterfaceController =
|
|
9
|
+
exports.SnapInterfaceController = _chunk2UAU42DOjs.SnapInterfaceController;
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/interface/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../chunk-U74FML7Z.mjs";
|
|
2
2
|
import {
|
|
3
3
|
SnapInterfaceController
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-QP5LV734.mjs";
|
|
5
|
+
import "../chunk-ZQNBP53T.mjs";
|
|
6
6
|
import "../chunk-YRZVIDCF.mjs";
|
|
7
7
|
export {
|
|
8
8
|
SnapInterfaceController
|
package/dist/interface/utils.js
CHANGED
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var _chunkKLK7ZRMHjs = require('../chunk-KLK7ZRMH.js');
|
|
5
|
+
var _chunkU4DZUKNNjs = require('../chunk-U4DZUKNN.js');
|
|
7
6
|
require('../chunk-EXN2TFDJ.js');
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
exports.assertNameIsUnique = _chunkKLK7ZRMHjs.assertNameIsUnique; exports.constructFormInputState = _chunkKLK7ZRMHjs.constructFormInputState; exports.constructInputState = _chunkKLK7ZRMHjs.constructInputState; exports.constructState = _chunkKLK7ZRMHjs.constructState;
|
|
11
|
+
exports.assertNameIsUnique = _chunkU4DZUKNNjs.assertNameIsUnique; exports.constructState = _chunkU4DZUKNNjs.constructState; exports.getJsxInterface = _chunkU4DZUKNNjs.getJsxInterface;
|
|
14
12
|
//# sourceMappingURL=utils.js.map
|
package/dist/interface/utils.mjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNameIsUnique,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "../chunk-RIU3ZIXZ.mjs";
|
|
3
|
+
constructState,
|
|
4
|
+
getJsxInterface
|
|
5
|
+
} from "../chunk-ZQNBP53T.mjs";
|
|
7
6
|
import "../chunk-YRZVIDCF.mjs";
|
|
8
7
|
export {
|
|
9
8
|
assertNameIsUnique,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
constructState
|
|
9
|
+
constructState,
|
|
10
|
+
getJsxInterface
|
|
13
11
|
};
|
|
14
12
|
//# sourceMappingURL=utils.mjs.map
|
package/dist/node.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
require('./chunk-JW7WBUL7.js');
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZVGZG25Ujs = require('./chunk-ZVGZG25U.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkG4S6UXQ2js = require('./chunk-G4S6UXQ2.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkGRBWVPLFjs = require('./chunk-GRBWVPLF.js');
|
|
13
13
|
require('./chunk-JAUAKTUL.js');
|
|
14
14
|
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ require('./chunk-JAUAKTUL.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkYP37KUG5js = require('./chunk-YP37KUG5.js');
|
|
21
21
|
require('./chunk-WEY7ICES.js');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -51,26 +51,26 @@ var _chunkYYPUPKQYjs = require('./chunk-YYPUPKQY.js');
|
|
|
51
51
|
require('./chunk-VNOCJWOK.js');
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
55
|
-
require('./chunk-
|
|
54
|
+
var _chunk2UAU42DOjs = require('./chunk-2UAU42DO.js');
|
|
55
|
+
require('./chunk-U4DZUKNN.js');
|
|
56
56
|
require('./chunk-4URGXJP7.js');
|
|
57
57
|
require('./chunk-OHMCPTOI.js');
|
|
58
58
|
require('./chunk-D74XJG2L.js');
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkE5RRFMGFjs = require('./chunk-E5RRFMGF.js');
|
|
62
62
|
require('./chunk-HOY6NKQR.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkPAFO2KINjs = require('./chunk-PAFO2KIN.js');
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
69
|
-
require('./chunk-
|
|
68
|
+
var _chunkY7ZOSPENjs = require('./chunk-Y7ZOSPEN.js');
|
|
69
|
+
require('./chunk-FCRPOA4I.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunkSIW7ZXQFjs = require('./chunk-SIW7ZXQF.js');
|
|
74
74
|
require('./chunk-OIEUL55W.js');
|
|
75
75
|
|
|
76
76
|
|
|
@@ -85,8 +85,9 @@ require('./chunk-NXZVKBSV.js');
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
require('./chunk-
|
|
88
|
+
|
|
89
|
+
var _chunk4DPX4O3Tjs = require('./chunk-4DPX4O3T.js');
|
|
90
|
+
require('./chunk-BOFPNIRX.js');
|
|
90
91
|
require('./chunk-EXN2TFDJ.js');
|
|
91
92
|
|
|
92
93
|
|
|
@@ -124,5 +125,6 @@ require('./chunk-EXN2TFDJ.js');
|
|
|
124
125
|
|
|
125
126
|
|
|
126
127
|
|
|
127
|
-
|
|
128
|
+
|
|
129
|
+
exports.AbstractExecutionService = _chunkSIW7ZXQFjs.AbstractExecutionService; exports.BaseNpmLocation = _chunkXWDEGRM5js.BaseNpmLocation; exports.CronjobController = _chunkGRBWVPLFjs.CronjobController; exports.DAILY_TIMEOUT = _chunkGRBWVPLFjs.DAILY_TIMEOUT; exports.DEFAULT_NPM_REGISTRY = _chunkXWDEGRM5js.DEFAULT_NPM_REGISTRY; exports.HttpLocation = _chunkRDBT3ZJQjs.HttpLocation; exports.IframeExecutionService = _chunkPAFO2KINjs.IframeExecutionService; exports.JsonSnapsRegistry = _chunkCPUUURMTjs.JsonSnapsRegistry; exports.LocalLocation = _chunkLWBPKSU2js.LocalLocation; exports.NodeProcessExecutionService = _chunkZVGZG25Ujs.NodeProcessExecutionService; exports.NodeThreadExecutionService = _chunkG4S6UXQ2js.NodeThreadExecutionService; exports.NpmLocation = _chunkXWDEGRM5js.NpmLocation; exports.OffscreenExecutionService = _chunkY7ZOSPENjs.OffscreenExecutionService; exports.ProxyPostMessageStream = _chunk7Y6P5FRNjs.ProxyPostMessageStream; exports.SNAP_APPROVAL_INSTALL = _chunkYP37KUG5js.SNAP_APPROVAL_INSTALL; exports.SNAP_APPROVAL_RESULT = _chunkYP37KUG5js.SNAP_APPROVAL_RESULT; exports.SNAP_APPROVAL_UPDATE = _chunkYP37KUG5js.SNAP_APPROVAL_UPDATE; exports.SnapController = _chunkYP37KUG5js.SnapController; exports.SnapInterfaceController = _chunk2UAU42DOjs.SnapInterfaceController; exports.SnapsRegistryStatus = _chunk4CA3O64Hjs.SnapsRegistryStatus; exports.TARBALL_SIZE_SAFETY_LIMIT = _chunkXWDEGRM5js.TARBALL_SIZE_SAFETY_LIMIT; exports.WebWorkerExecutionService = _chunkE5RRFMGFjs.WebWorkerExecutionService; exports.controllerName = _chunkYP37KUG5js.controllerName; exports.delay = _chunk4DPX4O3Tjs.delay; exports.delayWithTimer = _chunk4DPX4O3Tjs.delayWithTimer; exports.detectSnapLocation = _chunkPT22IXNSjs.detectSnapLocation; exports.fetchNpmMetadata = _chunkXWDEGRM5js.fetchNpmMetadata; exports.fetchSnap = _chunk4DPX4O3Tjs.fetchSnap; exports.getNpmCanonicalBasePath = _chunkXWDEGRM5js.getNpmCanonicalBasePath; exports.getRunnableSnaps = _chunkYYPUPKQYjs.getRunnableSnaps; exports.getSnapFiles = _chunk4DPX4O3Tjs.getSnapFiles; exports.hasTimedOut = _chunk4DPX4O3Tjs.hasTimedOut; exports.permissionsDiff = _chunk4DPX4O3Tjs.permissionsDiff; exports.setDiff = _chunk4DPX4O3Tjs.setDiff; exports.setupMultiplex = _chunkSIW7ZXQFjs.setupMultiplex; exports.withTimeout = _chunk4DPX4O3Tjs.withTimeout;
|
|
128
130
|
//# sourceMappingURL=node.js.map
|