@oro-dxeco/playwright-aws-lambda 119.0.3 → 119.0.5

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/README.md CHANGED
@@ -15,7 +15,7 @@ npm install playwright-core playwright-aws-lambda --save
15
15
 
16
16
  ## Usage
17
17
 
18
- This package works with the `nodejs10.x`, `nodejs12.x`, `nodejs14.x`, `nodejs16.x` and `nodejs18.x` AWS Lambda runtimes
18
+ This package works with the `nodejs10.x`, `nodejs12.x`, `nodejs14.x`, `nodejs16.x`, `nodejs18.x`, `nodejs20.x` and `nodejs22.x` AWS Lambda runtimes
19
19
  out of the box.
20
20
 
21
21
  ```javascript
@@ -55,7 +55,7 @@ function getChromiumArgs(headless) {
55
55
  '--use-mock-keychain',
56
56
  ];
57
57
  if (headless === true) {
58
- // result.push('--single-process');
58
+ result.push('--single-process');
59
59
  }
60
60
  else {
61
61
  result.push('--start-maximized');
@@ -7,6 +7,8 @@ function isLambdaRuntimeEnvironment() {
7
7
  'AWS_Lambda_nodejs14.x',
8
8
  'AWS_Lambda_nodejs16.x',
9
9
  'AWS_Lambda_nodejs18.x',
10
+ 'AWS_Lambda_nodejs20.x',
11
+ 'AWS_Lambda_nodejs22.x',
10
12
  ].includes(process.env.AWS_EXECUTION_ENV);
11
13
  }
12
14
  exports.default = isLambdaRuntimeEnvironment;
package/package.json CHANGED
@@ -1,53 +1,53 @@
1
- {
2
- "name": "@oro-dxeco/playwright-aws-lambda",
3
- "version": "119.0.3",
4
- "description": "Support for running Microsoft's Playwrite on AWS Lambda and Google Cloud functions",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/oro-dxeco/playwright-aws-lambda"
8
- },
9
- "license": "MIT",
10
- "main": "./dist/src/",
11
- "author": "ORO <oro_dxeco@jp.oro.com>",
12
- "publishConfig": {
13
- "access": "public"
14
- },
15
- "engines": {
16
- "node": ">= 8.0.0"
17
- },
18
- "scripts": {
19
- "compile-src-cjs": "tsc --declaration --declarationDir ./dist -p tsconfig-src-cjs.json && shx cp -R ./node_modules/@sparticuz/chromium/bin ./dist/src",
20
- "precompile-src": "shx rm -rf ./dist",
21
- "compile-src": "yarn compile-src-cjs",
22
- "lint": "tslint --format codeFrame --project tsconfig.json 'src/**/*.ts' 'test/**/*.ts'",
23
- "pretest": "yarn lint",
24
- "test": "jest",
25
- "build": "yarn compile-src",
26
- "format-code": "prettier --write '**/*.[jt]s'"
27
- },
28
- "dependencies": {
29
- "@sparticuz/chromium": "^119.0.0",
30
- "lambdafs": "^2.1.1"
31
- },
32
- "peerDependencies": {
33
- "playwright-core": "^1"
34
- },
35
- "devDependencies": {
36
- "@types/debug": "^4.1.5",
37
- "@types/jest": "^26.0.9",
38
- "@types/node": "~14",
39
- "husky": "^4.2.5",
40
- "jest": "^26.3.0",
41
- "lint-staged": "10.2.11",
42
- "nodemon": "^2.0.4",
43
- "pixelmatch": "^5.2.1",
44
- "playwright-core": "^1.3.0",
45
- "pngjs": "^5.0.0",
46
- "prettier": "^2.0.5",
47
- "shx": "^0.3.4",
48
- "ts-jest": "^26.2.0",
49
- "tslint": "^6.1.3",
50
- "tslint-config-prettier": "^1.18.0",
51
- "typescript": "^3.9.7"
52
- }
53
- }
1
+ {
2
+ "name": "@oro-dxeco/playwright-aws-lambda",
3
+ "version": "119.0.5",
4
+ "description": "Support for running Microsoft's Playwrite on AWS Lambda and Google Cloud functions",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/oro-dxeco/playwright-aws-lambda"
8
+ },
9
+ "license": "MIT",
10
+ "main": "./dist/src/",
11
+ "author": "ORO <oro_dxeco@jp.oro.com>",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "engines": {
16
+ "node": ">= 8.0.0"
17
+ },
18
+ "scripts": {
19
+ "compile-src-cjs": "tsc --declaration --declarationDir ./dist -p tsconfig-src-cjs.json && shx cp -R ./node_modules/@sparticuz/chromium/bin ./dist/src",
20
+ "precompile-src": "shx rm -rf ./dist",
21
+ "compile-src": "yarn compile-src-cjs",
22
+ "lint": "tslint --format codeFrame --project tsconfig.json 'src/**/*.ts' 'test/**/*.ts'",
23
+ "pretest": "yarn lint",
24
+ "test": "jest",
25
+ "build": "yarn compile-src",
26
+ "format-code": "prettier --write '**/*.[jt]s'"
27
+ },
28
+ "dependencies": {
29
+ "@sparticuz/chromium": "^119.0.0",
30
+ "lambdafs": "^2.1.1"
31
+ },
32
+ "peerDependencies": {
33
+ "playwright-core": "^1"
34
+ },
35
+ "devDependencies": {
36
+ "@types/debug": "^4.1.5",
37
+ "@types/jest": "^26.0.9",
38
+ "@types/node": "~14",
39
+ "husky": "^4.2.5",
40
+ "jest": "^26.3.0",
41
+ "lint-staged": "10.2.11",
42
+ "nodemon": "^2.0.4",
43
+ "pixelmatch": "^5.2.1",
44
+ "playwright-core": "^1.3.0",
45
+ "pngjs": "^5.0.0",
46
+ "prettier": "^2.0.5",
47
+ "shx": "^0.3.4",
48
+ "ts-jest": "^26.2.0",
49
+ "tslint": "^6.1.3",
50
+ "tslint-config-prettier": "^1.18.0",
51
+ "typescript": "^3.9.7"
52
+ }
53
+ }