diff --git a/package-lock.json b/package-lock.json index 7bcceb4776e60..ec21e072ed145 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3045,7 +3045,7 @@ "lodash": "^4.17.11", "rememo": "^3.0.0", "showdown": "^1.8.6", - "simple-html-tokenizer": "^0.4.1", + "simple-html-tokenizer": "^0.5.7", "tinycolor2": "^1.4.1", "uuid": "^3.3.2" } @@ -19535,9 +19535,9 @@ } }, "simple-html-tokenizer": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/simple-html-tokenizer/-/simple-html-tokenizer-0.4.1.tgz", - "integrity": "sha1-AomIu3/osuZkVnbYIFJYfUQLAtM=" + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/simple-html-tokenizer/-/simple-html-tokenizer-0.5.7.tgz", + "integrity": "sha512-APW9iYbkJ5cijjX4Ljhf3VG8SwYPUJT5gZrwci/wieMabQxWFiV5VwsrP5c6GMRvXKEQMGkAB1d9dvW66dTqpg==" }, "simple-swizzle": { "version": "0.2.2", diff --git a/packages/blocks/package.json b/packages/blocks/package.json index ebcb2c2c911cb..a3c679448f01d 100644 --- a/packages/blocks/package.json +++ b/packages/blocks/package.json @@ -38,7 +38,7 @@ "lodash": "^4.17.11", "rememo": "^3.0.0", "showdown": "^1.8.6", - "simple-html-tokenizer": "^0.4.1", + "simple-html-tokenizer": "^0.5.7", "tinycolor2": "^1.4.1", "uuid": "^3.3.2" }, diff --git a/packages/blocks/src/api/validation.js b/packages/blocks/src/api/validation.js index 335f5c3b8bd39..50692a7414eff 100644 --- a/packages/blocks/src/api/validation.js +++ b/packages/blocks/src/api/validation.js @@ -1,7 +1,7 @@ /** * External dependencies */ -import Tokenizer from 'simple-html-tokenizer/dist/es6/tokenizer'; +import { Tokenizer } from 'simple-html-tokenizer'; import { identity, xor, diff --git a/test/unit/jest.config.js b/test/unit/jest.config.js index 0650c896a20ff..e2719c7eca657 100644 --- a/test/unit/jest.config.js +++ b/test/unit/jest.config.js @@ -25,7 +25,4 @@ module.exports = { '/.*/build/', '/.*/build-module/', ], - transformIgnorePatterns: [ - 'node_modules/(?!(simple-html-tokenizer)/)', - ], };