diff options
Diffstat (limited to 'node_modules/yaml')
| -rw-r--r-- | node_modules/yaml/browser/dist/doc/directives.js | 11 | ||||
| -rw-r--r-- | node_modules/yaml/dist/doc/directives.js | 11 | ||||
| -rw-r--r-- | node_modules/yaml/package.json | 2 |
3 files changed, 19 insertions, 5 deletions
diff --git a/node_modules/yaml/browser/dist/doc/directives.js b/node_modules/yaml/browser/dist/doc/directives.js index d8b96864..aa56441c 100644 --- a/node_modules/yaml/browser/dist/doc/directives.js +++ b/node_modules/yaml/browser/dist/doc/directives.js @@ -120,8 +120,15 @@ class Directives { if (!suffix) onError(`The ${source} tag has no suffix`); const prefix = this.tags[handle]; - if (prefix) - return prefix + decodeURIComponent(suffix); + if (prefix) { + try { + return prefix + decodeURIComponent(suffix); + } + catch (error) { + onError(String(error)); + return null; + } + } if (handle === '!') return source; // local tag onError(`Could not resolve tag: ${source}`); diff --git a/node_modules/yaml/dist/doc/directives.js b/node_modules/yaml/dist/doc/directives.js index 854c7e56..2eb9d3c5 100644 --- a/node_modules/yaml/dist/doc/directives.js +++ b/node_modules/yaml/dist/doc/directives.js @@ -122,8 +122,15 @@ class Directives { if (!suffix) onError(`The ${source} tag has no suffix`); const prefix = this.tags[handle]; - if (prefix) - return prefix + decodeURIComponent(suffix); + if (prefix) { + try { + return prefix + decodeURIComponent(suffix); + } + catch (error) { + onError(String(error)); + return null; + } + } if (handle === '!') return source; // local tag onError(`Could not resolve tag: ${source}`); diff --git a/node_modules/yaml/package.json b/node_modules/yaml/package.json index ceb2f637..503d34e1 100644 --- a/node_modules/yaml/package.json +++ b/node_modules/yaml/package.json @@ -1,6 +1,6 @@ { "name": "yaml", - "version": "2.3.2", + "version": "2.3.3", "license": "ISC", "author": "Eemeli Aro <eemeli@gmail.com>", "repository": "github:eemeli/yaml", |
