[Pkg-javascript-commits] [Git][js-team/node-carto][master] yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead

Johannes Schauer Marin Rodrigues (@josch) gitlab at salsa.debian.org
Fri Dec 10 22:54:25 GMT 2021



Johannes Schauer Marin Rodrigues pushed to branch master at Debian JavaScript Maintainers / node-carto


Commits:
80cd6cad by Johannes Schauer Marin Rodrigues at 2021-12-10T23:54:10+01:00
yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead

- - - - -


3 changed files:

- debian/changelog
- debian/patches/series
- + debian/patches/yaml.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,6 +1,7 @@
 node-carto (1.2.0-2) UNRELEASED; urgency=medium
 
   * debian/salsa-ci.yml: disable aptly
+  * yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead
 
  -- Johannes Schauer Marin Rodrigues <josch at debian.org>  Fri, 10 Dec 2021 23:06:37 +0100
 


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 disable-eslint.patch
 fix-tests.patch
+yaml.patch


=====================================
debian/patches/yaml.patch
=====================================
@@ -0,0 +1,11 @@
+--- a/lib/carto/mml.js
++++ b/lib/carto/mml.js
+@@ -22,7 +22,7 @@ carto.MML.prototype.load = function load
+         env = {};
+ 
+     try {
+-        mml = yaml.safeLoad(data);
++        mml = yaml.load(data);
+     } catch (err) {
+         env = {};
+         util.error(env, {



View it on GitLab: https://salsa.debian.org/js-team/node-carto/-/commit/80cd6cadb21c0d221e7a1b2d974c1fd8c4182837

-- 
View it on GitLab: https://salsa.debian.org/js-team/node-carto/-/commit/80cd6cadb21c0d221e7a1b2d974c1fd8c4182837
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-commits/attachments/20211210/5464a8ce/attachment.htm>


More information about the Pkg-javascript-commits mailing list