Skip to content

Commit a4c45c1

Browse files
committed
Processed review comments
Signed-off-by: Leon Grave <[email protected]>
1 parent 1603609 commit a4c45c1

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
1818
* Serializers and `Bom`-Normalizers will take changed `Models.Bom.tools` into account ([#1152] via [#1163])
1919
* Dependencies
2020
* Support `libxmljs2@^0.35` (via [#1173])
21+
* Support `libxml2-wasm@^0.41` as an alternative for `libxmljs2` (via [#1184])
2122
* Use `packageurl-js@^2.0.1`, was `@>=0.0.6 <0.0.8 || ^1` (via [#1142])
2223

2324
[#1142]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/1142

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"ajv": "^8.12.0",
8888
"ajv-formats": "^3.0.1",
8989
"ajv-formats-draft2019": "^1.6.1",
90+
"libxmljs2": "^0.31 || ^0.32 || ^0.33 || ^0.35",
9091
"libxml2-wasm": "^0.4.1",
9192
"xmlbuilder2": "^3.0.2"
9293
},

src/_optPlug.node/xmlValidator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default opWrapper<Functionality>('XmlValidator', [
2727
/* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-require-imports
2828
-- needed */
2929

30+
['libxmljs2', () => require('./__xmlValidators/libxmljs2').default],
3031
['libxml2-wasm', () => require('./__xmlValidators/libxml2-wasm').default]
3132
// ... add others here, pull-requests welcome!
3233

tests/functional/internals/OpPlug.node.xmlValidator.implementation.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { realpathSync } = require('fs')
2929
const { join } = require('path')
3030

3131
suite('functional: internals: OpPlug.node.xmlValidator implementation', () => {
32-
for (const impl of ['libxmljs2']) {
32+
for (const impl of ['libxmljs2','libxml2-wasm']) {
3333
suite(impl, () => {
3434
let makeValidator
3535
try {

0 commit comments

Comments
 (0)