step-node-agent 3.26.3 → 3.26.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.
Files changed (106) hide show
  1. package/node_modules/call-bind/CHANGELOG.md +13 -0
  2. package/node_modules/call-bind/index.js +6 -17
  3. package/node_modules/call-bind/package.json +14 -16
  4. package/node_modules/call-bind/test/index.js +4 -10
  5. package/node_modules/call-bind-apply-helpers/.eslintrc +16 -0
  6. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  7. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  8. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +23 -0
  9. package/node_modules/{has-proto → call-bind-apply-helpers}/LICENSE +1 -1
  10. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  11. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  12. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  13. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  14. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  15. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  16. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  17. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  18. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  19. package/node_modules/call-bind-apply-helpers/index.d.ts +46 -0
  20. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  21. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  22. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  23. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  24. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  25. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  26. package/node_modules/{has-proto → dunder-proto}/.github/FUNDING.yml +1 -1
  27. package/node_modules/dunder-proto/.nycrc +13 -0
  28. package/node_modules/dunder-proto/CHANGELOG.md +15 -0
  29. package/node_modules/dunder-proto/LICENSE +21 -0
  30. package/node_modules/dunder-proto/README.md +54 -0
  31. package/node_modules/dunder-proto/get.d.ts +5 -0
  32. package/node_modules/dunder-proto/get.js +23 -0
  33. package/node_modules/{has-proto → dunder-proto}/package.json +34 -36
  34. package/node_modules/dunder-proto/set.d.ts +5 -0
  35. package/node_modules/dunder-proto/set.js +29 -0
  36. package/node_modules/dunder-proto/test/get.js +34 -0
  37. package/node_modules/dunder-proto/test/index.js +4 -0
  38. package/node_modules/dunder-proto/test/set.js +41 -0
  39. package/node_modules/dunder-proto/tsconfig.json +9 -0
  40. package/node_modules/es-define-property/CHANGELOG.md +14 -0
  41. package/node_modules/es-define-property/index.js +1 -3
  42. package/node_modules/es-define-property/package.json +12 -12
  43. package/node_modules/es-define-property/test/index.js +1 -0
  44. package/node_modules/es-define-property/tsconfig.json +2 -42
  45. package/node_modules/express/History.md +10 -1
  46. package/node_modules/express/package.json +6 -2
  47. package/node_modules/get-intrinsic/CHANGELOG.md +18 -0
  48. package/node_modules/get-intrinsic/index.js +20 -20
  49. package/node_modules/get-intrinsic/package.json +21 -19
  50. package/node_modules/get-intrinsic/test/GetIntrinsic.js +2 -2
  51. package/node_modules/gopd/CHANGELOG.md +20 -0
  52. package/node_modules/gopd/gOPD.d.ts +1 -0
  53. package/node_modules/gopd/gOPD.js +4 -0
  54. package/node_modules/gopd/index.d.ts +5 -0
  55. package/node_modules/gopd/index.js +2 -3
  56. package/node_modules/gopd/package.json +16 -10
  57. package/node_modules/gopd/test/index.js +2 -1
  58. package/node_modules/gopd/tsconfig.json +9 -0
  59. package/node_modules/has-symbols/CHANGELOG.md +16 -0
  60. package/node_modules/has-symbols/index.d.ts +3 -0
  61. package/node_modules/has-symbols/index.js +1 -0
  62. package/node_modules/has-symbols/package.json +19 -9
  63. package/node_modules/has-symbols/shams.d.ts +3 -0
  64. package/node_modules/has-symbols/shams.js +5 -2
  65. package/node_modules/has-symbols/test/shams/core-js.js +1 -0
  66. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +1 -0
  67. package/node_modules/has-symbols/test/tests.js +4 -2
  68. package/node_modules/has-symbols/tsconfig.json +10 -0
  69. package/node_modules/path-to-regexp/index.js +13 -3
  70. package/node_modules/path-to-regexp/package.json +1 -1
  71. package/node_modules/psl/README.md +75 -31
  72. package/node_modules/psl/SECURITY.md +13 -0
  73. package/node_modules/psl/data/rules.js +9778 -0
  74. package/node_modules/psl/dist/psl.cjs +1 -0
  75. package/node_modules/psl/dist/psl.mjs +10008 -0
  76. package/node_modules/psl/dist/psl.umd.cjs +1 -0
  77. package/node_modules/psl/index.js +59 -81
  78. package/node_modules/psl/package.json +24 -15
  79. package/node_modules/psl/types/index.d.ts +52 -0
  80. package/node_modules/psl/types/test.ts +14 -0
  81. package/node_modules/psl/types/tsconfig.json +22 -0
  82. package/node_modules/psl/vite.config.js +20 -0
  83. package/node_modules/yaml/browser/dist/schema/json/schema.js +1 -1
  84. package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +1 -1
  85. package/node_modules/yaml/browser/dist/stringify/stringifyString.js +20 -11
  86. package/node_modules/yaml/dist/schema/json/schema.js +1 -1
  87. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +1 -1
  88. package/node_modules/yaml/dist/stringify/stringifyString.js +20 -11
  89. package/node_modules/yaml/package.json +1 -1
  90. package/package.json +1 -1
  91. package/node_modules/has-proto/CHANGELOG.md +0 -38
  92. package/node_modules/has-proto/README.md +0 -38
  93. package/node_modules/has-proto/index.d.ts +0 -3
  94. package/node_modules/has-proto/index.js +0 -15
  95. package/node_modules/has-proto/test/index.js +0 -19
  96. package/node_modules/has-proto/tsconfig.json +0 -49
  97. package/node_modules/psl/browserstack.yml +0 -73
  98. package/node_modules/psl/data/rules.json +0 -9779
  99. package/node_modules/psl/dist/psl.js +0 -10498
  100. package/node_modules/psl/dist/psl.min.js +0 -1
  101. package/node_modules/psl/eslint.config.js +0 -9
  102. package/node_modules/psl/local.log +0 -12
  103. package/node_modules/psl/log/usage.log +0 -20
  104. package/node_modules/psl/playwright.config.js +0 -31
  105. package/node_modules/psl/test-results/.last-run.json +0 -4
  106. /package/node_modules/{has-proto → dunder-proto}/.eslintrc +0 -0
