@contrast/agent 4.5.2 → 4.6.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.
Files changed (121) hide show
  1. package/lib/assess/policy/propagators.json +20 -0
  2. package/lib/assess/policy/signatures.json +10 -0
  3. package/lib/core/config/options.js +3 -2
  4. package/lib/core/stacktrace.js +2 -1
  5. package/lib/hooks/frameworks/base.js +8 -2
  6. package/lib/hooks/frameworks/http.js +23 -16
  7. package/lib/hooks/frameworks/http2.js +73 -0
  8. package/lib/hooks/frameworks/index.js +8 -3
  9. package/lib/hooks/http.js +112 -128
  10. package/lib/hooks/require.js +16 -22
  11. package/lib/instrumentation.js +0 -3
  12. package/package.json +12 -15
  13. package/lib/hooks/frameworks/https.js +0 -42
  14. package/node_modules/bindings/LICENSE.md +0 -22
  15. package/node_modules/bindings/README.md +0 -98
  16. package/node_modules/bindings/bindings.js +0 -221
  17. package/node_modules/bindings/package.json +0 -32
  18. package/node_modules/file-uri-to-path/.npmignore +0 -1
  19. package/node_modules/file-uri-to-path/.travis.yml +0 -30
  20. package/node_modules/file-uri-to-path/History.md +0 -21
  21. package/node_modules/file-uri-to-path/LICENSE +0 -20
  22. package/node_modules/file-uri-to-path/README.md +0 -74
  23. package/node_modules/file-uri-to-path/index.d.ts +0 -2
  24. package/node_modules/file-uri-to-path/index.js +0 -66
  25. package/node_modules/file-uri-to-path/package.json +0 -36
  26. package/node_modules/file-uri-to-path/test/test.js +0 -24
  27. package/node_modules/file-uri-to-path/test/tests.json +0 -13
  28. package/node_modules/glossy/LICENSE +0 -19
  29. package/node_modules/glossy/README.md +0 -129
  30. package/node_modules/glossy/index.js +0 -12
  31. package/node_modules/glossy/lib/glossy/parse.js +0 -520
  32. package/node_modules/glossy/lib/glossy/produce.js +0 -459
  33. package/node_modules/glossy/package.json +0 -47
  34. package/node_modules/glossy/test/decide.js +0 -7
  35. package/node_modules/glossy/test/decode_pri.js +0 -24
  36. package/node_modules/glossy/test/parse_3164.js +0 -104
  37. package/node_modules/glossy/test/parse_5424.js +0 -106
  38. package/node_modules/glossy/test/parse_5848.js +0 -40
  39. package/node_modules/glossy/test/parse_8601.js +0 -14
  40. package/node_modules/glossy/test/parse_rfc3339.js +0 -9
  41. package/node_modules/glossy/test/produce.js +0 -162
  42. package/node_modules/glossy/test/runner.js +0 -40
  43. package/node_modules/glossy/test/structure_data.js +0 -24
  44. package/node_modules/nan/CHANGELOG.md +0 -537
  45. package/node_modules/nan/LICENSE.md +0 -13
  46. package/node_modules/nan/README.md +0 -455
  47. package/node_modules/nan/doc/asyncworker.md +0 -146
  48. package/node_modules/nan/doc/buffers.md +0 -54
  49. package/node_modules/nan/doc/callback.md +0 -76
  50. package/node_modules/nan/doc/converters.md +0 -41
  51. package/node_modules/nan/doc/errors.md +0 -226
  52. package/node_modules/nan/doc/json.md +0 -62
  53. package/node_modules/nan/doc/maybe_types.md +0 -583
  54. package/node_modules/nan/doc/methods.md +0 -664
  55. package/node_modules/nan/doc/new.md +0 -147
  56. package/node_modules/nan/doc/node_misc.md +0 -123
  57. package/node_modules/nan/doc/object_wrappers.md +0 -263
  58. package/node_modules/nan/doc/persistent.md +0 -296
  59. package/node_modules/nan/doc/scopes.md +0 -73
  60. package/node_modules/nan/doc/script.md +0 -38
  61. package/node_modules/nan/doc/string_bytes.md +0 -62
  62. package/node_modules/nan/doc/v8_internals.md +0 -199
  63. package/node_modules/nan/doc/v8_misc.md +0 -85
  64. package/node_modules/nan/include_dirs.js +0 -1
  65. package/node_modules/nan/nan.h +0 -2898
  66. package/node_modules/nan/nan_callbacks.h +0 -88
  67. package/node_modules/nan/nan_callbacks_12_inl.h +0 -514
  68. package/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  69. package/node_modules/nan/nan_converters.h +0 -72
  70. package/node_modules/nan/nan_converters_43_inl.h +0 -68
  71. package/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  72. package/node_modules/nan/nan_define_own_property_helper.h +0 -29
  73. package/node_modules/nan/nan_implementation_12_inl.h +0 -430
  74. package/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  75. package/node_modules/nan/nan_json.h +0 -166
  76. package/node_modules/nan/nan_maybe_43_inl.h +0 -356
  77. package/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  78. package/node_modules/nan/nan_new.h +0 -340
  79. package/node_modules/nan/nan_object_wrap.h +0 -156
  80. package/node_modules/nan/nan_persistent_12_inl.h +0 -132
  81. package/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  82. package/node_modules/nan/nan_private.h +0 -73
  83. package/node_modules/nan/nan_string_bytes.h +0 -305
  84. package/node_modules/nan/nan_typedarray_contents.h +0 -96
  85. package/node_modules/nan/nan_weak.h +0 -437
  86. package/node_modules/nan/package.json +0 -41
  87. package/node_modules/nan/tools/1to2.js +0 -412
  88. package/node_modules/nan/tools/README.md +0 -14
  89. package/node_modules/nan/tools/package.json +0 -19
  90. package/node_modules/unix-dgram/LICENSE +0 -13
  91. package/node_modules/unix-dgram/README.md +0 -107
  92. package/node_modules/unix-dgram/binding.gyp +0 -20
  93. package/node_modules/unix-dgram/build/Makefile +0 -324
  94. package/node_modules/unix-dgram/build/Release/.deps/Release/obj.target/unix_dgram/src/unix_dgram.o.d +0 -58
  95. package/node_modules/unix-dgram/build/Release/.deps/Release/obj.target/unix_dgram.node.d +0 -1
  96. package/node_modules/unix-dgram/build/Release/.deps/Release/unix_dgram.node.d +0 -1
  97. package/node_modules/unix-dgram/build/Release/obj.target/unix_dgram/src/unix_dgram.o +0 -0
  98. package/node_modules/unix-dgram/build/Release/obj.target/unix_dgram.node +0 -0
  99. package/node_modules/unix-dgram/build/Release/unix_dgram.node +0 -0
  100. package/node_modules/unix-dgram/build/binding.Makefile +0 -6
  101. package/node_modules/unix-dgram/build/config.gypi +0 -213
  102. package/node_modules/unix-dgram/build/unix_dgram.target.mk +0 -159
  103. package/node_modules/unix-dgram/lib/unix_dgram.js +0 -168
  104. package/node_modules/unix-dgram/package.json +0 -36
  105. package/node_modules/unix-dgram/src/unix_dgram.cc +0 -404
  106. package/node_modules/unix-dgram/src/win_dummy.cc +0 -7
  107. package/node_modules/unix-dgram/test/test-connect-callback.js +0 -68
  108. package/node_modules/unix-dgram/test/test-connect.js +0 -53
  109. package/node_modules/unix-dgram/test/test-dgram-unix.js +0 -58
  110. package/node_modules/unix-dgram/test/test-send-error.js +0 -26
  111. package/node_modules/winston-syslog/.eslintrc +0 -7
  112. package/node_modules/winston-syslog/.travis.yml +0 -14
  113. package/node_modules/winston-syslog/CHANGELOG.md +0 -9
  114. package/node_modules/winston-syslog/LICENSE +0 -20
  115. package/node_modules/winston-syslog/README.md +0 -135
  116. package/node_modules/winston-syslog/lib/utils.js +0 -26
  117. package/node_modules/winston-syslog/lib/winston-syslog.js +0 -385
  118. package/node_modules/winston-syslog/package.json +0 -56
  119. package/node_modules/winston-syslog/test/format-test.js +0 -122
  120. package/node_modules/winston-syslog/test/syslog-test.js +0 -95
  121. package/node_modules/winston-syslog/test/unix-connect-test.js +0 -133
