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.
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v1.13.3](https://github.com/inspect-js/object-inspect/compare/v1.13.2...v1.13.3) - 2024-11-09
9
+
10
+ ### Commits
11
+
12
+ - [actions] split out node 10-20, and 20+ [`44395a8`](https://github.com/inspect-js/object-inspect/commit/44395a8fc1deda6718a5e125e86b9ffcaa1c7580)
13
+ - [Fix] `quoteStyle`: properly escape only the containing quotes [`5137f8f`](https://github.com/inspect-js/object-inspect/commit/5137f8f7bea69a7fc671bb683fd35f244f38fc52)
14
+ - [Refactor] clean up `quoteStyle` code [`450680c`](https://github.com/inspect-js/object-inspect/commit/450680cd50de4e689ee3b8e1d6db3a1bcf3fc18c)
15
+ - [Tests] add `quoteStyle` escaping tests [`e997c59`](https://github.com/inspect-js/object-inspect/commit/e997c595aeaea84fd98ca35d7e1c3b5ab3ae26e0)
16
+ - [Dev Deps] update `auto-changelog`, `es-value-fixtures`, `tape` [`d5a469c`](https://github.com/inspect-js/object-inspect/commit/d5a469c99ec07ccaeafc36ac4b36a93285086d48)
17
+ - [Tests] replace `aud` with `npm audit` [`fb7815f`](https://github.com/inspect-js/object-inspect/commit/fb7815f9b72cae277a04f65bbb0543f85b88be62)
18
+ - [Dev Deps] update `mock-property` [`11c817b`](https://github.com/inspect-js/object-inspect/commit/11c817bf10392aa017755962ba6bc89d731359ee)
19
+
8
20
  ## [v1.13.2](https://github.com/inspect-js/object-inspect/compare/v1.13.1...v1.13.2) - 2024-06-21
9
21
 
10
22
  ### Commits
@@ -69,10 +69,21 @@ var utilInspect = require('./util.inspect');
69
69
  var inspectCustom = utilInspect.custom;
70
70
  var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
71
71
 
72
+ var quotes = {
73
+ __proto__: null,
74
+ 'double': '"',
75
+ single: "'"
76
+ };
77
+ var quoteREs = {
78
+ __proto__: null,
79
+ 'double': /(["\\])/g,
80
+ single: /(['\\])/g
81
+ };
82
+
72
83
  module.exports = function inspect_(obj, options, depth, seen) {
73
84
  var opts = options || {};
74
85
 
75
- if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
86
+ if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
76
87
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
77
88
  }
78
89
  if (
@@ -267,7 +278,8 @@ module.exports = function inspect_(obj, options, depth, seen) {
267
278
  };
268
279
 
269
280
  function wrapQuotes(s, defaultStyle, opts) {
270
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
281
+ var style = opts.quoteStyle || defaultStyle;
282
+ var quoteChar = quotes[style];
271
283
  return quoteChar + s + quoteChar;
272
284
  }
273
285
 
@@ -425,8 +437,10 @@ function inspectString(str, opts) {
425
437
  var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
426
438
  return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
427
439
  }
440
+ var quoteRE = quoteREs[opts.quoteStyle || 'single'];
441
+ quoteRE.lastIndex = 0;
428
442
  // eslint-disable-next-line no-control-regex
429
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
443
+ var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
430
444
  return wrapQuotes(s, 'single', opts);
431
445
  }
432
446
 
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "object-inspect",
3
- "version": "1.13.2",
3
+ "version": "1.13.3",
4
4
  "description": "string representations of objects in node and the browser",
5
5
  "main": "index.js",
6
6
  "sideEffects": false,
7
7
  "devDependencies": {
8
8
  "@ljharb/eslint-config": "^21.1.1",
9
9
  "@pkgjs/support": "^0.0.6",
10
- "auto-changelog": "^2.4.0",
10
+ "auto-changelog": "^2.5.0",
11
11
  "core-js": "^2.6.12",
12
12
  "error-cause": "^1.0.8",
13
- "es-value-fixtures": "^1.4.2",
13
+ "es-value-fixtures": "^1.5.0",
14
14
  "eslint": "=8.8.0",
15
15
  "for-each": "^0.3.3",
16
16
  "functions-have-names": "^1.2.3",
@@ -21,13 +21,13 @@
21
21
  "in-publish": "^2.0.1",
22
22
  "jackspeak": "=2.1.1",
23
23
  "make-arrow-function": "^1.2.0",
24
- "mock-property": "^1.0.3",
24
+ "mock-property": "^1.1.0",
25
25
  "npmignore": "^0.3.1",
26
26
  "nyc": "^10.3.2",
27
27
  "safe-publish-latest": "^2.0.0",
28
28
  "safer-buffer": "^2.1.2",
29
29
  "string.prototype.repeat": "^1.0.0",
30
- "tape": "^5.8.1"
30
+ "tape": "^5.9.0"
31
31
  },
32
32
  "scripts": {
33
33
  "prepack": "npmignore --auto --commentLines=autogenerated",
@@ -39,7 +39,7 @@
39
39
  "test": "npm run tests-only && npm run test:corejs",
40
40
  "tests-only": "nyc tape 'test/*.js'",
41
41
  "test:corejs": "nyc tape test-core-js.js 'test/*.js'",
42
- "posttest": "npx aud --production",
42
+ "posttest": "npx npm@'>=10.2' audit --production",
43
43
  "version": "auto-changelog && git add CHANGELOG.md",
44
44
  "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
45
45
  },
@@ -13,5 +13,14 @@ test('quoteStyle option', function (t) {
13
13
  t['throws'](function () { inspect(null, { quoteStyle: NaN }); }, 'NaN is not a valid value');
14
14
  t['throws'](function () { inspect(null, { quoteStyle: function () {} }); }, 'a function is not a valid value');
15
15
 
16
+ t.equal(inspect('"', { quoteStyle: 'single' }), '\'"\'', 'double quote, quoteStyle: "single"');
17
+ t.equal(inspect('"', { quoteStyle: 'double' }), '"\\""', 'double quote, quoteStyle: "double"');
18
+
19
+ t.equal(inspect('\'', { quoteStyle: 'single' }), '\'\\\'\'', 'single quote, quoteStyle: "single"');
20
+ t.equal(inspect('\'', { quoteStyle: 'double' }), '"\'"', 'single quote, quoteStyle: "double"');
21
+
22
+ t.equal(inspect('`', { quoteStyle: 'single' }), '\'`\'', 'backtick, quoteStyle: "single"');
23
+ t.equal(inspect('`', { quoteStyle: 'double' }), '"`"', 'backtick, quoteStyle: "double"');
24
+
16
25
  t.end();
17
26
  });
@@ -38,7 +38,7 @@ npm install --save psl
38
38
 
39
39
  ### Browser
40
40
 
41
- Download [psl.min.js](https://raw.githubusercontent.com/lupomontero/psl/master/dist/psl.min.js)
41
+ Download [psl.min.js](https://raw.githubusercontent.com/lupomontero/psl/main/dist/psl.min.js)
42
42
  and include it in a script tag.
43
43
 
44
44
  ```html
@@ -49,6 +49,11 @@ This script is browserified and wrapped in a [umd](https://github.com/umdjs/umd)
49
49
  wrapper so you should be able to use it standalone or together with a module
50
50
  loader.
51
51
 
52
+ The script is also available on most popular CDNs. For example:
53
+
54
+ * https://cdnjs.cloudflare.com/ajax/libs/psl/1.9.0/psl.min.js
55
+ * https://unpkg.com/psl@1.9.0/dist/psl.min.js
56
+
52
57
  ## API
53
58
 
54
59
  ### `psl.parse(domain)`
@@ -0,0 +1,73 @@
1
+ # ======================
2
+ # BrowserStack Reporting
3
+ # ======================
4
+ # The following capabilities are used to set up reporting on BrowserStack:
5
+ # Set 'projectName' to the name of your project. Example, Marketing Website
6
+ projectName: psl
7
+ # Set `buildName` as the name of the job / testsuite being run
8
+ buildName: browserstack build
9
+ # `buildIdentifier` is a unique id to differentiate every execution that gets appended to
10
+ # buildName. Choose your buildIdentifier format from the available expressions:
11
+ # ${BUILD_NUMBER} (Default): Generates an incremental counter with every execution
12
+ # ${DATE_TIME}: Generates a Timestamp with every execution. Eg. 05-Nov-19:30
13
+ # Read more about buildIdentifiers here -> https://www.browserstack.com/docs/automate/selenium/organize-tests
14
+ buildIdentifier: "#${BUILD_NUMBER}" # Supports strings along with either/both ${expression}
15
+
16
+ # =======================================
17
+ # Platforms (Browsers / Devices to test)
18
+ # =======================================
19
+ # Platforms object contains all the browser / device combinations you want to test on.
20
+ # Entire list available here -> (https://www.browserstack.com/list-of-browsers-and-platforms/automate)
21
+ platforms:
22
+ - os: Windows
23
+ osVersion: 11
24
+ browserName: chrome
25
+ browserVersion: latest
26
+ - os: OS X
27
+ osVersion: Ventura
28
+ browserName: playwright-webkit
29
+ browserVersion: latest
30
+ - os: Windows
31
+ osVersion: 11
32
+ browserName: playwright-firefox
33
+ browserVersion: latest
34
+
35
+ # =======================
36
+ # Parallels per Platform
37
+ # =======================
38
+ # The number of parallel threads to be used for each platform set.
39
+ # BrowserStack's SDK runner will select the best strategy based on the configured value
40
+ #
41
+ # Example 1 - If you have configured 3 platforms and set `parallelsPerPlatform` as 2, a total of 6 (2 * 3) parallel threads will be used on BrowserStack
42
+ #
43
+ # Example 2 - If you have configured 1 platform and set `parallelsPerPlatform` as 5, a total of 5 (1 * 5) parallel threads will be used on BrowserStack
44
+ parallelsPerPlatform: 1
45
+
46
+ # ==========================================
47
+ # BrowserStack Local
48
+ # (For localhost, staging/private websites)
49
+ # ==========================================
50
+ # Set browserStackLocal to true if your website under test is not accessible publicly over the internet
51
+ # Learn more about how BrowserStack Local works here -> https://www.browserstack.com/docs/automate/selenium/local-testing-introduction
52
+ browserstackLocal: true # <boolean> (Default false)
53
+ # browserStackLocalOptions:
54
+ # Options to be passed to BrowserStack local in-case of advanced configurations
55
+ # localIdentifier: # <string> (Default: null) Needed if you need to run multiple instances of local.
56
+ # forceLocal: true # <boolean> (Default: false) Set to true if you need to resolve all your traffic via BrowserStack Local tunnel.
57
+ # Entire list of arguments available here -> https://www.browserstack.com/docs/automate/selenium/manage-incoming-connections
58
+
59
+ framework: playwright
60
+ source: node-js-playwright-sample-sdk:v1
61
+
62
+ # ===================
63
+ # Debugging features
64
+ # ===================
65
+ debug: false # <boolean> # Set to true if you need screenshots for every selenium command ran
66
+ networkLogs: false # <boolean> Set to true to enable HAR logs capturing
67
+ consoleLogs: errors # <string> Remote browser's console debug levels to be printed (Default: errors)
68
+ # Available options are `disable`, `errors`, `warnings`, `info`, `verbose` (Default: errors)
69
+ # CUSTOM_TAG_<INT>: # <string> (Default: parent folder name of the test file) Custom tag for your test suite
70
+
71
+ # Test Observability is an intelligent test reporting & debugging product. It collects data using the SDK. Read more about what data is collected at https://www.browserstack.com/docs/test-observability/references/terms-and-conditions
72
+ # Visit observability.browserstack.com to see your test reports and insights. To disable test observability, specify `testObservability: false` in the key below.
73
+ testObservability: true