@@ -27,32 +27,69 @@ Public Suffix List is a list of all known public suffixes.
27
27
 
28
28
  Source: http://publicsuffix.org
29
29
 
30
-
31
30
  ## Installation
32
31
 
32
+ This module is available both for Node.js and the browser. See below for more
33
+ details.
34
+
33
35
  ### Node.js
34
36
 
37
+ This module is tested on Node.js v8, v10, v12, v14, v16, v18, v20 and v22. See
38
+ [`.github/workflows/node.js.yml`](.github/workflows/node.js.yml).
39
+
35
40
  ```sh
36
- npm install --save psl
41
+ npm install psl
42
+ ```
43
+
44
+ #### ESM
45
+
46
+ From version `v1.13.0` you can now import `psl` as ESM.
47
+
48
+ ```js
49
+ import psl from 'psl';
50
+ ```
51
+
52
+ #### CommonJS
53
+
54
+ If your project still uses CommonJS, you can continue importing the module like
55
+ in previous versions.
56
+
57
+ ```js
58
+ const psl = require('psl');
37
59
  ```
38
60
 
39
61
  ### Browser
40
62
 
41
- Download [psl.min.js](https://raw.githubusercontent.com/lupomontero/psl/main/dist/psl.min.js)
63
+ #### Using a bundler
64
+
65
+ If you are using a bundler to build your app, you should be able to `import`
66
+ and/or `require` the module just like in Node.js.
67
+
68
+ #### ESM (using a CDN)
69
+
70
+ In modern browsers you can also import the ESM directly from a `CDN`. For
71
+ example:
72
+
73
+ ```js
74
+ import psl from 'https://unpkg.com/psl@latest/dist/psl.mjs';
75
+ ```
76
+
77
+ #### UMD / CommonJS
78
+
79
+ Finally, you can still download [`dist/psl.umd.cjs`](https://raw.githubusercontent.com/lupomontero/psl/main/dist/psl.umd.cjs)
42
80
  and include it in a script tag.
43
81
 
44
82
  ```html
45
- <script src="psl.min.js"></script>
83
+ <script src="psl.umd.cjs"></script>
46
84
  ```
47
85
 
48
- This script is browserified and wrapped in a [umd](https://github.com/umdjs/umd)
86
+ This script is bundled and wrapped in a [umd](https://github.com/umdjs/umd)
49
87
  wrapper so you should be able to use it standalone or together with a module
50
88
  loader.
51
89
 
52
90
  The script is also available on most popular CDNs. For example:
53
91
 
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
92
+ * https://unpkg.com/psl@latest/dist/psl.umd.cjs
56
93
 
57
94
  ## API
58
95
 
@@ -66,27 +103,38 @@ properties:
66
103
  * `domain`: The domain name is the `sld` + `tld`.
67
104
  * `subdomain`: Optional parts left of the domain.
68
105
 
69
- #### Example:
106
+ #### Examples
107
+
108
+ Parse domain without subdomain:
70
109
 
71
110
  ```js
72
- var psl = require('psl');
111
+ import psl from 'psl';
73
112
 
74
- // Parse domain without subdomain
75
- var parsed = psl.parse('google.com');
113
+ const parsed = psl.parse('google.com');
76
114
  console.log(parsed.tld); // 'com'
77
115
  console.log(parsed.sld); // 'google'
78
116
  console.log(parsed.domain); // 'google.com'
79
117
  console.log(parsed.subdomain); // null
118
+ ```
119
+
120
+ Parse domain with subdomain:
121
+
122
+ ```js
123
+ import psl from 'psl';
80
124
 
81
- // Parse domain with subdomain
82
- var parsed = psl.parse('www.google.com');
125
+ const parsed = psl.parse('www.google.com');
83
126
  console.log(parsed.tld); // 'com'
84
127
  console.log(parsed.sld); // 'google'
85
128
  console.log(parsed.domain); // 'google.com'
86
129
  console.log(parsed.subdomain); // 'www'
130
+ ```
131
+
132
+ Parse domain with nested subdomains:
133
+
134
+ ```js
135
+ import psl from 'psl';
87
136
 
88
- // Parse domain with nested subdomains
89
- var parsed = psl.parse('a.b.c.d.foo.com');
137
+ const parsed = psl.parse('a.b.c.d.foo.com');
90
138
  console.log(parsed.tld); // 'com'
91
139
  console.log(parsed.sld); // 'foo'
92
140
  console.log(parsed.domain); // 'foo.com'
@@ -97,10 +145,10 @@ console.log(parsed.subdomain); // 'a.b.c.d'
97
145
 
98
146
  Get domain name, `sld` + `tld`. Returns `null` if not valid.
99
147
 
100
- #### Example:
148
+ #### Examples
101
149
 
102
150
  ```js
103
- var psl = require('psl');
151
+ import psl from 'psl';
104
152
 
105
153
  // null input.
106
154
  psl.get(null); // null
@@ -153,36 +201,33 @@ whether the domain has a valid Public Suffix.
153
201
  #### Example
154
202
 
155
203
  ```js
156
- var psl = require('psl');
204
+ import psl from 'psl';
157
205
 
158
206
  psl.isValid('google.com'); // true
159
207
  psl.isValid('www.google.com'); // true
160
208
  psl.isValid('x.yz'); // false
161
209
  ```
162
210
 
163
-
164
211
  ## Testing and Building
165
212
 
166
- Test are written using [`mocha`](https://mochajs.org/) and can be
167
- run in two different environments: `node` and `phantomjs`.
213
+ There are tests both for Node.js and the browser (using [Playwright](https://playwright.dev)
214
+ and [BrowserStack](https://www.browserstack.com/)).
168
215
 
169
216
  ```sh
170
- # This will run `eslint`, `mocha` and `karma`.
217
+ # Run tests in node.
171
218
  npm test
219
+ # Run tests in browserstack.
220
+ npm run test:browserstack
172
221
 
173
- # Individual test environments
174
- # Run tests in node only.
175
- ./node_modules/.bin/mocha test
176
- # Run tests in phantomjs only.
177
- ./node_modules/.bin/karma start ./karma.conf.js --single-run
222
+ # Update rules from publicsuffix.org
223
+ npm run update-rules
178
224
 
179
- # Build data (parse raw list) and create dist files
225
+ # Build ESM, CJS and UMD and create dist files
180
226
  npm run build
181
227
  ```
182
228
 
183
229
  Feel free to fork if you see possible improvements!
184
230
 
185
-
186
231
  ## Acknowledgements
187
232
 
188
233
  * Mozilla Foundation's [Public Suffix List](https://publicsuffix.org/)
@@ -190,12 +235,11 @@ Feel free to fork if you see possible improvements!
190
235
  test data.
191
236
  * Inspired by [weppos/publicsuffix-ruby](https://github.com/weppos/publicsuffix-ruby)
192
237
 
193
-
194
238
  ## License
195
239
 
196
240
  The MIT License (MIT)
197
241
 
198
- Copyright (c) 2017 Lupo Montero <lupomontero@gmail.com>
242
+ Copyright (c) 2014-2024 Lupo Montero <lupomontero@gmail.com>
199
243
 
200
244
  Permission is hereby granted, free of charge, to any person obtaining a copy
201
245
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,13 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ | Version | Supported |
6
+ | ------- | ------------------ |
7
+ | 1.x | :white_check_mark: |
8
+
9
+ ## Reporting a Vulnerability
10
+
11
+ To report a security vulnerability, please use the
12
+ [Tidelift security contact](https://tidelift.com/security).
13
+ Tidelift will coordinate the fix and disclosure.