File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 "postbuild" : " scripts/update_dist_version.sh"
2121 },
2222 "devDependencies" : {
23- "@aws-sdk/client-kms" : " ^3.366 .0" ,
24- "@aws-sdk/client-secrets-manager" : " ^3.721 .0" ,
23+ "@aws-sdk/client-kms" : " 3.967 .0" ,
24+ "@aws-sdk/client-secrets-manager" : " 3.967 .0" ,
2525 "@datadog/native-appsec" : " *" ,
2626 "@datadog/pprof" : " 5.14.4" ,
2727 "@opentelemetry/api" : " >=1.0.0 <1.10.0" ,
4444 },
4545 "dependencies" : {
4646 "@aws-crypto/sha256-js" : " 5.2.0" ,
47+ "@aws-sdk/types" : " 3.965.0" ,
4748 "dc-polyfill" : " ^0.1.11" ,
4849 "js-yaml" : " ^3.14.2" ,
4950 "promise-retry" : " ^2.0.1" ,
7576 ]
7677 },
7778 "resolutions" : {
79+ "@aws-sdk/types" : " 3.965.0" ,
80+ "@aws-sdk/util-locate-window" : " 3.965.0" ,
7881 "fast-xml-parser" : " ^4.5.7" ,
7982 "uuid" : " ^8.3.2" ,
8083 "js-yaml" : " ^3.14.2"
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ describe("datadog", () => {
8888
8989 const handler = ( ev : any , context : any , callback : any ) => {
9090 // Mocks out the call
91+ nock ( "http://www.example.com" ) . get ( "/" ) . reply ( 200 , { } ) ;
9192 const req = http . get ( "http://www.example.com" ) ;
9293 traceId = req . getHeader ( "x-datadog-trace-id" ) as string ;
9394 parentId = req . getHeader ( "x-datadog-parent-id" ) as string ;
@@ -115,7 +116,6 @@ describe("datadog", () => {
115116 } ) ;
116117
117118 it ( "patches http request when autoPatch enabled" , async ( ) => {
118- nock ( "http://www.example.com" ) . get ( "/" ) . reply ( 200 , { } ) ;
119119 mockTraceHeaders = {
120120 "x-datadog-parent-id" : "9101112" ,
121121 "x-datadog-sampling-priority" : "2" ,
@@ -142,7 +142,6 @@ describe("datadog", () => {
142142 expect ( sampled ) . toEqual ( "2" ) ;
143143 } ) ;
144144 it ( "doesn't patch http requests when autoPatch is disabled" , async ( ) => {
145- nock ( "http://www.example.com" ) . get ( "/" ) . reply ( 200 , { } ) ;
146145 const wrapped = datadog ( handler , { autoPatchHTTP : false , forceWrap : true } ) ;
147146 await wrapped (
148147 {
You can’t perform that action at this time.
0 commit comments