@@ -1,159 +0,0 @@
1
- # This file is generated by gyp; do not edit.
2
-
3
- TOOLSET := target
4
- TARGET := unix_dgram
5
- DEFS_Debug := \
6
- '-DNODE_GYP_MODULE_NAME=unix_dgram' \
7
- '-DUSING_UV_SHARED=1' \
8
- '-DUSING_V8_SHARED=1' \
9
- '-DV8_DEPRECATION_WARNINGS=1' \
10
- '-DV8_DEPRECATION_WARNINGS' \
11
- '-DV8_IMMINENT_DEPRECATION_WARNINGS' \
12
- '-D_LARGEFILE_SOURCE' \
13
- '-D_FILE_OFFSET_BITS=64' \
14
- '-D__STDC_FORMAT_MACROS' \
15
- '-DOPENSSL_NO_PINSHARED' \
16
- '-DOPENSSL_THREADS' \
17
- '-DBUILDING_NODE_EXTENSION' \
18
- '-DDEBUG' \
19
- '-D_DEBUG' \
20
- '-DV8_ENABLE_CHECKS'
21
-
22
- # Flags passed to all source files.
23
- CFLAGS_Debug := \
24
- -fPIC \
25
- -pthread \
26
- -Wall \
27
- -Wextra \
28
- -Wno-unused-parameter \
29
- -m64 \
30
- -g \
31
- -O0
32
-
33
- # Flags passed to only C files.
34
- CFLAGS_C_Debug :=
35
-
36
- # Flags passed to only C++ files.
37
- CFLAGS_CC_Debug := \
38
- -fno-rtti \
39
- -fno-exceptions \
40
- -std=gnu++1y
41
-
42
- INCS_Debug := \
43
- -I/home/runner/.cache/node-gyp/12.22.7/include/node \
44
- -I/home/runner/.cache/node-gyp/12.22.7/src \
45
- -I/home/runner/.cache/node-gyp/12.22.7/deps/openssl/config \
46
- -I/home/runner/.cache/node-gyp/12.22.7/deps/openssl/openssl/include \
47
- -I/home/runner/.cache/node-gyp/12.22.7/deps/uv/include \
48
- -I/home/runner/.cache/node-gyp/12.22.7/deps/zlib \
49
- -I/home/runner/.cache/node-gyp/12.22.7/deps/v8/include \
50
- -I$(srcdir)/../nan
51
-
52
- DEFS_Release := \
53
- '-DNODE_GYP_MODULE_NAME=unix_dgram' \
54
- '-DUSING_UV_SHARED=1' \
55
- '-DUSING_V8_SHARED=1' \
56
- '-DV8_DEPRECATION_WARNINGS=1' \
57
- '-DV8_DEPRECATION_WARNINGS' \
58
- '-DV8_IMMINENT_DEPRECATION_WARNINGS' \
59
- '-D_LARGEFILE_SOURCE' \
60
- '-D_FILE_OFFSET_BITS=64' \
61
- '-D__STDC_FORMAT_MACROS' \
62
- '-DOPENSSL_NO_PINSHARED' \
63
- '-DOPENSSL_THREADS' \
64
- '-DBUILDING_NODE_EXTENSION'
65
-
66
- # Flags passed to all source files.
67
- CFLAGS_Release := \
68
- -fPIC \
69
- -pthread \
70
- -Wall \
71
- -Wextra \
72
- -Wno-unused-parameter \
73
- -m64 \
74
- -O3 \
75
- -fno-omit-frame-pointer
76
-
77
- # Flags passed to only C files.
78
- CFLAGS_C_Release :=
79
-
80
- # Flags passed to only C++ files.
81
- CFLAGS_CC_Release := \
82
- -fno-rtti \
83
- -fno-exceptions \
84
- -std=gnu++1y
85
-
86
- INCS_Release := \
87
- -I/home/runner/.cache/node-gyp/12.22.7/include/node \
88
- -I/home/runner/.cache/node-gyp/12.22.7/src \
89
- -I/home/runner/.cache/node-gyp/12.22.7/deps/openssl/config \
90
- -I/home/runner/.cache/node-gyp/12.22.7/deps/openssl/openssl/include \
91
- -I/home/runner/.cache/node-gyp/12.22.7/deps/uv/include \
92
- -I/home/runner/.cache/node-gyp/12.22.7/deps/zlib \
93
- -I/home/runner/.cache/node-gyp/12.22.7/deps/v8/include \
94
- -I$(srcdir)/../nan
95
-
96
- OBJS := \
97
- $(obj).target/$(TARGET)/src/unix_dgram.o
98
-
99
- # Add to the list of files we specially track dependencies for.
100
- all_deps += $(OBJS)
101
-
102
- # CFLAGS et al overrides must be target-local.
103
- # See "Target-specific Variable Values" in the GNU Make manual.
104
- $(OBJS): TOOLSET := $(TOOLSET)
105
- $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
106
- $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
107
-
108
- # Suffix rules, putting all outputs into $(obj).
109
-
110
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
111
- @$(call do_cmd,cxx,1)
112
-
113
- # Try building from generated source, too.
114
-
115
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
116
- @$(call do_cmd,cxx,1)
117
-
118
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
119
- @$(call do_cmd,cxx,1)
120
-
121
- # End of this set of suffix rules
122
- ### Rules for final target.
123
- LDFLAGS_Debug := \
124
- -pthread \
125
- -rdynamic \
126
- -m64
127
-
128
- LDFLAGS_Release := \
129
- -pthread \
130
- -rdynamic \
131
- -m64
132
-
133
- LIBS :=
134
-
135
- $(obj).target/unix_dgram.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
136
- $(obj).target/unix_dgram.node: LIBS := $(LIBS)
137
- $(obj).target/unix_dgram.node: TOOLSET := $(TOOLSET)
138
- $(obj).target/unix_dgram.node: $(OBJS) FORCE_DO_CMD
139
- $(call do_cmd,solink_module)
140
-
141
- all_deps += $(obj).target/unix_dgram.node
142
- # Add target alias
143
- .PHONY: unix_dgram
144
- unix_dgram: $(builddir)/unix_dgram.node
145
-
146
- # Copy this to the executable output path.
147
- $(builddir)/unix_dgram.node: TOOLSET := $(TOOLSET)
148
- $(builddir)/unix_dgram.node: $(obj).target/unix_dgram.node FORCE_DO_CMD
149
- $(call do_cmd,copy)
150
-
151
- all_deps += $(builddir)/unix_dgram.node
152
- # Short alias for building this executable.
153
- .PHONY: unix_dgram.node
154
- unix_dgram.node: $(obj).target/unix_dgram.node $(builddir)/unix_dgram.node
155
-
156
- # Add executable to "all" target.
157
- .PHONY: all
158
- all: $(builddir)/unix_dgram.node
159
-
@@ -1,168 +0,0 @@
1
- var events = require('events');
2
- var dgram = require('dgram');
3
- var util = require('util');
4
- var binding = require('bindings')('unix_dgram.node');
5
-
6
- var SOCK_DGRAM = binding.SOCK_DGRAM;
7
- var AF_UNIX = binding.AF_UNIX;
8
-
9
- var socket = binding.socket || unsupported;
10
- var bind = binding.bind || unsupported;
11
- var connect = binding.connect || unsupported;
12
- var sendto = binding.sendto || unsupported;
13
- var send = binding.send || unsupported;
14
- var close = binding.close || unsupported;
15
-
16
-
17
- function unsupported() {
18
- throw new Error('Unix datagrams not available on this platform');
19
- }
20
-
21
-
22
- function errnoException(errorno, syscall) {
23
- var e = new Error(syscall + ' ' + errorno);
24
- e.errno = e.code = errorno;
25
- e.syscall = syscall;
26
- return e;
27
- }
28
-
29
-
30
- function internalError(code, msg) {
31
- var e = new Error(msg);
32
- e.code = code;
33
- return e;
34
- }
35
-
36
-
37
- function recv(status, buf, path) {
38
- var rinfo = {
39
- size: buf.length,
40
- address: {},
41
- path : path
42
- };
43
- this.emit('message', buf, rinfo);
44
- }
45
-
46
-
47
- function writable() {
48
- this.emit('writable');
49
- }
50
-
51
- exports.createSocket = function(type, listener) {
52
- if (type == 'udp4' || type == 'udp6')
53
- return dgram.createSocket(type, listener);
54
-
55
- return new Socket(type, listener);
56
- };
57
-
58
-
59
- function Socket(type, listener) {
60
- if (type != 'unix_dgram')
61
- throw new Error('Unsupported socket type: ' + type);
62
-
63
- var err = socket(AF_UNIX, SOCK_DGRAM, 0, recv.bind(this), writable.bind(this));
64
- if (err < 0)
65
- throw errnoException(err, 'socket');
66
-
67
- this.fd = err;
68
- this.type = type;
69
-
70
- if (typeof listener === 'function')
71
- this.on('message', listener);
72
- }
73
- util.inherits(Socket, events.EventEmitter);
74
-
75
-
76
- Socket.prototype.bind = function(path) {
77
- var err = bind(this.fd, path);
78
- if (err < 0)
79
- this.emit('error', errnoException(err, 'bind'));
80
- else
81
- this.emit('listening');
82
- };
83
-
84
- Socket.prototype.connect = function(path) {
85
- var err = connect(this.fd, path);
86
- if (err < 0) {
87
- this.emit('error', errnoException(err, 'connect'));
88
- } else {
89
- this.connected = true;
90
- this.emit('connect');
91
- }
92
- };
93
-
94
- Socket.prototype.send = function(buf, offset, length, path, callback) {
95
- var err;
96
- if (this.connected) {
97
- err = send(this.fd, buf);
98
- callback = offset;
99
- } else {
100
- err = sendto(this.fd, buf, offset, length, path);
101
- }
102
-
103
- // FIXME defer error and callback to next tick?
104
- if (typeof callback === 'function') {
105
- if (err < 0) {
106
- callback(errnoException(err, 'send'));
107
- } else if (err === 1) {
108
- callback(internalError(err, 'congestion'));
109
- } else {
110
- callback();
111
- }
112
- } else {
113
- if (err < 0) {
114
- this.emit('error', errnoException(err, 'send'));
115
- } else if (err === 1) {
116
- this.emit('congestion', buf);
117
- }
118
- }
119
- };
120
-
121
-
122
- // compatibility
123
- Socket.prototype.sendto = function(buf, offset, length, path, callback) {
124
- return this.send(buf, offset, length, path, callback);
125
- };
126
-
127
-
128
- Socket.prototype.close = function() {
129
- var err = close(this.fd);
130
- if (err < 0)
131
- throw new errnoException(err, 'close');
132
- this.fd = -1;
133
- };
134
-
135
-
136
- Socket.prototype.address = function() {
137
- throw new Error('not implemented');
138
- };
139
-
140
-
141
- Socket.prototype.setTTL = function(ttl) {
142
- throw new Error('not implemented');
143
- };
144
-
145
-
146
- Socket.prototype.setBroadcast = function(flag) {
147
- throw new Error('not implemented');
148
- };
149
-
150
-
151
- Socket.prototype.setMulticastTTL = function(ttl) {
152
- throw new Error('not implemented');
153
- };
154
-
155
-
156
- Socket.prototype.setMulticastLoopback = function(flag) {
157
- throw new Error('not implemented');
158
- };
159
-
160
-
161
- Socket.prototype.addMembership = function(multicastAddress, multicastInterface) {
162
- throw new Error('not implemented');
163
- };
164
-
165
-
166
- Socket.prototype.dropMembership = function(multicastAddress, multicastInterface) {
167
- throw new Error('not implemented');
168
- };
@@ -1,36 +0,0 @@
1
- {
2
- "author": {
3
- "name": "Ben Noordhuis",
4
- "email": "info@bnoordhuis.nl",
5
- "url": "http://bnoordhuis.nl/"
6
- },
7
- "name": "unix-dgram",
8
- "version": "2.0.4",
9
- "description": "Unix datagram socket",
10
- "main": "lib/unix_dgram",
11
- "homepage": "https://github.com/bnoordhuis/node-unix-dgram",
12
- "license": {
13
- "type": "ISC",
14
- "url": "https://github.com/bnoordhuis/node-unix-dgram/LICENSE"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "git://github.com/bnoordhuis/node-unix-dgram.git"
19
- },
20
- "engines": {
21
- "node": ">=0.10.48"
22
- },
23
- "dependencies": {
24
- "bindings": "^1.3.0",
25
- "nan": "^2.13.2"
26
- },
27
- "devDependencies": {},
28
- "optionalDependencies": {},
29
- "scripts": {
30
- "test": "node test/test-dgram-unix.js && node test/test-connect.js && node test/test-connect-callback.js && node test/test-send-error.js"
31
- }
32
-
33
- ,"_resolved": "https://registry.npmjs.org/unix-dgram/-/unix-dgram-2.0.4.tgz"
34
- ,"_integrity": "sha512-7tpK6x7ls7J7pDrrAU63h93R0dVhRbPwiRRCawR10cl+2e1VOvF3bHlVJc6WI1dl/8qk5He673QU+Ogv7bPNaw=="
35
- ,"_from": "unix-dgram@2.0.4"
36
- }