Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ module.exports = {
parserOptions: {
project: './tsconfig.json'
},
ignorePatterns: [
'packages'
],
env: {
node: true,
browser: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,5 @@ jobs:
run: npm run test:node
# test-web:
# TODO via https://github.com/CycloneDX/cyclonedx-javascript-library/issues/51

# TODO test for packages - maybe just `npm ci && npm test` in a matrix?
1 change: 0 additions & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
module.exports = {
spec: [
'tests',
'libs'
],
recursive: true,
parallel: false, // if true, then some IDEs cannot run it
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,7 @@ dist

/examples/

/packages/

/reports/
/CI_reports/
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
"engines": {
"node": ">=14.0.0"
},
"bundleDependencies": [
"@cyclonedx/cyclonedx-library-universal-node-xml"
],
"dependencies": {
"@cyclonedx/cyclonedx-library-universal-node-xml": "file:packages/universal-node-xml",
"packageurl-js": "^0.0.6"
},
"optionalDependencies": {
Expand Down
39 changes: 39 additions & 0 deletions packages/universal-node-xml/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "@cyclonedx/cyclonedx-library-universal-node-xml",
"description": "Universal XML lib",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/CycloneDX/cyclonedx-javascript-library"
},
"bugs": {
"url": "https://github.com/CycloneDX/cyclonedx-javascript-library/issues"
},
"license": "Apache-2.0",
"author": {
"name": "Jan Kowalleck",
"email": "[email protected]"
},
"contributors": [
{
"name": "Jan Kowalleck",
"email": "[email protected]"
}
],
"type": "commonjs",
"optionalDependencies": {
"xmlbuilder2": "^3.0.2"
},
"devDependencies": {
"xmlbuilder2": "^3.0.2"
},
"types": "./index.d.ts",
"main": "./index.js",
"exports": "./index.js",
"files": [
"index.*",
"stringifiers/*.js",
"!stringifiers/*.spec.js",
"!stringifiers/*.test.js"
]
}
2 changes: 1 addition & 1 deletion src/serialize/xmlSerializer.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
import { SerializerOptions } from './types'
import { XmlBaseSerializer } from './xmlBaseSerializer'
import { SimpleXml } from './xml/types'
import { stringifyFallback } from '../../libs/universal-node-xml'
import { stringifyFallback } from '@cyclonedx/cyclonedx-library-universal-node-xml'

/**
* XML serializer for node.
Expand Down