Comparing version 2.3.2 to 2.3.3
@@ -123,4 +123,11 @@ import { isNode } from '../nodes/identity.js'; | ||
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 === '!') | ||
@@ -127,0 +134,0 @@ return source; // local tag |
@@ -125,4 +125,11 @@ 'use strict'; | ||
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 === '!') | ||
@@ -129,0 +136,0 @@ return source; // local tag |
{ | ||
"name": "yaml", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "author": "Eemeli Aro <eemeli@gmail.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
661137
17508