@cyclonedx/cyclonedx-library 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyclonedx/cyclonedx-library",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Core functionality of CycloneDX for JavaScript (Node.js or WebBrowser).",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -83,19 +83,21 @@
83
83
  "c8": "^8.0.0",
84
84
  "deepmerge": "^4.2.2",
85
85
  "eslint": "^8.23.0",
86
- "eslint-config-standard-with-typescript": "^35.0.0",
86
+ "eslint-config-standard": "^17.1.0",
87
+ "eslint-config-standard-with-typescript": "^36.0.0",
87
88
  "eslint-plugin-header": "^3.1.1",
88
89
  "eslint-plugin-jsdoc": "^46.2.0",
89
90
  "eslint-plugin-simple-import-sort": "^10.0.0",
90
91
  "eslint-plugin-tsdoc": "^0.2.17",
91
92
  "mocha": "10.2.0",
92
93
  "npm-run-all": "^4.1.5",
93
- "ts-loader": "9.4.3",
94
+ "ts-loader": "9.4.4",
94
95
  "typedoc": "^0.24.4",
95
96
  "typedoc-plugin-missing-exports": "^2.0.0",
96
- "typescript": "5.1.5",
97
- "webpack": "5.88.0",
98
- "webpack-cli": "5.1.4"
97
+ "typescript": "5.1.6",
98
+ "webpack": "5.88.1",
99
+ "webpack-cli": "5.1.4",
100
+ "webpack-node-externals": "^3.0.0"
99
101
  },
100
102
  "browser": "./dist.web/lib.js",
101
103
  "types": "./dist.d/index.node.d.ts",
package/webpack.config.js CHANGED
@@ -19,6 +19,7 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
19
19
 
20
20
  const path = require('path')
21
21
  const deepmerge = require('deepmerge')
22
+ const nodeExternals = require('webpack-node-externals')
22
23
 
23
24
  /* eslint-disable jsdoc/valid-types */
24
25
 
@@ -55,13 +56,8 @@ const configBase = {
55
56
  type: 'umd'
56
57
  }
57
58
  },
58
- externals: {
59
- ajv: 'ajv',
60
- 'ajv-formats': 'ajv-formats',
61
- 'ajv-formats-draft2019': 'ajv-formats-draft2019',
62
- 'packageurl-js': 'packageurl-js',
63
- 'spdx-expression-parse': 'spdx-expression-parse'
64
- }
59
+ externalsPresets: { node: true },
60
+ externals: [nodeExternals()]
65
61
  }
66
62
 
67
63
  module.exports = [