@metamask/snaps-controllers 8.1.1 → 8.3.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 +19 -1
- package/dist/{chunk-TO6ZEBIA.mjs → chunk-3A72M4GC.mjs} +2 -2
- package/dist/{chunk-ZVGZG25U.js → chunk-3AANDIXT.js} +3 -3
- package/dist/{chunk-X5MFC3VX.mjs → chunk-3OJFF5CK.mjs} +2 -2
- package/dist/{chunk-GTDDODNP.mjs → chunk-567BFPSL.mjs} +9 -2
- package/dist/chunk-567BFPSL.mjs.map +1 -0
- package/dist/{chunk-RS3WN6D3.mjs → chunk-7IJQGFT5.mjs} +2 -2
- package/dist/{chunk-U4DZUKNN.js → chunk-7TYZZFHZ.js} +16 -3
- package/dist/chunk-7TYZZFHZ.js.map +1 -0
- package/dist/{chunk-4DPX4O3T.js → chunk-CDTGUNSA.js} +9 -2
- package/dist/chunk-CDTGUNSA.js.map +1 -0
- package/dist/{chunk-74GN6MIJ.js → chunk-FPGAQ6MT.js} +3 -3
- package/dist/{chunk-Y7ZOSPEN.js → chunk-HK4OAMJT.js} +3 -3
- package/dist/{chunk-E5RRFMGF.js → chunk-HQ6HMINL.js} +3 -3
- package/dist/{chunk-WMT2TIOI.mjs → chunk-JCQR3I2Q.mjs} +64 -24
- package/dist/chunk-JCQR3I2Q.mjs.map +1 -0
- package/dist/{chunk-FCRPOA4I.js → chunk-KH72WRHR.js} +3 -3
- package/dist/{chunk-QLEQIXCE.mjs → chunk-LRVK45HN.mjs} +2 -2
- package/dist/{chunk-A6RUJL4K.js → chunk-NRZEYYBQ.js} +72 -32
- package/dist/chunk-NRZEYYBQ.js.map +1 -0
- package/dist/{chunk-2UAU42DO.js → chunk-PIQFC66N.js} +12 -8
- package/dist/chunk-PIQFC66N.js.map +1 -0
- package/dist/{chunk-PXKCSAT6.mjs → chunk-PMZXFAQI.mjs} +2 -2
- package/dist/{chunk-FCCGRGQS.mjs → chunk-QLFH3MC6.mjs} +2 -2
- package/dist/{chunk-QP5LV734.mjs → chunk-QLWR3M4Q.mjs} +9 -5
- package/dist/chunk-QLWR3M4Q.mjs.map +1 -0
- package/dist/{chunk-G4S6UXQ2.js → chunk-RW7AYHRG.js} +3 -3
- package/dist/{chunk-SIW7ZXQF.js → chunk-S775IABY.js} +10 -10
- package/dist/{chunk-P5MRZOGW.mjs → chunk-SAAURQ5A.mjs} +2 -2
- package/dist/{chunk-ZQNBP53T.mjs → chunk-UJJCRV7W.mjs} +16 -3
- package/dist/chunk-UJJCRV7W.mjs.map +1 -0
- package/dist/{chunk-3Y4IJKZY.mjs → chunk-YUWYMNIX.mjs} +2 -2
- package/dist/{chunk-PAFO2KIN.js → chunk-ZRC46TUF.js} +3 -3
- package/dist/cronjob/CronjobController.js +9 -9
- package/dist/cronjob/CronjobController.mjs +9 -9
- package/dist/cronjob/index.js +9 -9
- package/dist/cronjob/index.mjs +9 -9
- package/dist/index.js +12 -10
- package/dist/index.mjs +11 -9
- 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 +4 -2
- package/dist/interface/utils.mjs +5 -3
- package/dist/node.js +14 -12
- package/dist/node.mjs +13 -11
- package/dist/react-native.js +13 -11
- package/dist/react-native.mjs +12 -10
- package/dist/services/AbstractExecutionService.js +3 -3
- package/dist/services/AbstractExecutionService.mjs +2 -2
- package/dist/services/browser.js +8 -8
- package/dist/services/browser.mjs +7 -7
- package/dist/services/iframe/IframeExecutionService.js +4 -4
- package/dist/services/iframe/IframeExecutionService.mjs +3 -3
- package/dist/services/iframe/index.js +4 -4
- package/dist/services/iframe/index.mjs +3 -3
- package/dist/services/index.js +7 -7
- package/dist/services/index.mjs +6 -6
- package/dist/services/node-js/NodeProcessExecutionService.js +8 -8
- package/dist/services/node-js/NodeProcessExecutionService.mjs +7 -7
- package/dist/services/node-js/NodeThreadExecutionService.js +8 -8
- package/dist/services/node-js/NodeThreadExecutionService.mjs +7 -7
- package/dist/services/node-js/index.js +9 -9
- package/dist/services/node-js/index.mjs +8 -8
- package/dist/services/node.js +9 -9
- package/dist/services/node.mjs +8 -8
- package/dist/services/offscreen/OffscreenExecutionService.js +5 -5
- package/dist/services/offscreen/OffscreenExecutionService.mjs +4 -4
- package/dist/services/offscreen/index.js +5 -5
- package/dist/services/offscreen/index.mjs +4 -4
- package/dist/services/proxy/ProxyExecutionService.js +4 -4
- package/dist/services/proxy/ProxyExecutionService.mjs +3 -3
- package/dist/services/react-native.js +8 -8
- package/dist/services/react-native.mjs +7 -7
- package/dist/services/webview/WebViewExecutionService.js +5 -5
- package/dist/services/webview/WebViewExecutionService.mjs +4 -4
- package/dist/services/webview/index.js +5 -5
- package/dist/services/webview/index.mjs +4 -4
- package/dist/services/webworker/WebWorkerExecutionService.js +4 -4
- package/dist/services/webworker/WebWorkerExecutionService.mjs +3 -3
- package/dist/services/webworker/index.js +4 -4
- package/dist/services/webworker/index.mjs +3 -3
- package/dist/snaps/SnapController.js +3 -3
- package/dist/snaps/SnapController.mjs +2 -2
- package/dist/snaps/index.js +3 -3
- package/dist/snaps/index.mjs +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/interface/SnapInterfaceController.d.ts +4 -2
- package/dist/types/interface/utils.d.ts +8 -1
- package/dist/types/snaps/SnapController.d.ts +10 -1
- package/dist/types/utils.d.ts +13 -0
- package/dist/utils.js +4 -2
- package/dist/utils.mjs +3 -1
- package/package.json +7 -7
- package/dist/chunk-2UAU42DO.js.map +0 -1
- package/dist/chunk-4DPX4O3T.js.map +0 -1
- package/dist/chunk-A6RUJL4K.js.map +0 -1
- package/dist/chunk-GTDDODNP.mjs.map +0 -1
- package/dist/chunk-QP5LV734.mjs.map +0 -1
- package/dist/chunk-U4DZUKNN.js.map +0 -1
- package/dist/chunk-WMT2TIOI.mjs.map +0 -1
- package/dist/chunk-ZQNBP53T.mjs.map +0 -1
- /package/dist/{chunk-TO6ZEBIA.mjs.map → chunk-3A72M4GC.mjs.map} +0 -0
- /package/dist/{chunk-ZVGZG25U.js.map → chunk-3AANDIXT.js.map} +0 -0
- /package/dist/{chunk-X5MFC3VX.mjs.map → chunk-3OJFF5CK.mjs.map} +0 -0
- /package/dist/{chunk-RS3WN6D3.mjs.map → chunk-7IJQGFT5.mjs.map} +0 -0
- /package/dist/{chunk-74GN6MIJ.js.map → chunk-FPGAQ6MT.js.map} +0 -0
- /package/dist/{chunk-Y7ZOSPEN.js.map → chunk-HK4OAMJT.js.map} +0 -0
- /package/dist/{chunk-E5RRFMGF.js.map → chunk-HQ6HMINL.js.map} +0 -0
- /package/dist/{chunk-FCRPOA4I.js.map → chunk-KH72WRHR.js.map} +0 -0
- /package/dist/{chunk-QLEQIXCE.mjs.map → chunk-LRVK45HN.mjs.map} +0 -0
- /package/dist/{chunk-PXKCSAT6.mjs.map → chunk-PMZXFAQI.mjs.map} +0 -0
- /package/dist/{chunk-FCCGRGQS.mjs.map → chunk-QLFH3MC6.mjs.map} +0 -0
- /package/dist/{chunk-G4S6UXQ2.js.map → chunk-RW7AYHRG.js.map} +0 -0
- /package/dist/{chunk-SIW7ZXQF.js.map → chunk-S775IABY.js.map} +0 -0
- /package/dist/{chunk-P5MRZOGW.mjs.map → chunk-SAAURQ5A.mjs.map} +0 -0
- /package/dist/{chunk-3Y4IJKZY.mjs.map → chunk-YUWYMNIX.mjs.map} +0 -0
- /package/dist/{chunk-PAFO2KIN.js.map → chunk-ZRC46TUF.js.map} +0 -0
|
@@ -4,7 +4,7 @@ var _chunkNXZVKBSVjs = require('./chunk-NXZVKBSV.js');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCDTGUNSAjs = require('./chunk-CDTGUNSA.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkBOFPNIRXjs = require('./chunk-BOFPNIRX.js');
|
|
@@ -101,7 +101,7 @@ var AbstractExecutionService = class {
|
|
|
101
101
|
throw new Error(`Job with id "${jobId}" not found.`);
|
|
102
102
|
}
|
|
103
103
|
try {
|
|
104
|
-
const result = await
|
|
104
|
+
const result = await _chunkCDTGUNSAjs.withTimeout.call(void 0,
|
|
105
105
|
this.command(jobId, {
|
|
106
106
|
jsonrpc: "2.0",
|
|
107
107
|
method: "terminate",
|
|
@@ -110,7 +110,7 @@ var AbstractExecutionService = class {
|
|
|
110
110
|
}),
|
|
111
111
|
_chunkEXN2TFDJjs.__privateGet.call(void 0, this, _terminationTimeout)
|
|
112
112
|
);
|
|
113
|
-
if (result ===
|
|
113
|
+
if (result === _chunkCDTGUNSAjs.hasTimedOut || result !== "OK") {
|
|
114
114
|
_snapsutils.logError.call(void 0, `Job "${jobId}" failed to terminate gracefully.`, result);
|
|
115
115
|
}
|
|
116
116
|
} catch {
|
|
@@ -169,8 +169,8 @@ var AbstractExecutionService = class {
|
|
|
169
169
|
* @throws If the execution service returns an error or execution times out.
|
|
170
170
|
*/
|
|
171
171
|
async initStreams(jobId, timer) {
|
|
172
|
-
const result = await
|
|
173
|
-
if (result ===
|
|
172
|
+
const result = await _chunkCDTGUNSAjs.withTimeout.call(void 0, this.initEnvStream(jobId), timer);
|
|
173
|
+
if (result === _chunkCDTGUNSAjs.hasTimedOut) {
|
|
174
174
|
this.terminateJob({ id: jobId });
|
|
175
175
|
throw new Error("The Snaps execution environment failed to start.");
|
|
176
176
|
}
|
|
@@ -272,7 +272,7 @@ var AbstractExecutionService = class {
|
|
|
272
272
|
const job = await this.initJob(jobId, timer);
|
|
273
273
|
_chunkEXN2TFDJjs.__privateMethod.call(void 0, this, _mapSnapAndJob, mapSnapAndJob_fn).call(this, snapId, job.id);
|
|
274
274
|
if (_chunkEXN2TFDJjs.__privateGet.call(void 0, this, _usePing)) {
|
|
275
|
-
const pingResult = await
|
|
275
|
+
const pingResult = await _chunkCDTGUNSAjs.withTimeout.call(void 0,
|
|
276
276
|
this.command(job.id, {
|
|
277
277
|
jsonrpc: "2.0",
|
|
278
278
|
method: "ping",
|
|
@@ -280,14 +280,14 @@ var AbstractExecutionService = class {
|
|
|
280
280
|
}),
|
|
281
281
|
_chunkEXN2TFDJjs.__privateGet.call(void 0, this, _pingTimeout)
|
|
282
282
|
);
|
|
283
|
-
if (pingResult ===
|
|
283
|
+
if (pingResult === _chunkCDTGUNSAjs.hasTimedOut) {
|
|
284
284
|
throw new Error("The Snaps execution environment failed to start.");
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
const rpcStream = job.streams.rpc;
|
|
288
288
|
this.setupSnapProvider(snapId, rpcStream);
|
|
289
289
|
const remainingTime = timer.remaining;
|
|
290
|
-
const result = await
|
|
290
|
+
const result = await _chunkCDTGUNSAjs.withTimeout.call(void 0,
|
|
291
291
|
this.command(job.id, {
|
|
292
292
|
jsonrpc: "2.0",
|
|
293
293
|
method: "executeSnap",
|
|
@@ -296,7 +296,7 @@ var AbstractExecutionService = class {
|
|
|
296
296
|
}),
|
|
297
297
|
remainingTime
|
|
298
298
|
);
|
|
299
|
-
if (result ===
|
|
299
|
+
if (result === _chunkCDTGUNSAjs.hasTimedOut) {
|
|
300
300
|
throw new Error(`${snapId} failed to start.`);
|
|
301
301
|
}
|
|
302
302
|
_chunkEXN2TFDJjs.__privateMethod.call(void 0, this, _createSnapHooks, createSnapHooks_fn).call(this, snapId, job.id);
|
|
@@ -397,4 +397,4 @@ function setupMultiplex(connectionStream, streamName) {
|
|
|
397
397
|
|
|
398
398
|
|
|
399
399
|
exports.AbstractExecutionService = AbstractExecutionService; exports.setupMultiplex = setupMultiplex;
|
|
400
|
-
//# sourceMappingURL=chunk-
|
|
400
|
+
//# sourceMappingURL=chunk-S775IABY.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-IGC4E7PI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ProxyExecutionService
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3A72M4GC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__privateAdd,
|
|
9
9
|
__privateGet,
|
|
@@ -55,4 +55,4 @@ ensureWebViewLoaded_fn = async function() {
|
|
|
55
55
|
export {
|
|
56
56
|
WebViewExecutionService
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
58
|
+
//# sourceMappingURL=chunk-SAAURQ5A.mjs.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { assert } from "@metamask/snaps-sdk";
|
|
3
3
|
import { isJSXElementUnsafe } from "@metamask/snaps-sdk/jsx";
|
|
4
4
|
import {
|
|
5
|
+
getJsonSizeUnsafe,
|
|
5
6
|
getJsxChildren,
|
|
6
7
|
getJsxElementFromComponent
|
|
7
8
|
} from "@metamask/snaps-utils";
|
|
@@ -65,16 +66,28 @@ function constructState(oldState, component, newState = {}) {
|
|
|
65
66
|
);
|
|
66
67
|
return newState;
|
|
67
68
|
}
|
|
68
|
-
if (component.type === "Input") {
|
|
69
|
+
if (component.type === "Input" || component.type === "Dropdown") {
|
|
69
70
|
assertNameIsUnique(newState, component.props.name);
|
|
70
71
|
newState[component.props.name] = constructInputState(oldState, component);
|
|
71
72
|
}
|
|
72
73
|
return newState;
|
|
73
74
|
}
|
|
75
|
+
var MAX_CONTEXT_SIZE = 1e6;
|
|
76
|
+
function validateInterfaceContext(context) {
|
|
77
|
+
if (!context) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const size = getJsonSizeUnsafe(context);
|
|
81
|
+
assert(
|
|
82
|
+
size <= MAX_CONTEXT_SIZE,
|
|
83
|
+
`A Snap interface context may not be larger than ${MAX_CONTEXT_SIZE / 1e6} MB.`
|
|
84
|
+
);
|
|
85
|
+
}
|
|
74
86
|
|
|
75
87
|
export {
|
|
76
88
|
getJsxInterface,
|
|
77
89
|
assertNameIsUnique,
|
|
78
|
-
constructState
|
|
90
|
+
constructState,
|
|
91
|
+
validateInterfaceContext
|
|
79
92
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-UJJCRV7W.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 InterfaceContext,\n} from '@metamask/snaps-sdk';\nimport type {\n ButtonElement,\n DropdownElement,\n FieldElement,\n InputElement,\n JSXElement,\n} from '@metamask/snaps-sdk/jsx';\nimport { isJSXElementUnsafe } from '@metamask/snaps-sdk/jsx';\nimport {\n getJsonSizeUnsafe,\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(\n oldState: InterfaceState,\n element: InputElement | DropdownElement,\n) {\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 | DropdownElement,\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' || component.type === 'Dropdown') {\n assertNameIsUnique(newState, component.props.name);\n newState[component.props.name] = constructInputState(oldState, component);\n }\n\n return newState;\n}\n\nconst MAX_CONTEXT_SIZE = 1_000_000; // 1 mb\n\n/**\n * Validate a JSON blob to be used as the interface context.\n *\n * @param context - The JSON blob.\n * @throws If the JSON blob is too large.\n */\nexport function validateInterfaceContext(context?: InterfaceContext) {\n if (!context) {\n return;\n }\n\n // We assume the validity of this JSON to be validated by the caller.\n // E.g., in the RPC method implementation.\n const size = getJsonSizeUnsafe(context);\n assert(\n size <= MAX_CONTEXT_SIZE,\n `A Snap interface context may not be larger than ${\n MAX_CONTEXT_SIZE / 1000000\n } MB.`,\n );\n}\n"],"mappings":";AAAA,SAAS,cAAc;AAcvB,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,EACA;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,oBACP,UACA,SACA;AACA,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,WAAW,UAAU,SAAS,YAAY;AAC/D,uBAAmB,UAAU,UAAU,MAAM,IAAI;AACjD,aAAS,UAAU,MAAM,IAAI,IAAI,oBAAoB,UAAU,SAAS;AAAA,EAC1E;AAEA,SAAO;AACT;AAEA,IAAM,mBAAmB;AAQlB,SAAS,yBAAyB,SAA4B;AACnE,MAAI,CAAC,SAAS;AACZ;AAAA,EACF;AAIA,QAAM,OAAO,kBAAkB,OAAO;AACtC;AAAA,IACE,QAAQ;AAAA,IACR,mDACE,mBAAmB,GACrB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbstractExecutionService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QLFH3MC6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__require
|
|
6
6
|
} from "./chunk-YRZVIDCF.mjs";
|
|
@@ -36,4 +36,4 @@ var NodeThreadExecutionService = class extends AbstractExecutionService {
|
|
|
36
36
|
export {
|
|
37
37
|
NodeThreadExecutionService
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-YUWYMNIX.mjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkS775IABYjs = require('./chunk-S775IABY.js');
|
|
4
4
|
|
|
5
5
|
// src/services/iframe/IframeExecutionService.ts
|
|
6
6
|
var _postmessagestream = require('@metamask/post-message-stream');
|
|
7
7
|
var _snapsutils = require('@metamask/snaps-utils');
|
|
8
|
-
var IframeExecutionService = class extends
|
|
8
|
+
var IframeExecutionService = class extends _chunkS775IABYjs.AbstractExecutionService {
|
|
9
9
|
constructor({
|
|
10
10
|
iframeUrl,
|
|
11
11
|
messenger,
|
|
@@ -35,4 +35,4 @@ var IframeExecutionService = class extends _chunkSIW7ZXQFjs.AbstractExecutionSer
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
exports.IframeExecutionService = IframeExecutionService;
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-ZRC46TUF.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var _chunkGRBWVPLFjs = require('../chunk-GRBWVPLF.js');
|
|
5
5
|
require('../chunk-JAUAKTUL.js');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-NRZEYYBQ.js');
|
|
7
7
|
require('../chunk-WEY7ICES.js');
|
|
8
8
|
require('../chunk-PT22IXNS.js');
|
|
9
9
|
require('../chunk-LWBPKSU2.js');
|
|
@@ -16,22 +16,22 @@ 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-PIQFC66N.js');
|
|
20
|
+
require('../chunk-7TYZZFHZ.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-HQ6HMINL.js');
|
|
25
25
|
require('../chunk-HOY6NKQR.js');
|
|
26
|
-
require('../chunk-
|
|
27
|
-
require('../chunk-
|
|
28
|
-
require('../chunk-
|
|
29
|
-
require('../chunk-
|
|
26
|
+
require('../chunk-ZRC46TUF.js');
|
|
27
|
+
require('../chunk-HK4OAMJT.js');
|
|
28
|
+
require('../chunk-KH72WRHR.js');
|
|
29
|
+
require('../chunk-S775IABY.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-
|
|
34
|
+
require('../chunk-CDTGUNSA.js');
|
|
35
35
|
require('../chunk-BOFPNIRX.js');
|
|
36
36
|
require('../chunk-EXN2TFDJ.js');
|
|
37
37
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DAILY_TIMEOUT
|
|
4
4
|
} from "../chunk-XSFI32LB.mjs";
|
|
5
5
|
import "../chunk-BAEXVO3U.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-JCQR3I2Q.mjs";
|
|
7
7
|
import "../chunk-QL3QGUTM.mjs";
|
|
8
8
|
import "../chunk-42ODFZSH.mjs";
|
|
9
9
|
import "../chunk-B3UTLNYS.mjs";
|
|
@@ -16,22 +16,22 @@ 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-QLWR3M4Q.mjs";
|
|
20
|
+
import "../chunk-UJJCRV7W.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-7IJQGFT5.mjs";
|
|
25
25
|
import "../chunk-KCMULJ2M.mjs";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-LRVK45HN.mjs";
|
|
27
|
+
import "../chunk-3OJFF5CK.mjs";
|
|
28
|
+
import "../chunk-3A72M4GC.mjs";
|
|
29
|
+
import "../chunk-QLFH3MC6.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-
|
|
34
|
+
import "../chunk-567BFPSL.mjs";
|
|
35
35
|
import "../chunk-XO7KDFBY.mjs";
|
|
36
36
|
import "../chunk-YRZVIDCF.mjs";
|
|
37
37
|
export {
|
package/dist/cronjob/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var _chunkGRBWVPLFjs = require('../chunk-GRBWVPLF.js');
|
|
5
5
|
require('../chunk-JAUAKTUL.js');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-NRZEYYBQ.js');
|
|
7
7
|
require('../chunk-WEY7ICES.js');
|
|
8
8
|
require('../chunk-PT22IXNS.js');
|
|
9
9
|
require('../chunk-LWBPKSU2.js');
|
|
@@ -16,22 +16,22 @@ 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-PIQFC66N.js');
|
|
20
|
+
require('../chunk-7TYZZFHZ.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-HQ6HMINL.js');
|
|
25
25
|
require('../chunk-HOY6NKQR.js');
|
|
26
|
-
require('../chunk-
|
|
27
|
-
require('../chunk-
|
|
28
|
-
require('../chunk-
|
|
29
|
-
require('../chunk-
|
|
26
|
+
require('../chunk-ZRC46TUF.js');
|
|
27
|
+
require('../chunk-HK4OAMJT.js');
|
|
28
|
+
require('../chunk-KH72WRHR.js');
|
|
29
|
+
require('../chunk-S775IABY.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-
|
|
34
|
+
require('../chunk-CDTGUNSA.js');
|
|
35
35
|
require('../chunk-BOFPNIRX.js');
|
|
36
36
|
require('../chunk-EXN2TFDJ.js');
|
|
37
37
|
|
package/dist/cronjob/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DAILY_TIMEOUT
|
|
4
4
|
} from "../chunk-XSFI32LB.mjs";
|
|
5
5
|
import "../chunk-BAEXVO3U.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-JCQR3I2Q.mjs";
|
|
7
7
|
import "../chunk-QL3QGUTM.mjs";
|
|
8
8
|
import "../chunk-42ODFZSH.mjs";
|
|
9
9
|
import "../chunk-B3UTLNYS.mjs";
|
|
@@ -16,22 +16,22 @@ 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-QLWR3M4Q.mjs";
|
|
20
|
+
import "../chunk-UJJCRV7W.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-7IJQGFT5.mjs";
|
|
25
25
|
import "../chunk-KCMULJ2M.mjs";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-LRVK45HN.mjs";
|
|
27
|
+
import "../chunk-3OJFF5CK.mjs";
|
|
28
|
+
import "../chunk-3A72M4GC.mjs";
|
|
29
|
+
import "../chunk-QLFH3MC6.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-
|
|
34
|
+
import "../chunk-567BFPSL.mjs";
|
|
35
35
|
import "../chunk-XO7KDFBY.mjs";
|
|
36
36
|
import "../chunk-YRZVIDCF.mjs";
|
|
37
37
|
export {
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ require('./chunk-JAUAKTUL.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkNRZEYYBQjs = require('./chunk-NRZEYYBQ.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 _chunkPIQFC66Njs = require('./chunk-PIQFC66N.js');
|
|
47
|
+
require('./chunk-7TYZZFHZ.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 _chunkHQ6HMINLjs = require('./chunk-HQ6HMINL.js');
|
|
54
54
|
require('./chunk-HOY6NKQR.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkZRC46TUFjs = require('./chunk-ZRC46TUF.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
61
|
-
require('./chunk-
|
|
60
|
+
var _chunkHK4OAMJTjs = require('./chunk-HK4OAMJT.js');
|
|
61
|
+
require('./chunk-KH72WRHR.js');
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkS775IABYjs = require('./chunk-S775IABY.js');
|
|
66
66
|
require('./chunk-OIEUL55W.js');
|
|
67
67
|
|
|
68
68
|
|
|
@@ -78,7 +78,8 @@ require('./chunk-NXZVKBSV.js');
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
|
|
82
|
+
var _chunkCDTGUNSAjs = require('./chunk-CDTGUNSA.js');
|
|
82
83
|
require('./chunk-BOFPNIRX.js');
|
|
83
84
|
require('./chunk-EXN2TFDJ.js');
|
|
84
85
|
|
|
@@ -116,5 +117,6 @@ require('./chunk-EXN2TFDJ.js');
|
|
|
116
117
|
|
|
117
118
|
|
|
118
119
|
|
|
119
|
-
|
|
120
|
+
|
|
121
|
+
exports.AbstractExecutionService = _chunkS775IABYjs.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 = _chunkZRC46TUFjs.IframeExecutionService; exports.JsonSnapsRegistry = _chunkCPUUURMTjs.JsonSnapsRegistry; exports.LocalLocation = _chunkLWBPKSU2js.LocalLocation; exports.NpmLocation = _chunkXWDEGRM5js.NpmLocation; exports.OffscreenExecutionService = _chunkHK4OAMJTjs.OffscreenExecutionService; exports.ProxyPostMessageStream = _chunk7Y6P5FRNjs.ProxyPostMessageStream; exports.SNAP_APPROVAL_INSTALL = _chunkNRZEYYBQjs.SNAP_APPROVAL_INSTALL; exports.SNAP_APPROVAL_RESULT = _chunkNRZEYYBQjs.SNAP_APPROVAL_RESULT; exports.SNAP_APPROVAL_UPDATE = _chunkNRZEYYBQjs.SNAP_APPROVAL_UPDATE; exports.SnapController = _chunkNRZEYYBQjs.SnapController; exports.SnapInterfaceController = _chunkPIQFC66Njs.SnapInterfaceController; exports.SnapsRegistryStatus = _chunk4CA3O64Hjs.SnapsRegistryStatus; exports.TARBALL_SIZE_SAFETY_LIMIT = _chunkXWDEGRM5js.TARBALL_SIZE_SAFETY_LIMIT; exports.WebWorkerExecutionService = _chunkHQ6HMINLjs.WebWorkerExecutionService; exports.calculateConnectionsChange = _chunkCDTGUNSAjs.calculateConnectionsChange; exports.controllerName = _chunkNRZEYYBQjs.controllerName; exports.delay = _chunkCDTGUNSAjs.delay; exports.delayWithTimer = _chunkCDTGUNSAjs.delayWithTimer; exports.detectSnapLocation = _chunkPT22IXNSjs.detectSnapLocation; exports.fetchNpmMetadata = _chunkXWDEGRM5js.fetchNpmMetadata; exports.fetchSnap = _chunkCDTGUNSAjs.fetchSnap; exports.getNpmCanonicalBasePath = _chunkXWDEGRM5js.getNpmCanonicalBasePath; exports.getRunnableSnaps = _chunkYYPUPKQYjs.getRunnableSnaps; exports.getSnapFiles = _chunkCDTGUNSAjs.getSnapFiles; exports.hasTimedOut = _chunkCDTGUNSAjs.hasTimedOut; exports.permissionsDiff = _chunkCDTGUNSAjs.permissionsDiff; exports.setDiff = _chunkCDTGUNSAjs.setDiff; exports.setupMultiplex = _chunkS775IABYjs.setupMultiplex; exports.withTimeout = _chunkCDTGUNSAjs.withTimeout;
|
|
120
122
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
SNAP_APPROVAL_UPDATE,
|
|
10
10
|
SnapController,
|
|
11
11
|
controllerName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JCQR3I2Q.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-QLWR3M4Q.mjs";
|
|
47
|
+
import "./chunk-UJJCRV7W.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-7IJQGFT5.mjs";
|
|
54
54
|
import "./chunk-KCMULJ2M.mjs";
|
|
55
55
|
import {
|
|
56
56
|
IframeExecutionService
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-LRVK45HN.mjs";
|
|
58
58
|
import {
|
|
59
59
|
OffscreenExecutionService
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-3OJFF5CK.mjs";
|
|
61
|
+
import "./chunk-3A72M4GC.mjs";
|
|
62
62
|
import {
|
|
63
63
|
AbstractExecutionService,
|
|
64
64
|
setupMultiplex
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-QLFH3MC6.mjs";
|
|
66
66
|
import "./chunk-3RNW7OKG.mjs";
|
|
67
67
|
import {
|
|
68
68
|
ProxyPostMessageStream
|
|
@@ -70,6 +70,7 @@ import {
|
|
|
70
70
|
import "./chunk-6EZSNS4O.mjs";
|
|
71
71
|
import "./chunk-4HVWEABQ.mjs";
|
|
72
72
|
import {
|
|
73
|
+
calculateConnectionsChange,
|
|
73
74
|
delay,
|
|
74
75
|
delayWithTimer,
|
|
75
76
|
fetchSnap,
|
|
@@ -78,7 +79,7 @@ import {
|
|
|
78
79
|
permissionsDiff,
|
|
79
80
|
setDiff,
|
|
80
81
|
withTimeout
|
|
81
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-567BFPSL.mjs";
|
|
82
83
|
import "./chunk-XO7KDFBY.mjs";
|
|
83
84
|
import "./chunk-YRZVIDCF.mjs";
|
|
84
85
|
export {
|
|
@@ -102,6 +103,7 @@ export {
|
|
|
102
103
|
SnapsRegistryStatus,
|
|
103
104
|
TARBALL_SIZE_SAFETY_LIMIT,
|
|
104
105
|
WebWorkerExecutionService,
|
|
106
|
+
calculateConnectionsChange,
|
|
105
107
|
controllerName,
|
|
106
108
|
delay,
|
|
107
109
|
delayWithTimer,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkPIQFC66Njs = require('../chunk-PIQFC66N.js');
|
|
4
|
+
require('../chunk-7TYZZFHZ.js');
|
|
5
5
|
require('../chunk-EXN2TFDJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.SnapInterfaceController =
|
|
8
|
+
exports.SnapInterfaceController = _chunkPIQFC66Njs.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 _chunkPIQFC66Njs = require('../chunk-PIQFC66N.js');
|
|
5
|
+
require('../chunk-7TYZZFHZ.js');
|
|
6
6
|
require('../chunk-EXN2TFDJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.SnapInterfaceController =
|
|
9
|
+
exports.SnapInterfaceController = _chunkPIQFC66Njs.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-QLWR3M4Q.mjs";
|
|
5
|
+
import "../chunk-UJJCRV7W.mjs";
|
|
6
6
|
import "../chunk-YRZVIDCF.mjs";
|
|
7
7
|
export {
|
|
8
8
|
SnapInterfaceController
|
package/dist/interface/utils.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
var _chunk7TYZZFHZjs = require('../chunk-7TYZZFHZ.js');
|
|
6
7
|
require('../chunk-EXN2TFDJ.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
|
|
13
|
+
exports.assertNameIsUnique = _chunk7TYZZFHZjs.assertNameIsUnique; exports.constructState = _chunk7TYZZFHZjs.constructState; exports.getJsxInterface = _chunk7TYZZFHZjs.getJsxInterface; exports.validateInterfaceContext = _chunk7TYZZFHZjs.validateInterfaceContext;
|
|
12
14
|
//# sourceMappingURL=utils.js.map
|
package/dist/interface/utils.mjs
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNameIsUnique,
|
|
3
3
|
constructState,
|
|
4
|
-
getJsxInterface
|
|
5
|
-
|
|
4
|
+
getJsxInterface,
|
|
5
|
+
validateInterfaceContext
|
|
6
|
+
} from "../chunk-UJJCRV7W.mjs";
|
|
6
7
|
import "../chunk-YRZVIDCF.mjs";
|
|
7
8
|
export {
|
|
8
9
|
assertNameIsUnique,
|
|
9
10
|
constructState,
|
|
10
|
-
getJsxInterface
|
|
11
|
+
getJsxInterface,
|
|
12
|
+
validateInterfaceContext
|
|
11
13
|
};
|
|
12
14
|
//# sourceMappingURL=utils.mjs.map
|
package/dist/node.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
require('./chunk-JW7WBUL7.js');
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk3AANDIXTjs = require('./chunk-3AANDIXT.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkRW7AYHRGjs = require('./chunk-RW7AYHRG.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ require('./chunk-JAUAKTUL.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkNRZEYYBQjs = require('./chunk-NRZEYYBQ.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 _chunkPIQFC66Njs = require('./chunk-PIQFC66N.js');
|
|
55
|
+
require('./chunk-7TYZZFHZ.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 _chunkHQ6HMINLjs = require('./chunk-HQ6HMINL.js');
|
|
62
62
|
require('./chunk-HOY6NKQR.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkZRC46TUFjs = require('./chunk-ZRC46TUF.js');
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
69
|
-
require('./chunk-
|
|
68
|
+
var _chunkHK4OAMJTjs = require('./chunk-HK4OAMJT.js');
|
|
69
|
+
require('./chunk-KH72WRHR.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunkS775IABYjs = require('./chunk-S775IABY.js');
|
|
74
74
|
require('./chunk-OIEUL55W.js');
|
|
75
75
|
|
|
76
76
|
|
|
@@ -86,7 +86,8 @@ require('./chunk-NXZVKBSV.js');
|
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
|
|
90
|
+
var _chunkCDTGUNSAjs = require('./chunk-CDTGUNSA.js');
|
|
90
91
|
require('./chunk-BOFPNIRX.js');
|
|
91
92
|
require('./chunk-EXN2TFDJ.js');
|
|
92
93
|
|
|
@@ -126,5 +127,6 @@ require('./chunk-EXN2TFDJ.js');
|
|
|
126
127
|
|
|
127
128
|
|
|
128
129
|
|
|
129
|
-
|
|
130
|
+
|
|
131
|
+
exports.AbstractExecutionService = _chunkS775IABYjs.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 = _chunkZRC46TUFjs.IframeExecutionService; exports.JsonSnapsRegistry = _chunkCPUUURMTjs.JsonSnapsRegistry; exports.LocalLocation = _chunkLWBPKSU2js.LocalLocation; exports.NodeProcessExecutionService = _chunk3AANDIXTjs.NodeProcessExecutionService; exports.NodeThreadExecutionService = _chunkRW7AYHRGjs.NodeThreadExecutionService; exports.NpmLocation = _chunkXWDEGRM5js.NpmLocation; exports.OffscreenExecutionService = _chunkHK4OAMJTjs.OffscreenExecutionService; exports.ProxyPostMessageStream = _chunk7Y6P5FRNjs.ProxyPostMessageStream; exports.SNAP_APPROVAL_INSTALL = _chunkNRZEYYBQjs.SNAP_APPROVAL_INSTALL; exports.SNAP_APPROVAL_RESULT = _chunkNRZEYYBQjs.SNAP_APPROVAL_RESULT; exports.SNAP_APPROVAL_UPDATE = _chunkNRZEYYBQjs.SNAP_APPROVAL_UPDATE; exports.SnapController = _chunkNRZEYYBQjs.SnapController; exports.SnapInterfaceController = _chunkPIQFC66Njs.SnapInterfaceController; exports.SnapsRegistryStatus = _chunk4CA3O64Hjs.SnapsRegistryStatus; exports.TARBALL_SIZE_SAFETY_LIMIT = _chunkXWDEGRM5js.TARBALL_SIZE_SAFETY_LIMIT; exports.WebWorkerExecutionService = _chunkHQ6HMINLjs.WebWorkerExecutionService; exports.calculateConnectionsChange = _chunkCDTGUNSAjs.calculateConnectionsChange; exports.controllerName = _chunkNRZEYYBQjs.controllerName; exports.delay = _chunkCDTGUNSAjs.delay; exports.delayWithTimer = _chunkCDTGUNSAjs.delayWithTimer; exports.detectSnapLocation = _chunkPT22IXNSjs.detectSnapLocation; exports.fetchNpmMetadata = _chunkXWDEGRM5js.fetchNpmMetadata; exports.fetchSnap = _chunkCDTGUNSAjs.fetchSnap; exports.getNpmCanonicalBasePath = _chunkXWDEGRM5js.getNpmCanonicalBasePath; exports.getRunnableSnaps = _chunkYYPUPKQYjs.getRunnableSnaps; exports.getSnapFiles = _chunkCDTGUNSAjs.getSnapFiles; exports.hasTimedOut = _chunkCDTGUNSAjs.hasTimedOut; exports.permissionsDiff = _chunkCDTGUNSAjs.permissionsDiff; exports.setDiff = _chunkCDTGUNSAjs.setDiff; exports.setupMultiplex = _chunkS775IABYjs.setupMultiplex; exports.withTimeout = _chunkCDTGUNSAjs.withTimeout;
|
|
130
132
|
//# sourceMappingURL=node.js.map
|