-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpackage.json
More file actions
65 lines (65 loc) · 2.37 KB
/
package.json
File metadata and controls
65 lines (65 loc) · 2.37 KB
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
{
"name": "@elastic/mockopampserver",
"version": "0.5.0",
"type": "commonjs",
"description": "A mock OpAMP server, useful for dev and testing",
"publishConfig": {
"access": "public",
"provenance": true
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/elastic/elastic-otel-node.git",
"directory": "packages/mockopampserver"
},
"keywords": [
"elastic",
"opentelemetry",
"opamp",
"testing",
"mock"
],
"author": "Elastic Observability <https://www.elastic.co/observability>",
"engines": {
"node": "^18.19.0 || >=20.6.0"
},
"scripts": {
"clean": "rm -rf node_modules",
"example:remote-config": "node lib/cli.js -F '=@test/fixtures/agent-config.json' | bunyan",
"example:elastic-remote-config": "node lib/cli.js -F 'elastic=@test/fixtures/agent-config.json' | bunyan",
"example:elastic-empty-remote-config": "node lib/cli.js -F 'elastic=@test/fixtures/empty-config.json' | bunyan",
"example:mTLS": "node lib/cli.js --cacert ../opamp-client-node/test/certs/ca.crt --cert ../opamp-client-node/test/certs/server.crt --key ../opamp-client-node/test/certs/server.key --request-client-cert | bunyan",
"gen:protos": "buf generate",
"lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:deps && npm run lint:license-files",
"lint:except-eslint-and-prettier": "npm run lint:deps && npm run lint:license-files",
"lint:eslint": "eslint .",
"lint:prettier": "(cd ../../; prettier --check $npm_config_local_prefix)",
"lint:deps": "dependency-check '{lib,test}/**/*.js' -i @bufbuild/buf -i @bufbuild/protoc-gen-es",
"lint:license-files": "../../scripts/gen-notice.sh --lint . # requires node >=16",
"lint:fix": "eslint --fix . && (cd ../../; prettier --list-different --write $npm_config_local_prefix)",
"start": "node lib/cli.js | bunyan",
"test": "tape test/**/*.test.js",
"watch": "node --watch lib/cli.js | bunyan"
},
"files": [
"lib"
],
"main": "lib/index.js",
"bin": {
"mockopampserver": "lib/cli.js"
},
"dependencies": {
"@bufbuild/protobuf": "^2.2.5",
"@fastify/busboy": "^3.1.1",
"@isaacs/ttlcache": "^1.4.1",
"bunyan": "^1.8.15",
"dashdash": "^2.0.0",
"uuid": "^11.1.0"
},
"devDependencies": {
"@bufbuild/buf": "^1.52.1",
"@bufbuild/protoc-gen-es": "^2.2.5",
"tape": "^5.9.0"
}
}