step-node-agent 3.26.2 → 3.26.3

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.
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ languageOptions: {
3
+ ecmaVersion: 2020,
4
+ },
5
+ rules: {
6
+ indent: [2, 2]
7
+ },
8
+ ignores: ['dist/*'],
9
+ };
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
 
4
4
 
5
- var Punycode = require('punycode');
5
+ var Punycode = require('punycode/');
6
6
 
7
7
 
8
8
  var internals = {};
@@ -24,7 +24,7 @@ internals.rules = require('./data/rules.json').map(function (rule) {
24
24
 
25
25
 
26
26
  //
27
- // Check is given string ends with `suffix`.
27
+ // Check if given string ends with `suffix`.
28
28
  //
29
29
  internals.endsWith = function (str, suffix) {
30
30
 
@@ -40,7 +40,7 @@ internals.findRule = function (domain) {
40
40
  var punyDomain = Punycode.toASCII(domain);
41
41
  return internals.rules.reduce(function (memo, rule) {
42
42
 
43
- if (rule.punySuffix === -1){
43
+ if (rule.punySuffix === -1) {
44
44
  rule.punySuffix = Punycode.toASCII(rule.suffix);
45
45
  }
46
46
  if (!internals.endsWith(punyDomain, '.' + rule.punySuffix) && punyDomain !== rule.punySuffix) {
@@ -237,7 +237,7 @@ exports.parse = function (input) {
237
237
  }
238
238
 
239
239
  parsed.sld = privateParts.pop();
240
- parsed.domain = [parsed.sld, parsed.tld].join('.');
240
+ parsed.domain = [parsed.sld, parsed.tld].join('.');
241
241
 
242
242
  if (privateParts.length) {
243
243
  parsed.subdomain = privateParts.join('.');
@@ -0,0 +1,12 @@
1
+
2
+
3
+ Thu Nov 07 2024 21:45:11:239 GMT+0100 (CET) -- Binary semantic version is v8.6.0
4
+ Thu Nov 07 2024 21:45:11:240 GMT+0100 (CET) -- Setting output as extra verbose with request parsing
5
+ Thu Nov 07 2024 21:45:12:252 GMT+0100 (CET) -- [SUCCESS] You can now access your local server(s) in our remote browser
6
+
7
+ Thu Nov 07 2024 21:45:12:402 GMT+0100 (CET) -- Connecting to BrowserStack using WebSocket protocol...
8
+ Thu Nov 07 2024 21:45:12:402 GMT+0100 (CET) -- Platform supports WebSocket connections.
9
+
10
+ Thu Nov 07 2024 21:45:12:503 GMT+0100 (CET) -- Press Ctrl-C to exit
11
+
12
+
@@ -0,0 +1,20 @@
1
+ 2024-11-07 21:45:05 - info: Reading configs from /home/lupo/work/lupomontero/psl/browserstack.yml
2
+ 2024-11-07 21:45:05 - error: Error: userName or accessKey is not defined
3
+ at new BrowserStackSetup (/home/lupo/work/lupomontero/psl/node_modules/browserstack-node-sdk/src/helpers/BrowserStackSetup.js:1:8954)
4
+ at run (/home/lupo/work/lupomontero/psl/node_modules/browserstack-node-sdk/src/bin/playwright/command.js:2:7261)
5
+ at Object.sOMBL (/home/lupo/work/lupomontero/psl/node_modules/browserstack-node-sdk/src/bin/runner.js:2:3179)
6
+ at captureError (/home/lupo/work/lupomontero/psl/node_modules/browserstack-node-sdk/src/bin/runner.js:2:3274)
7
+ at Object.mBkJv (/home/lupo/work/lupomontero/psl/node_modules/browserstack-node-sdk/src/bin/runner.js:2:10340)
8
+ at /home/lupo/work/lupomontero/psl/node_modules/browserstack-node-sdk/src/bin/runner.js:2:10569
9
+ at _.applyBuilderUpdateUsageAndParse (/home/lupo/work/lupomontero/psl/node_modules/browserstack-node-sdk/node_modules/yargs/build/index.cjs:1:7435)
10
+ at _.runCommand (/home/lupo/work/lupomontero/psl/node_modules/browserstack-node-sdk/node_modules/yargs/build/index.cjs:1:7078)
11
+ at [runYargsParserAndExecuteCommands] (/home/lupo/work/lupomontero/psl/node_modules/browserstack-node-sdk/node_modules/yargs/build/index.cjs:1:58539)
12
+ at te.parse (/home/lupo/work/lupomontero/psl/node_modules/browserstack-node-sdk/node_modules/yargs/build/index.cjs:1:40478)
13
+ 2024-11-07 21:45:09 - info: Reading configs from /home/lupo/work/lupomontero/psl/browserstack.yml
14
+ 2024-11-07 21:45:10 - info: Project and debug logs are captured by default. To disable, set disableAutoCaptureLogs: true in config.
15
+ 2024-11-07 21:45:12 - info: Local binary started successfully
16
+ 2024-11-07 21:45:34 - info: Visit https://observability.browserstack.com/builds/kn2ljhdkwgb8uvvweqepxnvad3aurj1nxpnvjghk to view build report, insights, and many more debugging information all at one place!
17
+
18
+ 2024-11-07 21:45:34 - info: View build on BrowserStack dashboard: https://automate.browserstack.com/dashboard/v2/builds/5cb8d780cf7707366767a8005c17d879b2d0e624
19
+ 2024-11-07 21:45:36 - info: Deleting /home/lupo/work/lupomontero/psl/playwright-browserstack-sdk.config.js
20
+ 2024-11-07 21:45:38 - info: Local binary stopped
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "psl",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Domain name parser based on the Public Suffix List",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,8 +10,8 @@
10
10
  "scripts": {
11
11
  "lint": "eslint .",
12
12
  "test": "mocha test/*.spec.js",
13
- "test:browserstack": "node test/browserstack.js",
14
- "watch": "mocha test --watch",
13
+ "test:browserstack": "browserstack-node-sdk playwright test",
14
+ "watch": "mocha test/*.spec.js --watch",
15
15
  "prebuild": "./scripts/update-rules.js",
16
16
  "build": "browserify ./index.js --standalone=psl > ./dist/psl.js",
17
17
  "postbuild": "cat ./dist/psl.js | uglifyjs -c -m > ./dist/psl.min.js",
@@ -24,20 +24,19 @@
24
24
  ],
25
25
  "author": "Lupo Montero <lupomontero@gmail.com> (https://lupomontero.com/)",
26
26
  "license": "MIT",
27
+ "dependencies": {
28
+ "punycode": "^2.3.1"
29
+ },
27
30
  "devDependencies": {
28
- "browserify": "^17.0.0",
29
- "browserslist-browserstack": "^3.1.1",
30
- "browserstack-local": "^1.5.1",
31
- "chai": "^4.3.6",
31
+ "@playwright/test": "^1.48.2",
32
+ "browserify": "^17.0.1",
33
+ "browserstack-node-sdk": "^1.34.21",
34
+ "chai": "^5.1.2",
32
35
  "commit-and-pr": "^1.0.4",
33
- "eslint": "^8.19.0",
36
+ "eslint": "^9.14.0",
34
37
  "JSONStream": "^1.3.5",
35
- "mocha": "^7.2.0",
36
- "porch": "^2.0.0",
38
+ "mocha": "^10.8.2",
37
39
  "request": "^2.88.2",
38
- "selenium-webdriver": "^4.3.0",
39
- "serve-handler": "^6.1.3",
40
- "uglify-js": "^3.16.2",
41
- "watchify": "^4.0.0"
40
+ "uglify-js": "^3.19.3"
42
41
  }
43
42
  }
@@ -0,0 +1,31 @@
1
+ // This is a sample config for what users might be running locally
2
+ const config = {
3
+ testDir: './test',
4
+ testMatch: '**/browserstack*.js',
5
+
6
+ /* Maximum time one test can run for. */
7
+ timeout: 90 * 1000,
8
+ expect: {
9
+ /**
10
+ * Maximum time expect() should wait for the condition to be met.
11
+ * For example in `await expect(locator).toHaveText();`
12
+ */
13
+ timeout: 5000,
14
+ },
15
+ /* tests in parallel */
16
+ workers: 1,
17
+ /* Reporter to use. See https://playwright.dev/docs/test-reporters */
18
+ reporter: 'line',
19
+ /* Configure projects for major browsers */
20
+ projects: [
21
+ {
22
+ name: 'chrome',
23
+ use: {
24
+ browserName: 'chromium',
25
+ channel: 'chrome',
26
+ },
27
+ },
28
+ ],
29
+ };
30
+
31
+ module.exports = config;
@@ -0,0 +1,4 @@
1
+ {
2
+ "status": "passed",
3
+ "failedTests": []
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "step-node-agent",
3
- "version": "3.26.2",
3
+ "version": "3.26.3",
4
4
  "description": "The official STEP Agent implementation for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {
File without changes