step-node-agent 3.29.1 → 3.29.2

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 (54) hide show
  1. package/node_modules/qs/.github/SECURITY.md +11 -0
  2. package/node_modules/qs/.github/THREAT_MODEL.md +78 -0
  3. package/node_modules/qs/CHANGELOG.md +9 -0
  4. package/node_modules/qs/dist/qs.js +14 -14
  5. package/node_modules/qs/eslint.config.mjs +56 -0
  6. package/node_modules/qs/lib/parse.js +69 -37
  7. package/node_modules/qs/lib/utils.js +55 -3
  8. package/node_modules/qs/package.json +9 -8
  9. package/node_modules/qs/test/parse.js +124 -4
  10. package/node_modules/qs/test/stringify.js +7 -3
  11. package/node_modules/qs/test/utils.js +119 -0
  12. package/node_modules/send/HISTORY.md +7 -0
  13. package/node_modules/send/package.json +5 -5
  14. package/node_modules/serve-static/HISTORY.md +6 -0
  15. package/node_modules/serve-static/package.json +2 -2
  16. package/package.json +1 -1
  17. package/node_modules/qs/.eslintrc +0 -39
  18. package/node_modules/send/node_modules/http-errors/HISTORY.md +0 -180
  19. package/node_modules/send/node_modules/http-errors/LICENSE +0 -23
  20. package/node_modules/send/node_modules/http-errors/README.md +0 -169
  21. package/node_modules/send/node_modules/http-errors/index.js +0 -289
  22. package/node_modules/send/node_modules/http-errors/package.json +0 -50
  23. package/node_modules/send/node_modules/statuses/HISTORY.md +0 -82
  24. package/node_modules/send/node_modules/statuses/LICENSE +0 -23
  25. package/node_modules/send/node_modules/statuses/README.md +0 -136
  26. package/node_modules/send/node_modules/statuses/codes.json +0 -65
  27. package/node_modules/send/node_modules/statuses/index.js +0 -146
  28. package/node_modules/send/node_modules/statuses/package.json +0 -49
  29. package/node_modules/serve-static/node_modules/http-errors/HISTORY.md +0 -180
  30. package/node_modules/serve-static/node_modules/http-errors/LICENSE +0 -23
  31. package/node_modules/serve-static/node_modules/http-errors/README.md +0 -169
  32. package/node_modules/serve-static/node_modules/http-errors/index.js +0 -289
  33. package/node_modules/serve-static/node_modules/http-errors/package.json +0 -50
  34. package/node_modules/serve-static/node_modules/ms/index.js +0 -162
  35. package/node_modules/serve-static/node_modules/ms/license.md +0 -21
  36. package/node_modules/serve-static/node_modules/ms/package.json +0 -38
  37. package/node_modules/serve-static/node_modules/ms/readme.md +0 -59
  38. package/node_modules/serve-static/node_modules/send/HISTORY.md +0 -526
  39. package/node_modules/serve-static/node_modules/send/LICENSE +0 -23
  40. package/node_modules/serve-static/node_modules/send/README.md +0 -327
  41. package/node_modules/serve-static/node_modules/send/SECURITY.md +0 -24
  42. package/node_modules/serve-static/node_modules/send/index.js +0 -1142
  43. package/node_modules/serve-static/node_modules/send/node_modules/encodeurl/HISTORY.md +0 -14
  44. package/node_modules/serve-static/node_modules/send/node_modules/encodeurl/LICENSE +0 -22
  45. package/node_modules/serve-static/node_modules/send/node_modules/encodeurl/README.md +0 -128
  46. package/node_modules/serve-static/node_modules/send/node_modules/encodeurl/index.js +0 -60
  47. package/node_modules/serve-static/node_modules/send/node_modules/encodeurl/package.json +0 -40
  48. package/node_modules/serve-static/node_modules/send/package.json +0 -62
  49. package/node_modules/serve-static/node_modules/statuses/HISTORY.md +0 -82
  50. package/node_modules/serve-static/node_modules/statuses/LICENSE +0 -23
  51. package/node_modules/serve-static/node_modules/statuses/README.md +0 -136
  52. package/node_modules/serve-static/node_modules/statuses/codes.json +0 -65
  53. package/node_modules/serve-static/node_modules/statuses/index.js +0 -146
  54. package/node_modules/serve-static/node_modules/statuses/package.json +0 -49
