mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
0981509e82
* bump parse5; port patch * devDeps: jsdom@11.5.1->16.7.0 - patch-revert https://github.com/jsdom/jsdom/pull/2076 - jsdom's storage-overriding does not play well with test suite usage of localforage: $ yarn test:unit:global ✖ ERROR: TypeError: Cannot set property localStorage of #<Window> which has only a getter at Object.<anonymous> (/app/test/helpers/setup-helper.js:79:32) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1459:23) at Module._compile (/app/node_modules/pirates/lib/index.js:136:24) at Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at newLoader (/app/node_modules/pirates/lib/index.js:141:7) at Object.require.extensions.<computed> [as .js] (/app/node_modules/ts-node/src/index.ts:1462:12) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at Module.require (node:internal/modules/cjs/loader:1100:19) at require (node:internal/modules/cjs/helpers:108:18) at Object.<anonymous> (/app/test/setup.js:4:1) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29) at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at ESMLoader.import (node:internal/modules/esm/loader:530:24) at importModuleDynamicallyWrapper (node:internal/vm/module:438:15) at formattedImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:7:14) at exports.requireOrImport (/app/node_modules/mocha/lib/nodejs/esm-utils.js:48:32) at exports.handleRequires (/app/node_modules/mocha/lib/cli/run-helpers.js:94:28) at /app/node_modules/mocha/lib/cli/run.js:353:25 * update lavamoat policies * update lavamoat build policy
95 lines
5.3 KiB
Diff
95 lines
5.3 KiB
Diff
diff --git a/dist/index.d.ts b/dist/index.d.ts
|
|
index 66eb3236059f88f73355d4fddef9e06a0169b407..04f067d2bda8af760c0a95ca6b5d85bcdfb2421a 100644
|
|
--- a/dist/index.d.ts
|
|
+++ b/dist/index.d.ts
|
|
@@ -1,11 +1,12 @@
|
|
-import { type ParserOptions } from './parser/index.js';
|
|
+import { ParserOptions } from './parser/index.js';
|
|
import type { DefaultTreeAdapterMap } from './tree-adapters/default.js';
|
|
import type { TreeAdapterTypeMap } from './tree-adapters/interface.js';
|
|
-export { type DefaultTreeAdapterMap, defaultTreeAdapter } from './tree-adapters/default.js';
|
|
+export { DefaultTreeAdapterMap, defaultTreeAdapter } from './tree-adapters/default.js';
|
|
export type { TreeAdapter, TreeAdapterTypeMap } from './tree-adapters/interface.js';
|
|
-export { type ParserOptions, /** @internal */ Parser } from './parser/index.js';
|
|
-export { serialize, serializeOuter, type SerializerOptions } from './serializer/index.js';
|
|
-export { ERR as ErrorCodes, type ParserError } from './common/error-codes.js';
|
|
+export { ParserOptions, /** @internal */ Parser } from './parser/index.js';
|
|
+export { serialize, serializeOuter, SerializerOptions } from './serializer/index.js';
|
|
+export type { ParserError } from './common/error-codes.js';
|
|
+export { ERR as ErrorCodes } from './common/error-codes.js';
|
|
/** @internal */
|
|
export * as foreignContent from './common/foreign-content.js';
|
|
/** @internal */
|
|
@@ -13,7 +14,7 @@ export * as html from './common/html.js';
|
|
/** @internal */
|
|
export * as Token from './common/token.js';
|
|
/** @internal */
|
|
-export { Tokenizer, type TokenizerOptions, TokenizerMode, type TokenHandler } from './tokenizer/index.js';
|
|
+export { Tokenizer, TokenizerOptions, TokenizerMode, TokenHandler } from './tokenizer/index.js';
|
|
/**
|
|
* Parses an HTML string.
|
|
*
|
|
diff --git a/dist/parser/index.d.ts b/dist/parser/index.d.ts
|
|
index 50a9bd0c73649e4a78edd0d18b4ee44ae9cdf3b7..85cc630db81d7a4ebd01691223d81187cdd8adcb 100644
|
|
--- a/dist/parser/index.d.ts
|
|
+++ b/dist/parser/index.d.ts
|
|
@@ -1,10 +1,10 @@
|
|
-import { Tokenizer, TokenizerMode, type TokenHandler } from '../tokenizer/index.js';
|
|
-import { OpenElementStack, type StackHandler } from './open-element-stack.js';
|
|
+import { Tokenizer, TokenizerMode, TokenHandler } from '../tokenizer/index.js';
|
|
+import { OpenElementStack, StackHandler } from './open-element-stack.js';
|
|
import { FormattingElementList } from './formatting-element-list.js';
|
|
-import { ERR, type ParserErrorHandler } from '../common/error-codes.js';
|
|
+import { ERR, ParserErrorHandler } from '../common/error-codes.js';
|
|
import { TAG_ID as $, NS } from '../common/html.js';
|
|
import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface.js';
|
|
-import { type Token, type CommentToken, type CharacterToken, type TagToken, type DoctypeToken, type EOFToken, type LocationWithAttributes } from '../common/token.js';
|
|
+import { Token, CommentToken, CharacterToken, TagToken, DoctypeToken, EOFToken, LocationWithAttributes } from '../common/token.js';
|
|
declare enum InsertionMode {
|
|
INITIAL = 0,
|
|
BEFORE_HTML = 1,
|
|
diff --git a/dist/serializer/index.d.ts b/dist/serializer/index.d.ts
|
|
index bf759e63ba1be31a2ab14884fcfd6bd3e8ecd2d7..839e21e45dc13e678c9874c51524a8ed1a463591 100644
|
|
--- a/dist/serializer/index.d.ts
|
|
+++ b/dist/serializer/index.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface.js';
|
|
-import { type DefaultTreeAdapterMap } from '../tree-adapters/default.js';
|
|
+import { DefaultTreeAdapterMap } from '../tree-adapters/default.js';
|
|
export interface SerializerOptions<T extends TreeAdapterTypeMap> {
|
|
/**
|
|
* Specifies input tree format.
|
|
diff --git a/dist/tokenizer/index.d.ts b/dist/tokenizer/index.d.ts
|
|
index 5afab96d6499bb0bba706aee7d2f153647db8713..3680d732d8a3570b6a1d9336c0ebdf8fe4f392db 100644
|
|
--- a/dist/tokenizer/index.d.ts
|
|
+++ b/dist/tokenizer/index.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
import { Preprocessor } from './preprocessor.js';
|
|
-import { type CharacterToken, type DoctypeToken, type TagToken, type EOFToken, type CommentToken } from '../common/token.js';
|
|
-import { type ParserErrorHandler } from '../common/error-codes.js';
|
|
+import { CharacterToken, DoctypeToken, TagToken, EOFToken, CommentToken } from '../common/token.js';
|
|
+import { ParserErrorHandler } from '../common/error-codes.js';
|
|
declare const enum State {
|
|
DATA = 0,
|
|
RCDATA = 1,
|
|
diff --git a/dist/tree-adapters/default.d.ts b/dist/tree-adapters/default.d.ts
|
|
index 547d714bdc5a664ba1414c16bdfc9247c71ab4de..d96a23d6ce3e80d78da21d958c059de194bb5146 100644
|
|
--- a/dist/tree-adapters/default.d.ts
|
|
+++ b/dist/tree-adapters/default.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
-import { DOCUMENT_MODE, type NS } from '../common/html.js';
|
|
+import { DOCUMENT_MODE, NS } from '../common/html.js';
|
|
import type { Attribute, Location, ElementLocation } from '../common/token.js';
|
|
import type { TreeAdapter, TreeAdapterTypeMap } from './interface.js';
|
|
export interface Document {
|
|
diff --git a/dist/tokenizer/preprocessor.d.ts b/dist/tokenizer/preprocessor.d.ts
|
|
index e74a590783b4688fb6498b019c1a75cfd9ac23e7..7350e44b4ed952bcb8f167e30a94958e9fcf743a 100644
|
|
--- a/dist/tokenizer/preprocessor.d.ts
|
|
+++ b/dist/tokenizer/preprocessor.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
-import { ERR, type ParserError, type ParserErrorHandler } from '../common/error-codes.js';
|
|
+import { ERR, ParserError, ParserErrorHandler } from '../common/error-codes.js';
|
|
export declare class Preprocessor {
|
|
private handler;
|
|
html: string;
|