File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
types/aws-synthetics-puppeteer Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import * as synthetics from "Synthetics" ;
22
33export const handler = async ( ) => {
4- const page = synthetics . getPage ( ) ;
4+ const page = await synthetics . getPage ( ) ;
55 await page . goto ( "https://example.com" ) ;
66 await page . waitForFrame ( "https://example.com" ) ;
77 await page . screenshot ( { path : "/tmp/example.png" } ) ;
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
33 "name" : " @types/aws-synthetics-puppeteer" ,
4- "version" : " 10 .0.9999" ,
4+ "version" : " 11 .0.9999" ,
55 "nonNpm" : true ,
66 "nonNpmDescription" : " aws-synthetics-puppeteer" ,
77 "projects" : [
88 " https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries.html"
99 ],
1010 "dependencies" : {
1111 "@types/node" : " *" ,
12- "puppeteer-core" : " 24.2 .0" ,
13- "aws-xray-sdk-core" : " 3.10.3 "
12+ "puppeteer-core" : " 24.25 .0" ,
13+ "aws-xray-sdk-core" : " 3.5.0 "
1414 },
1515 "devDependencies" : {
1616 "@types/aws-synthetics-puppeteer" : " workspace:."
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ declare module "Synthetics" {
7676 getCanaryArn ( ) : string ;
7777 getCanaryUserAgentString ( ) : string ;
7878 getRuntimeVersion ( ) : string ;
79- getPage ( ) : localPuppeteer . Page ;
79+ getPage ( ) : Promise < localPuppeteer . Page > ;
8080 getUrl ( ) : string ;
8181 /**
8282 * Returns global syntheticsConfiguration instance.
You can’t perform that action at this time.
0 commit comments