@@ -1,146 +0,0 @@
1
- /*!
2
- * statuses
3
- * Copyright(c) 2014 Jonathan Ong
4
- * Copyright(c) 2016 Douglas Christopher Wilson
5
- * MIT Licensed
6
- */
7
-
8
- 'use strict'
9
-
10
- /**
11
- * Module dependencies.
12
- * @private
13
- */
14
-
15
- var codes = require('./codes.json')
16
-
17
- /**
18
- * Module exports.
19
- * @public
20
- */
21
-
22
- module.exports = status
23
-
24
- // status code to message map
25
- status.message = codes
26
-
27
- // status message (lower-case) to code map
28
- status.code = createMessageToStatusCodeMap(codes)
29
-
30
- // array of status codes
31
- status.codes = createStatusCodeList(codes)
32
-
33
- // status codes for redirects
34
- status.redirect = {
35
- 300: true,
36
- 301: true,
37
- 302: true,
38
- 303: true,
39
- 305: true,
40
- 307: true,
41
- 308: true
42
- }
43
-
44
- // status codes for empty bodies
45
- status.empty = {
46
- 204: true,
47
- 205: true,
48
- 304: true
49
- }
50
-
51
- // status codes for when you should retry the request
52
- status.retry = {
53
- 502: true,
54
- 503: true,
55
- 504: true
56
- }
57
-
58
- /**
59
- * Create a map of message to status code.
60
- * @private
61
- */
62
-
63
- function createMessageToStatusCodeMap (codes) {
64
- var map = {}
65
-
66
- Object.keys(codes).forEach(function forEachCode (code) {
67
- var message = codes[code]
68
- var status = Number(code)
69
-
70
- // populate map
71
- map[message.toLowerCase()] = status
72
- })
73
-
74
- return map
75
- }
76
-
77
- /**
78
- * Create a list of all status codes.
79
- * @private
80
- */
81
-
82
- function createStatusCodeList (codes) {
83
- return Object.keys(codes).map(function mapCode (code) {
84
- return Number(code)
85
- })
86
- }
87
-
88
- /**
89
- * Get the status code for given message.
90
- * @private
91
- */
92
-
93
- function getStatusCode (message) {
94
- var msg = message.toLowerCase()
95
-
96
- if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {
97
- throw new Error('invalid status message: "' + message + '"')
98
- }
99
-
100
- return status.code[msg]
101
- }
102
-
103
- /**
104
- * Get the status message for given code.
105
- * @private
106
- */
107
-
108
- function getStatusMessage (code) {
109
- if (!Object.prototype.hasOwnProperty.call(status.message, code)) {
110
- throw new Error('invalid status code: ' + code)
111
- }
112
-
113
- return status.message[code]
114
- }
115
-
116
- /**
117
- * Get the status code.
118
- *
119
- * Given a number, this will throw if it is not a known status
120
- * code, otherwise the code will be returned. Given a string,
121
- * the string will be parsed for a number and return the code
122
- * if valid, otherwise will lookup the code assuming this is
123
- * the status message.
124
- *
125
- * @param {string|number} code
126
- * @returns {number}
127
- * @public
128
- */
129
-
130
- function status (code) {
131
- if (typeof code === 'number') {
132
- return getStatusMessage(code)
133
- }
134
-
135
- if (typeof code !== 'string') {
136
- throw new TypeError('code must be a number or string')
137
- }
138
-
139
- // '403'
140
- var n = parseInt(code, 10)
141
- if (!isNaN(n)) {
142
- return getStatusMessage(n)
143
- }
144
-
145
- return getStatusCode(code)
146
- }
@@ -1,49 +0,0 @@
1
- {
2
- "name": "statuses",
3
- "description": "HTTP status utility",
4
- "version": "2.0.1",
5
- "contributors": [
6
- "Douglas Christopher Wilson <doug@somethingdoug.com>",
7
- "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
8
- ],
9
- "repository": "jshttp/statuses",
10
- "license": "MIT",
11
- "keywords": [
12
- "http",
13
- "status",
14
- "code"
15
- ],
16
- "files": [
17
- "HISTORY.md",
18
- "index.js",
19
- "codes.json",
20
- "LICENSE"
21
- ],
22
- "devDependencies": {
23
- "csv-parse": "4.14.2",
24
- "eslint": "7.17.0",
25
- "eslint-config-standard": "14.1.1",
26
- "eslint-plugin-import": "2.22.1",
27
- "eslint-plugin-markdown": "1.0.2",
28
- "eslint-plugin-node": "11.1.0",
29
- "eslint-plugin-promise": "4.2.1",
30
- "eslint-plugin-standard": "4.1.0",
31
- "mocha": "8.2.1",
32
- "nyc": "15.1.0",
33
- "raw-body": "2.4.1",
34
- "stream-to-array": "2.3.0"
35
- },
36
- "engines": {
37
- "node": ">= 0.8"
38
- },
39
- "scripts": {
40
- "build": "node scripts/build.js",
41
- "fetch": "node scripts/fetch-apache.js && node scripts/fetch-iana.js && node scripts/fetch-nginx.js && node scripts/fetch-node.js",
42
- "lint": "eslint --plugin markdown --ext js,md .",
43
- "test": "mocha --reporter spec --check-leaks --bail test/",
44
- "test-ci": "nyc --reporter=lcov --reporter=text npm test",
45
- "test-cov": "nyc --reporter=html --reporter=text npm test",
46
- "update": "npm run fetch && npm run build",
47
- "version": "node scripts/version-history.js && git add HISTORY.md"
48
- }
49
- }