Path: csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Thomas Viehmann Newsgroups: linux.debian.bugs.dist Subject: Bug#1003601: libjs-marked: loading marked.js from the browser gives "export is not defined" Date: Wed, 12 Jan 2022 14:30:01 +0100 Message-ID: X-Original-To: Debian Bug Tracking System X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Jan 12 13:27:11 2022 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -6.651 Reply-To: Thomas Viehmann , 1003601@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: Debian Javascript Maintainers X-Debian-Pr-Message: report 1003601 X-Debian-Pr-Package: libjs-marked X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: node-marked MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: delayed 426 seconds by postgrey-1.36 at buxtehude; Wed, 12 Jan 2022 13:24:11 UTC X-Debian-Message: from BTS X-Mailing-List: archive/latest/1700190 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 82 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 12 Jan 2022 14:17:01 +0100 X-Original-Message-ID: <40b60660-f689-97c1-8b44-ad734e07f881@beamnet.de> Xref: csiph.com linux.debian.bugs.dist:1089236 Package: libjs-marked Version: 4.0.5+ds-5 Severity: important Tags: patch Hi, marked.js currently links to marked.cjs, which seems to cause problems, see https://github.com/markedjs/marked/issues/2284 for the related upstream bug. The fix could be to ship the .umd.js and minified .umd.js, as the patch I'm using locally below shows. Thisis slightly different but should be equivalent to the upstream fix. My interest in this is because Jupyter Notebook (package: python3-notebook) seems to hit an error upon loading. (Sadly, not the only one.) Best regards Thomas diff -Nru node-marked-4.0.5+ds/debian/changelog node-marked-4.0.5+ds/debian/changelog --- node-marked-4.0.5+ds/debian/changelog 2022-01-12 11:37:46.000000000 +0100 +++ node-marked-4.0.5+ds/debian/changelog 2022-01-09 11:47:31.000000000 +0100 @@ -1,10 +1,3 @@ -node-marked (4.0.5+ds-5.1) UNRELEASED; urgency=medium - - * Non-maintainer upload. - * Fix browser use - - -- Thomas Viehmann Wed, 12 Jan 2022 11:37:46 +0100 - node-marked (4.0.5+ds-5) unstable; urgency=medium * Team upload diff -Nru node-marked-4.0.5+ds/debian/libjs-marked.install node-marked-4.0.5+ds/debian/libjs-marked.install --- node-marked-4.0.5+ds/debian/libjs-marked.install 2022-01-12 11:37:46.000000000 +0100 +++ node-marked-4.0.5+ds/debian/libjs-marked.install 2022-01-09 11:23:41.000000000 +0100 @@ -1,4 +1,2 @@ lib/marked.cjs usr/share/javascript/marked/ -lib/marked.umd.js usr/share/javascript/marked/ -lib/marked.umd.min.js usr/share/javascript/marked/ lib/marked.min.cjs usr/share/javascript/marked/ diff -Nru node-marked-4.0.5+ds/debian/libjs-marked.links node-marked-4.0.5+ds/debian/libjs-marked.links --- node-marked-4.0.5+ds/debian/libjs-marked.links 2022-01-12 11:37:46.000000000 +0100 +++ node-marked-4.0.5+ds/debian/libjs-marked.links 2022-01-09 11:27:30.000000000 +0100 @@ -1,2 +1,2 @@ -usr/share/javascript/marked/marked.umd.js usr/share/javascript/marked/marked.js -usr/share/javascript/marked/marked.umd.min.js usr/share/javascript/marked/marked.min.js +usr/share/javascript/marked/marked.cjs usr/share/javascript/marked/marked.js +usr/share/javascript/marked/marked.min.cjs usr/share/javascript/marked/marked.min.js diff -Nru node-marked-4.0.5+ds/debian/rules node-marked-4.0.5+ds/debian/rules --- node-marked-4.0.5+ds/debian/rules 2022-01-12 11:37:46.000000000 +0100 +++ node-marked-4.0.5+ds/debian/rules 2022-01-09 11:23:41.000000000 +0100 @@ -10,7 +10,6 @@ override_dh_auto_build: rollup -c rollup.config.js cd lib && terser --comments '/\*[^\0]+?Copyright[^\0]+?\*/' -o marked.min.cjs marked.cjs - cd lib && terser --comments '/\*[^\0]+?Copyright[^\0]+?\*/' -o marked.umd.min.js marked.umd.js override_dh_fixperms: dh_fixperms