3';
- const opts = {
- treeAdapter,
- sourceCodeLocationInfo: true,
- };
-
const fragment = parse5.parseFragment(html, opts);
const firstP = treeAdapter.getChildNodes(fragment)[0];
const firstPLocation = treeAdapter.getNodeSourceCodeLocation(firstP)!;
@@ -36,11 +36,6 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
test('Regression - Incorrect LocationInfo.endOffset for element with closing tag (GH-159)', () => {
const html = '12';
- const opts = {
- treeAdapter,
- sourceCodeLocationInfo: true,
- };
-
const fragment = parse5.parseFragment(html, opts);
const firstChild = treeAdapter.getChildNodes(fragment)[0];
const location = treeAdapter.getNodeSourceCodeLocation(firstChild);
@@ -52,11 +47,6 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
test('Regression - Location info not exposed with parseFragment (GH-82)', () => {
const html = '
foo';
- const opts = {
- treeAdapter,
- sourceCodeLocationInfo: true,
- };
-
const fragment = parse5.parseFragment(html, opts);
const firstChild = treeAdapter.getChildNodes(fragment)[0];
@@ -66,11 +56,6 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
test('Regression - location info mixin error when parsing elements (GH-90)', () => {
const html = 'hello';
- const opts = {
- treeAdapter,
- sourceCodeLocationInfo: true,
- };
-
assert.doesNotThrow(() => {
parse5.parseFragment(html, opts);
});
@@ -79,11 +64,6 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
test('Regression - location info not attached for empty attributes (GH-96)', () => {
const html = '';
- const opts = {
- treeAdapter,
- sourceCodeLocationInfo: true,
- };
-
const fragment = parse5.parseFragment(html, opts);
const firstChild = treeAdapter.getChildNodes(fragment)[0];
@@ -99,11 +79,6 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
`;
- const opts = {
- treeAdapter,
- sourceCodeLocationInfo: true,
- };
-
const document = parse5.parse(html, opts);
const htmlEl = treeAdapter.getChildNodes(document)[0];
const bodyEl = treeAdapter.getChildNodes(htmlEl)[1];
@@ -117,11 +92,6 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
test('Regression - location.startTag should be available if end tag is missing (GH-181)', () => {
const html = 'test';
- const opts = {
- treeAdapter,
- sourceCodeLocationInfo: true,
- };
-
const fragment = parse5.parseFragment(html, opts);
const p = treeAdapter.getChildNodes(fragment)[0];
const location = treeAdapter.getNodeSourceCodeLocation(p);
diff --git a/packages/parse5/package.json b/packages/parse5/package.json
index 701c6a01b..f010d5c7d 100644
--- a/packages/parse5/package.json
+++ b/packages/parse5/package.json
@@ -27,7 +27,15 @@
"serialize"
],
"license": "MIT",
- "main": "dist/index.js",
+ "main": "dist/cjs/index.js",
+ "module": "dist/index.js",
+ "types": "dist/index.d.ts",
+ "exports": {
+ ".": {
+ "import": "dist/index.js",
+ "require": "dist/cjs/index.js"
+ }
+ },
"repository": {
"type": "git",
"url": "git://github.com/inikulin/parse5.git"
diff --git a/packages/parse5/tsconfig.cjs.json b/packages/parse5/tsconfig.cjs.json
new file mode 100644
index 000000000..760382867
--- /dev/null
+++ b/packages/parse5/tsconfig.cjs.json
@@ -0,0 +1,8 @@
+{
+ "extends": "./tsconfig.json",
+ "compilerOptions": {
+ "module": "CommonJS",
+ "target": "ES6",
+ "outDir": "dist/cjs"
+ }
+}
diff --git a/test/utils/generate-serializer-tests.ts b/test/utils/generate-serializer-tests.ts
index 553c3ac58..ed26a2331 100644
--- a/test/utils/generate-serializer-tests.ts
+++ b/test/utils/generate-serializer-tests.ts
@@ -23,7 +23,7 @@ export function generateSerializerTests(
generateTestsForEachTreeAdapter(name, (treeAdapter) => {
for (const [idx, test] of tests.entries()) {
it(`${prefix} - ${idx}.${test.name}`, async () => {
- const opts = { ...test.options, treeAdapter };
+ const opts: parse5.SerializerOptions = { ...test.options, treeAdapter };
const document = parse5.parse(test.input, opts);
const serializedResult = await serialize(document, opts);
From 57a36c4dc5db62e8a31d101d952125019d205712 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20B=C3=B6hm?= <188768+fb55@users.noreply.github.com>
Date: Sat, 26 Feb 2022 20:51:07 +0000
Subject: [PATCH 10/14] Add build command
---
package.json | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 20fa3068f..e738d90d0 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,9 @@
"typescript": "^4.6.2"
},
"scripts": {
- "build": "tsc --build packages/* test",
+ "build:es": "tsc --build packages/* test",
+ "build:cjs": "tsc -p packages/parse5/tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > packages/parse5/dist/cjs/package.json",
+ "build": "npm run build:es && npm run build:cjs",
"prettier": "prettier '**/*.{js,ts,md,json,yml}' --loglevel warn",
"format": "npm run format:es && npm run format:prettier",
"format:es": "npm run lint:es -- --fix",
From 6fa3d07a354442e661e6690b3723f6993347f845 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20B=C3=B6hm?= <188768+fb55@users.noreply.github.com>
Date: Sat, 26 Feb 2022 20:58:24 +0000
Subject: [PATCH 11/14] Revert unnecessary changes
---
.../test/plain-text-conversion-stream.test.ts | 3 +-
packages/parse5/lib/parser/index.test.ts | 2 +-
.../lib/parser/parser-location-info.test.ts | 40 ++++++++++++++++---
test/utils/generate-serializer-tests.ts | 2 +-
4 files changed, 38 insertions(+), 9 deletions(-)
diff --git a/packages/parse5-plain-text-conversion-stream/test/plain-text-conversion-stream.test.ts b/packages/parse5-plain-text-conversion-stream/test/plain-text-conversion-stream.test.ts
index 99909f2af..fa61da664 100644
--- a/packages/parse5-plain-text-conversion-stream/test/plain-text-conversion-stream.test.ts
+++ b/packages/parse5-plain-text-conversion-stream/test/plain-text-conversion-stream.test.ts
@@ -1,6 +1,5 @@
import * as assert from 'node:assert';
import * as parse5 from 'parse5';
-import type { TreeAdapterTypeMap } from 'parse5/dist/tree-adapters/interface.js';
import { PlainTextConversionStream } from '../lib/index.js';
import { generateTestsForEachTreeAdapter } from 'parse5-test-utils/utils/common.js';
@@ -13,7 +12,7 @@ generateTestsForEachTreeAdapter('plain-test-conversion-stream', (treeAdapter) =>
converter.write('\u0000');
converter.end('');
- const result = parse5.serialize(converter.document, { treeAdapter });
+ const result = parse5.serialize(converter.document, { treeAdapter });
assert.strictEqual(
result,
diff --git a/packages/parse5/lib/parser/index.test.ts b/packages/parse5/lib/parser/index.test.ts
index 707cf0e3d..c8cb9c263 100644
--- a/packages/parse5/lib/parser/index.test.ts
+++ b/packages/parse5/lib/parser/index.test.ts
@@ -1,5 +1,5 @@
import * as assert from 'node:assert';
-import * as parse5 from 'parse5/dist/index.js';
+import * as parse5 from 'parse5';
import { jest } from '@jest/globals';
import { Parser, ParserOptions } from './index.js';
import type { TreeAdapterTypeMap } from './../tree-adapters/interface.js';
diff --git a/packages/parse5/lib/parser/parser-location-info.test.ts b/packages/parse5/lib/parser/parser-location-info.test.ts
index d3740b2ba..71c02b963 100644
--- a/packages/parse5/lib/parser/parser-location-info.test.ts
+++ b/packages/parse5/lib/parser/parser-location-info.test.ts
@@ -18,14 +18,14 @@ generateLocationInfoParserTests(
);
generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
- const opts: parse5.ParserOptions = {
- treeAdapter,
- sourceCodeLocationInfo: true,
- };
-
test('Regression - Incorrect LocationInfo.endOffset for implicitly closed element (GH-109)', () => {
const html = '
1
3';
+ const opts = {
+ treeAdapter,
+ sourceCodeLocationInfo: true,
+ };
+
const fragment = parse5.parseFragment(html, opts);
const firstP = treeAdapter.getChildNodes(fragment)[0];
const firstPLocation = treeAdapter.getNodeSourceCodeLocation(firstP)!;
@@ -36,6 +36,11 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
test('Regression - Incorrect LocationInfo.endOffset for element with closing tag (GH-159)', () => {
const html = '12';
+ const opts = {
+ treeAdapter,
+ sourceCodeLocationInfo: true,
+ };
+
const fragment = parse5.parseFragment(html, opts);
const firstChild = treeAdapter.getChildNodes(fragment)[0];
const location = treeAdapter.getNodeSourceCodeLocation(firstChild);
@@ -47,6 +52,11 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
test('Regression - Location info not exposed with parseFragment (GH-82)', () => {
const html = '
foo';
+ const opts = {
+ treeAdapter,
+ sourceCodeLocationInfo: true,
+ };
+
const fragment = parse5.parseFragment(html, opts);
const firstChild = treeAdapter.getChildNodes(fragment)[0];
@@ -56,6 +66,11 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
test('Regression - location info mixin error when parsing elements (GH-90)', () => {
const html = 'hello';
+ const opts = {
+ treeAdapter,
+ sourceCodeLocationInfo: true,
+ };
+
assert.doesNotThrow(() => {
parse5.parseFragment(html, opts);
});
@@ -64,6 +79,11 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
test('Regression - location info not attached for empty attributes (GH-96)', () => {
const html = '';
+ const opts = {
+ treeAdapter,
+ sourceCodeLocationInfo: true,
+ };
+
const fragment = parse5.parseFragment(html, opts);
const firstChild = treeAdapter.getChildNodes(fragment)[0];
@@ -79,6 +99,11 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
`;
+ const opts = {
+ treeAdapter,
+ sourceCodeLocationInfo: true,
+ };
+
const document = parse5.parse(html, opts);
const htmlEl = treeAdapter.getChildNodes(document)[0];
const bodyEl = treeAdapter.getChildNodes(htmlEl)[1];
@@ -92,6 +117,11 @@ generateTestsForEachTreeAdapter('location-info-parser', (treeAdapter) => {
test('Regression - location.startTag should be available if end tag is missing (GH-181)', () => {
const html = 'test';
+ const opts = {
+ treeAdapter,
+ sourceCodeLocationInfo: true,
+ };
+
const fragment = parse5.parseFragment(html, opts);
const p = treeAdapter.getChildNodes(fragment)[0];
const location = treeAdapter.getNodeSourceCodeLocation(p);
diff --git a/test/utils/generate-serializer-tests.ts b/test/utils/generate-serializer-tests.ts
index ed26a2331..553c3ac58 100644
--- a/test/utils/generate-serializer-tests.ts
+++ b/test/utils/generate-serializer-tests.ts
@@ -23,7 +23,7 @@ export function generateSerializerTests(
generateTestsForEachTreeAdapter(name, (treeAdapter) => {
for (const [idx, test] of tests.entries()) {
it(`${prefix} - ${idx}.${test.name}`, async () => {
- const opts: parse5.SerializerOptions = { ...test.options, treeAdapter };
+ const opts = { ...test.options, treeAdapter };
const document = parse5.parse(test.input, opts);
const serializedResult = await serialize(document, opts);
From eda5873a9cb17007d7ad84196ef51127cd6213fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20B=C3=B6hm?= <188768+fb55@users.noreply.github.com>
Date: Sat, 26 Feb 2022 21:03:46 +0000
Subject: [PATCH 12/14] Flip order of scripts
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index e738d90d0..461ab2118 100644
--- a/package.json
+++ b/package.json
@@ -24,9 +24,9 @@
"typescript": "^4.6.2"
},
"scripts": {
+ "build": "npm run build:es && npm run build:cjs",
"build:es": "tsc --build packages/* test",
"build:cjs": "tsc -p packages/parse5/tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > packages/parse5/dist/cjs/package.json",
- "build": "npm run build:es && npm run build:cjs",
"prettier": "prettier '**/*.{js,ts,md,json,yml}' --loglevel warn",
"format": "npm run format:es && npm run format:prettier",
"format:es": "npm run lint:es -- --fix",
From de39a2b511f84be88d7ef0b19e3fd63cf88b2857 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20B=C3=B6hm?= <188768+fb55@users.noreply.github.com>
Date: Sun, 27 Feb 2022 17:27:35 +0000
Subject: [PATCH 13/14] Update package.json
Co-authored-by: Titus
---
package.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
index 461ab2118..a08d5e181 100644
--- a/package.json
+++ b/package.json
@@ -24,8 +24,8 @@
"typescript": "^4.6.2"
},
"scripts": {
- "build": "npm run build:es && npm run build:cjs",
- "build:es": "tsc --build packages/* test",
+ "build": "npm run build:esm && npm run build:cjs",
+ "build:esm": "tsc --build packages/* test",
"build:cjs": "tsc -p packages/parse5/tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > packages/parse5/dist/cjs/package.json",
"prettier": "prettier '**/*.{js,ts,md,json,yml}' --loglevel warn",
"format": "npm run format:es && npm run format:prettier",
From 5a65dfa4ce8bd63d05bb4d36d04ebea9beed1153 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20B=C3=B6hm?= <188768+fb55@users.noreply.github.com>
Date: Wed, 2 Mar 2022 11:01:38 +0000
Subject: [PATCH 14/14] Revert unrelated changes
Rebase snafoo
---
.github/workflows/dependabot-automerge.yml | 2 +-
README.md | 7 -
package-lock.json | 204 ++++++++++-----------
package.json | 8 +-
4 files changed, 107 insertions(+), 114 deletions(-)
diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml
index 1a1e2a648..9fcebaf70 100644
--- a/.github/workflows/dependabot-automerge.yml
+++ b/.github/workflows/dependabot-automerge.yml
@@ -13,7 +13,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
- uses: dependabot/fetch-metadata@v1.3.0
+ uses: dependabot/fetch-metadata@v1.2.1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Enable auto-merge for Dependabot PRs
diff --git a/README.md b/README.md
index 990c7f72f..c6c71d27f 100644
--- a/README.md
+++ b/README.md
@@ -8,13 +8,6 @@
HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.
----
-
-This is a fork of the original parse5 package. We want this to become the next version of the package, pending on
-@inikulin's go-ahead.
-
----
-
diff --git a/package-lock.json b/package-lock.json
index 042b7d3fb..21dcc5466 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,9 +12,9 @@
],
"devDependencies": {
"@types/jest": "^27.4.1",
- "@typescript-eslint/eslint-plugin": "^5.13.0",
- "@typescript-eslint/parser": "^5.13.0",
- "eslint": "^8.10.0",
+ "@typescript-eslint/eslint-plugin": "^5.12.1",
+ "@typescript-eslint/parser": "^5.12.1",
+ "eslint": "^8.9.0",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-unicorn": "^41.0.0",
"husky": "^7.0.4",
@@ -24,7 +24,7 @@
"prettier": "^2.5.0",
"ts-jest": "^27.1.3",
"ts-node": "^10.5.0",
- "typescript": "^4.6.2"
+ "typescript": "^4.5.5"
}
},
"bench": {
@@ -595,9 +595,9 @@
}
},
"node_modules/@eslint/eslintrc": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.0.tgz",
- "integrity": "sha512-igm9SjJHNEJRiUnecP/1R5T3wKLEJ7pL6e2P+GUSfCd0dGjPYYZve08uzw8L2J8foVHFz+NGu12JxRcU2gGo6w==",
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.1.0.tgz",
+ "integrity": "sha512-C1DfL7XX4nPqGd6jcP01W9pVM1HYCuUkFk1432D7F0v3JSlUIeOYn9oCoi3eoLZ+iwBSb29BMFxxny0YrrEZqg==",
"dev": true,
"dependencies": {
"ajv": "^6.12.4",
@@ -1148,14 +1148,14 @@
"license": "MIT"
},
"node_modules/@typescript-eslint/eslint-plugin": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.13.0.tgz",
- "integrity": "sha512-vLktb2Uec81fxm/cfz2Hd6QaWOs8qdmVAZXLdOBX6JFJDhf6oDZpMzZ4/LZ6SFM/5DgDcxIMIvy3F+O9yZBuiQ==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.12.1.tgz",
+ "integrity": "sha512-M499lqa8rnNK7mUv74lSFFttuUsubIRdAbHcVaP93oFcKkEmHmLqy2n7jM9C8DVmFMYK61ExrZU6dLYhQZmUpw==",
"dev": true,
"dependencies": {
- "@typescript-eslint/scope-manager": "5.13.0",
- "@typescript-eslint/type-utils": "5.13.0",
- "@typescript-eslint/utils": "5.13.0",
+ "@typescript-eslint/scope-manager": "5.12.1",
+ "@typescript-eslint/type-utils": "5.12.1",
+ "@typescript-eslint/utils": "5.12.1",
"debug": "^4.3.2",
"functional-red-black-tree": "^1.0.1",
"ignore": "^5.1.8",
@@ -1189,14 +1189,14 @@
}
},
"node_modules/@typescript-eslint/parser": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.13.0.tgz",
- "integrity": "sha512-GdrU4GvBE29tm2RqWOM0P5QfCtgCyN4hXICj/X9ibKED16136l9ZpoJvCL5pSKtmJzA+NRDzQ312wWMejCVVfg==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.12.1.tgz",
+ "integrity": "sha512-6LuVUbe7oSdHxUWoX/m40Ni8gsZMKCi31rlawBHt7VtW15iHzjbpj2WLiToG2758KjtCCiLRKZqfrOdl3cNKuw==",
"dev": true,
"dependencies": {
- "@typescript-eslint/scope-manager": "5.13.0",
- "@typescript-eslint/types": "5.13.0",
- "@typescript-eslint/typescript-estree": "5.13.0",
+ "@typescript-eslint/scope-manager": "5.12.1",
+ "@typescript-eslint/types": "5.12.1",
+ "@typescript-eslint/typescript-estree": "5.12.1",
"debug": "^4.3.2"
},
"engines": {
@@ -1216,13 +1216,13 @@
}
},
"node_modules/@typescript-eslint/scope-manager": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.13.0.tgz",
- "integrity": "sha512-T4N8UvKYDSfVYdmJq7g2IPJYCRzwtp74KyDZytkR4OL3NRupvswvmJQJ4CX5tDSurW2cvCc1Ia1qM7d0jpa7IA==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.12.1.tgz",
+ "integrity": "sha512-J0Wrh5xS6XNkd4TkOosxdpObzlYfXjAFIm9QxYLCPOcHVv1FyyFCPom66uIh8uBr0sZCrtS+n19tzufhwab8ZQ==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.13.0",
- "@typescript-eslint/visitor-keys": "5.13.0"
+ "@typescript-eslint/types": "5.12.1",
+ "@typescript-eslint/visitor-keys": "5.12.1"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@@ -1233,12 +1233,12 @@
}
},
"node_modules/@typescript-eslint/type-utils": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.13.0.tgz",
- "integrity": "sha512-/nz7qFizaBM1SuqAKb7GLkcNn2buRdDgZraXlkhz+vUGiN1NZ9LzkA595tHHeduAiS2MsHqMNhE2zNzGdw43Yg==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.12.1.tgz",
+ "integrity": "sha512-Gh8feEhsNLeCz6aYqynh61Vsdy+tiNNkQtc+bN3IvQvRqHkXGUhYkUi+ePKzP0Mb42se7FDb+y2SypTbpbR/Sg==",
"dev": true,
"dependencies": {
- "@typescript-eslint/utils": "5.13.0",
+ "@typescript-eslint/utils": "5.12.1",
"debug": "^4.3.2",
"tsutils": "^3.21.0"
},
@@ -1259,9 +1259,9 @@
}
},
"node_modules/@typescript-eslint/types": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.13.0.tgz",
- "integrity": "sha512-LmE/KO6DUy0nFY/OoQU0XelnmDt+V8lPQhh8MOVa7Y5k2gGRd6U9Kp3wAjhB4OHg57tUO0nOnwYQhRRyEAyOyg==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.12.1.tgz",
+ "integrity": "sha512-hfcbq4qVOHV1YRdhkDldhV9NpmmAu2vp6wuFODL71Y0Ixak+FLeEU4rnPxgmZMnGreGEghlEucs9UZn5KOfHJA==",
"dev": true,
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@@ -1272,13 +1272,13 @@
}
},
"node_modules/@typescript-eslint/typescript-estree": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.13.0.tgz",
- "integrity": "sha512-Q9cQow0DeLjnp5DuEDjLZ6JIkwGx3oYZe+BfcNuw/POhtpcxMTy18Icl6BJqTSd+3ftsrfuVb7mNHRZf7xiaNA==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.12.1.tgz",
+ "integrity": "sha512-ahOdkIY9Mgbza7L9sIi205Pe1inCkZWAHE1TV1bpxlU4RZNPtXaDZfiiFWcL9jdxvW1hDYZJXrFm+vlMkXRbBw==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.13.0",
- "@typescript-eslint/visitor-keys": "5.13.0",
+ "@typescript-eslint/types": "5.12.1",
+ "@typescript-eslint/visitor-keys": "5.12.1",
"debug": "^4.3.2",
"globby": "^11.0.4",
"is-glob": "^4.0.3",
@@ -1299,15 +1299,15 @@
}
},
"node_modules/@typescript-eslint/utils": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.13.0.tgz",
- "integrity": "sha512-+9oHlPWYNl6AwwoEt5TQryEHwiKRVjz7Vk6kaBeD3/kwHE5YqTGHtm/JZY8Bo9ITOeKutFaXnBlMgSATMJALUQ==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.12.1.tgz",
+ "integrity": "sha512-Qq9FIuU0EVEsi8fS6pG+uurbhNTtoYr4fq8tKjBupsK5Bgbk2I32UGm0Sh+WOyjOPgo/5URbxxSNV6HYsxV4MQ==",
"dev": true,
"dependencies": {
"@types/json-schema": "^7.0.9",
- "@typescript-eslint/scope-manager": "5.13.0",
- "@typescript-eslint/types": "5.13.0",
- "@typescript-eslint/typescript-estree": "5.13.0",
+ "@typescript-eslint/scope-manager": "5.12.1",
+ "@typescript-eslint/types": "5.12.1",
+ "@typescript-eslint/typescript-estree": "5.12.1",
"eslint-scope": "^5.1.1",
"eslint-utils": "^3.0.0"
},
@@ -1345,12 +1345,12 @@
}
},
"node_modules/@typescript-eslint/visitor-keys": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.13.0.tgz",
- "integrity": "sha512-HLKEAS/qA1V7d9EzcpLFykTePmOQqOFim8oCvhY3pZgQ8Hi38hYpHd9e5GN6nQBFQNecNhws5wkS9Y5XIO0s/g==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.12.1.tgz",
+ "integrity": "sha512-l1KSLfupuwrXx6wc0AuOmC7Ko5g14ZOQ86wJJqRbdLbXLK02pK/DPiDDqCc7BqqiiA04/eAA6ayL0bgOrAkH7A==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.13.0",
+ "@typescript-eslint/types": "5.12.1",
"eslint-visitor-keys": "^3.0.0"
},
"engines": {
@@ -2341,12 +2341,12 @@
}
},
"node_modules/eslint": {
- "version": "8.10.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.10.0.tgz",
- "integrity": "sha512-tcI1D9lfVec+R4LE1mNDnzoJ/f71Kl/9Cv4nG47jOueCMBrCCKYXr4AUVS7go6mWYGFD4+EoN6+eXSrEbRzXVw==",
+ "version": "8.9.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.9.0.tgz",
+ "integrity": "sha512-PB09IGwv4F4b0/atrbcMFboF/giawbBLVC7fyDamk5Wtey4Jh2K+rYaBhCAbUyEI4QzB1ly09Uglc9iCtFaG2Q==",
"dev": true,
"dependencies": {
- "@eslint/eslintrc": "^1.2.0",
+ "@eslint/eslintrc": "^1.1.0",
"@humanwhocodes/config-array": "^0.9.2",
"ajv": "^6.10.0",
"chalk": "^4.0.0",
@@ -5605,9 +5605,9 @@
}
},
"node_modules/typescript": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz",
- "integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==",
+ "version": "4.5.5",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz",
+ "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
@@ -6311,9 +6311,9 @@
}
},
"@eslint/eslintrc": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.0.tgz",
- "integrity": "sha512-igm9SjJHNEJRiUnecP/1R5T3wKLEJ7pL6e2P+GUSfCd0dGjPYYZve08uzw8L2J8foVHFz+NGu12JxRcU2gGo6w==",
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.1.0.tgz",
+ "integrity": "sha512-C1DfL7XX4nPqGd6jcP01W9pVM1HYCuUkFk1432D7F0v3JSlUIeOYn9oCoi3eoLZ+iwBSb29BMFxxny0YrrEZqg==",
"dev": true,
"requires": {
"ajv": "^6.12.4",
@@ -6764,14 +6764,14 @@
"dev": true
},
"@typescript-eslint/eslint-plugin": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.13.0.tgz",
- "integrity": "sha512-vLktb2Uec81fxm/cfz2Hd6QaWOs8qdmVAZXLdOBX6JFJDhf6oDZpMzZ4/LZ6SFM/5DgDcxIMIvy3F+O9yZBuiQ==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.12.1.tgz",
+ "integrity": "sha512-M499lqa8rnNK7mUv74lSFFttuUsubIRdAbHcVaP93oFcKkEmHmLqy2n7jM9C8DVmFMYK61ExrZU6dLYhQZmUpw==",
"dev": true,
"requires": {
- "@typescript-eslint/scope-manager": "5.13.0",
- "@typescript-eslint/type-utils": "5.13.0",
- "@typescript-eslint/utils": "5.13.0",
+ "@typescript-eslint/scope-manager": "5.12.1",
+ "@typescript-eslint/type-utils": "5.12.1",
+ "@typescript-eslint/utils": "5.12.1",
"debug": "^4.3.2",
"functional-red-black-tree": "^1.0.1",
"ignore": "^5.1.8",
@@ -6787,52 +6787,52 @@
}
},
"@typescript-eslint/parser": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.13.0.tgz",
- "integrity": "sha512-GdrU4GvBE29tm2RqWOM0P5QfCtgCyN4hXICj/X9ibKED16136l9ZpoJvCL5pSKtmJzA+NRDzQ312wWMejCVVfg==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.12.1.tgz",
+ "integrity": "sha512-6LuVUbe7oSdHxUWoX/m40Ni8gsZMKCi31rlawBHt7VtW15iHzjbpj2WLiToG2758KjtCCiLRKZqfrOdl3cNKuw==",
"dev": true,
"requires": {
- "@typescript-eslint/scope-manager": "5.13.0",
- "@typescript-eslint/types": "5.13.0",
- "@typescript-eslint/typescript-estree": "5.13.0",
+ "@typescript-eslint/scope-manager": "5.12.1",
+ "@typescript-eslint/types": "5.12.1",
+ "@typescript-eslint/typescript-estree": "5.12.1",
"debug": "^4.3.2"
}
},
"@typescript-eslint/scope-manager": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.13.0.tgz",
- "integrity": "sha512-T4N8UvKYDSfVYdmJq7g2IPJYCRzwtp74KyDZytkR4OL3NRupvswvmJQJ4CX5tDSurW2cvCc1Ia1qM7d0jpa7IA==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.12.1.tgz",
+ "integrity": "sha512-J0Wrh5xS6XNkd4TkOosxdpObzlYfXjAFIm9QxYLCPOcHVv1FyyFCPom66uIh8uBr0sZCrtS+n19tzufhwab8ZQ==",
"dev": true,
"requires": {
- "@typescript-eslint/types": "5.13.0",
- "@typescript-eslint/visitor-keys": "5.13.0"
+ "@typescript-eslint/types": "5.12.1",
+ "@typescript-eslint/visitor-keys": "5.12.1"
}
},
"@typescript-eslint/type-utils": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.13.0.tgz",
- "integrity": "sha512-/nz7qFizaBM1SuqAKb7GLkcNn2buRdDgZraXlkhz+vUGiN1NZ9LzkA595tHHeduAiS2MsHqMNhE2zNzGdw43Yg==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.12.1.tgz",
+ "integrity": "sha512-Gh8feEhsNLeCz6aYqynh61Vsdy+tiNNkQtc+bN3IvQvRqHkXGUhYkUi+ePKzP0Mb42se7FDb+y2SypTbpbR/Sg==",
"dev": true,
"requires": {
- "@typescript-eslint/utils": "5.13.0",
+ "@typescript-eslint/utils": "5.12.1",
"debug": "^4.3.2",
"tsutils": "^3.21.0"
}
},
"@typescript-eslint/types": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.13.0.tgz",
- "integrity": "sha512-LmE/KO6DUy0nFY/OoQU0XelnmDt+V8lPQhh8MOVa7Y5k2gGRd6U9Kp3wAjhB4OHg57tUO0nOnwYQhRRyEAyOyg==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.12.1.tgz",
+ "integrity": "sha512-hfcbq4qVOHV1YRdhkDldhV9NpmmAu2vp6wuFODL71Y0Ixak+FLeEU4rnPxgmZMnGreGEghlEucs9UZn5KOfHJA==",
"dev": true
},
"@typescript-eslint/typescript-estree": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.13.0.tgz",
- "integrity": "sha512-Q9cQow0DeLjnp5DuEDjLZ6JIkwGx3oYZe+BfcNuw/POhtpcxMTy18Icl6BJqTSd+3ftsrfuVb7mNHRZf7xiaNA==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.12.1.tgz",
+ "integrity": "sha512-ahOdkIY9Mgbza7L9sIi205Pe1inCkZWAHE1TV1bpxlU4RZNPtXaDZfiiFWcL9jdxvW1hDYZJXrFm+vlMkXRbBw==",
"dev": true,
"requires": {
- "@typescript-eslint/types": "5.13.0",
- "@typescript-eslint/visitor-keys": "5.13.0",
+ "@typescript-eslint/types": "5.12.1",
+ "@typescript-eslint/visitor-keys": "5.12.1",
"debug": "^4.3.2",
"globby": "^11.0.4",
"is-glob": "^4.0.3",
@@ -6841,15 +6841,15 @@
}
},
"@typescript-eslint/utils": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.13.0.tgz",
- "integrity": "sha512-+9oHlPWYNl6AwwoEt5TQryEHwiKRVjz7Vk6kaBeD3/kwHE5YqTGHtm/JZY8Bo9ITOeKutFaXnBlMgSATMJALUQ==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.12.1.tgz",
+ "integrity": "sha512-Qq9FIuU0EVEsi8fS6pG+uurbhNTtoYr4fq8tKjBupsK5Bgbk2I32UGm0Sh+WOyjOPgo/5URbxxSNV6HYsxV4MQ==",
"dev": true,
"requires": {
"@types/json-schema": "^7.0.9",
- "@typescript-eslint/scope-manager": "5.13.0",
- "@typescript-eslint/types": "5.13.0",
- "@typescript-eslint/typescript-estree": "5.13.0",
+ "@typescript-eslint/scope-manager": "5.12.1",
+ "@typescript-eslint/types": "5.12.1",
+ "@typescript-eslint/typescript-estree": "5.12.1",
"eslint-scope": "^5.1.1",
"eslint-utils": "^3.0.0"
},
@@ -6873,12 +6873,12 @@
}
},
"@typescript-eslint/visitor-keys": {
- "version": "5.13.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.13.0.tgz",
- "integrity": "sha512-HLKEAS/qA1V7d9EzcpLFykTePmOQqOFim8oCvhY3pZgQ8Hi38hYpHd9e5GN6nQBFQNecNhws5wkS9Y5XIO0s/g==",
+ "version": "5.12.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.12.1.tgz",
+ "integrity": "sha512-l1KSLfupuwrXx6wc0AuOmC7Ko5g14ZOQ86wJJqRbdLbXLK02pK/DPiDDqCc7BqqiiA04/eAA6ayL0bgOrAkH7A==",
"dev": true,
"requires": {
- "@typescript-eslint/types": "5.13.0",
+ "@typescript-eslint/types": "5.12.1",
"eslint-visitor-keys": "^3.0.0"
}
},
@@ -7577,12 +7577,12 @@
}
},
"eslint": {
- "version": "8.10.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.10.0.tgz",
- "integrity": "sha512-tcI1D9lfVec+R4LE1mNDnzoJ/f71Kl/9Cv4nG47jOueCMBrCCKYXr4AUVS7go6mWYGFD4+EoN6+eXSrEbRzXVw==",
+ "version": "8.9.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.9.0.tgz",
+ "integrity": "sha512-PB09IGwv4F4b0/atrbcMFboF/giawbBLVC7fyDamk5Wtey4Jh2K+rYaBhCAbUyEI4QzB1ly09Uglc9iCtFaG2Q==",
"dev": true,
"requires": {
- "@eslint/eslintrc": "^1.2.0",
+ "@eslint/eslintrc": "^1.1.0",
"@humanwhocodes/config-array": "^0.9.2",
"ajv": "^6.10.0",
"chalk": "^4.0.0",
@@ -9868,9 +9868,9 @@
}
},
"typescript": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz",
- "integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==",
+ "version": "4.5.5",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz",
+ "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==",
"dev": true
},
"universalify": {
diff --git a/package.json b/package.json
index a08d5e181..1c53898e1 100644
--- a/package.json
+++ b/package.json
@@ -9,9 +9,9 @@
],
"devDependencies": {
"@types/jest": "^27.4.1",
- "@typescript-eslint/eslint-plugin": "^5.13.0",
- "@typescript-eslint/parser": "^5.13.0",
- "eslint": "^8.10.0",
+ "@typescript-eslint/eslint-plugin": "^5.12.1",
+ "@typescript-eslint/parser": "^5.12.1",
+ "eslint": "^8.9.0",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-unicorn": "^41.0.0",
"husky": "^7.0.4",
@@ -21,7 +21,7 @@
"prettier": "^2.5.0",
"ts-jest": "^27.1.3",
"ts-node": "^10.5.0",
- "typescript": "^4.6.2"
+ "typescript": "^4.5.5"
},
"scripts": {
"build": "npm run build:esm && npm run build:cjs",