/
package.json
140 lines (140 loc) · 3.97 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"name": "@cyclonedx/cyclonedx-library",
"version": "6.7.2",
"description": "Core functionality of CycloneDX for JavaScript (Node.js or WebBrowser).",
"license": "Apache-2.0",
"keywords": [
"CycloneDX",
"models",
"normalizer",
"serializer",
"bill-of-materials",
"BOM",
"software-bill-of-materials",
"SBOM",
"OBOM",
"MBOM",
"SaaSBOM",
"VEX",
"VDR",
"package-url",
"PURL",
"SPDX",
"OWASP",
"inventory",
"component",
"dependency"
],
"homepage": "https://github.com/CycloneDX/cyclonedx-javascript-library#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/CycloneDX/cyclonedx-javascript-library.git"
},
"bugs": {
"url": "https://github.com/CycloneDX/cyclonedx-javascript-library/issues"
},
"funding": [
{
"type": "individual",
"url": "https://owasp.org/donate/?reponame=www-project-cyclonedx&title=OWASP+CycloneDX"
}
],
"author": {
"name": "Jan Kowalleck",
"url": "https://github.com/jkowalleck"
},
"contributors": [
{
"name": "Jan Kowalleck",
"url": "https://github.com/jkowalleck"
},
{
"name": "Craig Andrews",
"url": "https://github.com/candrews"
},
{
"name": "Peter Wagner",
"url": "https://github.com/thepwagner"
}
],
"type": "commonjs",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"packageurl-js": ">=0.0.6 <0.0.8 || ^1",
"spdx-expression-parse": "^3.0.1 || ^4"
},
"optionalDependencies": {
"ajv": "^8.12.0",
"ajv-formats": "^3.0.1",
"ajv-formats-draft2019": "^1.6.1",
"libxmljs2": "^0.31 || ^0.32 || ^0.33",
"xmlbuilder2": "^3.0.2"
},
"devDependencies": {
"@types/mocha": "^10",
"@types/node": "ts5.4",
"@types/spdx-expression-parse": "^3",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"c8": "^8||^9",
"deepmerge": "^4.2.2",
"eslint": "8.57.0",
"eslint-config-love": "43.1.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-editorconfig": "4.0.3",
"eslint-plugin-header": "3.1.1",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsdoc": "48.2.2",
"eslint-plugin-n": "16.6.2",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-simple-import-sort": "12.0.0",
"eslint-plugin-tsdoc": "0.2.17",
"fast-glob": "^3.3.1",
"mocha": "10.4.0",
"npm-run-all": "^4.1.5",
"ts-loader": "9.5.1",
"typedoc": "^0.25.0",
"typedoc-plugin-missing-exports": "^2.0.1",
"typescript": "5.4.5",
"webpack": "5.91.0",
"webpack-cli": "5.1.4",
"webpack-node-externals": "3.0.0"
},
"browser": "./dist.web/lib.js",
"types": "./dist.d/index.node.d.ts",
"main": "./dist.node/index.node.js",
"exports": {
"types": "./dist.d/index.node.d.ts",
"browser": "./dist.web/lib.js",
"default": "./dist.node/index.node.js"
},
"directories": {
"doc": "./docs",
"src": "./src",
"lib": "./dist.node",
"test": "./tests",
"example": "./examples"
},
"scripts": {
"prepublish": "npm run build",
"prepublishOnly": "run-s -lc build test",
"lint": "tsc --noEmit",
"build": "run-p --aggregate-output -l build:*",
"prebuild:node": "node -r fs -e 'fs.rmSync(\"dist.node\",{recursive:true,force:true})'",
"build:node": "tsc -b ./tsconfig.node.json",
"prebuild:web": "node -r fs -e 'fs.rmSync(\"dist.web\",{recursive:true,force:true})'",
"build:web": "webpack build",
"prebuild:d": "node -r fs -e 'fs.rmSync(\"dist.d\",{recursive:true,force:true})'",
"build:d": "tsc -b ./tsconfig.d.json",
"cs-fix": "eslint --fix .",
"test": "run-p --aggregate-output -lc test:*",
"test:node": "c8 mocha -p",
"test:web": "node -e 'console.log(\"TODO: write web test\")'",
"test:standard": "eslint .",
"api-doc": "run-p --aggregate-output -lc api-doc:*",
"api-doc:node": "typedoc --options typedoc.node.json",
"api-doc:web": "typedoc --options typedoc.web.json"
}
}