Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1089236

Bug#1003601: libjs-marked: loading marked.js from the browser gives "export is not defined"

Path csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Thomas Viehmann <tv@beamnet.de>
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 <DELRn-Rd-1@gated-at.bofh.it> (permalink)
X-Original-To Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Wed Jan 12 13:27:11 2022
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -6.651
Reply-To Thomas Viehmann <tv@beamnet.de>, 1003601@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
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 <debian-bugs-dist@lists.debian.org> archive/latest/1700190
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
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

Show key headers only | View raw


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 <tv@beamnet.de>  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

Back to linux.debian.bugs.dist | Previous | Next | Find similar


Thread

Bug#1003601: libjs-marked: loading marked.js from the browser gives "export is not defined" Thomas Viehmann <tv@beamnet.de> - 2022-01-12 14:30 +0100

csiph-web