From 80cd6cadb21c0d221e7a1b2d974c1fd8c4182837 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Fri, 10 Dec 2021 23:54:10 +0100 Subject: yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead --- debian/changelog | 1 + debian/patches/series | 1 + debian/patches/yaml.patch | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 100644 debian/patches/yaml.patch diff --git a/debian/changelog b/debian/changelog index c6abdd8..b65ed66 100644 --- a/debian/changelog +++ b/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 Fri, 10 Dec 2021 23:06:37 +0100 diff --git a/debian/patches/series b/debian/patches/series index c66bb56..0b11e4c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ disable-eslint.patch fix-tests.patch +yaml.patch diff --git a/debian/patches/yaml.patch b/debian/patches/yaml.patch new file mode 100644 index 0000000..6eacc88 --- /dev/null +++ b/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, { -- cgit v1.2.3