step-node-agent 3.19.0 → 3.20.0

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 (105) hide show
  1. package/node_modules/body-parser/HISTORY.md +6 -0
  2. package/node_modules/body-parser/README.md +1 -1
  3. package/node_modules/body-parser/index.js +8 -9
  4. package/node_modules/body-parser/package.json +8 -8
  5. package/node_modules/capture-stack-trace/license +2 -1
  6. package/node_modules/capture-stack-trace/package.json +28 -27
  7. package/node_modules/capture-stack-trace/readme.md +1 -5
  8. package/node_modules/duplexer3/license +10 -0
  9. package/node_modules/duplexer3/package.json +25 -26
  10. package/node_modules/duplexer3/{README.md → readme.md} +25 -41
  11. package/node_modules/express/History.md +9 -0
  12. package/node_modules/express/Readme.md +2 -2
  13. package/node_modules/express/lib/router/route.js +8 -8
  14. package/node_modules/express/package.json +7 -7
  15. package/node_modules/get-intrinsic/.eslintrc +2 -8
  16. package/node_modules/get-intrinsic/.nycrc +0 -4
  17. package/node_modules/get-intrinsic/CHANGELOG.md +34 -0
  18. package/node_modules/get-intrinsic/README.md +7 -1
  19. package/node_modules/get-intrinsic/index.js +4 -0
  20. package/node_modules/get-intrinsic/package.json +25 -12
  21. package/node_modules/get-intrinsic/test/GetIntrinsic.js +25 -11
  22. package/node_modules/glob/common.js +2 -0
  23. package/node_modules/glob/glob.js +4 -1
  24. package/node_modules/glob/package.json +5 -2
  25. package/node_modules/glob/sync.js +6 -3
  26. package/node_modules/is-callable/.editorconfig +5 -0
  27. package/node_modules/is-callable/.eslintrc +0 -11
  28. package/node_modules/is-callable/CHANGELOG.md +50 -0
  29. package/node_modules/is-callable/README.md +16 -0
  30. package/node_modules/is-callable/index.js +35 -8
  31. package/node_modules/is-callable/package.json +27 -13
  32. package/node_modules/is-callable/test/index.js +86 -12
  33. package/node_modules/is-core-module/CHANGELOG.md +7 -0
  34. package/node_modules/is-core-module/core.json +1 -1
  35. package/node_modules/is-core-module/package.json +1 -1
  36. package/node_modules/is-core-module/test/index.js +1 -1
  37. package/node_modules/minimist/.eslintrc +54 -0
  38. package/node_modules/minimist/.github/FUNDING.yml +12 -0
  39. package/node_modules/minimist/.nycrc +14 -0
  40. package/node_modules/minimist/CHANGELOG.md +212 -0
  41. package/node_modules/minimist/{readme.markdown → README.md} +20 -1
  42. package/node_modules/minimist/package.json +39 -9
  43. package/node_modules/object-inspect/CHANGELOG.md +18 -0
  44. package/node_modules/object-inspect/index.js +7 -6
  45. package/node_modules/object-inspect/package-support.json +20 -0
  46. package/node_modules/object-inspect/package.json +20 -10
  47. package/node_modules/object-inspect/test/err.js +3 -3
  48. package/node_modules/object-inspect/test/has.js +6 -25
  49. package/node_modules/object-inspect/test/inspect.js +37 -0
  50. package/node_modules/object-inspect/test/values.js +3 -3
  51. package/node_modules/psl/.env +0 -0
  52. package/node_modules/psl/README.md +1 -5
  53. package/node_modules/psl/data/rules.json +718 -176
  54. package/node_modules/psl/dist/psl.js +720 -178
  55. package/node_modules/psl/dist/psl.min.js +1 -1
  56. package/node_modules/psl/package.json +16 -17
  57. package/node_modules/qs/.editorconfig +3 -0
  58. package/node_modules/qs/.eslintrc +5 -5
  59. package/node_modules/qs/CHANGELOG.md +158 -0
  60. package/node_modules/qs/README.md +3 -1
  61. package/node_modules/qs/dist/qs.js +19 -9
  62. package/node_modules/qs/lib/stringify.js +12 -3
  63. package/node_modules/qs/package.json +16 -12
  64. package/node_modules/qs/test/parse.js +14 -0
  65. package/node_modules/qs/test/stringify.js +54 -10
  66. package/node_modules/resolve/lib/async.js +1 -1
  67. package/node_modules/resolve/lib/core.json +1 -0
  68. package/node_modules/resolve/lib/sync.js +1 -1
  69. package/node_modules/resolve/package.json +14 -5
  70. package/node_modules/resolve/test/core.js +8 -1
  71. package/node_modules/resolve/test/resolver/false_main/index.js +0 -0
  72. package/node_modules/resolve/test/resolver/false_main/package.json +4 -0
  73. package/node_modules/resolve/test/resolver.js +49 -0
  74. package/node_modules/resolve/test/resolver_sync.js +82 -1
  75. package/node_modules/underscore/amd/_set.js +21 -0
  76. package/node_modules/underscore/amd/_setup.js +1 -1
  77. package/node_modules/underscore/amd/set.js +15 -0
  78. package/node_modules/underscore/cjs/_set.js +21 -0
  79. package/node_modules/underscore/cjs/_setup.js +1 -1
  80. package/node_modules/underscore/cjs/set.js +15 -0
  81. package/node_modules/underscore/modules/_setup.js +1 -1
  82. package/node_modules/underscore/modules/index.js +1 -1
  83. package/node_modules/underscore/modules/package.json +1 -3
  84. package/node_modules/underscore/package.json +14 -11
  85. package/node_modules/underscore/underscore-esm-min.js +2 -2
  86. package/node_modules/underscore/underscore-esm.js +2 -2
  87. package/node_modules/underscore/underscore-min.js +2 -2
  88. package/node_modules/underscore/underscore-node-f.cjs +2 -2
  89. package/node_modules/underscore/underscore-node.cjs +1 -1
  90. package/node_modules/underscore/underscore-node.mjs +1 -1
  91. package/node_modules/underscore/underscore-umd-min.js +2 -2
  92. package/node_modules/underscore/underscore-umd.js +2 -2
  93. package/node_modules/underscore/underscore.js +2 -2
  94. package/package.json +1 -1
  95. package/node_modules/duplexer3/LICENSE.md +0 -26
  96. package/node_modules/get-intrinsic/.eslintignore +0 -1
  97. package/node_modules/is-callable/.eslintignore +0 -1
  98. package/node_modules/is-callable/.istanbul.yml +0 -47
  99. package/node_modules/minimist/.travis.yml +0 -8
  100. package/node_modules/object-inspect/.eslintignore +0 -1
  101. package/node_modules/path-exists/index.js +0 -17
  102. package/node_modules/path-exists/license +0 -21
  103. package/node_modules/path-exists/package.json +0 -40
  104. package/node_modules/path-exists/readme.md +0 -50
  105. package/node_modules/resolve/appveyor.yml +0 -76
