step-node-agent 3.24.2 → 3.24.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.
Files changed (31) hide show
  1. package/node_modules/express/History.md +14 -5
  2. package/node_modules/express/Readme.md +1 -1
  3. package/node_modules/express/lib/router/index.js +1 -1
  4. package/node_modules/express/lib/router/route.js +7 -2
  5. package/node_modules/express/lib/utils.js +3 -4
  6. package/node_modules/express/package.json +5 -6
  7. package/node_modules/side-channel/CHANGELOG.md +9 -0
  8. package/node_modules/side-channel/index.d.ts +27 -0
  9. package/node_modules/side-channel/index.js +19 -7
  10. package/node_modules/side-channel/package.json +11 -9
  11. package/node_modules/side-channel/test/index.js +1 -1
  12. package/node_modules/side-channel/tsconfig.json +50 -0
  13. package/package.json +1 -1
  14. package/node_modules/express/node_modules/body-parser/HISTORY.md +0 -657
  15. package/node_modules/express/node_modules/body-parser/LICENSE +0 -23
  16. package/node_modules/express/node_modules/body-parser/README.md +0 -464
  17. package/node_modules/express/node_modules/body-parser/SECURITY.md +0 -25
  18. package/node_modules/express/node_modules/body-parser/index.js +0 -156
  19. package/node_modules/express/node_modules/body-parser/lib/read.js +0 -205
  20. package/node_modules/express/node_modules/body-parser/lib/types/json.js +0 -236
  21. package/node_modules/express/node_modules/body-parser/lib/types/raw.js +0 -101
  22. package/node_modules/express/node_modules/body-parser/lib/types/text.js +0 -121
  23. package/node_modules/express/node_modules/body-parser/lib/types/urlencoded.js +0 -284
  24. package/node_modules/express/node_modules/body-parser/package.json +0 -56
  25. package/node_modules/express/node_modules/raw-body/HISTORY.md +0 -303
  26. package/node_modules/express/node_modules/raw-body/LICENSE +0 -22
  27. package/node_modules/express/node_modules/raw-body/README.md +0 -223
  28. package/node_modules/express/node_modules/raw-body/SECURITY.md +0 -24
  29. package/node_modules/express/node_modules/raw-body/index.d.ts +0 -87
  30. package/node_modules/express/node_modules/raw-body/index.js +0 -329
  31. package/node_modules/express/node_modules/raw-body/package.json +0 -49
