Comparing version 3.1.4 to 3.1.5
@@ -0,1 +1,11 @@ | ||
<a name="3.1.5"></a> | ||
## [3.1.5](https://github.com/lddubeau/saxes/compare/v3.1.4...v3.1.5) (2019-01-08) | ||
### Bug Fixes | ||
* generate an error on prefix with empty local name ([89a3b86](https://github.com/lddubeau/saxes/commit/89a3b86)), closes [#5](https://github.com/lddubeau/saxes/issues/5) | ||
<a name="3.1.4"></a> | ||
@@ -2,0 +12,0 @@ ## [3.1.4](https://github.com/lddubeau/saxes/compare/v3.1.3...v3.1.4) (2018-12-03) |
@@ -1661,16 +1661,9 @@ "use strict"; | ||
// A colon at the start of the name is illegal. | ||
if (colon === 0) { | ||
this.fail(`malformed name: ${name}.`); | ||
} | ||
const local = name.substring(colon + 1); | ||
if (local.indexOf(":") !== -1) { | ||
const prefix = name.substring(0, colon); | ||
if (prefix === "" || local === "" || local.indexOf(":") !== -1) { | ||
this.fail(`malformed name: ${name}.`); | ||
} | ||
return { | ||
prefix: name.substring(0, colon), | ||
local, | ||
}; | ||
return { prefix, local }; | ||
} | ||
@@ -1677,0 +1670,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Louis-Dominique Dubeau <ldd@lddubeau.com>", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"main": "lib/saxes.js", | ||
@@ -31,5 +31,5 @@ "types": "lib/saxes.d.ts", | ||
"conventional-changelog-cli": "^2.0.11", | ||
"eslint": "^5.9.0", | ||
"eslint": "^5.12.0", | ||
"eslint-config-lddubeau-base": "^3.0.1", | ||
"husky": "^1.2.0", | ||
"husky": "^1.3.1", | ||
"mocha": "^5.2.0", | ||
@@ -36,0 +36,0 @@ "xml-conformance-suite": "^1.1.0" |
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
81350
1761