@@ -1,3 +1,9 @@
1
+ 1.20.1 / 2022-10-06
2
+ ===================
3
+
4
+ * deps: qs@6.11.0
5
+ * perf: remove unnecessary object clone
6
+
1
7
  1.20.0 / 2022-04-02
2
8
  ===================
3
9
 
@@ -346,7 +346,7 @@ call `req.setEncoding` when using this module. The `status` property is set to
346
346
 
347
347
  This error will occur when the request is no longer readable when this middleware
348
348
  attempts to read it. This typically means something other than a middleware from
349
- this module read the reqest body already and the middleware was also configured to
349
+ this module read the request body already and the middleware was also configured to
350
350
  read the same request. The `status` property is set to `500` and the `type`
351
351
  property is set to `'stream.not.readable'`.
352
352
 
@@ -91,16 +91,15 @@ Object.defineProperty(exports, 'urlencoded', {
91
91
  */
92
92
 
93
93
  function bodyParser (options) {
94
- var opts = {}
95
-
96
- // exclude type option
97
- if (options) {
98
- for (var prop in options) {
99
- if (prop !== 'type') {
100
- opts[prop] = options[prop]
101
- }
94
+ // use default type for parsers
95
+ var opts = Object.create(options || null, {
96
+ type: {
97
+ configurable: true,
98
+ enumerable: true,
99
+ value: undefined,
100
+ writable: true
102
101
  }
103
- }
102
+ })
104
103
 
105
104
  var _urlencoded = exports.urlencoded(opts)
106
105
  var _json = exports.json(opts)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "body-parser",
3
3
  "description": "Node.js body parsing middleware",
4
- "version": "1.20.0",
4
+ "version": "1.20.1",
5
5
  "contributors": [
6
6
  "Douglas Christopher Wilson <doug@somethingdoug.com>",
7
7
  "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
@@ -17,24 +17,24 @@
17
17
  "http-errors": "2.0.0",
18
18
  "iconv-lite": "0.4.24",
19
19
  "on-finished": "2.4.1",
20
- "qs": "6.10.3",
20
+ "qs": "6.11.0",
21
21
  "raw-body": "2.5.1",
22
22
  "type-is": "~1.6.18",
23
23
  "unpipe": "1.0.0"
24
24
  },
25
25
  "devDependencies": {
26
- "eslint": "7.32.0",
26
+ "eslint": "8.24.0",
27
27
  "eslint-config-standard": "14.1.1",
28
- "eslint-plugin-import": "2.25.4",
29
- "eslint-plugin-markdown": "2.2.1",
28
+ "eslint-plugin-import": "2.26.0",
29
+ "eslint-plugin-markdown": "3.0.0",
30
30
  "eslint-plugin-node": "11.1.0",
31
- "eslint-plugin-promise": "5.2.0",
31
+ "eslint-plugin-promise": "6.0.1",
32
32
  "eslint-plugin-standard": "4.1.0",
33
33
  "methods": "1.1.2",
34
- "mocha": "9.2.2",
34
+ "mocha": "10.0.0",
35
35
  "nyc": "15.1.0",
36
36
  "safe-buffer": "5.2.1",
37
- "supertest": "6.2.2"
37
+ "supertest": "6.3.0"
38
38
  },
39
39
  "files": [
40
40
  "lib/",
@@ -1,6 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) Vsevolod Strukchinsky <floatdrop@gmail.com> (github.com/floatdrop)
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
+ Copyright (c) Vsevolod Strukchinsky <floatdrop@gmail.com> (https://github.com/floatdrop)
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
@@ -1,29 +1,30 @@
1
1
  {
2
- "name": "capture-stack-trace",
3
- "version": "1.0.1",
4
- "description": "Error.captureStackTrace ponyfill",
5
- "license": "MIT",
6
- "repository": "floatdrop/capture-stack-trace",
7
- "author": {
8
- "name": "Vsevolod Strukchinsky",
9
- "email": "floatdrop@gmail.com",
10
- "url": "github.com/floatdrop"
11
- },
12
- "engines": {
13
- "node": ">=0.10.0"
14
- },
15
- "scripts": {
16
- "test": "mocha"
17
- },
18
- "files": [
19
- "index.js"
20
- ],
21
- "keywords": [
22
- "Error",
23
- "captureStackTrace"
24
- ],
25
- "dependencies": {},
26
- "devDependencies": {
27
- "mocha": "*"
28
- }
2
+ "name": "capture-stack-trace",
3
+ "version": "1.0.2",
4
+ "description": "Error.captureStackTrace ponyfill",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/capture-stack-trace",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
8
+ "author": {
9
+ "name": "Vsevolod Strukchinsky",
10
+ "email": "floatdrop@gmail.com",
11
+ "url": "https://github.com/floatdrop"
12
+ },
13
+ "engines": {
14
+ "node": ">=0.10.0"
15
+ },
16
+ "scripts": {
17
+ "test": "mocha"
18
+ },
19
+ "files": [
20
+ "index.js"
21
+ ],
22
+ "keywords": [
23
+ "error",
24
+ "captureStackTrace"
25
+ ],
26
+ "dependencies": {},
27
+ "devDependencies": {
28
+ "mocha": "*"
29
+ }
29
30
  }
@@ -1,4 +1,4 @@
1
- # capture-stack-trace [![Build Status](https://travis-ci.org/floatdrop/capture-stack-trace.svg?branch=master)](https://travis-ci.org/floatdrop/capture-stack-trace)
1
+ # capture-stack-trace
2
2
 
3
3
  > Ponyfill for Error.captureStackTrace
4
4
 
@@ -30,7 +30,3 @@ captureStackTrace({});
30
30
  Type: `Object`
31
31
 
32
32
  Target Object, that will recieve stack property.
33
-
34
- ## License
35
-
36
- MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)
@@ -0,0 +1,10 @@
1
+ Copyright (c) 2022, Sindre Sorhus.
2
+ Copyright (c) 2020, Vsevolod Strukchinsky.
3
+ Copyright (c) 2013, Deoxxa Development.
4
+
5
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,28 +1,27 @@
1
1
  {
2
- "name": "duplexer3",
3
- "version": "0.1.4",
4
- "description": "Like duplexer but using streams3",
5
- "engine": {
6
- "node": ">=4"
7
- },
8
- "files": [
9
- "index.js"
10
- ],
11
- "scripts": {
12
- "test": "mocha -R tap"
13
- },
14
- "repository": "floatdrop/duplexer3",
15
- "keywords": [
16
- "duplex",
17
- "duplexer",
18
- "stream",
19
- "stream3",
20
- "join",
21
- "combine"
22
- ],
23
- "author": "Conrad Pankoff <deoxxa@fknsrs.biz> (http://www.fknsrs.biz/)",
24
- "license": "BSD-3-Clause",
25
- "devDependencies": {
26
- "mocha": "^2.2.5"
27
- }
2
+ "name": "duplexer3",
3
+ "version": "0.1.5",
4
+ "description": "Like duplexer but using streams3",
5
+ "engine": {
6
+ "node": ">=4"
7
+ },
8
+ "files": [
9
+ "index.js"
10
+ ],
11
+ "scripts": {
12
+ "test": "mocha -R tap"
13
+ },
14
+ "repository": "sindresorhus/duplexer3",
15
+ "keywords": [
16
+ "duplex",
17
+ "duplexer",
18
+ "stream",
19
+ "stream3",
20
+ "join",
21
+ "combine"
22
+ ],
23
+ "license": "BSD-3-Clause",
24
+ "devDependencies": {
25
+ "mocha": "^2.2.5"
26
+ }
28
27
  }
@@ -1,54 +1,53 @@
1
- # duplexer3 [![Build Status](https://travis-ci.org/floatdrop/duplexer3.svg?branch=master)](https://travis-ci.org/floatdrop/duplexer3) [![Coverage Status](https://coveralls.io/repos/floatdrop/duplexer3/badge.svg?branch=master&service=github)](https://coveralls.io/github/floatdrop/duplexer3?branch=master)
1
+ # duplexer3
2
2
 
3
- Like [duplexer2](https://github.com/deoxxa/duplexer2) but using Streams3 without readable-stream dependency
3
+ Like [`duplexer2`](https://github.com/deoxxa/duplexer2) but using Streams3 without readable-stream dependency
4
4
 
5
- ```javascript
5
+ ```js
6
6
  var stream = require("stream");
7
-
8
7
  var duplexer3 = require("duplexer3");
9
8
 
10
9
  var writable = new stream.Writable({objectMode: true}),
11
- readable = new stream.Readable({objectMode: true});
10
+ readable = new stream.Readable({objectMode: true});
12
11
 
13
12
  writable._write = function _write(input, encoding, done) {
14
- if (readable.push(input)) {
15
- return done();
16
- } else {
17
- readable.once("drain", done);
18
- }
13
+ if (readable.push(input)) {
14
+ return done();
15
+ } else {
16
+ readable.once("drain", done);
17
+ }
19
18
  };
20
19
 
21
20
  readable._read = function _read(n) {
22
- // no-op
21
+ // no-op
23
22
  };
24
23
 
25
24
  // simulate the readable thing closing after a bit
26
25
  writable.once("finish", function() {
27
- setTimeout(function() {
28
- readable.push(null);
29
- }, 500);
26
+ setTimeout(function() {
27
+ readable.push(null);
28
+ }, 500);
30
29
  });
31
30
 
32
31
  var duplex = duplexer3(writable, readable);
33
32
 
34
33
  duplex.on("data", function(e) {
35
- console.log("got data", JSON.stringify(e));
34
+ console.log("got data", JSON.stringify(e));
36
35
  });
37
36
 
38
37
  duplex.on("finish", function() {
39
- console.log("got finish event");
38
+ console.log("got finish event");
40
39
  });
41
40
 
42
41
  duplex.on("end", function() {
43
- console.log("got end event");
42
+ console.log("got end event");
44
43
  });
45
44
 
46
45
  duplex.write("oh, hi there", function() {
47
- console.log("finished writing");
46
+ console.log("finished writing");
48
47
  });
49
48
 
50
49
  duplex.end(function() {
51
- console.log("finished ending");
50
+ console.log("finished ending");
52
51
  });
53
52
  ```
54
53
 
@@ -66,14 +65,10 @@ This is a reimplementation of [duplexer](https://www.npmjs.com/package/duplexer)
66
65
  Streams3 API which is standard in Node as of v4. Everything largely
67
66
  works the same.
68
67
 
68
+ ## Install
69
69
 
70
-
71
- ## Installation
72
-
73
- [Available via `npm`](https://docs.npmjs.com/cli/install):
74
-
75
- ```
76
- $ npm i duplexer3
70
+ ```sh
71
+ npm install duplexer3
77
72
  ```
78
73
 
79
74
  ## API
@@ -83,33 +78,22 @@ $ npm i duplexer3
83
78
  Creates a new `DuplexWrapper` object, which is the actual class that implements
84
79
  most of the fun stuff. All that fun stuff is hidden. DON'T LOOK.
85
80
 
86
- ```javascript
81
+ ```js
87
82
  duplexer3([options], writable, readable)
88
83
  ```
89
84
 
90
- ```javascript
85
+ ```js
91
86
  const duplex = duplexer3(new stream.Writable(), new stream.Readable());
92
87
  ```
93
88
 
94
89
  Arguments
95
90
 
96
91
  * __options__ - an object specifying the regular `stream.Duplex` options, as
97
- well as the properties described below.
92
+ well as the properties described below.
98
93
  * __writable__ - a writable stream
99
94
  * __readable__ - a readable stream
100
95
 
101
96
  Options
102
97
 
103
98
  * __bubbleErrors__ - a boolean value that specifies whether to bubble errors
104
- from the underlying readable/writable streams. Default is `true`.
105
-
106
-
107
- ## License
108
-
109
- 3-clause BSD. [A copy](./LICENSE) is included with the source.
110
-
111
- ## Contact
112
-
113
- * GitHub ([deoxxa](http://github.com/deoxxa))
114
- * Twitter ([@deoxxa](http://twitter.com/deoxxa))
115
- * Email ([deoxxa@fknsrs.biz](mailto:deoxxa@fknsrs.biz))
99
+ from the underlying readable/writable streams. Default is `true`.
@@ -1,3 +1,12 @@
1
+ 4.18.2 / 2022-10-08
2
+ ===================
3
+
4
+ * Fix regression routing a large stack in a single route
5
+ * deps: body-parser@1.20.1
6
+ - deps: qs@6.11.0
7
+ - perf: remove unnecessary object clone
8
+ * deps: qs@6.11.0
9
+
1
10
  4.18.1 / 2022-04-29
2
11
  ===================
3
12
 
@@ -1,6 +1,6 @@
1
1
  [![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](http://expressjs.com/)
2
2
 
3
- Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).
3
+ Fast, unopinionated, minimalist web framework for [Node.js](http://nodejs.org).
4
4
 
5
5
  [![NPM Version][npm-version-image]][npm-url]
6
6
  [![NPM Install Size][npm-install-size-image]][npm-install-size-url]
@@ -51,7 +51,7 @@ for more information.
51
51
  ## Docs & Community
52
52
 
53
53
  * [Website and Documentation](http://expressjs.com/) - [[website repo](https://github.com/expressjs/expressjs.com)]
54
- * [#express](https://webchat.freenode.net/?channels=express) on freenode IRC
54
+ * [#express](https://web.libera.chat/#express) on [Libera Chat](https://libera.chat) IRC
55
55
  * [GitHub Organization](https://github.com/expressjs) for Official Middleware & Modules
56
56
  * Visit the [Wiki](https://github.com/expressjs/express/wiki)
57
57
  * [Google Group](https://groups.google.com/group/express-js) for discussion
@@ -124,21 +124,21 @@ Route.prototype.dispatch = function dispatch(req, res, done) {
124
124
  return done(err)
125
125
  }
126
126
 
127
- var layer = stack[idx++];
128
- if (!layer) {
129
- return done(err);
130
- }
131
-
132
127
  // max sync stack
133
128
  if (++sync > 100) {
134
129
  return setImmediate(next, err)
135
130
  }
136
131
 
137
- if (layer.method && layer.method !== method) {
138
- return next(err);
132
+ var layer = stack[idx++]
133
+
134
+ // end of layers
135
+ if (!layer) {
136
+ return done(err)
139
137
  }
140
138
 
141
- if (err) {
139
+ if (layer.method && layer.method !== method) {
140
+ next(err)
141
+ } else if (err) {
142
142
  layer.handle_error(err, req, res, next);
143
143
  } else {
144
144
  layer.handle_request(req, res, next);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "express",
3
3
  "description": "Fast, unopinionated, minimalist web framework",
4
- "version": "4.18.1",
4
+ "version": "4.18.2",
5
5
  "author": "TJ Holowaychuk <tj@vision-media.ca>",
6
6
  "contributors": [
7
7
  "Aaron Heckmann <aaron.heckmann+github@gmail.com>",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "accepts": "~1.3.8",
32
32
  "array-flatten": "1.1.1",
33
- "body-parser": "1.20.0",
33
+ "body-parser": "1.20.1",
34
34
  "content-disposition": "0.5.4",
35
35
  "content-type": "~1.0.4",
36
36
  "cookie": "0.5.0",
@@ -49,7 +49,7 @@
49
49
  "parseurl": "~1.3.3",
50
50
  "path-to-regexp": "0.1.7",
51
51
  "proxy-addr": "~2.0.7",
52
- "qs": "6.10.3",
52
+ "qs": "6.11.0",
53
53
  "range-parser": "~1.2.1",
54
54
  "safe-buffer": "5.2.1",
55
55
  "send": "0.18.0",
@@ -65,18 +65,18 @@
65
65
  "connect-redis": "3.4.2",
66
66
  "cookie-parser": "1.4.6",
67
67
  "cookie-session": "2.0.0",
68
- "ejs": "3.1.7",
69
- "eslint": "7.32.0",
68
+ "ejs": "3.1.8",
69
+ "eslint": "8.24.0",
70
70
  "express-session": "1.17.2",
71
71
  "hbs": "4.2.0",
72
72
  "marked": "0.7.0",
73
73
  "method-override": "3.0.0",
74
- "mocha": "9.2.2",
74
+ "mocha": "10.0.0",
75
75
  "morgan": "1.10.0",
76
76
  "multiparty": "4.2.3",
77
77
  "nyc": "15.1.0",
78
78
  "pbkdf2-password": "1.2.1",
79
- "supertest": "6.2.3",
79
+ "supertest": "6.3.0",
80
80
  "vhost": "~3.0.2"
81
81
  },
82
82
  "engines": {
@@ -8,26 +8,21 @@
8
8
  "es2017": true,
9
9
  "es2020": true,
10
10
  "es2021": true,
11
- },
12
-
13
- "globals": {
14
- "AggregateError": false,
11
+ "es2022": true,
15
12
  },
16
13
 
17
14
  "rules": {
18
15
  "array-bracket-newline": 0,
19
- "array-element-newline": 0,
20
16
  "complexity": 0,
21
17
  "eqeqeq": [2, "allow-null"],
22
18
  "func-name-matching": 0,
23
19
  "id-length": 0,
24
- "max-lines-per-function": [2, 80],
20
+ "max-lines-per-function": [2, 90],
25
21
  "max-params": [2, 4],
26
22
  "max-statements": 0,
27
23
  "max-statements-per-line": [2, { "max": 2 }],
28
24
  "multiline-comment-style": 0,
29
25
  "no-magic-numbers": 0,
30
- "operator-linebreak": [2, "before"],
31
26
  "sort-keys": 0,
32
27
  },
33
28
 
@@ -35,7 +30,6 @@
35
30
  {
36
31
  "files": "test/**",
37
32
  "rules": {
38
- "max-lines-per-function": 0,
39
33
  "new-cap": 0,
40
34
  },
41
35
  },
@@ -2,10 +2,6 @@
2
2
  "all": true,
3
3
  "check-coverage": false,
4
4
  "reporter": ["text-summary", "text", "html", "json"],
5
- "lines": 86,
6
- "statements": 85.93,
7
- "functions": 82.43,
8
- "branches": 76.06,
9
5
  "exclude": [
10
6
  "coverage",
11
7
  "test"
@@ -5,6 +5,40 @@ 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.1.3](https://github.com/ljharb/get-intrinsic/compare/v1.1.2...v1.1.3) - 2022-09-12
9
+
10
+ ### Commits
11
+
12
+ - [Dev Deps] update `es-abstract`, `es-value-fixtures`, `tape` [`07ff291`](https://github.com/ljharb/get-intrinsic/commit/07ff291816406ebe5a12d7f16965bde0942dd688)
13
+ - [Fix] properly check for % signs [`50ac176`](https://github.com/ljharb/get-intrinsic/commit/50ac1760fe99c227e64eabde76e9c0e44cd881b5)
14
+
15
+ ## [v1.1.2](https://github.com/ljharb/get-intrinsic/compare/v1.1.1...v1.1.2) - 2022-06-08
16
+
17
+ ### Fixed
18
+
19
+ - [Fix] properly validate against extra % signs [`#16`](https://github.com/ljharb/get-intrinsic/issues/16)
20
+
21
+ ### Commits
22
+
23
+ - [actions] reuse common workflows [`0972547`](https://github.com/ljharb/get-intrinsic/commit/0972547efd0abc863fe4c445a6ca7eb4f8c6901d)
24
+ - [meta] use `npmignore` to autogenerate an npmignore file [`5ba0b51`](https://github.com/ljharb/get-intrinsic/commit/5ba0b51d8d8d4f1c31d426d74abc0770fd106bad)
25
+ - [actions] use `node/install` instead of `node/run`; use `codecov` action [`c364492`](https://github.com/ljharb/get-intrinsic/commit/c364492af4af51333e6f81c0bf21fd3d602c3661)
26
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `es-abstract`, `object-inspect`, `tape` [`dc04dad`](https://github.com/ljharb/get-intrinsic/commit/dc04dad86f6e5608775a2640cb0db5927ae29ed9)
27
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `es-abstract`, `object-inspect`, `safe-publish-latest`, `tape` [`1c14059`](https://github.com/ljharb/get-intrinsic/commit/1c1405984e86dd2dc9366c15d8a0294a96a146a5)
28
+ - [Tests] use `mock-property` [`b396ef0`](https://github.com/ljharb/get-intrinsic/commit/b396ef05bb73b1d699811abd64b0d9b97997fdda)
29
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `object-inspect`, `tape` [`c2c758d`](https://github.com/ljharb/get-intrinsic/commit/c2c758d3b90af4fef0a76910d8d3c292ec8d1d3e)
30
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `es-abstract`, `es-value-fixtures`, `object-inspect`, `tape` [`29e3c09`](https://github.com/ljharb/get-intrinsic/commit/29e3c091c2bf3e17099969847e8729d0e46896de)
31
+ - [actions] update codecov uploader [`8cbc141`](https://github.com/ljharb/get-intrinsic/commit/8cbc1418940d7a8941f3a7985cbc4ac095c5e13d)
32
+ - [Dev Deps] update `@ljharb/eslint-config`, `es-abstract`, `es-value-fixtures`, `object-inspect`, `tape` [`10b6f5c`](https://github.com/ljharb/get-intrinsic/commit/10b6f5c02593fb3680c581d696ac124e30652932)
33
+ - [readme] add github actions/codecov badges [`4e25400`](https://github.com/ljharb/get-intrinsic/commit/4e25400d9f51ae9eb059cbe22d9144e70ea214e8)
34
+ - [Tests] use `for-each` instead of `foreach` [`c05b957`](https://github.com/ljharb/get-intrinsic/commit/c05b957ad9a7bc7721af7cc9e9be1edbfe057496)
35
+ - [Dev Deps] update `es-abstract` [`29b05ae`](https://github.com/ljharb/get-intrinsic/commit/29b05aec3e7330e9ad0b8e0f685a9112c20cdd97)
36
+ - [meta] use `prepublishOnly` script for npm 7+ [`95c285d`](https://github.com/ljharb/get-intrinsic/commit/95c285da810516057d3bbfa871176031af38f05d)
37
+ - [Deps] update `has-symbols` [`593cb4f`](https://github.com/ljharb/get-intrinsic/commit/593cb4fb38e7922e40e42c183f45274b636424cd)
38
+ - [readme] fix repo URLs [`1c8305b`](https://github.com/ljharb/get-intrinsic/commit/1c8305b5365827c9b6fc785434aac0e1328ff2f5)
39
+ - [Deps] update `has-symbols` [`c7138b6`](https://github.com/ljharb/get-intrinsic/commit/c7138b6c6d73132d859471fb8c13304e1e7c8b20)
40
+ - [Dev Deps] remove unused `has-bigints` [`bd63aff`](https://github.com/ljharb/get-intrinsic/commit/bd63aff6ad8f3a986c557fcda2914187bdaab359)
41
+
8
42
  ## [v1.1.1](https://github.com/ljharb/get-intrinsic/compare/v1.1.0...v1.1.1) - 2021-02-03
9
43
 
10
44
  ### Fixed
@@ -1,5 +1,7 @@
1
1
  # get-intrinsic <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
2
 
3
+ [![github actions][actions-image]][actions-url]
4
+ [![coverage][codecov-image]][codecov-url]
3
5
  [![dependency status][deps-svg]][deps-url]
4
6
  [![dev dependency status][dev-deps-svg]][dev-deps-url]
5
7
  [![License][license-image]][license-url]
@@ -53,7 +55,7 @@ Simply clone the repo, `npm install`, and run `npm test`
53
55
  Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
54
56
 
55
57
  [package-url]: https://npmjs.org/package/get-intrinsic
56
- [npm-version-svg]: http://versionbadg.es/ljharb/get-intrinsic.svg
58
+ [npm-version-svg]: https://versionbadg.es/ljharb/get-intrinsic.svg
57
59
  [deps-svg]: https://david-dm.org/ljharb/get-intrinsic.svg
58
60
  [deps-url]: https://david-dm.org/ljharb/get-intrinsic
59
61
  [dev-deps-svg]: https://david-dm.org/ljharb/get-intrinsic/dev-status.svg
@@ -63,3 +65,7 @@ Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/se
63
65
  [license-url]: LICENSE
64
66
  [downloads-image]: https://img.shields.io/npm/dm/get-intrinsic.svg
65
67
  [downloads-url]: https://npm-stat.com/charts.html?package=get-intrinsic
68
+ [codecov-image]: https://codecov.io/gh/ljharb/get-intrinsic/branch/main/graphs/badge.svg
69
+ [codecov-url]: https://app.codecov.io/gh/ljharb/get-intrinsic/
70
+ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/get-intrinsic
71
+ [actions-url]: https://github.com/ljharb/get-intrinsic/actions
@@ -202,6 +202,7 @@ var $concat = bind.call(Function.call, Array.prototype.concat);
202
202
  var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
203
203
  var $replace = bind.call(Function.call, String.prototype.replace);
204
204
  var $strSlice = bind.call(Function.call, String.prototype.slice);
205
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
205
206
 
206
207
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
207
208
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -257,6 +258,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
257
258
  throw new $TypeError('"allowMissing" argument must be a boolean');
258
259
  }
259
260
 
261
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
262
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
263
+ }
260
264
  var parts = stringToPath(name);
261
265
  var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
262
266