@contrast/sources 1.1.0 → 1.2.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/lib/index.js +1 -1
- package/lib/index.test.js +0 -26
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -92,7 +92,7 @@ class Sources {
|
|
|
92
92
|
install() {
|
|
93
93
|
const { instrumentation, sources } = this.core;
|
|
94
94
|
|
|
95
|
-
['http', 'https', '
|
|
95
|
+
['http', 'https', 'http2'].forEach((moduleName) => {
|
|
96
96
|
instrumentation.instrument({
|
|
97
97
|
moduleName,
|
|
98
98
|
patchObjects: [{
|
package/lib/index.test.js
CHANGED
|
@@ -24,32 +24,6 @@ describe('agentify sources', function () {
|
|
|
24
24
|
protocol: 'https',
|
|
25
25
|
serverType: 'https',
|
|
26
26
|
},
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: 'spdy',
|
|
30
|
-
expected: {
|
|
31
|
-
port: 8080,
|
|
32
|
-
protocol: 'https',
|
|
33
|
-
serverType: 'spdy',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
name: 'http2',
|
|
38
|
-
method: 'createServer',
|
|
39
|
-
expected: {
|
|
40
|
-
port: 8080,
|
|
41
|
-
protocol: 'https',
|
|
42
|
-
serverType: 'spdy',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'http2',
|
|
47
|
-
method: 'createSecureServer',
|
|
48
|
-
expected: {
|
|
49
|
-
port: 8080,
|
|
50
|
-
protocol: 'https',
|
|
51
|
-
serverType: 'spdy',
|
|
52
|
-
},
|
|
53
27
|
}
|
|
54
28
|
].forEach(({ name, method, expected }) => {
|
|
55
29
|
describe(`${name} sources using ${method || 'Server'}()`, function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/sources",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Instruments to have incoming messages run in async-local request scope.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"author": "",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@contrast/common": "1.
|
|
13
|
-
"@contrast/core": "1.
|
|
12
|
+
"@contrast/common": "1.36.0",
|
|
13
|
+
"@contrast/core": "1.56.0",
|
|
14
14
|
"on-finished": "^2.4.1"
|
|
15
15
|
}
|
|
16
16
|
}
|