-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
75 lines (75 loc) · 3.35 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
{
"name": "@oas-tools/oas-telemetry",
"version": "0.5.1",
"description": "This package exports an Express middleware that traces requests and responses of an Express application using OpenTelemetry.",
"author": "Manuel Otero",
"contributors": [
"Alejandro Santisteban",
"Pablo Fernandez"
],
"license": "Apache-2.0",
"type": "module",
"scripts": {
"devImportUi": "node dev/ui/importUiToHtml.js",
"devExportUi": "node dev/ui/exportHtmlToUi.js",
"build": "babel src -d dist --out-file-extension .cjs",
"devUi": "nodemon --watch dev/ui src --ext html --exec \"npm run devExportUi && npm run build && node test/functional/otTestServer.cjs\"",
"devUiEsm": "nodemon --watch dev/ui --ext html --exec \"npm run devExportUi && node test/functional/otTestServer.mjs\"",
"publish": "npm run build && npm publish",
"testPerformance": "npm i && cd test/performance/ && ./test.sh",
"pretest": "npm run build",
"test": "npm run testCJS && npm run testMJS",
"testCJS": "npm run preTestCJS && npm run launchTestCJS && npm run postTestCJS",
"preTestCJS": "node test/functional/otTestServer.cjs &",
"launchTestCJS": "npx -y wait-on http://localhost:3000/api/v1/pets && npm run sendRequests && sleep 4 && npm run checkRequestsLog",
"postTestCJS": "kill `ps -uax | grep \"node test/functional/otTestServer\" | grep -v \"grep\" | grep -v \"sh\" | awk '{print $2}'`",
"testMJS": "npm run preTestMJS && npm run launchTestMJS && npm run postTestMJS",
"preTestMJS": "node test/functional/otTestServer.mjs &",
"launchTestMJS": "npx -y wait-on http://localhost:3000/api/v1/pets && npm run sendRequests && sleep 4 && npm run checkRequestsLog",
"postTestMJS": "kill `ps -uax | grep \"node test/functional/otTestServer\" | grep -v \"grep\" | grep -v \"sh\" | awk '{print $2}'`",
"sendRequests": "npx -y newman run test/functional/request-collection.json -e test/functional/request-environment.json",
"checkRequestsLog": "npx -y newman run test/functional/request-collection-check.json -e test/functional/request-environment.json",
"launchKSApi": "npm run build; (cd test/performance/ks-api ; node indexTelemetry.js)",
"launchDevel": "export OTDEBUG=true && npm run launchKSApi"
},
"files": [
"dist",
"src"
],
"main": "./dist/index.cjs",
"module": "./src/index.js",
"exports": {
"require": "./dist/index.cjs",
"import": "./src/index.js",
"default": "./src/index.js"
},
"dependencies": {
"@opentelemetry/instrumentation-http": "^0.51.0",
"@opentelemetry/resources": "^1.24.0",
"@opentelemetry/sdk-node": "^0.49.1",
"axios": "^1.6.8",
"cookie-parser": "^1.4.7",
"dynamic-installer": "^1.1.1",
"express": "^4.19.2",
"flatted": "^3.3.2",
"import-from-string": "^0.0.4",
"js-yaml": "^4.1.0",
"jsonwebtoken": "^9.0.2",
"nedb": "^1.8.0",
"readline": "^1.3.0",
"v8": "^0.1.0"
},
"devDependencies": {
"@babel/cli": "^7.24.1",
"@babel/core": "^7.24.4",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/preset-env": "^7.24.4",
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/auto-instrumentations-node": "^0.43.0",
"apipecker": "^1.3.1",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-module-extension": "^0.1.3",
"nodemon": "^3.1.0"
}
}