Skip to content

Commit

Permalink
switch html-parse-stringify back to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl committed Jul 12, 2020
1 parent 3afe743 commit 48bab31
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 33 deletions.
60 changes: 34 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"playwright": "^1.2.0"
},
"dependencies": {
"@jperl/html-parse-stringify": "^1.0.4",
"@qawolf/jest-reporter": "^0.1.0",
"an-array-of-english-words": "^2.0.0",
"await-outside": "^3.0.0",
Expand All @@ -53,7 +52,8 @@
"create-qawolf": "^1.0.3",
"debug": "*",
"glob": "^7.1.6",
"inquirer": "^7.3.0",
"html-parse-stringify": "^2.0.0",
"inquirer": "^7.3.1",
"kleur": "^4.0.2",
"open": "^7.0.4",
"playwright-core": "1.2.0",
Expand All @@ -71,7 +71,7 @@
"@types/inquirer": "^6.5.0",
"@types/jest": "^26.0.4",
"@types/lodash": "^4.14.157",
"@types/node": "^14.0.19",
"@types/node": "^14.0.22",
"@types/update-notifier": "^4.1.0",
"@types/ws": "^7.2.6",
"@typescript-eslint/eslint-plugin": "^3.6.0",
Expand All @@ -88,7 +88,7 @@
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-jest": "^26.1.1",
"ts-loader": "^7.0.5",
"ts-loader": "^8.0.0",
"ts-node": "^8.10.2",
"typescript": "^3.9.6",
"webpack": "^4.43.0",
Expand Down
2 changes: 1 addition & 1 deletion src/html-parse-stringify.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
declare module '@jperl/html-parse-stringify' {
declare module 'html-parse-stringify' {
interface Doc {
attrs?: any;
children?: Doc[];
Expand Down
4 changes: 2 additions & 2 deletions src/web/serialize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parse as parseHtml } from '@jperl/html-parse-stringify';
import HTML from 'html-parse-stringify';
import { Doc } from '../types';

const buildXpath = (node: Node | null): string => {
Expand Down Expand Up @@ -38,7 +38,7 @@ export const getXpath = (node: Node): string => {
};

export const htmlToDoc = (html: string): Doc => {
const result = parseHtml(html);
const result = HTML.parse(html);

if (result.length !== 1) {
console.debug('qawolf: invalid html', html, result);
Expand Down

0 comments on commit 48bab31

Please sign in to comment.