diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.json index a0b06e209..65351d6a5 100644 --- a/apps/mobile/package-lock.json +++ b/apps/mobile/package-lock.json @@ -1,12 +1,12 @@ { "name": "@notesnook/mobile", - "version": "2.4.12", + "version": "2.4.13", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@notesnook/mobile", - "version": "2.4.12", + "version": "2.4.13", "license": "GPL-3.0-or-later", "workspaces": [ "native/", diff --git a/apps/mobile/patches/html-to-text+8.1.0.patch b/apps/mobile/patches/html-to-text+8.1.0.patch deleted file mode 100644 index 7ec93f3ea..000000000 --- a/apps/mobile/patches/html-to-text+8.1.0.patch +++ /dev/null @@ -1,59 +0,0 @@ -diff --git a/node_modules/html-to-text/lib/formatter.js b/node_modules/html-to-text/lib/formatter.js -index d6cb1e6..68d0337 100644 ---- a/node_modules/html-to-text/lib/formatter.js -+++ b/node_modules/html-to-text/lib/formatter.js -@@ -1,4 +1,4 @@ --const he = require('he'); -+const {decode} = require('entities'); - - const { get, numberToLetterSequence, numberToRoman, splitClassesAndIds, trimCharacter } = require('./helper'); - -@@ -146,7 +146,7 @@ function withBrackets (str, brackets) { - function formatImage (elem, walk, builder, formatOptions) { - const attribs = elem.attribs || {}; - const alt = (attribs.alt) -- ? he.decode(attribs.alt, builder.options.decodeOptions) -+ ? decode(attribs.alt, builder.options.decodeOptions) - : ''; - const src = (!attribs.src) - ? '' -@@ -176,7 +176,7 @@ function formatAnchor (elem, walk, builder, formatOptions) { - href = (formatOptions.baseUrl && href[0] === '/') - ? formatOptions.baseUrl + href - : href; -- return he.decode(href, builder.options.decodeOptions); -+ return decode(href, builder.options.decodeOptions); - } - const href = getHref(); - if (!href) { -diff --git a/node_modules/html-to-text/lib/html-to-text.js b/node_modules/html-to-text/lib/html-to-text.js -index 9ebda73..8c5345f 100644 ---- a/node_modules/html-to-text/lib/html-to-text.js -+++ b/node_modules/html-to-text/lib/html-to-text.js -@@ -1,6 +1,6 @@ - const { hp2Builder } = require('@selderee/plugin-htmlparser2'); - const merge = require('deepmerge'); --const he = require('he'); -+const {decode, EntityLevel} = require("entities"); - const htmlparser = require('htmlparser2'); - const selderee = require('selderee'); - -@@ -27,8 +27,7 @@ const DEFAULT_OPTIONS = { - returnDomByDefault: true - }, - decodeOptions: { -- isAttributeValue: false, -- strict: false -+ level:EntityLevel.HTML - }, - formatters: {}, - limits: { -@@ -377,7 +376,7 @@ function recursiveWalk (walk, dom, builder) { - for (const elem of dom) { - switch (elem.type) { - case 'text': { -- builder.addInline(he.decode(elem.data, options.decodeOptions)); -+ builder.addInline(decode(elem.data, options.decodeOptions)); - break; - } - case 'tag': {