@@ -1,284 +0,0 @@
1
- /*!
2
- * body-parser
3
- * Copyright(c) 2014 Jonathan Ong
4
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
5
- * MIT Licensed
6
- */
7
-
8
- 'use strict'
9
-
10
- /**
11
- * Module dependencies.
12
- * @private
13
- */
14
-
15
- var bytes = require('bytes')
16
- var contentType = require('content-type')
17
- var createError = require('http-errors')
18
- var debug = require('debug')('body-parser:urlencoded')
19
- var deprecate = require('depd')('body-parser')
20
- var read = require('../read')
21
- var typeis = require('type-is')
22
-
23
- /**
24
- * Module exports.
25
- */
26
-
27
- module.exports = urlencoded
28
-
29
- /**
30
- * Cache of parser modules.
31
- */
32
-
33
- var parsers = Object.create(null)
34
-
35
- /**
36
- * Create a middleware to parse urlencoded bodies.
37
- *
38
- * @param {object} [options]
39
- * @return {function}
40
- * @public
41
- */
42
-
43
- function urlencoded (options) {
44
- var opts = options || {}
45
-
46
- // notice because option default will flip in next major
47
- if (opts.extended === undefined) {
48
- deprecate('undefined extended: provide extended option')
49
- }
50
-
51
- var extended = opts.extended !== false
52
- var inflate = opts.inflate !== false
53
- var limit = typeof opts.limit !== 'number'
54
- ? bytes.parse(opts.limit || '100kb')
55
- : opts.limit
56
- var type = opts.type || 'application/x-www-form-urlencoded'
57
- var verify = opts.verify || false
58
-
59
- if (verify !== false && typeof verify !== 'function') {
60
- throw new TypeError('option verify must be function')
61
- }
62
-
63
- // create the appropriate query parser
64
- var queryparse = extended
65
- ? extendedparser(opts)
66
- : simpleparser(opts)
67
-
68
- // create the appropriate type checking function
69
- var shouldParse = typeof type !== 'function'
70
- ? typeChecker(type)
71
- : type
72
-
73
- function parse (body) {
74
- return body.length
75
- ? queryparse(body)
76
- : {}
77
- }
78
-
79
- return function urlencodedParser (req, res, next) {
80
- if (req._body) {
81
- debug('body already parsed')
82
- next()
83
- return
84
- }
85
-
86
- req.body = req.body || {}
87
-
88
- // skip requests without bodies
89
- if (!typeis.hasBody(req)) {
90
- debug('skip empty body')
91
- next()
92
- return
93
- }
94
-
95
- debug('content-type %j', req.headers['content-type'])
96
-
97
- // determine if request should be parsed
98
- if (!shouldParse(req)) {
99
- debug('skip parsing')
100
- next()
101
- return
102
- }
103
-
104
- // assert charset
105
- var charset = getCharset(req) || 'utf-8'
106
- if (charset !== 'utf-8') {
107
- debug('invalid charset')
108
- next(createError(415, 'unsupported charset "' + charset.toUpperCase() + '"', {
109
- charset: charset,
110
- type: 'charset.unsupported'
111
- }))
112
- return
113
- }
114
-
115
- // read
116
- read(req, res, next, parse, debug, {
117
- debug: debug,
118
- encoding: charset,
119
- inflate: inflate,
120
- limit: limit,
121
- verify: verify
122
- })
123
- }
124
- }
125
-
126
- /**
127
- * Get the extended query parser.
128
- *
129
- * @param {object} options
130
- */
131
-
132
- function extendedparser (options) {
133
- var parameterLimit = options.parameterLimit !== undefined
134
- ? options.parameterLimit
135
- : 1000
136
- var parse = parser('qs')
137
-
138
- if (isNaN(parameterLimit) || parameterLimit < 1) {
139
- throw new TypeError('option parameterLimit must be a positive number')
140
- }
141
-
142
- if (isFinite(parameterLimit)) {
143
- parameterLimit = parameterLimit | 0
144
- }
145
-
146
- return function queryparse (body) {
147
- var paramCount = parameterCount(body, parameterLimit)
148
-
149
- if (paramCount === undefined) {
150
- debug('too many parameters')
151
- throw createError(413, 'too many parameters', {
152
- type: 'parameters.too.many'
153
- })
154
- }
155
-
156
- var arrayLimit = Math.max(100, paramCount)
157
-
158
- debug('parse extended urlencoding')
159
- return parse(body, {
160
- allowPrototypes: true,
161
- arrayLimit: arrayLimit,
162
- depth: Infinity,
163
- parameterLimit: parameterLimit
164
- })
165
- }
166
- }
167
-
168
- /**
169
- * Get the charset of a request.
170
- *
171
- * @param {object} req
172
- * @api private
173
- */
174
-
175
- function getCharset (req) {
176
- try {
177
- return (contentType.parse(req).parameters.charset || '').toLowerCase()
178
- } catch (e) {
179
- return undefined
180
- }
181
- }
182
-
183
- /**
184
- * Count the number of parameters, stopping once limit reached
185
- *
186
- * @param {string} body
187
- * @param {number} limit
188
- * @api private
189
- */
190
-
191
- function parameterCount (body, limit) {
192
- var count = 0
193
- var index = 0
194
-
195
- while ((index = body.indexOf('&', index)) !== -1) {
196
- count++
197
- index++
198
-
199
- if (count === limit) {
200
- return undefined
201
- }
202
- }
203
-
204
- return count
205
- }
206
-
207
- /**
208
- * Get parser for module name dynamically.
209
- *
210
- * @param {string} name
211
- * @return {function}
212
- * @api private
213
- */
214
-
215
- function parser (name) {
216
- var mod = parsers[name]
217
-
218
- if (mod !== undefined) {
219
- return mod.parse
220
- }
221
-
222
- // this uses a switch for static require analysis
223
- switch (name) {
224
- case 'qs':
225
- mod = require('qs')
226
- break
227
- case 'querystring':
228
- mod = require('querystring')
229
- break
230
- }
231
-
232
- // store to prevent invoking require()
233
- parsers[name] = mod
234
-
235
- return mod.parse
236
- }
237
-
238
- /**
239
- * Get the simple query parser.
240
- *
241
- * @param {object} options
242
- */
243
-
244
- function simpleparser (options) {
245
- var parameterLimit = options.parameterLimit !== undefined
246
- ? options.parameterLimit
247
- : 1000
248
- var parse = parser('querystring')
249
-
250
- if (isNaN(parameterLimit) || parameterLimit < 1) {
251
- throw new TypeError('option parameterLimit must be a positive number')
252
- }
253
-
254
- if (isFinite(parameterLimit)) {
255
- parameterLimit = parameterLimit | 0
256
- }
257
-
258
- return function queryparse (body) {
259
- var paramCount = parameterCount(body, parameterLimit)
260
-
261
- if (paramCount === undefined) {
262
- debug('too many parameters')
263
- throw createError(413, 'too many parameters', {
264
- type: 'parameters.too.many'
265
- })
266
- }
267
-
268
- debug('parse urlencoding')
269
- return parse(body, undefined, undefined, { maxKeys: parameterLimit })
270
- }
271
- }
272
-
273
- /**
274
- * Get the simple type checker.
275
- *
276
- * @param {string} type
277
- * @return {function}
278
- */
279
-
280
- function typeChecker (type) {
281
- return function checkType (req) {
282
- return Boolean(typeis(req, type))
283
- }
284
- }
@@ -1,56 +0,0 @@
1
- {
2
- "name": "body-parser",
3
- "description": "Node.js body parsing middleware",
4
- "version": "1.20.1",
5
- "contributors": [
6
- "Douglas Christopher Wilson <doug@somethingdoug.com>",
7
- "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
8
- ],
9
- "license": "MIT",
10
- "repository": "expressjs/body-parser",
11
- "dependencies": {
12
- "bytes": "3.1.2",
13
- "content-type": "~1.0.4",
14
- "debug": "2.6.9",
15
- "depd": "2.0.0",
16
- "destroy": "1.2.0",
17
- "http-errors": "2.0.0",
18
- "iconv-lite": "0.4.24",
19
- "on-finished": "2.4.1",
20
- "qs": "6.11.0",
21
- "raw-body": "2.5.1",
22
- "type-is": "~1.6.18",
23
- "unpipe": "1.0.0"
24
- },
25
- "devDependencies": {
26
- "eslint": "8.24.0",
27
- "eslint-config-standard": "14.1.1",
28
- "eslint-plugin-import": "2.26.0",
29
- "eslint-plugin-markdown": "3.0.0",
30
- "eslint-plugin-node": "11.1.0",
31
- "eslint-plugin-promise": "6.0.1",
32
- "eslint-plugin-standard": "4.1.0",
33
- "methods": "1.1.2",
34
- "mocha": "10.0.0",
35
- "nyc": "15.1.0",
36
- "safe-buffer": "5.2.1",
37
- "supertest": "6.3.0"
38
- },
39
- "files": [
40
- "lib/",
41
- "LICENSE",
42
- "HISTORY.md",
43
- "SECURITY.md",
44
- "index.js"
45
- ],
46
- "engines": {
47
- "node": ">= 0.8",
48
- "npm": "1.2.8000 || >= 1.4.16"
49
- },
50
- "scripts": {
51
- "lint": "eslint .",
52
- "test": "mocha --require test/support/env --reporter spec --check-leaks --bail test/",
53
- "test-ci": "nyc --reporter=lcov --reporter=text npm test",
54
- "test-cov": "nyc --reporter=html --reporter=text npm test"
55
- }
56
- }
@@ -1,303 +0,0 @@
1
- 2.5.1 / 2022-02-28
2
- ==================
3
-
4
- * Fix error on early async hooks implementations
5
-
6
- 2.5.0 / 2022-02-21
7
- ==================
8
-
9
- * Prevent loss of async hooks context
10
- * Prevent hanging when stream is not readable
11
- * deps: http-errors@2.0.0
12
- - deps: depd@2.0.0
13
- - deps: statuses@2.0.1
14
-
15
- 2.4.3 / 2022-02-14
16
- ==================
17
-
18
- * deps: bytes@3.1.2
19
-
20
- 2.4.2 / 2021-11-16
21
- ==================
22
-
23
- * deps: bytes@3.1.1
24
- * deps: http-errors@1.8.1
25
- - deps: setprototypeof@1.2.0
26
- - deps: toidentifier@1.0.1
27
-
28
- 2.4.1 / 2019-06-25
29
- ==================
30
-
31
- * deps: http-errors@1.7.3
32
- - deps: inherits@2.0.4
33
-
34
- 2.4.0 / 2019-04-17
35
- ==================
36
-
37
- * deps: bytes@3.1.0
38
- - Add petabyte (`pb`) support
39
- * deps: http-errors@1.7.2
40
- - Set constructor name when possible
41
- - deps: setprototypeof@1.1.1
42
- - deps: statuses@'>= 1.5.0 < 2'
43
- * deps: iconv-lite@0.4.24
44
- - Added encoding MIK
45
-
46
- 2.3.3 / 2018-05-08
47
- ==================
48
-
49
- * deps: http-errors@1.6.3
50
- - deps: depd@~1.1.2
51
- - deps: setprototypeof@1.1.0
52
- - deps: statuses@'>= 1.3.1 < 2'
53
- * deps: iconv-lite@0.4.23
54
- - Fix loading encoding with year appended
55
- - Fix deprecation warnings on Node.js 10+
56
-
57
- 2.3.2 / 2017-09-09
58
- ==================
59
-
60
- * deps: iconv-lite@0.4.19
61
- - Fix ISO-8859-1 regression
62
- - Update Windows-1255
63
-
64
- 2.3.1 / 2017-09-07
65
- ==================
66
-
67
- * deps: bytes@3.0.0
68
- * deps: http-errors@1.6.2
69
- - deps: depd@1.1.1
70
- * perf: skip buffer decoding on overage chunk
71
-
72
- 2.3.0 / 2017-08-04
73
- ==================
74
-
75
- * Add TypeScript definitions
76
- * Use `http-errors` for standard emitted errors
77
- * deps: bytes@2.5.0
78
- * deps: iconv-lite@0.4.18
79
- - Add support for React Native
80
- - Add a warning if not loaded as utf-8
81
- - Fix CESU-8 decoding in Node.js 8
82
- - Improve speed of ISO-8859-1 encoding
83
-
84
- 2.2.0 / 2017-01-02
85
- ==================
86
-
87
- * deps: iconv-lite@0.4.15
88
- - Added encoding MS-31J
89
- - Added encoding MS-932
90
- - Added encoding MS-936
91
- - Added encoding MS-949
92
- - Added encoding MS-950
93
- - Fix GBK/GB18030 handling of Euro character
94
-
95
- 2.1.7 / 2016-06-19
96
- ==================
97
-
98
- * deps: bytes@2.4.0
99
- * perf: remove double-cleanup on happy path
100
-
101
- 2.1.6 / 2016-03-07
102
- ==================
103
-
104
- * deps: bytes@2.3.0
105
- - Drop partial bytes on all parsed units
106
- - Fix parsing byte string that looks like hex
107
-
108
- 2.1.5 / 2015-11-30
109
- ==================
110
-
111
- * deps: bytes@2.2.0
112
- * deps: iconv-lite@0.4.13
113
-
114
- 2.1.4 / 2015-09-27
115
- ==================
116
-
117
- * Fix masking critical errors from `iconv-lite`
118
- * deps: iconv-lite@0.4.12
119
- - Fix CESU-8 decoding in Node.js 4.x
120
-
121
- 2.1.3 / 2015-09-12
122
- ==================
123
-
124
- * Fix sync callback when attaching data listener causes sync read
125
- - Node.js 0.10 compatibility issue
126
-
127
- 2.1.2 / 2015-07-05
128
- ==================
129
-
130
- * Fix error stack traces to skip `makeError`
131
- * deps: iconv-lite@0.4.11
132
- - Add encoding CESU-8
133
-
134
- 2.1.1 / 2015-06-14
135
- ==================
136
-
137
- * Use `unpipe` module for unpiping requests
138
-
139
- 2.1.0 / 2015-05-28
140
- ==================
141
-
142
- * deps: iconv-lite@0.4.10
143
- - Improved UTF-16 endianness detection
144
- - Leading BOM is now removed when decoding
145
- - The encoding UTF-16 without BOM now defaults to UTF-16LE when detection fails
146
-
147
- 2.0.2 / 2015-05-21
148
- ==================
149
-
150
- * deps: bytes@2.1.0
151
- - Slight optimizations
152
-
153
- 2.0.1 / 2015-05-10
154
- ==================
155
-
156
- * Fix a false-positive when unpiping in Node.js 0.8
157
-
158
- 2.0.0 / 2015-05-08
159
- ==================
160
-
161
- * Return a promise without callback instead of thunk
162
- * deps: bytes@2.0.1
163
- - units no longer case sensitive when parsing
164
-
165
- 1.3.4 / 2015-04-15
166
- ==================
167
-
168
- * Fix hanging callback if request aborts during read
169
- * deps: iconv-lite@0.4.8
170
- - Add encoding alias UNICODE-1-1-UTF-7
171
-
172
- 1.3.3 / 2015-02-08
173
- ==================
174
-
175
- * deps: iconv-lite@0.4.7
176
- - Gracefully support enumerables on `Object.prototype`
177
-
178
- 1.3.2 / 2015-01-20
179
- ==================
180
-
181
- * deps: iconv-lite@0.4.6
182
- - Fix rare aliases of single-byte encodings
183
-
184
- 1.3.1 / 2014-11-21
185
- ==================
186
-
187
- * deps: iconv-lite@0.4.5
188
- - Fix Windows-31J and X-SJIS encoding support
189
-
190
- 1.3.0 / 2014-07-20
191
- ==================
192
-
193
- * Fully unpipe the stream on error
194
- - Fixes `Cannot switch to old mode now` error on Node.js 0.10+
195
-
196
- 1.2.3 / 2014-07-20
197
- ==================
198
-
199
- * deps: iconv-lite@0.4.4
200
- - Added encoding UTF-7
201
-
202
- 1.2.2 / 2014-06-19
203
- ==================
204
-
205
- * Send invalid encoding error to callback
206
-
207
- 1.2.1 / 2014-06-15
208
- ==================
209
-
210
- * deps: iconv-lite@0.4.3
211
- - Added encodings UTF-16BE and UTF-16 with BOM
212
-
213
- 1.2.0 / 2014-06-13
214
- ==================
215
-
216
- * Passing string as `options` interpreted as encoding
217
- * Support all encodings from `iconv-lite`
218
-
219
- 1.1.7 / 2014-06-12
220
- ==================
221
-
222
- * use `string_decoder` module from npm
223
-
224
- 1.1.6 / 2014-05-27
225
- ==================
226
-
227
- * check encoding for old streams1
228
- * support node.js < 0.10.6
229
-
230
- 1.1.5 / 2014-05-14
231
- ==================
232
-
233
- * bump bytes
234
-
235
- 1.1.4 / 2014-04-19
236
- ==================
237
-
238
- * allow true as an option
239
- * bump bytes
240
-
241
- 1.1.3 / 2014-03-02
242
- ==================
243
-
244
- * fix case when length=null
245
-
246
- 1.1.2 / 2013-12-01
247
- ==================
248
-
249
- * be less strict on state.encoding check
250
-
251
- 1.1.1 / 2013-11-27
252
- ==================
253
-
254
- * add engines
255
-
256
- 1.1.0 / 2013-11-27
257
- ==================
258
-
259
- * add err.statusCode and err.type
260
- * allow for encoding option to be true
261
- * pause the stream instead of dumping on error
262
- * throw if the stream's encoding is set
263
-
264
- 1.0.1 / 2013-11-19
265
- ==================
266
-
267
- * dont support streams1, throw if dev set encoding
268
-
269
- 1.0.0 / 2013-11-17
270
- ==================
271
-
272
- * rename `expected` option to `length`
273
-
274
- 0.2.0 / 2013-11-15
275
- ==================
276
-
277
- * republish
278
-
279
- 0.1.1 / 2013-11-15
280
- ==================
281
-
282
- * use bytes
283
-
284
- 0.1.0 / 2013-11-11
285
- ==================
286
-
287
- * generator support
288
-
289
- 0.0.3 / 2013-10-10
290
- ==================
291
-
292
- * update repo
293
-
294
- 0.0.2 / 2013-09-14
295
- ==================
296
-
297
- * dump stream on bad headers
298
- * listen to events after defining received and buffers
299
-
300
- 0.0.1 / 2013-09-14
301
- ==================
302
-
303
- * Initial release
@@ -1,22 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2013-2014 Jonathan Ong <me@jongleberry.com>
4
- Copyright (c) 2014-2022 Douglas Christopher Wilson <doug@somethingdoug.com>
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.