@metamask/snaps-utils 7.0.1 → 7.0.3
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 +12 -1
- package/dist/{chunk-CNNMLOQ6.js → chunk-AWRMYDIN.js} +4 -4
- package/dist/{chunk-772OPTGX.js → chunk-EX4PPLND.js} +14 -8
- package/dist/chunk-EX4PPLND.js.map +1 -0
- package/dist/{chunk-44GPX66J.mjs → chunk-HDZ3BJBL.mjs} +14 -8
- package/dist/chunk-HDZ3BJBL.mjs.map +1 -0
- package/dist/{chunk-WF56W2AR.mjs → chunk-LGT3PBPZ.mjs} +2 -2
- package/dist/{chunk-4BDR6KRH.js → chunk-M3KAAQFK.js} +3 -2
- package/dist/chunk-M3KAAQFK.js.map +1 -0
- package/dist/{chunk-MCEKOGEG.mjs → chunk-MNCFAD4E.mjs} +4 -3
- package/dist/chunk-MNCFAD4E.mjs.map +1 -0
- package/dist/{chunk-224DMTNJ.mjs → chunk-PIG67G67.mjs} +2 -2
- package/dist/{chunk-Q7RCL5IE.js → chunk-YMUOYQFU.js} +3 -3
- package/dist/icon.js +2 -2
- package/dist/icon.mjs +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/manifest/manifest.js +3 -3
- package/dist/manifest/manifest.mjs +2 -2
- package/dist/manifest/node.js +3 -3
- package/dist/manifest/node.mjs +2 -2
- package/dist/node.js +5 -5
- package/dist/node.mjs +4 -4
- package/dist/npm.js +3 -3
- package/dist/npm.mjs +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/handlers.d.ts +28 -14
- package/dist/ui.js +2 -2
- package/dist/ui.mjs +1 -1
- package/dist/validation.js +3 -3
- package/dist/validation.mjs +2 -2
- package/package.json +5 -4
- package/dist/chunk-44GPX66J.mjs.map +0 -1
- package/dist/chunk-4BDR6KRH.js.map +0 -1
- package/dist/chunk-772OPTGX.js.map +0 -1
- package/dist/chunk-MCEKOGEG.mjs.map +0 -1
- /package/dist/{chunk-CNNMLOQ6.js.map → chunk-AWRMYDIN.js.map} +0 -0
- /package/dist/{chunk-WF56W2AR.mjs.map → chunk-LGT3PBPZ.mjs.map} +0 -0
- /package/dist/{chunk-224DMTNJ.mjs.map → chunk-PIG67G67.mjs.map} +0 -0
- /package/dist/{chunk-Q7RCL5IE.js.map → chunk-YMUOYQFU.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [7.0.3]
|
|
10
|
+
### Changed
|
|
11
|
+
- Update markdown parsing for better link validation ([#2261](https://github.com/MetaMask/snaps/pull/2261))
|
|
12
|
+
- Bump `@metamask/snaps-registry` to `^3.0.1` ([#2255](https://github.com/MetaMask/snaps/pull/2255))
|
|
13
|
+
|
|
14
|
+
## [7.0.2]
|
|
15
|
+
### Fixed
|
|
16
|
+
- Remove usage of `Buffer` from browser entrypoint ([#2238](https://github.com/MetaMask/snaps/pull/2238))
|
|
17
|
+
|
|
9
18
|
## [7.0.1]
|
|
10
19
|
### Fixed
|
|
11
20
|
- Fix minor build configuration problems ([#2220](https://github.com/MetaMask/snaps/pull/2220))
|
|
@@ -190,7 +199,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
190
199
|
- The version of the package no longer needs to match the version of all other
|
|
191
200
|
MetaMask Snaps packages.
|
|
192
201
|
|
|
193
|
-
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.0.
|
|
202
|
+
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.0.3...HEAD
|
|
203
|
+
[7.0.3]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.0.2...@metamask/snaps-utils@7.0.3
|
|
204
|
+
[7.0.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.0.1...@metamask/snaps-utils@7.0.2
|
|
194
205
|
[7.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.0.0...@metamask/snaps-utils@7.0.1
|
|
195
206
|
[7.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@6.1.0...@metamask/snaps-utils@7.0.0
|
|
196
207
|
[6.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@6.0.0...@metamask/snaps-utils@6.1.0
|
|
@@ -9,7 +9,7 @@ var _chunkTG4BDSYJjs = require('./chunk-TG4BDSYJ.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkM3KAAQFKjs = require('./chunk-M3KAAQFK.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -139,7 +139,7 @@ ${missingRecommendedFields.reduce(
|
|
|
139
139
|
"No icon found in the Snap manifest. It is recommended to include an icon for the Snap. See https://docs.metamask.io/snaps/how-to/design-a-snap/#guidelines-at-a-glance for more information."
|
|
140
140
|
);
|
|
141
141
|
}
|
|
142
|
-
const iconDimensions = snapFiles.svgIcon &&
|
|
142
|
+
const iconDimensions = snapFiles.svgIcon && _chunkM3KAAQFKjs.getSvgDimensions.call(void 0, snapFiles.svgIcon.toString());
|
|
143
143
|
if (iconDimensions && iconDimensions.height !== iconDimensions.width) {
|
|
144
144
|
warnings.push(
|
|
145
145
|
"The icon in the Snap manifest is not square. It is recommended to use a square icon for the Snap."
|
|
@@ -367,7 +367,7 @@ async function validateNpmSnap(snapFiles, errorPrefix) {
|
|
|
367
367
|
});
|
|
368
368
|
if (svgIcon) {
|
|
369
369
|
try {
|
|
370
|
-
|
|
370
|
+
_chunkM3KAAQFKjs.assertIsSnapIcon.call(void 0, svgIcon);
|
|
371
371
|
} catch (error) {
|
|
372
372
|
throw new Error(`${errorPrefix ?? ""}${error.message}`);
|
|
373
373
|
}
|
|
@@ -406,4 +406,4 @@ async function validateNpmSnap(snapFiles, errorPrefix) {
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
exports.EXPECTED_SNAP_FILES = EXPECTED_SNAP_FILES; exports.SnapFileNameFromKey = SnapFileNameFromKey; exports.validateNpmSnap = validateNpmSnap; exports.checkManifest = checkManifest; exports.fixManifest = fixManifest; exports.getSnapSourceCode = getSnapSourceCode; exports.getSnapIcon = getSnapIcon; exports.getSnapFilePaths = getSnapFilePaths; exports.getSnapFiles = getSnapFiles; exports.getWritableManifest = getWritableManifest; exports.validateNpmSnapManifest = validateNpmSnapManifest;
|
|
409
|
-
//# sourceMappingURL=chunk-
|
|
409
|
+
//# sourceMappingURL=chunk-AWRMYDIN.js.map
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/ui.ts
|
|
2
2
|
var _snapssdk = require('@metamask/snaps-sdk');
|
|
3
3
|
var _utils = require('@metamask/utils');
|
|
4
|
-
var
|
|
4
|
+
var _marked = require('marked');
|
|
5
5
|
var ALLOWED_PROTOCOLS = ["https:", "mailto:"];
|
|
6
|
-
function
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (
|
|
11
|
-
|
|
6
|
+
function getMarkdownLinks(text) {
|
|
7
|
+
const tokens = _marked.lexer.call(void 0, text);
|
|
8
|
+
const links = [];
|
|
9
|
+
_marked.walkTokens.call(void 0, tokens, (token) => {
|
|
10
|
+
if (token.type === "link") {
|
|
11
|
+
links.push(token);
|
|
12
12
|
}
|
|
13
|
+
});
|
|
14
|
+
return links.map((link) => link?.href).filter(Boolean);
|
|
15
|
+
}
|
|
16
|
+
function validateTextLinks(text, isOnPhishingList) {
|
|
17
|
+
const links = getMarkdownLinks(text);
|
|
18
|
+
for (const link of links) {
|
|
13
19
|
try {
|
|
14
20
|
const url = new URL(link);
|
|
15
21
|
_utils.assert.call(void 0,
|
|
@@ -67,4 +73,4 @@ function getTotalTextLength(component) {
|
|
|
67
73
|
|
|
68
74
|
|
|
69
75
|
exports.validateTextLinks = validateTextLinks; exports.validateComponentLinks = validateComponentLinks; exports.getTotalTextLength = getTotalTextLength;
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-EX4PPLND.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui.ts"],"names":[],"mappings":";AACA,SAAS,gBAAgB;AACzB,SAAS,QAAQ,sBAAsB;AAEvC,SAAS,OAAO,kBAAkB;AAElC,IAAM,oBAAoB,CAAC,UAAU,SAAS;AAQ9C,SAAS,iBAAiB,MAAc;AACtC,QAAM,SAAS,MAAM,IAAI;AACzB,QAAM,QAA0C,CAAC;AAGjD,aAAW,QAAQ,CAAC,UAAU;AAC5B,QAAI,MAAM,SAAS,QAAQ;AACzB,YAAM,KAAK,KAAK;AAAA,IAClB;AAAA,EACF,CAAC;AAED,SAAO,MAAM,IAAI,CAAC,SAAS,MAAM,IAAI,EAAE,OAAO,OAAO;AACvD;AAUO,SAAS,kBACd,MACA,kBACA;AACA,QAAM,QAAQ,iBAAiB,IAAI;AAEnC,aAAW,QAAQ,OAAO;AACxB,QAAI;AACF,YAAM,MAAM,IAAI,IAAI,IAAI;AACxB;AAAA,QACE,kBAAkB,SAAS,IAAI,QAAQ;AAAA,QACvC,4BAA4B,kBAAkB,KAAK,IAAI,CAAC;AAAA,MAC1D;AAEA,YAAM,WACJ,IAAI,aAAa,YAAY,IAAI,SAAS,MAAM,GAAG,EAAE,CAAC,IAAI,IAAI;AAEhE,aAAO,CAAC,iBAAiB,QAAQ,GAAG,mCAAmC;AAAA,IACzE,SAAS,OAAO;AACd,YAAM,IAAI;AAAA,QACR,gBACE,iBAAiB,iBACb,MAAM,UACN,sBACN;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAWO,SAAS,uBACd,WACA,kBACA;AACA,QAAM,EAAE,KAAK,IAAI;AACjB,UAAQ,MAAM;AAAA,IACZ,KAAK,SAAS;AACZ,gBAAU,SAAS;AAAA,QAAQ,CAAC,SAC1B,uBAAuB,MAAM,gBAAgB;AAAA,MAC/C;AACA;AAAA,IACF,KAAK,SAAS;AACZ,6BAAuB,UAAU,OAAO,gBAAgB;AACxD;AAAA,IACF,KAAK,SAAS;AACZ,wBAAkB,UAAU,OAAO,gBAAgB;AACnD;AAAA,IACF;AACE;AAAA,EACJ;AACF;AAQO,SAAS,mBAAmB,WAA8B;AAC/D,QAAM,EAAE,KAAK,IAAI;AAEjB,UAAQ,MAAM;AAAA,IACZ,KAAK,SAAS;AACZ,aAAO,UAAU,SAAS;AAAA;AAAA;AAAA,QAGxB,CAAC,KAAK,SAAS,MAAM,mBAAmB,IAAI;AAAA,QAC5C;AAAA,MACF;AAAA,IACF,KAAK,SAAS;AACZ,aAAO,mBAAmB,UAAU,KAAK;AAAA,IAC3C,KAAK,SAAS;AACZ,aAAO,UAAU,MAAM;AAAA,IACzB;AACE,aAAO;AAAA,EACX;AACF","sourcesContent":["import type { Component } from '@metamask/snaps-sdk';\nimport { NodeType } from '@metamask/snaps-sdk';\nimport { assert, AssertionError } from '@metamask/utils';\nimport type { Tokens } from 'marked';\nimport { lexer, walkTokens } from 'marked';\n\nconst ALLOWED_PROTOCOLS = ['https:', 'mailto:'];\n\n/**\n * Extract all links from a Markdown text string using the `marked` lexer.\n *\n * @param text - The markdown text string.\n * @returns A list of URLs linked to in the string.\n */\nfunction getMarkdownLinks(text: string) {\n const tokens = lexer(text);\n const links: (Tokens.Link | Tokens.Generic)[] = [];\n\n // Walk the lexed tokens and collect all link tokens\n walkTokens(tokens, (token) => {\n if (token.type === 'link') {\n links.push(token);\n }\n });\n\n return links.map((link) => link?.href).filter(Boolean);\n}\n\n/**\n * Searches for markdown links in a string and checks them against the phishing list.\n *\n * @param text - The text to verify.\n * @param isOnPhishingList - The function that checks the link against the\n * phishing list.\n * @throws If the text contains a link that is not allowed.\n */\nexport function validateTextLinks(\n text: string,\n isOnPhishingList: (url: string) => boolean,\n) {\n const links = getMarkdownLinks(text);\n\n for (const link of links) {\n try {\n const url = new URL(link);\n assert(\n ALLOWED_PROTOCOLS.includes(url.protocol),\n `Protocol must be one of: ${ALLOWED_PROTOCOLS.join(', ')}.`,\n );\n\n const hostname =\n url.protocol === 'mailto:' ? url.pathname.split('@')[1] : url.hostname;\n\n assert(!isOnPhishingList(hostname), 'The specified URL is not allowed.');\n } catch (error) {\n throw new Error(\n `Invalid URL: ${\n error instanceof AssertionError\n ? error.message\n : 'Unable to parse URL.'\n }`,\n );\n }\n }\n}\n\n/**\n * Search for links in UI components and check that the URL they are trying to\n * pass in is not in the phishing list.\n *\n * @param component - The custom UI component.\n * @param isOnPhishingList - The function that checks the link against the\n * phishing list.\n * @throws If the component contains a link that is not allowed.\n */\nexport function validateComponentLinks(\n component: Component,\n isOnPhishingList: (url: string) => boolean,\n) {\n const { type } = component;\n switch (type) {\n case NodeType.Panel:\n component.children.forEach((node) =>\n validateComponentLinks(node, isOnPhishingList),\n );\n break;\n case NodeType.Row:\n validateComponentLinks(component.value, isOnPhishingList);\n break;\n case NodeType.Text:\n validateTextLinks(component.value, isOnPhishingList);\n break;\n default:\n break;\n }\n}\n\n/**\n * Calculate the total length of all text in the component.\n *\n * @param component - A custom UI component.\n * @returns The total length of all text components in the component.\n */\nexport function getTotalTextLength(component: Component): number {\n const { type } = component;\n\n switch (type) {\n case NodeType.Panel:\n return component.children.reduce<number>(\n // This is a bug in TypeScript: https://github.com/microsoft/TypeScript/issues/48313\n // eslint-disable-next-line @typescript-eslint/restrict-plus-operands\n (sum, node) => sum + getTotalTextLength(node),\n 0,\n );\n case NodeType.Row:\n return getTotalTextLength(component.value);\n case NodeType.Text:\n return component.value.length;\n default:\n return 0;\n }\n}\n"]}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
// src/ui.ts
|
|
2
2
|
import { NodeType } from "@metamask/snaps-sdk";
|
|
3
3
|
import { assert, AssertionError } from "@metamask/utils";
|
|
4
|
-
|
|
4
|
+
import { lexer, walkTokens } from "marked";
|
|
5
5
|
var ALLOWED_PROTOCOLS = ["https:", "mailto:"];
|
|
6
|
-
function
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (
|
|
11
|
-
|
|
6
|
+
function getMarkdownLinks(text) {
|
|
7
|
+
const tokens = lexer(text);
|
|
8
|
+
const links = [];
|
|
9
|
+
walkTokens(tokens, (token) => {
|
|
10
|
+
if (token.type === "link") {
|
|
11
|
+
links.push(token);
|
|
12
12
|
}
|
|
13
|
+
});
|
|
14
|
+
return links.map((link) => link?.href).filter(Boolean);
|
|
15
|
+
}
|
|
16
|
+
function validateTextLinks(text, isOnPhishingList) {
|
|
17
|
+
const links = getMarkdownLinks(text);
|
|
18
|
+
for (const link of links) {
|
|
13
19
|
try {
|
|
14
20
|
const url = new URL(link);
|
|
15
21
|
assert(
|
|
@@ -67,4 +73,4 @@ export {
|
|
|
67
73
|
validateComponentLinks,
|
|
68
74
|
getTotalTextLength
|
|
69
75
|
};
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-HDZ3BJBL.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui.ts"],"sourcesContent":["import type { Component } from '@metamask/snaps-sdk';\nimport { NodeType } from '@metamask/snaps-sdk';\nimport { assert, AssertionError } from '@metamask/utils';\nimport type { Tokens } from 'marked';\nimport { lexer, walkTokens } from 'marked';\n\nconst ALLOWED_PROTOCOLS = ['https:', 'mailto:'];\n\n/**\n * Extract all links from a Markdown text string using the `marked` lexer.\n *\n * @param text - The markdown text string.\n * @returns A list of URLs linked to in the string.\n */\nfunction getMarkdownLinks(text: string) {\n const tokens = lexer(text);\n const links: (Tokens.Link | Tokens.Generic)[] = [];\n\n // Walk the lexed tokens and collect all link tokens\n walkTokens(tokens, (token) => {\n if (token.type === 'link') {\n links.push(token);\n }\n });\n\n return links.map((link) => link?.href).filter(Boolean);\n}\n\n/**\n * Searches for markdown links in a string and checks them against the phishing list.\n *\n * @param text - The text to verify.\n * @param isOnPhishingList - The function that checks the link against the\n * phishing list.\n * @throws If the text contains a link that is not allowed.\n */\nexport function validateTextLinks(\n text: string,\n isOnPhishingList: (url: string) => boolean,\n) {\n const links = getMarkdownLinks(text);\n\n for (const link of links) {\n try {\n const url = new URL(link);\n assert(\n ALLOWED_PROTOCOLS.includes(url.protocol),\n `Protocol must be one of: ${ALLOWED_PROTOCOLS.join(', ')}.`,\n );\n\n const hostname =\n url.protocol === 'mailto:' ? url.pathname.split('@')[1] : url.hostname;\n\n assert(!isOnPhishingList(hostname), 'The specified URL is not allowed.');\n } catch (error) {\n throw new Error(\n `Invalid URL: ${\n error instanceof AssertionError\n ? error.message\n : 'Unable to parse URL.'\n }`,\n );\n }\n }\n}\n\n/**\n * Search for links in UI components and check that the URL they are trying to\n * pass in is not in the phishing list.\n *\n * @param component - The custom UI component.\n * @param isOnPhishingList - The function that checks the link against the\n * phishing list.\n * @throws If the component contains a link that is not allowed.\n */\nexport function validateComponentLinks(\n component: Component,\n isOnPhishingList: (url: string) => boolean,\n) {\n const { type } = component;\n switch (type) {\n case NodeType.Panel:\n component.children.forEach((node) =>\n validateComponentLinks(node, isOnPhishingList),\n );\n break;\n case NodeType.Row:\n validateComponentLinks(component.value, isOnPhishingList);\n break;\n case NodeType.Text:\n validateTextLinks(component.value, isOnPhishingList);\n break;\n default:\n break;\n }\n}\n\n/**\n * Calculate the total length of all text in the component.\n *\n * @param component - A custom UI component.\n * @returns The total length of all text components in the component.\n */\nexport function getTotalTextLength(component: Component): number {\n const { type } = component;\n\n switch (type) {\n case NodeType.Panel:\n return component.children.reduce<number>(\n // This is a bug in TypeScript: https://github.com/microsoft/TypeScript/issues/48313\n // eslint-disable-next-line @typescript-eslint/restrict-plus-operands\n (sum, node) => sum + getTotalTextLength(node),\n 0,\n );\n case NodeType.Row:\n return getTotalTextLength(component.value);\n case NodeType.Text:\n return component.value.length;\n default:\n return 0;\n }\n}\n"],"mappings":";AACA,SAAS,gBAAgB;AACzB,SAAS,QAAQ,sBAAsB;AAEvC,SAAS,OAAO,kBAAkB;AAElC,IAAM,oBAAoB,CAAC,UAAU,SAAS;AAQ9C,SAAS,iBAAiB,MAAc;AACtC,QAAM,SAAS,MAAM,IAAI;AACzB,QAAM,QAA0C,CAAC;AAGjD,aAAW,QAAQ,CAAC,UAAU;AAC5B,QAAI,MAAM,SAAS,QAAQ;AACzB,YAAM,KAAK,KAAK;AAAA,IAClB;AAAA,EACF,CAAC;AAED,SAAO,MAAM,IAAI,CAAC,SAAS,MAAM,IAAI,EAAE,OAAO,OAAO;AACvD;AAUO,SAAS,kBACd,MACA,kBACA;AACA,QAAM,QAAQ,iBAAiB,IAAI;AAEnC,aAAW,QAAQ,OAAO;AACxB,QAAI;AACF,YAAM,MAAM,IAAI,IAAI,IAAI;AACxB;AAAA,QACE,kBAAkB,SAAS,IAAI,QAAQ;AAAA,QACvC,4BAA4B,kBAAkB,KAAK,IAAI,CAAC;AAAA,MAC1D;AAEA,YAAM,WACJ,IAAI,aAAa,YAAY,IAAI,SAAS,MAAM,GAAG,EAAE,CAAC,IAAI,IAAI;AAEhE,aAAO,CAAC,iBAAiB,QAAQ,GAAG,mCAAmC;AAAA,IACzE,SAAS,OAAO;AACd,YAAM,IAAI;AAAA,QACR,gBACE,iBAAiB,iBACb,MAAM,UACN,sBACN;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAWO,SAAS,uBACd,WACA,kBACA;AACA,QAAM,EAAE,KAAK,IAAI;AACjB,UAAQ,MAAM;AAAA,IACZ,KAAK,SAAS;AACZ,gBAAU,SAAS;AAAA,QAAQ,CAAC,SAC1B,uBAAuB,MAAM,gBAAgB;AAAA,MAC/C;AACA;AAAA,IACF,KAAK,SAAS;AACZ,6BAAuB,UAAU,OAAO,gBAAgB;AACxD;AAAA,IACF,KAAK,SAAS;AACZ,wBAAkB,UAAU,OAAO,gBAAgB;AACnD;AAAA,IACF;AACE;AAAA,EACJ;AACF;AAQO,SAAS,mBAAmB,WAA8B;AAC/D,QAAM,EAAE,KAAK,IAAI;AAEjB,UAAQ,MAAM;AAAA,IACZ,KAAK,SAAS;AACZ,aAAO,UAAU,SAAS;AAAA;AAAA;AAAA,QAGxB,CAAC,KAAK,SAAS,MAAM,mBAAmB,IAAI;AAAA,QAC5C;AAAA,MACF;AAAA,IACF,KAAK,SAAS;AACZ,aAAO,mBAAmB,UAAU,KAAK;AAAA,IAC3C,KAAK,SAAS;AACZ,aAAO,UAAU,MAAM;AAAA,IACzB;AACE,aAAO;AAAA,EACX;AACF;","names":[]}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-2IWSQJKQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
assertIsSnapIcon
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MNCFAD4E.mjs";
|
|
10
10
|
import {
|
|
11
11
|
validateSnapManifestLocalizations
|
|
12
12
|
} from "./chunk-WEOCOYES.mjs";
|
|
@@ -27,4 +27,4 @@ async function validateFetchedSnap(files) {
|
|
|
27
27
|
export {
|
|
28
28
|
validateFetchedSnap
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-LGT3PBPZ.mjs.map
|
|
@@ -7,8 +7,9 @@ var SVG_MAX_BYTE_SIZE_TEXT = `${Math.floor(
|
|
|
7
7
|
)}kb`;
|
|
8
8
|
function assertIsSnapIcon(icon) {
|
|
9
9
|
_utils.assert.call(void 0, icon.path.endsWith(".svg"), 'Expected snap icon to end in ".svg".');
|
|
10
|
+
const byteLength = typeof icon.value === "string" ? _utils.stringToBytes.call(void 0, icon.value).byteLength : icon.value.byteLength;
|
|
10
11
|
_utils.assert.call(void 0,
|
|
11
|
-
|
|
12
|
+
byteLength <= SVG_MAX_BYTE_SIZE,
|
|
12
13
|
`The specified SVG icon exceeds the maximum size of ${SVG_MAX_BYTE_SIZE_TEXT}.`
|
|
13
14
|
);
|
|
14
15
|
_utils.assert.call(void 0, _snapssdk.isSvg.call(void 0, icon.toString()), "Snap icon must be a valid SVG.");
|
|
@@ -47,4 +48,4 @@ function getSvgDimensions(svg) {
|
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
exports.SVG_MAX_BYTE_SIZE = SVG_MAX_BYTE_SIZE; exports.SVG_MAX_BYTE_SIZE_TEXT = SVG_MAX_BYTE_SIZE_TEXT; exports.assertIsSnapIcon = assertIsSnapIcon; exports.getSvgDimensions = getSvgDimensions;
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-M3KAAQFK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/icon.ts"],"names":[],"mappings":";AAAA,SAAS,OAAO,gBAAgB;AAChC,SAAS,QAAQ,qBAAqB;AAI/B,IAAM,oBAAoB;AAC1B,IAAM,yBAAyB,GAAG,KAAK;AAAA,EAC5C,oBAAoB;AACtB,CAAC;AAOM,SAAS,iBAAiB,MAAmB;AAClD,SAAO,KAAK,KAAK,SAAS,MAAM,GAAG,sCAAsC;AAEzE,QAAM,aACJ,OAAO,KAAK,UAAU,WAClB,cAAc,KAAK,KAAK,EAAE,aAC1B,KAAK,MAAM;AAEjB;AAAA,IACE,cAAc;AAAA,IACd,sDAAsD,sBAAsB;AAAA,EAC9E;AAEA,SAAO,MAAM,KAAK,SAAS,CAAC,GAAG,gCAAgC;AACjE;AAQO,SAAS,iBAAiB,KAGxB;AACP,MAAI;AACF,UAAM,SAAS,SAAS,GAAG;AAE3B,UAAM,SAAS,OAAO,UAAU;AAChC,UAAM,QAAQ,OAAO,SAAS;AAE9B,QAAI,UAAU,OAAO;AACnB,aAAO,EAAE,QAAQ,MAAM;AAAA,IACzB;AAEA,UAAM,UAAU,OAAO,WAAW;AAClC,QAAI,SAAS;AAEX,YAAM,CAAC,OAAO,OAAO,cAAc,aAAa,IAAI,QAAQ,MAAM,GAAG;AAErE,UAAI,gBAAgB,eAAe;AACjC,cAAM,cAAc,SAAS,cAAc,EAAE;AAC7C,cAAM,eAAe,SAAS,eAAe,EAAE;AAE/C,eAAO,OAAO,UAAU,WAAW,KAAK,cAAc,CAAC;AACvD,eAAO,OAAO,UAAU,YAAY,KAAK,eAAe,CAAC;AAEzD,eAAO;AAAA,UACL,OAAO;AAAA,UACP,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA,EACF,QAAQ;AACN,UAAM,IAAI,MAAM,gCAAgC;AAAA,EAClD;AAEA,SAAO;AACT","sourcesContent":["import { isSvg, parseSvg } from '@metamask/snaps-sdk';\nimport { assert, stringToBytes } from '@metamask/utils';\n\nimport type { VirtualFile } from './virtual-file';\n\nexport const SVG_MAX_BYTE_SIZE = 100_000;\nexport const SVG_MAX_BYTE_SIZE_TEXT = `${Math.floor(\n SVG_MAX_BYTE_SIZE / 1000,\n)}kb`;\n\n/**\n * Assert that a virtual file containing a Snap icon is valid.\n *\n * @param icon - A virtual file containing a Snap icon.\n */\nexport function assertIsSnapIcon(icon: VirtualFile) {\n assert(icon.path.endsWith('.svg'), 'Expected snap icon to end in \".svg\".');\n\n const byteLength =\n typeof icon.value === 'string'\n ? stringToBytes(icon.value).byteLength\n : icon.value.byteLength;\n\n assert(\n byteLength <= SVG_MAX_BYTE_SIZE,\n `The specified SVG icon exceeds the maximum size of ${SVG_MAX_BYTE_SIZE_TEXT}.`,\n );\n\n assert(isSvg(icon.toString()), 'Snap icon must be a valid SVG.');\n}\n\n/**\n * Extract the dimensions of an image from an SVG string if possible.\n *\n * @param svg - An SVG string.\n * @returns The height and width of the SVG or null.\n */\nexport function getSvgDimensions(svg: string): {\n height: number;\n width: number;\n} | null {\n try {\n const parsed = parseSvg(svg);\n\n const height = parsed['@_height'];\n const width = parsed['@_width'];\n\n if (height && width) {\n return { height, width };\n }\n\n const viewBox = parsed['@_viewBox'];\n if (viewBox) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [_minX, _minY, viewBoxWidth, viewBoxHeight] = viewBox.split(' ');\n\n if (viewBoxWidth && viewBoxHeight) {\n const parsedWidth = parseInt(viewBoxWidth, 10);\n const parsedHeight = parseInt(viewBoxHeight, 10);\n\n assert(Number.isInteger(parsedWidth) && parsedWidth > 0);\n assert(Number.isInteger(parsedHeight) && parsedHeight > 0);\n\n return {\n width: parsedWidth,\n height: parsedHeight,\n };\n }\n }\n } catch {\n throw new Error('Snap icon must be a valid SVG.');\n }\n\n return null;\n}\n"]}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
// src/icon.ts
|
|
2
2
|
import { isSvg, parseSvg } from "@metamask/snaps-sdk";
|
|
3
|
-
import { assert } from "@metamask/utils";
|
|
3
|
+
import { assert, stringToBytes } from "@metamask/utils";
|
|
4
4
|
var SVG_MAX_BYTE_SIZE = 1e5;
|
|
5
5
|
var SVG_MAX_BYTE_SIZE_TEXT = `${Math.floor(
|
|
6
6
|
SVG_MAX_BYTE_SIZE / 1e3
|
|
7
7
|
)}kb`;
|
|
8
8
|
function assertIsSnapIcon(icon) {
|
|
9
9
|
assert(icon.path.endsWith(".svg"), 'Expected snap icon to end in ".svg".');
|
|
10
|
+
const byteLength = typeof icon.value === "string" ? stringToBytes(icon.value).byteLength : icon.value.byteLength;
|
|
10
11
|
assert(
|
|
11
|
-
|
|
12
|
+
byteLength <= SVG_MAX_BYTE_SIZE,
|
|
12
13
|
`The specified SVG icon exceeds the maximum size of ${SVG_MAX_BYTE_SIZE_TEXT}.`
|
|
13
14
|
);
|
|
14
15
|
assert(isSvg(icon.toString()), "Snap icon must be a valid SVG.");
|
|
@@ -47,4 +48,4 @@ export {
|
|
|
47
48
|
assertIsSnapIcon,
|
|
48
49
|
getSvgDimensions
|
|
49
50
|
};
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-MNCFAD4E.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/icon.ts"],"sourcesContent":["import { isSvg, parseSvg } from '@metamask/snaps-sdk';\nimport { assert, stringToBytes } from '@metamask/utils';\n\nimport type { VirtualFile } from './virtual-file';\n\nexport const SVG_MAX_BYTE_SIZE = 100_000;\nexport const SVG_MAX_BYTE_SIZE_TEXT = `${Math.floor(\n SVG_MAX_BYTE_SIZE / 1000,\n)}kb`;\n\n/**\n * Assert that a virtual file containing a Snap icon is valid.\n *\n * @param icon - A virtual file containing a Snap icon.\n */\nexport function assertIsSnapIcon(icon: VirtualFile) {\n assert(icon.path.endsWith('.svg'), 'Expected snap icon to end in \".svg\".');\n\n const byteLength =\n typeof icon.value === 'string'\n ? stringToBytes(icon.value).byteLength\n : icon.value.byteLength;\n\n assert(\n byteLength <= SVG_MAX_BYTE_SIZE,\n `The specified SVG icon exceeds the maximum size of ${SVG_MAX_BYTE_SIZE_TEXT}.`,\n );\n\n assert(isSvg(icon.toString()), 'Snap icon must be a valid SVG.');\n}\n\n/**\n * Extract the dimensions of an image from an SVG string if possible.\n *\n * @param svg - An SVG string.\n * @returns The height and width of the SVG or null.\n */\nexport function getSvgDimensions(svg: string): {\n height: number;\n width: number;\n} | null {\n try {\n const parsed = parseSvg(svg);\n\n const height = parsed['@_height'];\n const width = parsed['@_width'];\n\n if (height && width) {\n return { height, width };\n }\n\n const viewBox = parsed['@_viewBox'];\n if (viewBox) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [_minX, _minY, viewBoxWidth, viewBoxHeight] = viewBox.split(' ');\n\n if (viewBoxWidth && viewBoxHeight) {\n const parsedWidth = parseInt(viewBoxWidth, 10);\n const parsedHeight = parseInt(viewBoxHeight, 10);\n\n assert(Number.isInteger(parsedWidth) && parsedWidth > 0);\n assert(Number.isInteger(parsedHeight) && parsedHeight > 0);\n\n return {\n width: parsedWidth,\n height: parsedHeight,\n };\n }\n }\n } catch {\n throw new Error('Snap icon must be a valid SVG.');\n }\n\n return null;\n}\n"],"mappings":";AAAA,SAAS,OAAO,gBAAgB;AAChC,SAAS,QAAQ,qBAAqB;AAI/B,IAAM,oBAAoB;AAC1B,IAAM,yBAAyB,GAAG,KAAK;AAAA,EAC5C,oBAAoB;AACtB,CAAC;AAOM,SAAS,iBAAiB,MAAmB;AAClD,SAAO,KAAK,KAAK,SAAS,MAAM,GAAG,sCAAsC;AAEzE,QAAM,aACJ,OAAO,KAAK,UAAU,WAClB,cAAc,KAAK,KAAK,EAAE,aAC1B,KAAK,MAAM;AAEjB;AAAA,IACE,cAAc;AAAA,IACd,sDAAsD,sBAAsB;AAAA,EAC9E;AAEA,SAAO,MAAM,KAAK,SAAS,CAAC,GAAG,gCAAgC;AACjE;AAQO,SAAS,iBAAiB,KAGxB;AACP,MAAI;AACF,UAAM,SAAS,SAAS,GAAG;AAE3B,UAAM,SAAS,OAAO,UAAU;AAChC,UAAM,QAAQ,OAAO,SAAS;AAE9B,QAAI,UAAU,OAAO;AACnB,aAAO,EAAE,QAAQ,MAAM;AAAA,IACzB;AAEA,UAAM,UAAU,OAAO,WAAW;AAClC,QAAI,SAAS;AAEX,YAAM,CAAC,OAAO,OAAO,cAAc,aAAa,IAAI,QAAQ,MAAM,GAAG;AAErE,UAAI,gBAAgB,eAAe;AACjC,cAAM,cAAc,SAAS,cAAc,EAAE;AAC7C,cAAM,eAAe,SAAS,eAAe,EAAE;AAE/C,eAAO,OAAO,UAAU,WAAW,KAAK,cAAc,CAAC;AACvD,eAAO,OAAO,UAAU,YAAY,KAAK,eAAe,CAAC;AAEzD,eAAO;AAAA,UACL,OAAO;AAAA,UACP,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA,EACF,QAAQ;AACN,UAAM,IAAI,MAAM,gCAAgC;AAAA,EAClD;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
assertIsSnapIcon,
|
|
11
11
|
getSvgDimensions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MNCFAD4E.mjs";
|
|
13
13
|
import {
|
|
14
14
|
SnapValidationFailureReason,
|
|
15
15
|
assertIsNpmSnapPackageJson
|
|
@@ -406,4 +406,4 @@ export {
|
|
|
406
406
|
getWritableManifest,
|
|
407
407
|
validateNpmSnapManifest
|
|
408
408
|
};
|
|
409
|
-
//# sourceMappingURL=chunk-
|
|
409
|
+
//# sourceMappingURL=chunk-PIG67G67.mjs.map
|
|
@@ -6,7 +6,7 @@ var _chunkENKAY3PIjs = require('./chunk-ENKAY3PI.js');
|
|
|
6
6
|
var _chunkTG4BDSYJjs = require('./chunk-TG4BDSYJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkM3KAAQFKjs = require('./chunk-M3KAAQFK.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkAFQY2CNYjs = require('./chunk-AFQY2CNY.js');
|
|
@@ -20,11 +20,11 @@ async function validateFetchedSnap(files) {
|
|
|
20
20
|
files.localizationFiles.map((file) => file.result)
|
|
21
21
|
);
|
|
22
22
|
if (files.svgIcon) {
|
|
23
|
-
|
|
23
|
+
_chunkM3KAAQFKjs.assertIsSnapIcon.call(void 0, files.svgIcon);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
exports.validateFetchedSnap = validateFetchedSnap;
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-YMUOYQFU.js.map
|
package/dist/icon.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkM3KAAQFKjs = require('./chunk-M3KAAQFK.js');
|
|
7
7
|
require('./chunk-PHUTP7NB.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.SVG_MAX_BYTE_SIZE =
|
|
13
|
+
exports.SVG_MAX_BYTE_SIZE = _chunkM3KAAQFKjs.SVG_MAX_BYTE_SIZE; exports.SVG_MAX_BYTE_SIZE_TEXT = _chunkM3KAAQFKjs.SVG_MAX_BYTE_SIZE_TEXT; exports.assertIsSnapIcon = _chunkM3KAAQFKjs.assertIsSnapIcon; exports.getSvgDimensions = _chunkM3KAAQFKjs.getSvgDimensions;
|
|
14
14
|
//# sourceMappingURL=icon.js.map
|
package/dist/icon.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@ var _chunkIJX3CXOYjs = require('./chunk-IJX3CXOY.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkEX4PPLNDjs = require('./chunk-EX4PPLND.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkYMUOYQFUjs = require('./chunk-YMUOYQFU.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -75,7 +75,7 @@ var _chunkAOGVLPQZjs = require('./chunk-AOGVLPQZ.js');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
var _chunkTG4BDSYJjs = require('./chunk-TG4BDSYJ.js');
|
|
78
|
-
require('./chunk-
|
|
78
|
+
require('./chunk-M3KAAQFK.js');
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
@@ -374,5 +374,5 @@ require('./chunk-PHUTP7NB.js');
|
|
|
374
374
|
|
|
375
375
|
|
|
376
376
|
|
|
377
|
-
exports.ACCOUNT_ADDRESS_REGEX = _chunk6LOYTBS3js.ACCOUNT_ADDRESS_REGEX; exports.ACCOUNT_ID_REGEX = _chunk6LOYTBS3js.ACCOUNT_ID_REGEX; exports.AccountAddressStruct = _chunk6LOYTBS3js.AccountAddressStruct; exports.AccountIdArrayStruct = _chunk6LOYTBS3js.AccountIdArrayStruct; exports.AccountIdStruct = _chunk6LOYTBS3js.AccountIdStruct; exports.AddressResolutionResponseStruct = _chunk3SOYDY4Wjs.AddressResolutionResponseStruct; exports.AddressResolutionStruct = _chunk3SOYDY4Wjs.AddressResolutionStruct; exports.BaseSnapIdStruct = _chunkTG4BDSYJjs.BaseSnapIdStruct; exports.Bip32EntropyStruct = _chunkENKAY3PIjs.Bip32EntropyStruct; exports.Bip32PathStruct = _chunkENKAY3PIjs.Bip32PathStruct; exports.CHAIN_ID_REGEX = _chunk6LOYTBS3js.CHAIN_ID_REGEX; exports.ChainIdStringStruct = _chunk6LOYTBS3js.ChainIdStringStruct; exports.ChainIdStruct = _chunk6LOYTBS3js.ChainIdStruct; exports.ChainIdsStruct = _chunkENKAY3PIjs.ChainIdsStruct; exports.ChainStruct = _chunk6LOYTBS3js.ChainStruct; exports.CronExpressionStruct = _chunk2LBN5T56js.CronExpressionStruct; exports.CronjobRpcRequestStruct = _chunk2LBN5T56js.CronjobRpcRequestStruct; exports.CronjobSpecificationArrayStruct = _chunk2LBN5T56js.CronjobSpecificationArrayStruct; exports.CronjobSpecificationStruct = _chunk2LBN5T56js.CronjobSpecificationStruct; exports.DEFAULT_ENDOWMENTS = _chunkN722KRZWjs.DEFAULT_ENDOWMENTS; exports.DEFAULT_REQUESTED_SNAP_VERSION = _chunkIPOE62V4js.DEFAULT_REQUESTED_SNAP_VERSION; exports.DomainResolutionResponseStruct = _chunk3SOYDY4Wjs.DomainResolutionResponseStruct; exports.DomainResolutionStruct = _chunk3SOYDY4Wjs.DomainResolutionStruct; exports.FORBIDDEN_COIN_TYPES = _chunkENKAY3PIjs.FORBIDDEN_COIN_TYPES; exports.HandlerCaveatsStruct = _chunkENKAY3PIjs.HandlerCaveatsStruct; exports.HandlerType = _chunkLEKZPKS2js.HandlerType; exports.HttpSnapIdStruct = _chunkTG4BDSYJjs.HttpSnapIdStruct; exports.InitialConnectionsStruct = _chunkENKAY3PIjs.InitialConnectionsStruct; exports.KeyringOriginsStruct = _chunkCQRPSEH3js.KeyringOriginsStruct; exports.LOCALHOST_HOSTNAMES = _chunkTG4BDSYJjs.LOCALHOST_HOSTNAMES; exports.LOCALIZABLE_FIELDS = _chunkAFQY2CNYjs.LOCALIZABLE_FIELDS; exports.LimitedString = _chunk6LOYTBS3js.LimitedString; exports.LocalSnapIdStruct = _chunkTG4BDSYJjs.LocalSnapIdStruct; exports.LocalizationFileStruct = _chunkAFQY2CNYjs.LocalizationFileStruct; exports.LookupMatchersStruct = _chunkENKAY3PIjs.LookupMatchersStruct; exports.MAXIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MAXIMUM_REQUEST_TIMEOUT; exports.MINIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MINIMUM_REQUEST_TIMEOUT; exports.MaxRequestTimeStruct = _chunkENKAY3PIjs.MaxRequestTimeStruct; exports.NameStruct = _chunkCMOSYNZRjs.NameStruct; exports.NamespaceIdStruct = _chunk6LOYTBS3js.NamespaceIdStruct; exports.NamespaceStruct = _chunk6LOYTBS3js.NamespaceStruct; exports.NpmSnapFileNames = _chunkCMOSYNZRjs.NpmSnapFileNames; exports.NpmSnapIdStruct = _chunkTG4BDSYJjs.NpmSnapIdStruct; exports.NpmSnapPackageJsonStruct = _chunkCMOSYNZRjs.NpmSnapPackageJsonStruct; exports.OnHomePageResponseStruct = _chunk3SOYDY4Wjs.OnHomePageResponseStruct; exports.OnHomePageResponseWithContentStruct = _chunk3SOYDY4Wjs.OnHomePageResponseWithContentStruct; exports.OnHomePageResponseWithIdStruct = _chunk3SOYDY4Wjs.OnHomePageResponseWithIdStruct; exports.OnNameLookupResponseStruct = _chunk3SOYDY4Wjs.OnNameLookupResponseStruct; exports.OnSignatureResponseStruct = _chunk3SOYDY4Wjs.OnSignatureResponseStruct; exports.OnTransactionResponseStruct = _chunk3SOYDY4Wjs.OnTransactionResponseStruct; exports.OnTransactionResponseWithContentStruct = _chunk3SOYDY4Wjs.OnTransactionResponseWithContentStruct; exports.OnTransactionResponseWithIdStruct = _chunk3SOYDY4Wjs.OnTransactionResponseWithIdStruct; exports.OnTransactionSeverityResponseStruct = _chunk3SOYDY4Wjs.OnTransactionSeverityResponseStruct; exports.PROPOSED_NAME_REGEX = _chunkTG4BDSYJjs.PROPOSED_NAME_REGEX; exports.PermissionsStruct = _chunkENKAY3PIjs.PermissionsStruct; exports.ProgrammaticallyFixableSnapError = _chunkTG4BDSYJjs.ProgrammaticallyFixableSnapError; exports.RpcOriginsStruct = _chunkCQRPSEH3js.RpcOriginsStruct; exports.SIP_6_MAGIC_VALUE = _chunkZT3KKTS2js.SIP_6_MAGIC_VALUE; exports.SNAPS_DERIVATION_PATHS = _chunk2PCPD5XYjs.SNAPS_DERIVATION_PATHS; exports.SNAP_ERROR_WRAPPER_CODE = _chunkK6BCBPXFjs.SNAP_ERROR_WRAPPER_CODE; exports.SNAP_ERROR_WRAPPER_MESSAGE = _chunkK6BCBPXFjs.SNAP_ERROR_WRAPPER_MESSAGE; exports.SNAP_EXPORTS = _chunk3SOYDY4Wjs.SNAP_EXPORTS; exports.SNAP_EXPORT_NAMES = _chunkLEKZPKS2js.SNAP_EXPORT_NAMES; exports.SNAP_STREAM_NAMES = _chunkCMOSYNZRjs.SNAP_STREAM_NAMES; exports.STATE_ENCRYPTION_MAGIC_VALUE = _chunkZT3KKTS2js.STATE_ENCRYPTION_MAGIC_VALUE; exports.SemVerRangeStruct = _chunkENKAY3PIjs.SemVerRangeStruct; exports.SnapAuxilaryFilesStruct = _chunkENKAY3PIjs.SnapAuxilaryFilesStruct; exports.SnapCaveatType = _chunkASZWZ7JTjs.SnapCaveatType; exports.SnapGetBip32EntropyPermissionsStruct = _chunkENKAY3PIjs.SnapGetBip32EntropyPermissionsStruct; exports.SnapIdPrefixes = _chunkCMOSYNZRjs.SnapIdPrefixes; exports.SnapIdStruct = _chunkTG4BDSYJjs.SnapIdStruct; exports.SnapIdsStruct = _chunkENKAY3PIjs.SnapIdsStruct; exports.SnapManifestStruct = _chunkENKAY3PIjs.SnapManifestStruct; exports.SnapStatus = _chunkTG4BDSYJjs.SnapStatus; exports.SnapStatusEvents = _chunkTG4BDSYJjs.SnapStatusEvents; exports.SnapValidationFailureReason = _chunkCMOSYNZRjs.SnapValidationFailureReason; exports.SnapsStructError = _chunkA6E325SZjs.SnapsStructError; exports.TRANSLATION_REGEX = _chunkAFQY2CNYjs.TRANSLATION_REGEX; exports.VirtualFile = _chunkHJYRGKCXjs.VirtualFile; exports.WALLET_SNAP_PERMISSION_KEY = _chunkCMOSYNZRjs.WALLET_SNAP_PERMISSION_KEY; exports.WrappedSnapError = _chunkK6BCBPXFjs.WrappedSnapError; exports.arrayToGenerator = _chunkA6E325SZjs.arrayToGenerator; exports.assertIsJsonRpcSuccess = _chunkCQRPSEH3js.assertIsJsonRpcSuccess; exports.assertIsKeyringOrigins = _chunkCQRPSEH3js.assertIsKeyringOrigins; exports.assertIsNpmSnapPackageJson = _chunkCMOSYNZRjs.assertIsNpmSnapPackageJson; exports.assertIsRpcOrigins = _chunkCQRPSEH3js.assertIsRpcOrigins; exports.assertIsSnapManifest = _chunkENKAY3PIjs.assertIsSnapManifest; exports.assertIsValidSnapId = _chunkTG4BDSYJjs.assertIsValidSnapId; exports.bip32entropy = _chunkENKAY3PIjs.bip32entropy; exports.checksum = _chunkMLOQHUOYjs.checksum; exports.checksumFiles = _chunkMLOQHUOYjs.checksumFiles; exports.createFromStruct = _chunkA6E325SZjs.createFromStruct; exports.createSnapManifest = _chunkENKAY3PIjs.createSnapManifest; exports.createUnion = _chunkA6E325SZjs.createUnion; exports.createWindow = _chunkPLBSSUVYjs.createWindow; exports.decodeBase64 = _chunkIHQPAJ2Bjs.decodeBase64; exports.deepClone = _chunkNUCLSR2Gjs.deepClone; exports.encodeAuxiliaryFile = _chunkIXBJNVHKjs.encodeAuxiliaryFile; exports.encodeBase64 = _chunkIHQPAJ2Bjs.encodeBase64; exports.getBytes = _chunk473MIETWjs.getBytes; exports.getError = _chunkA6E325SZjs.getError; exports.getLocalizationFile = _chunkAFQY2CNYjs.getLocalizationFile; exports.getLocalizedSnapManifest = _chunkAFQY2CNYjs.getLocalizedSnapManifest; exports.getSlip44ProtocolName = _chunk2PCPD5XYjs.getSlip44ProtocolName; exports.getSnapChecksum = _chunkTG4BDSYJjs.getSnapChecksum; exports.getSnapDerivationPathName = _chunk2PCPD5XYjs.getSnapDerivationPathName; exports.getSnapPrefix = _chunkTG4BDSYJjs.getSnapPrefix; exports.getStructErrorMessage = _chunkA6E325SZjs.getStructErrorMessage; exports.getStructErrorPrefix = _chunkA6E325SZjs.getStructErrorPrefix; exports.getStructFailureMessage = _chunkA6E325SZjs.getStructFailureMessage; exports.getStructFromPath = _chunkA6E325SZjs.getStructFromPath; exports.getTargetVersion = _chunkIPOE62V4js.getTargetVersion; exports.getTotalTextLength = _chunk772OPTGXjs.getTotalTextLength; exports.getUnionStructNames = _chunkA6E325SZjs.getUnionStructNames; exports.getValidatedLocalizationFiles = _chunkAFQY2CNYjs.getValidatedLocalizationFiles; exports.indent = _chunkIJX3CXOYjs.indent; exports.isAccountId = _chunk6LOYTBS3js.isAccountId; exports.isAccountIdArray = _chunk6LOYTBS3js.isAccountIdArray; exports.isCaipChainId = _chunkTG4BDSYJjs.isCaipChainId; exports.isChainId = _chunk6LOYTBS3js.isChainId; exports.isCronjobSpecification = _chunk2LBN5T56js.isCronjobSpecification; exports.isCronjobSpecificationArray = _chunk2LBN5T56js.isCronjobSpecificationArray; exports.isEqual = _chunkT3YY4JIJjs.isEqual; exports.isNamespace = _chunk6LOYTBS3js.isNamespace; exports.isNamespaceId = _chunk6LOYTBS3js.isNamespaceId; exports.isNpmSnapPackageJson = _chunkCMOSYNZRjs.isNpmSnapPackageJson; exports.isOriginAllowed = _chunkCQRPSEH3js.isOriginAllowed; exports.isSerializedSnapError = _chunkK6BCBPXFjs.isSerializedSnapError; exports.isSnapError = _chunkK6BCBPXFjs.isSnapError; exports.isSnapManifest = _chunkENKAY3PIjs.isSnapManifest; exports.isSnapPermitted = _chunkTG4BDSYJjs.isSnapPermitted; exports.isValidUrl = _chunkCMOSYNZRjs.isValidUrl; exports.isWrappedSnapError = _chunkK6BCBPXFjs.isWrappedSnapError; exports.logError = _chunkE3BDBG6Tjs.logError; exports.logInfo = _chunkE3BDBG6Tjs.logInfo; exports.logWarning = _chunkE3BDBG6Tjs.logWarning; exports.named = _chunkA6E325SZjs.named; exports.normalizeRelative = _chunkAOGVLPQZjs.normalizeRelative; exports.parseAccountId = _chunk6LOYTBS3js.parseAccountId; exports.parseChainId = _chunk6LOYTBS3js.parseChainId; exports.parseCronExpression = _chunk2LBN5T56js.parseCronExpression; exports.parseJson = _chunkHF7HUZ5Zjs.parseJson; exports.resolveVersionRange = _chunkIPOE62V4js.resolveVersionRange; exports.snapsLogger = _chunkE3BDBG6Tjs.snapsLogger; exports.stripSnapPrefix = _chunkTG4BDSYJjs.stripSnapPrefix; exports.translate = _chunkAFQY2CNYjs.translate; exports.unwrapError = _chunkK6BCBPXFjs.unwrapError; exports.uri = _chunkCMOSYNZRjs.uri; exports.validateComponentLinks = _chunk772OPTGXjs.validateComponentLinks; exports.validateFetchedSnap = _chunkQ7RCL5IEjs.validateFetchedSnap; exports.validateSnapManifestLocalizations = _chunkAFQY2CNYjs.validateSnapManifestLocalizations; exports.validateSnapShasum = _chunkTG4BDSYJjs.validateSnapShasum; exports.validateTextLinks = _chunk772OPTGXjs.validateTextLinks; exports.validateUnion = _chunkA6E325SZjs.validateUnion; exports.verifyRequestedSnapPermissions = _chunkTG4BDSYJjs.verifyRequestedSnapPermissions;
|
|
377
|
+
exports.ACCOUNT_ADDRESS_REGEX = _chunk6LOYTBS3js.ACCOUNT_ADDRESS_REGEX; exports.ACCOUNT_ID_REGEX = _chunk6LOYTBS3js.ACCOUNT_ID_REGEX; exports.AccountAddressStruct = _chunk6LOYTBS3js.AccountAddressStruct; exports.AccountIdArrayStruct = _chunk6LOYTBS3js.AccountIdArrayStruct; exports.AccountIdStruct = _chunk6LOYTBS3js.AccountIdStruct; exports.AddressResolutionResponseStruct = _chunk3SOYDY4Wjs.AddressResolutionResponseStruct; exports.AddressResolutionStruct = _chunk3SOYDY4Wjs.AddressResolutionStruct; exports.BaseSnapIdStruct = _chunkTG4BDSYJjs.BaseSnapIdStruct; exports.Bip32EntropyStruct = _chunkENKAY3PIjs.Bip32EntropyStruct; exports.Bip32PathStruct = _chunkENKAY3PIjs.Bip32PathStruct; exports.CHAIN_ID_REGEX = _chunk6LOYTBS3js.CHAIN_ID_REGEX; exports.ChainIdStringStruct = _chunk6LOYTBS3js.ChainIdStringStruct; exports.ChainIdStruct = _chunk6LOYTBS3js.ChainIdStruct; exports.ChainIdsStruct = _chunkENKAY3PIjs.ChainIdsStruct; exports.ChainStruct = _chunk6LOYTBS3js.ChainStruct; exports.CronExpressionStruct = _chunk2LBN5T56js.CronExpressionStruct; exports.CronjobRpcRequestStruct = _chunk2LBN5T56js.CronjobRpcRequestStruct; exports.CronjobSpecificationArrayStruct = _chunk2LBN5T56js.CronjobSpecificationArrayStruct; exports.CronjobSpecificationStruct = _chunk2LBN5T56js.CronjobSpecificationStruct; exports.DEFAULT_ENDOWMENTS = _chunkN722KRZWjs.DEFAULT_ENDOWMENTS; exports.DEFAULT_REQUESTED_SNAP_VERSION = _chunkIPOE62V4js.DEFAULT_REQUESTED_SNAP_VERSION; exports.DomainResolutionResponseStruct = _chunk3SOYDY4Wjs.DomainResolutionResponseStruct; exports.DomainResolutionStruct = _chunk3SOYDY4Wjs.DomainResolutionStruct; exports.FORBIDDEN_COIN_TYPES = _chunkENKAY3PIjs.FORBIDDEN_COIN_TYPES; exports.HandlerCaveatsStruct = _chunkENKAY3PIjs.HandlerCaveatsStruct; exports.HandlerType = _chunkLEKZPKS2js.HandlerType; exports.HttpSnapIdStruct = _chunkTG4BDSYJjs.HttpSnapIdStruct; exports.InitialConnectionsStruct = _chunkENKAY3PIjs.InitialConnectionsStruct; exports.KeyringOriginsStruct = _chunkCQRPSEH3js.KeyringOriginsStruct; exports.LOCALHOST_HOSTNAMES = _chunkTG4BDSYJjs.LOCALHOST_HOSTNAMES; exports.LOCALIZABLE_FIELDS = _chunkAFQY2CNYjs.LOCALIZABLE_FIELDS; exports.LimitedString = _chunk6LOYTBS3js.LimitedString; exports.LocalSnapIdStruct = _chunkTG4BDSYJjs.LocalSnapIdStruct; exports.LocalizationFileStruct = _chunkAFQY2CNYjs.LocalizationFileStruct; exports.LookupMatchersStruct = _chunkENKAY3PIjs.LookupMatchersStruct; exports.MAXIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MAXIMUM_REQUEST_TIMEOUT; exports.MINIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MINIMUM_REQUEST_TIMEOUT; exports.MaxRequestTimeStruct = _chunkENKAY3PIjs.MaxRequestTimeStruct; exports.NameStruct = _chunkCMOSYNZRjs.NameStruct; exports.NamespaceIdStruct = _chunk6LOYTBS3js.NamespaceIdStruct; exports.NamespaceStruct = _chunk6LOYTBS3js.NamespaceStruct; exports.NpmSnapFileNames = _chunkCMOSYNZRjs.NpmSnapFileNames; exports.NpmSnapIdStruct = _chunkTG4BDSYJjs.NpmSnapIdStruct; exports.NpmSnapPackageJsonStruct = _chunkCMOSYNZRjs.NpmSnapPackageJsonStruct; exports.OnHomePageResponseStruct = _chunk3SOYDY4Wjs.OnHomePageResponseStruct; exports.OnHomePageResponseWithContentStruct = _chunk3SOYDY4Wjs.OnHomePageResponseWithContentStruct; exports.OnHomePageResponseWithIdStruct = _chunk3SOYDY4Wjs.OnHomePageResponseWithIdStruct; exports.OnNameLookupResponseStruct = _chunk3SOYDY4Wjs.OnNameLookupResponseStruct; exports.OnSignatureResponseStruct = _chunk3SOYDY4Wjs.OnSignatureResponseStruct; exports.OnTransactionResponseStruct = _chunk3SOYDY4Wjs.OnTransactionResponseStruct; exports.OnTransactionResponseWithContentStruct = _chunk3SOYDY4Wjs.OnTransactionResponseWithContentStruct; exports.OnTransactionResponseWithIdStruct = _chunk3SOYDY4Wjs.OnTransactionResponseWithIdStruct; exports.OnTransactionSeverityResponseStruct = _chunk3SOYDY4Wjs.OnTransactionSeverityResponseStruct; exports.PROPOSED_NAME_REGEX = _chunkTG4BDSYJjs.PROPOSED_NAME_REGEX; exports.PermissionsStruct = _chunkENKAY3PIjs.PermissionsStruct; exports.ProgrammaticallyFixableSnapError = _chunkTG4BDSYJjs.ProgrammaticallyFixableSnapError; exports.RpcOriginsStruct = _chunkCQRPSEH3js.RpcOriginsStruct; exports.SIP_6_MAGIC_VALUE = _chunkZT3KKTS2js.SIP_6_MAGIC_VALUE; exports.SNAPS_DERIVATION_PATHS = _chunk2PCPD5XYjs.SNAPS_DERIVATION_PATHS; exports.SNAP_ERROR_WRAPPER_CODE = _chunkK6BCBPXFjs.SNAP_ERROR_WRAPPER_CODE; exports.SNAP_ERROR_WRAPPER_MESSAGE = _chunkK6BCBPXFjs.SNAP_ERROR_WRAPPER_MESSAGE; exports.SNAP_EXPORTS = _chunk3SOYDY4Wjs.SNAP_EXPORTS; exports.SNAP_EXPORT_NAMES = _chunkLEKZPKS2js.SNAP_EXPORT_NAMES; exports.SNAP_STREAM_NAMES = _chunkCMOSYNZRjs.SNAP_STREAM_NAMES; exports.STATE_ENCRYPTION_MAGIC_VALUE = _chunkZT3KKTS2js.STATE_ENCRYPTION_MAGIC_VALUE; exports.SemVerRangeStruct = _chunkENKAY3PIjs.SemVerRangeStruct; exports.SnapAuxilaryFilesStruct = _chunkENKAY3PIjs.SnapAuxilaryFilesStruct; exports.SnapCaveatType = _chunkASZWZ7JTjs.SnapCaveatType; exports.SnapGetBip32EntropyPermissionsStruct = _chunkENKAY3PIjs.SnapGetBip32EntropyPermissionsStruct; exports.SnapIdPrefixes = _chunkCMOSYNZRjs.SnapIdPrefixes; exports.SnapIdStruct = _chunkTG4BDSYJjs.SnapIdStruct; exports.SnapIdsStruct = _chunkENKAY3PIjs.SnapIdsStruct; exports.SnapManifestStruct = _chunkENKAY3PIjs.SnapManifestStruct; exports.SnapStatus = _chunkTG4BDSYJjs.SnapStatus; exports.SnapStatusEvents = _chunkTG4BDSYJjs.SnapStatusEvents; exports.SnapValidationFailureReason = _chunkCMOSYNZRjs.SnapValidationFailureReason; exports.SnapsStructError = _chunkA6E325SZjs.SnapsStructError; exports.TRANSLATION_REGEX = _chunkAFQY2CNYjs.TRANSLATION_REGEX; exports.VirtualFile = _chunkHJYRGKCXjs.VirtualFile; exports.WALLET_SNAP_PERMISSION_KEY = _chunkCMOSYNZRjs.WALLET_SNAP_PERMISSION_KEY; exports.WrappedSnapError = _chunkK6BCBPXFjs.WrappedSnapError; exports.arrayToGenerator = _chunkA6E325SZjs.arrayToGenerator; exports.assertIsJsonRpcSuccess = _chunkCQRPSEH3js.assertIsJsonRpcSuccess; exports.assertIsKeyringOrigins = _chunkCQRPSEH3js.assertIsKeyringOrigins; exports.assertIsNpmSnapPackageJson = _chunkCMOSYNZRjs.assertIsNpmSnapPackageJson; exports.assertIsRpcOrigins = _chunkCQRPSEH3js.assertIsRpcOrigins; exports.assertIsSnapManifest = _chunkENKAY3PIjs.assertIsSnapManifest; exports.assertIsValidSnapId = _chunkTG4BDSYJjs.assertIsValidSnapId; exports.bip32entropy = _chunkENKAY3PIjs.bip32entropy; exports.checksum = _chunkMLOQHUOYjs.checksum; exports.checksumFiles = _chunkMLOQHUOYjs.checksumFiles; exports.createFromStruct = _chunkA6E325SZjs.createFromStruct; exports.createSnapManifest = _chunkENKAY3PIjs.createSnapManifest; exports.createUnion = _chunkA6E325SZjs.createUnion; exports.createWindow = _chunkPLBSSUVYjs.createWindow; exports.decodeBase64 = _chunkIHQPAJ2Bjs.decodeBase64; exports.deepClone = _chunkNUCLSR2Gjs.deepClone; exports.encodeAuxiliaryFile = _chunkIXBJNVHKjs.encodeAuxiliaryFile; exports.encodeBase64 = _chunkIHQPAJ2Bjs.encodeBase64; exports.getBytes = _chunk473MIETWjs.getBytes; exports.getError = _chunkA6E325SZjs.getError; exports.getLocalizationFile = _chunkAFQY2CNYjs.getLocalizationFile; exports.getLocalizedSnapManifest = _chunkAFQY2CNYjs.getLocalizedSnapManifest; exports.getSlip44ProtocolName = _chunk2PCPD5XYjs.getSlip44ProtocolName; exports.getSnapChecksum = _chunkTG4BDSYJjs.getSnapChecksum; exports.getSnapDerivationPathName = _chunk2PCPD5XYjs.getSnapDerivationPathName; exports.getSnapPrefix = _chunkTG4BDSYJjs.getSnapPrefix; exports.getStructErrorMessage = _chunkA6E325SZjs.getStructErrorMessage; exports.getStructErrorPrefix = _chunkA6E325SZjs.getStructErrorPrefix; exports.getStructFailureMessage = _chunkA6E325SZjs.getStructFailureMessage; exports.getStructFromPath = _chunkA6E325SZjs.getStructFromPath; exports.getTargetVersion = _chunkIPOE62V4js.getTargetVersion; exports.getTotalTextLength = _chunkEX4PPLNDjs.getTotalTextLength; exports.getUnionStructNames = _chunkA6E325SZjs.getUnionStructNames; exports.getValidatedLocalizationFiles = _chunkAFQY2CNYjs.getValidatedLocalizationFiles; exports.indent = _chunkIJX3CXOYjs.indent; exports.isAccountId = _chunk6LOYTBS3js.isAccountId; exports.isAccountIdArray = _chunk6LOYTBS3js.isAccountIdArray; exports.isCaipChainId = _chunkTG4BDSYJjs.isCaipChainId; exports.isChainId = _chunk6LOYTBS3js.isChainId; exports.isCronjobSpecification = _chunk2LBN5T56js.isCronjobSpecification; exports.isCronjobSpecificationArray = _chunk2LBN5T56js.isCronjobSpecificationArray; exports.isEqual = _chunkT3YY4JIJjs.isEqual; exports.isNamespace = _chunk6LOYTBS3js.isNamespace; exports.isNamespaceId = _chunk6LOYTBS3js.isNamespaceId; exports.isNpmSnapPackageJson = _chunkCMOSYNZRjs.isNpmSnapPackageJson; exports.isOriginAllowed = _chunkCQRPSEH3js.isOriginAllowed; exports.isSerializedSnapError = _chunkK6BCBPXFjs.isSerializedSnapError; exports.isSnapError = _chunkK6BCBPXFjs.isSnapError; exports.isSnapManifest = _chunkENKAY3PIjs.isSnapManifest; exports.isSnapPermitted = _chunkTG4BDSYJjs.isSnapPermitted; exports.isValidUrl = _chunkCMOSYNZRjs.isValidUrl; exports.isWrappedSnapError = _chunkK6BCBPXFjs.isWrappedSnapError; exports.logError = _chunkE3BDBG6Tjs.logError; exports.logInfo = _chunkE3BDBG6Tjs.logInfo; exports.logWarning = _chunkE3BDBG6Tjs.logWarning; exports.named = _chunkA6E325SZjs.named; exports.normalizeRelative = _chunkAOGVLPQZjs.normalizeRelative; exports.parseAccountId = _chunk6LOYTBS3js.parseAccountId; exports.parseChainId = _chunk6LOYTBS3js.parseChainId; exports.parseCronExpression = _chunk2LBN5T56js.parseCronExpression; exports.parseJson = _chunkHF7HUZ5Zjs.parseJson; exports.resolveVersionRange = _chunkIPOE62V4js.resolveVersionRange; exports.snapsLogger = _chunkE3BDBG6Tjs.snapsLogger; exports.stripSnapPrefix = _chunkTG4BDSYJjs.stripSnapPrefix; exports.translate = _chunkAFQY2CNYjs.translate; exports.unwrapError = _chunkK6BCBPXFjs.unwrapError; exports.uri = _chunkCMOSYNZRjs.uri; exports.validateComponentLinks = _chunkEX4PPLNDjs.validateComponentLinks; exports.validateFetchedSnap = _chunkYMUOYQFUjs.validateFetchedSnap; exports.validateSnapManifestLocalizations = _chunkAFQY2CNYjs.validateSnapManifestLocalizations; exports.validateSnapShasum = _chunkTG4BDSYJjs.validateSnapShasum; exports.validateTextLinks = _chunkEX4PPLNDjs.validateTextLinks; exports.validateUnion = _chunkA6E325SZjs.validateUnion; exports.verifyRequestedSnapPermissions = _chunkTG4BDSYJjs.verifyRequestedSnapPermissions;
|
|
378
378
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
getTotalTextLength,
|
|
21
21
|
validateComponentLinks,
|
|
22
22
|
validateTextLinks
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HDZ3BJBL.mjs";
|
|
24
24
|
import {
|
|
25
25
|
validateFetchedSnap
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LGT3PBPZ.mjs";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REQUESTED_SNAP_VERSION,
|
|
29
29
|
getTargetVersion,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
validateSnapShasum,
|
|
76
76
|
verifyRequestedSnapPermissions
|
|
77
77
|
} from "./chunk-2IWSQJKQ.mjs";
|
|
78
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-MNCFAD4E.mjs";
|
|
79
79
|
import {
|
|
80
80
|
logError,
|
|
81
81
|
logInfo,
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkAWRMYDINjs = require('../chunk-AWRMYDIN.js');
|
|
11
11
|
require('../chunk-ENKAY3PI.js');
|
|
12
12
|
require('../chunk-TG4BDSYJ.js');
|
|
13
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-M3KAAQFK.js');
|
|
14
14
|
require('../chunk-6LOYTBS3.js');
|
|
15
15
|
require('../chunk-CMOSYNZR.js');
|
|
16
16
|
require('../chunk-CQRPSEH3.js');
|
|
@@ -38,5 +38,5 @@ require('../chunk-PHUTP7NB.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
exports.checkManifest =
|
|
41
|
+
exports.checkManifest = _chunkAWRMYDINjs.checkManifest; exports.fixManifest = _chunkAWRMYDINjs.fixManifest; exports.getSnapFilePaths = _chunkAWRMYDINjs.getSnapFilePaths; exports.getSnapFiles = _chunkAWRMYDINjs.getSnapFiles; exports.getSnapIcon = _chunkAWRMYDINjs.getSnapIcon; exports.getSnapSourceCode = _chunkAWRMYDINjs.getSnapSourceCode; exports.getWritableManifest = _chunkAWRMYDINjs.getWritableManifest; exports.validateNpmSnapManifest = _chunkAWRMYDINjs.validateNpmSnapManifest;
|
|
42
42
|
//# sourceMappingURL=manifest.js.map
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
getSnapSourceCode,
|
|
8
8
|
getWritableManifest,
|
|
9
9
|
validateNpmSnapManifest
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-PIG67G67.mjs";
|
|
11
11
|
import "../chunk-LCWDLIK5.mjs";
|
|
12
12
|
import "../chunk-2IWSQJKQ.mjs";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-MNCFAD4E.mjs";
|
|
14
14
|
import "../chunk-EXUEHPZ4.mjs";
|
|
15
15
|
import "../chunk-T6FWIDA6.mjs";
|
|
16
16
|
import "../chunk-DKDGMZFU.mjs";
|
package/dist/manifest/node.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkAWRMYDINjs = require('../chunk-AWRMYDIN.js');
|
|
12
12
|
require('../chunk-4CMD46B2.js');
|
|
13
13
|
|
|
14
14
|
|
|
@@ -33,7 +33,7 @@ require('../chunk-4CMD46B2.js');
|
|
|
33
33
|
|
|
34
34
|
var _chunkENKAY3PIjs = require('../chunk-ENKAY3PI.js');
|
|
35
35
|
require('../chunk-TG4BDSYJ.js');
|
|
36
|
-
require('../chunk-
|
|
36
|
+
require('../chunk-M3KAAQFK.js');
|
|
37
37
|
require('../chunk-6LOYTBS3.js');
|
|
38
38
|
require('../chunk-CMOSYNZR.js');
|
|
39
39
|
require('../chunk-CQRPSEH3.js');
|
|
@@ -81,5 +81,5 @@ require('../chunk-PHUTP7NB.js');
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
exports.Bip32EntropyStruct = _chunkENKAY3PIjs.Bip32EntropyStruct; exports.Bip32PathStruct = _chunkENKAY3PIjs.Bip32PathStruct; exports.ChainIdsStruct = _chunkENKAY3PIjs.ChainIdsStruct; exports.FORBIDDEN_COIN_TYPES = _chunkENKAY3PIjs.FORBIDDEN_COIN_TYPES; exports.HandlerCaveatsStruct = _chunkENKAY3PIjs.HandlerCaveatsStruct; exports.InitialConnectionsStruct = _chunkENKAY3PIjs.InitialConnectionsStruct; exports.LookupMatchersStruct = _chunkENKAY3PIjs.LookupMatchersStruct; exports.MAXIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MAXIMUM_REQUEST_TIMEOUT; exports.MINIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MINIMUM_REQUEST_TIMEOUT; exports.MaxRequestTimeStruct = _chunkENKAY3PIjs.MaxRequestTimeStruct; exports.PermissionsStruct = _chunkENKAY3PIjs.PermissionsStruct; exports.SemVerRangeStruct = _chunkENKAY3PIjs.SemVerRangeStruct; exports.SnapAuxilaryFilesStruct = _chunkENKAY3PIjs.SnapAuxilaryFilesStruct; exports.SnapGetBip32EntropyPermissionsStruct = _chunkENKAY3PIjs.SnapGetBip32EntropyPermissionsStruct; exports.SnapIdsStruct = _chunkENKAY3PIjs.SnapIdsStruct; exports.SnapManifestStruct = _chunkENKAY3PIjs.SnapManifestStruct; exports.assertIsSnapManifest = _chunkENKAY3PIjs.assertIsSnapManifest; exports.bip32entropy = _chunkENKAY3PIjs.bip32entropy; exports.checkManifest =
|
|
84
|
+
exports.Bip32EntropyStruct = _chunkENKAY3PIjs.Bip32EntropyStruct; exports.Bip32PathStruct = _chunkENKAY3PIjs.Bip32PathStruct; exports.ChainIdsStruct = _chunkENKAY3PIjs.ChainIdsStruct; exports.FORBIDDEN_COIN_TYPES = _chunkENKAY3PIjs.FORBIDDEN_COIN_TYPES; exports.HandlerCaveatsStruct = _chunkENKAY3PIjs.HandlerCaveatsStruct; exports.InitialConnectionsStruct = _chunkENKAY3PIjs.InitialConnectionsStruct; exports.LookupMatchersStruct = _chunkENKAY3PIjs.LookupMatchersStruct; exports.MAXIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MAXIMUM_REQUEST_TIMEOUT; exports.MINIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MINIMUM_REQUEST_TIMEOUT; exports.MaxRequestTimeStruct = _chunkENKAY3PIjs.MaxRequestTimeStruct; exports.PermissionsStruct = _chunkENKAY3PIjs.PermissionsStruct; exports.SemVerRangeStruct = _chunkENKAY3PIjs.SemVerRangeStruct; exports.SnapAuxilaryFilesStruct = _chunkENKAY3PIjs.SnapAuxilaryFilesStruct; exports.SnapGetBip32EntropyPermissionsStruct = _chunkENKAY3PIjs.SnapGetBip32EntropyPermissionsStruct; exports.SnapIdsStruct = _chunkENKAY3PIjs.SnapIdsStruct; exports.SnapManifestStruct = _chunkENKAY3PIjs.SnapManifestStruct; exports.assertIsSnapManifest = _chunkENKAY3PIjs.assertIsSnapManifest; exports.bip32entropy = _chunkENKAY3PIjs.bip32entropy; exports.checkManifest = _chunkAWRMYDINjs.checkManifest; exports.createSnapManifest = _chunkENKAY3PIjs.createSnapManifest; exports.fixManifest = _chunkAWRMYDINjs.fixManifest; exports.getSnapFilePaths = _chunkAWRMYDINjs.getSnapFilePaths; exports.getSnapFiles = _chunkAWRMYDINjs.getSnapFiles; exports.getSnapIcon = _chunkAWRMYDINjs.getSnapIcon; exports.getSnapSourceCode = _chunkAWRMYDINjs.getSnapSourceCode; exports.getWritableManifest = _chunkAWRMYDINjs.getWritableManifest; exports.isSnapManifest = _chunkENKAY3PIjs.isSnapManifest; exports.validateNpmSnapManifest = _chunkAWRMYDINjs.validateNpmSnapManifest;
|
|
85
85
|
//# sourceMappingURL=node.js.map
|
package/dist/manifest/node.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getSnapSourceCode,
|
|
9
9
|
getWritableManifest,
|
|
10
10
|
validateNpmSnapManifest
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-PIG67G67.mjs";
|
|
12
12
|
import "../chunk-JI5NQ2C3.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Bip32EntropyStruct,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isSnapManifest
|
|
34
34
|
} from "../chunk-LCWDLIK5.mjs";
|
|
35
35
|
import "../chunk-2IWSQJKQ.mjs";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-MNCFAD4E.mjs";
|
|
37
37
|
import "../chunk-EXUEHPZ4.mjs";
|
|
38
38
|
import "../chunk-T6FWIDA6.mjs";
|
|
39
39
|
import "../chunk-DKDGMZFU.mjs";
|
package/dist/node.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkAWRMYDINjs = require('./chunk-AWRMYDIN.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -38,10 +38,10 @@ var _chunkIJX3CXOYjs = require('./chunk-IJX3CXOY.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkEX4PPLNDjs = require('./chunk-EX4PPLND.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkYMUOYQFUjs = require('./chunk-YMUOYQFU.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -93,7 +93,7 @@ var _chunkAOGVLPQZjs = require('./chunk-AOGVLPQZ.js');
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
var _chunkTG4BDSYJjs = require('./chunk-TG4BDSYJ.js');
|
|
96
|
-
require('./chunk-
|
|
96
|
+
require('./chunk-M3KAAQFK.js');
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
|
|
@@ -444,5 +444,5 @@ require('./chunk-PHUTP7NB.js');
|
|
|
444
444
|
|
|
445
445
|
|
|
446
446
|
|
|
447
|
-
exports.ACCOUNT_ADDRESS_REGEX = _chunk6LOYTBS3js.ACCOUNT_ADDRESS_REGEX; exports.ACCOUNT_ID_REGEX = _chunk6LOYTBS3js.ACCOUNT_ID_REGEX; exports.ALL_APIS = _chunk7P62OIGXjs.ALL_APIS; exports.AccountAddressStruct = _chunk6LOYTBS3js.AccountAddressStruct; exports.AccountIdArrayStruct = _chunk6LOYTBS3js.AccountIdArrayStruct; exports.AccountIdStruct = _chunk6LOYTBS3js.AccountIdStruct; exports.AddressResolutionResponseStruct = _chunk3SOYDY4Wjs.AddressResolutionResponseStruct; exports.AddressResolutionStruct = _chunk3SOYDY4Wjs.AddressResolutionStruct; exports.BaseSnapIdStruct = _chunkTG4BDSYJjs.BaseSnapIdStruct; exports.Bip32EntropyStruct = _chunkENKAY3PIjs.Bip32EntropyStruct; exports.Bip32PathStruct = _chunkENKAY3PIjs.Bip32PathStruct; exports.CHAIN_ID_REGEX = _chunk6LOYTBS3js.CHAIN_ID_REGEX; exports.ChainIdStringStruct = _chunk6LOYTBS3js.ChainIdStringStruct; exports.ChainIdStruct = _chunk6LOYTBS3js.ChainIdStruct; exports.ChainIdsStruct = _chunkENKAY3PIjs.ChainIdsStruct; exports.ChainStruct = _chunk6LOYTBS3js.ChainStruct; exports.CronExpressionStruct = _chunk2LBN5T56js.CronExpressionStruct; exports.CronjobRpcRequestStruct = _chunk2LBN5T56js.CronjobRpcRequestStruct; exports.CronjobSpecificationArrayStruct = _chunk2LBN5T56js.CronjobSpecificationArrayStruct; exports.CronjobSpecificationStruct = _chunk2LBN5T56js.CronjobSpecificationStruct; exports.DEFAULT_ENDOWMENTS = _chunkN722KRZWjs.DEFAULT_ENDOWMENTS; exports.DEFAULT_REQUESTED_SNAP_VERSION = _chunkIPOE62V4js.DEFAULT_REQUESTED_SNAP_VERSION; exports.DomainResolutionResponseStruct = _chunk3SOYDY4Wjs.DomainResolutionResponseStruct; exports.DomainResolutionStruct = _chunk3SOYDY4Wjs.DomainResolutionStruct; exports.EXPECTED_SNAP_FILES = _chunkCNNMLOQ6js.EXPECTED_SNAP_FILES; exports.FORBIDDEN_COIN_TYPES = _chunkENKAY3PIjs.FORBIDDEN_COIN_TYPES; exports.HandlerCaveatsStruct = _chunkENKAY3PIjs.HandlerCaveatsStruct; exports.HandlerType = _chunkLEKZPKS2js.HandlerType; exports.HttpSnapIdStruct = _chunkTG4BDSYJjs.HttpSnapIdStruct; exports.InitialConnectionsStruct = _chunkENKAY3PIjs.InitialConnectionsStruct; exports.KeyringOriginsStruct = _chunkCQRPSEH3js.KeyringOriginsStruct; exports.LOCALHOST_HOSTNAMES = _chunkTG4BDSYJjs.LOCALHOST_HOSTNAMES; exports.LOCALIZABLE_FIELDS = _chunkAFQY2CNYjs.LOCALIZABLE_FIELDS; exports.LimitedString = _chunk6LOYTBS3js.LimitedString; exports.LocalSnapIdStruct = _chunkTG4BDSYJjs.LocalSnapIdStruct; exports.LocalizationFileStruct = _chunkAFQY2CNYjs.LocalizationFileStruct; exports.LookupMatchersStruct = _chunkENKAY3PIjs.LookupMatchersStruct; exports.MAXIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MAXIMUM_REQUEST_TIMEOUT; exports.MINIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MINIMUM_REQUEST_TIMEOUT; exports.MaxRequestTimeStruct = _chunkENKAY3PIjs.MaxRequestTimeStruct; exports.NameStruct = _chunkCMOSYNZRjs.NameStruct; exports.NamespaceIdStruct = _chunk6LOYTBS3js.NamespaceIdStruct; exports.NamespaceStruct = _chunk6LOYTBS3js.NamespaceStruct; exports.NpmSnapFileNames = _chunkCMOSYNZRjs.NpmSnapFileNames; exports.NpmSnapIdStruct = _chunkTG4BDSYJjs.NpmSnapIdStruct; exports.NpmSnapPackageJsonStruct = _chunkCMOSYNZRjs.NpmSnapPackageJsonStruct; exports.OnHomePageResponseStruct = _chunk3SOYDY4Wjs.OnHomePageResponseStruct; exports.OnHomePageResponseWithContentStruct = _chunk3SOYDY4Wjs.OnHomePageResponseWithContentStruct; exports.OnHomePageResponseWithIdStruct = _chunk3SOYDY4Wjs.OnHomePageResponseWithIdStruct; exports.OnNameLookupResponseStruct = _chunk3SOYDY4Wjs.OnNameLookupResponseStruct; exports.OnSignatureResponseStruct = _chunk3SOYDY4Wjs.OnSignatureResponseStruct; exports.OnTransactionResponseStruct = _chunk3SOYDY4Wjs.OnTransactionResponseStruct; exports.OnTransactionResponseWithContentStruct = _chunk3SOYDY4Wjs.OnTransactionResponseWithContentStruct; exports.OnTransactionResponseWithIdStruct = _chunk3SOYDY4Wjs.OnTransactionResponseWithIdStruct; exports.OnTransactionSeverityResponseStruct = _chunk3SOYDY4Wjs.OnTransactionSeverityResponseStruct; exports.PROPOSED_NAME_REGEX = _chunkTG4BDSYJjs.PROPOSED_NAME_REGEX; exports.PermissionsStruct = _chunkENKAY3PIjs.PermissionsStruct; exports.PostProcessWarning = _chunk44VFHYJOjs.PostProcessWarning; exports.ProgrammaticallyFixableSnapError = _chunkTG4BDSYJjs.ProgrammaticallyFixableSnapError; exports.RpcOriginsStruct = _chunkCQRPSEH3js.RpcOriginsStruct; exports.SIP_6_MAGIC_VALUE = _chunkZT3KKTS2js.SIP_6_MAGIC_VALUE; exports.SNAPS_DERIVATION_PATHS = _chunk2PCPD5XYjs.SNAPS_DERIVATION_PATHS; exports.SNAP_ERROR_WRAPPER_CODE = _chunkK6BCBPXFjs.SNAP_ERROR_WRAPPER_CODE; exports.SNAP_ERROR_WRAPPER_MESSAGE = _chunkK6BCBPXFjs.SNAP_ERROR_WRAPPER_MESSAGE; exports.SNAP_EXPORTS = _chunk3SOYDY4Wjs.SNAP_EXPORTS; exports.SNAP_EXPORT_NAMES = _chunkLEKZPKS2js.SNAP_EXPORT_NAMES; exports.SNAP_STREAM_NAMES = _chunkCMOSYNZRjs.SNAP_STREAM_NAMES; exports.STATE_ENCRYPTION_MAGIC_VALUE = _chunkZT3KKTS2js.STATE_ENCRYPTION_MAGIC_VALUE; exports.SemVerRangeStruct = _chunkENKAY3PIjs.SemVerRangeStruct; exports.SnapAuxilaryFilesStruct = _chunkENKAY3PIjs.SnapAuxilaryFilesStruct; exports.SnapCaveatType = _chunkASZWZ7JTjs.SnapCaveatType; exports.SnapEvalError = _chunkLBRWAC27js.SnapEvalError; exports.SnapFileNameFromKey = _chunkCNNMLOQ6js.SnapFileNameFromKey; exports.SnapGetBip32EntropyPermissionsStruct = _chunkENKAY3PIjs.SnapGetBip32EntropyPermissionsStruct; exports.SnapIdPrefixes = _chunkCMOSYNZRjs.SnapIdPrefixes; exports.SnapIdStruct = _chunkTG4BDSYJjs.SnapIdStruct; exports.SnapIdsStruct = _chunkENKAY3PIjs.SnapIdsStruct; exports.SnapManifestStruct = _chunkENKAY3PIjs.SnapManifestStruct; exports.SnapStatus = _chunkTG4BDSYJjs.SnapStatus; exports.SnapStatusEvents = _chunkTG4BDSYJjs.SnapStatusEvents; exports.SnapValidationFailureReason = _chunkCMOSYNZRjs.SnapValidationFailureReason; exports.SnapsStructError = _chunkA6E325SZjs.SnapsStructError; exports.TRANSLATION_REGEX = _chunkAFQY2CNYjs.TRANSLATION_REGEX; exports.VirtualFile = _chunkHJYRGKCXjs.VirtualFile; exports.WALLET_SNAP_PERMISSION_KEY = _chunkCMOSYNZRjs.WALLET_SNAP_PERMISSION_KEY; exports.WrappedSnapError = _chunkK6BCBPXFjs.WrappedSnapError; exports.arrayToGenerator = _chunkA6E325SZjs.arrayToGenerator; exports.assertIsJsonRpcSuccess = _chunkCQRPSEH3js.assertIsJsonRpcSuccess; exports.assertIsKeyringOrigins = _chunkCQRPSEH3js.assertIsKeyringOrigins; exports.assertIsNpmSnapPackageJson = _chunkCMOSYNZRjs.assertIsNpmSnapPackageJson; exports.assertIsRpcOrigins = _chunkCQRPSEH3js.assertIsRpcOrigins; exports.assertIsSnapManifest = _chunkENKAY3PIjs.assertIsSnapManifest; exports.assertIsValidSnapId = _chunkTG4BDSYJjs.assertIsValidSnapId; exports.bip32entropy = _chunkENKAY3PIjs.bip32entropy; exports.checkManifest = _chunkCNNMLOQ6js.checkManifest; exports.checksum = _chunkMLOQHUOYjs.checksum; exports.checksumFiles = _chunkMLOQHUOYjs.checksumFiles; exports.createFromStruct = _chunkA6E325SZjs.createFromStruct; exports.createSnapManifest = _chunkENKAY3PIjs.createSnapManifest; exports.createUnion = _chunkA6E325SZjs.createUnion; exports.createWindow = _chunkPLBSSUVYjs.createWindow; exports.decodeBase64 = _chunkIHQPAJ2Bjs.decodeBase64; exports.deepClone = _chunkNUCLSR2Gjs.deepClone; exports.encodeAuxiliaryFile = _chunkIXBJNVHKjs.encodeAuxiliaryFile; exports.encodeBase64 = _chunkIHQPAJ2Bjs.encodeBase64; exports.evalBundle = _chunkLBRWAC27js.evalBundle; exports.fixManifest = _chunkCNNMLOQ6js.fixManifest; exports.generateMockEndowments = _chunk7P62OIGXjs.generateMockEndowments; exports.getBytes = _chunk473MIETWjs.getBytes; exports.getError = _chunkA6E325SZjs.getError; exports.getLocalizationFile = _chunkAFQY2CNYjs.getLocalizationFile; exports.getLocalizedSnapManifest = _chunkAFQY2CNYjs.getLocalizedSnapManifest; exports.getOutfilePath = _chunkX44Z53IGjs.getOutfilePath; exports.getSlip44ProtocolName = _chunk2PCPD5XYjs.getSlip44ProtocolName; exports.getSnapChecksum = _chunkTG4BDSYJjs.getSnapChecksum; exports.getSnapDerivationPathName = _chunk2PCPD5XYjs.getSnapDerivationPathName; exports.getSnapFilePaths = _chunkCNNMLOQ6js.getSnapFilePaths; exports.getSnapFiles = _chunkCNNMLOQ6js.getSnapFiles; exports.getSnapIcon = _chunkCNNMLOQ6js.getSnapIcon; exports.getSnapPrefix = _chunkTG4BDSYJjs.getSnapPrefix; exports.getSnapSourceCode = _chunkCNNMLOQ6js.getSnapSourceCode; exports.getStructErrorMessage = _chunkA6E325SZjs.getStructErrorMessage; exports.getStructErrorPrefix = _chunkA6E325SZjs.getStructErrorPrefix; exports.getStructFailureMessage = _chunkA6E325SZjs.getStructFailureMessage; exports.getStructFromPath = _chunkA6E325SZjs.getStructFromPath; exports.getTargetVersion = _chunkIPOE62V4js.getTargetVersion; exports.getTotalTextLength = _chunk772OPTGXjs.getTotalTextLength; exports.getUnionStructNames = _chunkA6E325SZjs.getUnionStructNames; exports.getValidatedLocalizationFiles = _chunkAFQY2CNYjs.getValidatedLocalizationFiles; exports.getWritableManifest = _chunkCNNMLOQ6js.getWritableManifest; exports.indent = _chunkIJX3CXOYjs.indent; exports.isAccountId = _chunk6LOYTBS3js.isAccountId; exports.isAccountIdArray = _chunk6LOYTBS3js.isAccountIdArray; exports.isCaipChainId = _chunkTG4BDSYJjs.isCaipChainId; exports.isChainId = _chunk6LOYTBS3js.isChainId; exports.isConstructor = _chunk7P62OIGXjs.isConstructor; exports.isCronjobSpecification = _chunk2LBN5T56js.isCronjobSpecification; exports.isCronjobSpecificationArray = _chunk2LBN5T56js.isCronjobSpecificationArray; exports.isDirectory = _chunkX44Z53IGjs.isDirectory; exports.isEqual = _chunkT3YY4JIJjs.isEqual; exports.isFile = _chunkX44Z53IGjs.isFile; exports.isNamespace = _chunk6LOYTBS3js.isNamespace; exports.isNamespaceId = _chunk6LOYTBS3js.isNamespaceId; exports.isNpmSnapPackageJson = _chunkCMOSYNZRjs.isNpmSnapPackageJson; exports.isOriginAllowed = _chunkCQRPSEH3js.isOriginAllowed; exports.isSerializedSnapError = _chunkK6BCBPXFjs.isSerializedSnapError; exports.isSnapError = _chunkK6BCBPXFjs.isSnapError; exports.isSnapManifest = _chunkENKAY3PIjs.isSnapManifest; exports.isSnapPermitted = _chunkTG4BDSYJjs.isSnapPermitted; exports.isValidUrl = _chunkCMOSYNZRjs.isValidUrl; exports.isWrappedSnapError = _chunkK6BCBPXFjs.isWrappedSnapError; exports.logError = _chunkE3BDBG6Tjs.logError; exports.logInfo = _chunkE3BDBG6Tjs.logInfo; exports.logWarning = _chunkE3BDBG6Tjs.logWarning; exports.named = _chunkA6E325SZjs.named; exports.normalizeRelative = _chunkAOGVLPQZjs.normalizeRelative; exports.parseAccountId = _chunk6LOYTBS3js.parseAccountId; exports.parseChainId = _chunk6LOYTBS3js.parseChainId; exports.parseCronExpression = _chunk2LBN5T56js.parseCronExpression; exports.parseJson = _chunkHF7HUZ5Zjs.parseJson; exports.postProcessBundle = _chunk44VFHYJOjs.postProcessBundle; exports.readJsonFile = _chunkX44Z53IGjs.readJsonFile; exports.readVirtualFile = _chunkQSCKTRRUjs.readVirtualFile; exports.resolveVersionRange = _chunkIPOE62V4js.resolveVersionRange; exports.snapsLogger = _chunkE3BDBG6Tjs.snapsLogger; exports.stripSnapPrefix = _chunkTG4BDSYJjs.stripSnapPrefix; exports.translate = _chunkAFQY2CNYjs.translate; exports.unwrapError = _chunkK6BCBPXFjs.unwrapError; exports.uri = _chunkCMOSYNZRjs.uri; exports.useTemporaryFile = _chunkX44Z53IGjs.useTemporaryFile; exports.validateComponentLinks = _chunk772OPTGXjs.validateComponentLinks; exports.validateDirPath = _chunkX44Z53IGjs.validateDirPath; exports.validateFetchedSnap = _chunkQ7RCL5IEjs.validateFetchedSnap; exports.validateFilePath = _chunkX44Z53IGjs.validateFilePath; exports.validateNpmSnap = _chunkCNNMLOQ6js.validateNpmSnap; exports.validateNpmSnapManifest = _chunkCNNMLOQ6js.validateNpmSnapManifest; exports.validateOutfileName = _chunkX44Z53IGjs.validateOutfileName; exports.validateSnapManifestLocalizations = _chunkAFQY2CNYjs.validateSnapManifestLocalizations; exports.validateSnapShasum = _chunkTG4BDSYJjs.validateSnapShasum; exports.validateTextLinks = _chunk772OPTGXjs.validateTextLinks; exports.validateUnion = _chunkA6E325SZjs.validateUnion; exports.verifyRequestedSnapPermissions = _chunkTG4BDSYJjs.verifyRequestedSnapPermissions; exports.writeVirtualFile = _chunkQSCKTRRUjs.writeVirtualFile;
|
|
447
|
+
exports.ACCOUNT_ADDRESS_REGEX = _chunk6LOYTBS3js.ACCOUNT_ADDRESS_REGEX; exports.ACCOUNT_ID_REGEX = _chunk6LOYTBS3js.ACCOUNT_ID_REGEX; exports.ALL_APIS = _chunk7P62OIGXjs.ALL_APIS; exports.AccountAddressStruct = _chunk6LOYTBS3js.AccountAddressStruct; exports.AccountIdArrayStruct = _chunk6LOYTBS3js.AccountIdArrayStruct; exports.AccountIdStruct = _chunk6LOYTBS3js.AccountIdStruct; exports.AddressResolutionResponseStruct = _chunk3SOYDY4Wjs.AddressResolutionResponseStruct; exports.AddressResolutionStruct = _chunk3SOYDY4Wjs.AddressResolutionStruct; exports.BaseSnapIdStruct = _chunkTG4BDSYJjs.BaseSnapIdStruct; exports.Bip32EntropyStruct = _chunkENKAY3PIjs.Bip32EntropyStruct; exports.Bip32PathStruct = _chunkENKAY3PIjs.Bip32PathStruct; exports.CHAIN_ID_REGEX = _chunk6LOYTBS3js.CHAIN_ID_REGEX; exports.ChainIdStringStruct = _chunk6LOYTBS3js.ChainIdStringStruct; exports.ChainIdStruct = _chunk6LOYTBS3js.ChainIdStruct; exports.ChainIdsStruct = _chunkENKAY3PIjs.ChainIdsStruct; exports.ChainStruct = _chunk6LOYTBS3js.ChainStruct; exports.CronExpressionStruct = _chunk2LBN5T56js.CronExpressionStruct; exports.CronjobRpcRequestStruct = _chunk2LBN5T56js.CronjobRpcRequestStruct; exports.CronjobSpecificationArrayStruct = _chunk2LBN5T56js.CronjobSpecificationArrayStruct; exports.CronjobSpecificationStruct = _chunk2LBN5T56js.CronjobSpecificationStruct; exports.DEFAULT_ENDOWMENTS = _chunkN722KRZWjs.DEFAULT_ENDOWMENTS; exports.DEFAULT_REQUESTED_SNAP_VERSION = _chunkIPOE62V4js.DEFAULT_REQUESTED_SNAP_VERSION; exports.DomainResolutionResponseStruct = _chunk3SOYDY4Wjs.DomainResolutionResponseStruct; exports.DomainResolutionStruct = _chunk3SOYDY4Wjs.DomainResolutionStruct; exports.EXPECTED_SNAP_FILES = _chunkAWRMYDINjs.EXPECTED_SNAP_FILES; exports.FORBIDDEN_COIN_TYPES = _chunkENKAY3PIjs.FORBIDDEN_COIN_TYPES; exports.HandlerCaveatsStruct = _chunkENKAY3PIjs.HandlerCaveatsStruct; exports.HandlerType = _chunkLEKZPKS2js.HandlerType; exports.HttpSnapIdStruct = _chunkTG4BDSYJjs.HttpSnapIdStruct; exports.InitialConnectionsStruct = _chunkENKAY3PIjs.InitialConnectionsStruct; exports.KeyringOriginsStruct = _chunkCQRPSEH3js.KeyringOriginsStruct; exports.LOCALHOST_HOSTNAMES = _chunkTG4BDSYJjs.LOCALHOST_HOSTNAMES; exports.LOCALIZABLE_FIELDS = _chunkAFQY2CNYjs.LOCALIZABLE_FIELDS; exports.LimitedString = _chunk6LOYTBS3js.LimitedString; exports.LocalSnapIdStruct = _chunkTG4BDSYJjs.LocalSnapIdStruct; exports.LocalizationFileStruct = _chunkAFQY2CNYjs.LocalizationFileStruct; exports.LookupMatchersStruct = _chunkENKAY3PIjs.LookupMatchersStruct; exports.MAXIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MAXIMUM_REQUEST_TIMEOUT; exports.MINIMUM_REQUEST_TIMEOUT = _chunkENKAY3PIjs.MINIMUM_REQUEST_TIMEOUT; exports.MaxRequestTimeStruct = _chunkENKAY3PIjs.MaxRequestTimeStruct; exports.NameStruct = _chunkCMOSYNZRjs.NameStruct; exports.NamespaceIdStruct = _chunk6LOYTBS3js.NamespaceIdStruct; exports.NamespaceStruct = _chunk6LOYTBS3js.NamespaceStruct; exports.NpmSnapFileNames = _chunkCMOSYNZRjs.NpmSnapFileNames; exports.NpmSnapIdStruct = _chunkTG4BDSYJjs.NpmSnapIdStruct; exports.NpmSnapPackageJsonStruct = _chunkCMOSYNZRjs.NpmSnapPackageJsonStruct; exports.OnHomePageResponseStruct = _chunk3SOYDY4Wjs.OnHomePageResponseStruct; exports.OnHomePageResponseWithContentStruct = _chunk3SOYDY4Wjs.OnHomePageResponseWithContentStruct; exports.OnHomePageResponseWithIdStruct = _chunk3SOYDY4Wjs.OnHomePageResponseWithIdStruct; exports.OnNameLookupResponseStruct = _chunk3SOYDY4Wjs.OnNameLookupResponseStruct; exports.OnSignatureResponseStruct = _chunk3SOYDY4Wjs.OnSignatureResponseStruct; exports.OnTransactionResponseStruct = _chunk3SOYDY4Wjs.OnTransactionResponseStruct; exports.OnTransactionResponseWithContentStruct = _chunk3SOYDY4Wjs.OnTransactionResponseWithContentStruct; exports.OnTransactionResponseWithIdStruct = _chunk3SOYDY4Wjs.OnTransactionResponseWithIdStruct; exports.OnTransactionSeverityResponseStruct = _chunk3SOYDY4Wjs.OnTransactionSeverityResponseStruct; exports.PROPOSED_NAME_REGEX = _chunkTG4BDSYJjs.PROPOSED_NAME_REGEX; exports.PermissionsStruct = _chunkENKAY3PIjs.PermissionsStruct; exports.PostProcessWarning = _chunk44VFHYJOjs.PostProcessWarning; exports.ProgrammaticallyFixableSnapError = _chunkTG4BDSYJjs.ProgrammaticallyFixableSnapError; exports.RpcOriginsStruct = _chunkCQRPSEH3js.RpcOriginsStruct; exports.SIP_6_MAGIC_VALUE = _chunkZT3KKTS2js.SIP_6_MAGIC_VALUE; exports.SNAPS_DERIVATION_PATHS = _chunk2PCPD5XYjs.SNAPS_DERIVATION_PATHS; exports.SNAP_ERROR_WRAPPER_CODE = _chunkK6BCBPXFjs.SNAP_ERROR_WRAPPER_CODE; exports.SNAP_ERROR_WRAPPER_MESSAGE = _chunkK6BCBPXFjs.SNAP_ERROR_WRAPPER_MESSAGE; exports.SNAP_EXPORTS = _chunk3SOYDY4Wjs.SNAP_EXPORTS; exports.SNAP_EXPORT_NAMES = _chunkLEKZPKS2js.SNAP_EXPORT_NAMES; exports.SNAP_STREAM_NAMES = _chunkCMOSYNZRjs.SNAP_STREAM_NAMES; exports.STATE_ENCRYPTION_MAGIC_VALUE = _chunkZT3KKTS2js.STATE_ENCRYPTION_MAGIC_VALUE; exports.SemVerRangeStruct = _chunkENKAY3PIjs.SemVerRangeStruct; exports.SnapAuxilaryFilesStruct = _chunkENKAY3PIjs.SnapAuxilaryFilesStruct; exports.SnapCaveatType = _chunkASZWZ7JTjs.SnapCaveatType; exports.SnapEvalError = _chunkLBRWAC27js.SnapEvalError; exports.SnapFileNameFromKey = _chunkAWRMYDINjs.SnapFileNameFromKey; exports.SnapGetBip32EntropyPermissionsStruct = _chunkENKAY3PIjs.SnapGetBip32EntropyPermissionsStruct; exports.SnapIdPrefixes = _chunkCMOSYNZRjs.SnapIdPrefixes; exports.SnapIdStruct = _chunkTG4BDSYJjs.SnapIdStruct; exports.SnapIdsStruct = _chunkENKAY3PIjs.SnapIdsStruct; exports.SnapManifestStruct = _chunkENKAY3PIjs.SnapManifestStruct; exports.SnapStatus = _chunkTG4BDSYJjs.SnapStatus; exports.SnapStatusEvents = _chunkTG4BDSYJjs.SnapStatusEvents; exports.SnapValidationFailureReason = _chunkCMOSYNZRjs.SnapValidationFailureReason; exports.SnapsStructError = _chunkA6E325SZjs.SnapsStructError; exports.TRANSLATION_REGEX = _chunkAFQY2CNYjs.TRANSLATION_REGEX; exports.VirtualFile = _chunkHJYRGKCXjs.VirtualFile; exports.WALLET_SNAP_PERMISSION_KEY = _chunkCMOSYNZRjs.WALLET_SNAP_PERMISSION_KEY; exports.WrappedSnapError = _chunkK6BCBPXFjs.WrappedSnapError; exports.arrayToGenerator = _chunkA6E325SZjs.arrayToGenerator; exports.assertIsJsonRpcSuccess = _chunkCQRPSEH3js.assertIsJsonRpcSuccess; exports.assertIsKeyringOrigins = _chunkCQRPSEH3js.assertIsKeyringOrigins; exports.assertIsNpmSnapPackageJson = _chunkCMOSYNZRjs.assertIsNpmSnapPackageJson; exports.assertIsRpcOrigins = _chunkCQRPSEH3js.assertIsRpcOrigins; exports.assertIsSnapManifest = _chunkENKAY3PIjs.assertIsSnapManifest; exports.assertIsValidSnapId = _chunkTG4BDSYJjs.assertIsValidSnapId; exports.bip32entropy = _chunkENKAY3PIjs.bip32entropy; exports.checkManifest = _chunkAWRMYDINjs.checkManifest; exports.checksum = _chunkMLOQHUOYjs.checksum; exports.checksumFiles = _chunkMLOQHUOYjs.checksumFiles; exports.createFromStruct = _chunkA6E325SZjs.createFromStruct; exports.createSnapManifest = _chunkENKAY3PIjs.createSnapManifest; exports.createUnion = _chunkA6E325SZjs.createUnion; exports.createWindow = _chunkPLBSSUVYjs.createWindow; exports.decodeBase64 = _chunkIHQPAJ2Bjs.decodeBase64; exports.deepClone = _chunkNUCLSR2Gjs.deepClone; exports.encodeAuxiliaryFile = _chunkIXBJNVHKjs.encodeAuxiliaryFile; exports.encodeBase64 = _chunkIHQPAJ2Bjs.encodeBase64; exports.evalBundle = _chunkLBRWAC27js.evalBundle; exports.fixManifest = _chunkAWRMYDINjs.fixManifest; exports.generateMockEndowments = _chunk7P62OIGXjs.generateMockEndowments; exports.getBytes = _chunk473MIETWjs.getBytes; exports.getError = _chunkA6E325SZjs.getError; exports.getLocalizationFile = _chunkAFQY2CNYjs.getLocalizationFile; exports.getLocalizedSnapManifest = _chunkAFQY2CNYjs.getLocalizedSnapManifest; exports.getOutfilePath = _chunkX44Z53IGjs.getOutfilePath; exports.getSlip44ProtocolName = _chunk2PCPD5XYjs.getSlip44ProtocolName; exports.getSnapChecksum = _chunkTG4BDSYJjs.getSnapChecksum; exports.getSnapDerivationPathName = _chunk2PCPD5XYjs.getSnapDerivationPathName; exports.getSnapFilePaths = _chunkAWRMYDINjs.getSnapFilePaths; exports.getSnapFiles = _chunkAWRMYDINjs.getSnapFiles; exports.getSnapIcon = _chunkAWRMYDINjs.getSnapIcon; exports.getSnapPrefix = _chunkTG4BDSYJjs.getSnapPrefix; exports.getSnapSourceCode = _chunkAWRMYDINjs.getSnapSourceCode; exports.getStructErrorMessage = _chunkA6E325SZjs.getStructErrorMessage; exports.getStructErrorPrefix = _chunkA6E325SZjs.getStructErrorPrefix; exports.getStructFailureMessage = _chunkA6E325SZjs.getStructFailureMessage; exports.getStructFromPath = _chunkA6E325SZjs.getStructFromPath; exports.getTargetVersion = _chunkIPOE62V4js.getTargetVersion; exports.getTotalTextLength = _chunkEX4PPLNDjs.getTotalTextLength; exports.getUnionStructNames = _chunkA6E325SZjs.getUnionStructNames; exports.getValidatedLocalizationFiles = _chunkAFQY2CNYjs.getValidatedLocalizationFiles; exports.getWritableManifest = _chunkAWRMYDINjs.getWritableManifest; exports.indent = _chunkIJX3CXOYjs.indent; exports.isAccountId = _chunk6LOYTBS3js.isAccountId; exports.isAccountIdArray = _chunk6LOYTBS3js.isAccountIdArray; exports.isCaipChainId = _chunkTG4BDSYJjs.isCaipChainId; exports.isChainId = _chunk6LOYTBS3js.isChainId; exports.isConstructor = _chunk7P62OIGXjs.isConstructor; exports.isCronjobSpecification = _chunk2LBN5T56js.isCronjobSpecification; exports.isCronjobSpecificationArray = _chunk2LBN5T56js.isCronjobSpecificationArray; exports.isDirectory = _chunkX44Z53IGjs.isDirectory; exports.isEqual = _chunkT3YY4JIJjs.isEqual; exports.isFile = _chunkX44Z53IGjs.isFile; exports.isNamespace = _chunk6LOYTBS3js.isNamespace; exports.isNamespaceId = _chunk6LOYTBS3js.isNamespaceId; exports.isNpmSnapPackageJson = _chunkCMOSYNZRjs.isNpmSnapPackageJson; exports.isOriginAllowed = _chunkCQRPSEH3js.isOriginAllowed; exports.isSerializedSnapError = _chunkK6BCBPXFjs.isSerializedSnapError; exports.isSnapError = _chunkK6BCBPXFjs.isSnapError; exports.isSnapManifest = _chunkENKAY3PIjs.isSnapManifest; exports.isSnapPermitted = _chunkTG4BDSYJjs.isSnapPermitted; exports.isValidUrl = _chunkCMOSYNZRjs.isValidUrl; exports.isWrappedSnapError = _chunkK6BCBPXFjs.isWrappedSnapError; exports.logError = _chunkE3BDBG6Tjs.logError; exports.logInfo = _chunkE3BDBG6Tjs.logInfo; exports.logWarning = _chunkE3BDBG6Tjs.logWarning; exports.named = _chunkA6E325SZjs.named; exports.normalizeRelative = _chunkAOGVLPQZjs.normalizeRelative; exports.parseAccountId = _chunk6LOYTBS3js.parseAccountId; exports.parseChainId = _chunk6LOYTBS3js.parseChainId; exports.parseCronExpression = _chunk2LBN5T56js.parseCronExpression; exports.parseJson = _chunkHF7HUZ5Zjs.parseJson; exports.postProcessBundle = _chunk44VFHYJOjs.postProcessBundle; exports.readJsonFile = _chunkX44Z53IGjs.readJsonFile; exports.readVirtualFile = _chunkQSCKTRRUjs.readVirtualFile; exports.resolveVersionRange = _chunkIPOE62V4js.resolveVersionRange; exports.snapsLogger = _chunkE3BDBG6Tjs.snapsLogger; exports.stripSnapPrefix = _chunkTG4BDSYJjs.stripSnapPrefix; exports.translate = _chunkAFQY2CNYjs.translate; exports.unwrapError = _chunkK6BCBPXFjs.unwrapError; exports.uri = _chunkCMOSYNZRjs.uri; exports.useTemporaryFile = _chunkX44Z53IGjs.useTemporaryFile; exports.validateComponentLinks = _chunkEX4PPLNDjs.validateComponentLinks; exports.validateDirPath = _chunkX44Z53IGjs.validateDirPath; exports.validateFetchedSnap = _chunkYMUOYQFUjs.validateFetchedSnap; exports.validateFilePath = _chunkX44Z53IGjs.validateFilePath; exports.validateNpmSnap = _chunkAWRMYDINjs.validateNpmSnap; exports.validateNpmSnapManifest = _chunkAWRMYDINjs.validateNpmSnapManifest; exports.validateOutfileName = _chunkX44Z53IGjs.validateOutfileName; exports.validateSnapManifestLocalizations = _chunkAFQY2CNYjs.validateSnapManifestLocalizations; exports.validateSnapShasum = _chunkTG4BDSYJjs.validateSnapShasum; exports.validateTextLinks = _chunkEX4PPLNDjs.validateTextLinks; exports.validateUnion = _chunkA6E325SZjs.validateUnion; exports.verifyRequestedSnapPermissions = _chunkTG4BDSYJjs.verifyRequestedSnapPermissions; exports.writeVirtualFile = _chunkQSCKTRRUjs.writeVirtualFile;
|
|
448
448
|
//# sourceMappingURL=node.js.map
|
package/dist/node.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getWritableManifest,
|
|
12
12
|
validateNpmSnap,
|
|
13
13
|
validateNpmSnapManifest
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PIG67G67.mjs";
|
|
15
15
|
import {
|
|
16
16
|
PostProcessWarning,
|
|
17
17
|
postProcessBundle
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
getTotalTextLength,
|
|
39
39
|
validateComponentLinks,
|
|
40
40
|
validateTextLinks
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HDZ3BJBL.mjs";
|
|
42
42
|
import {
|
|
43
43
|
validateFetchedSnap
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LGT3PBPZ.mjs";
|
|
45
45
|
import {
|
|
46
46
|
DEFAULT_REQUESTED_SNAP_VERSION,
|
|
47
47
|
getTargetVersion,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
validateSnapShasum,
|
|
94
94
|
verifyRequestedSnapPermissions
|
|
95
95
|
} from "./chunk-2IWSQJKQ.mjs";
|
|
96
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-MNCFAD4E.mjs";
|
|
97
97
|
import {
|
|
98
98
|
logError,
|
|
99
99
|
logInfo,
|