step-node-agent 3.29.2 → 3.29.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.
- package/node_modules/har-validator/node_modules/ajv/README.md +14 -6
- package/node_modules/har-validator/node_modules/ajv/dist/ajv.bundle.js +23 -11
- package/node_modules/har-validator/node_modules/ajv/dist/ajv.min.js +2 -2
- package/node_modules/har-validator/node_modules/ajv/dist/ajv.min.js.map +1 -1
- package/node_modules/har-validator/node_modules/ajv/lib/ajv.d.ts +5 -0
- package/node_modules/har-validator/node_modules/ajv/lib/compile/index.js +8 -6
- package/node_modules/har-validator/node_modules/ajv/lib/dot/pattern.jst +15 -4
- package/node_modules/har-validator/node_modules/ajv/lib/dotjs/pattern.js +14 -4
- package/node_modules/har-validator/node_modules/ajv/package.json +2 -1
- package/node_modules/har-validator/node_modules/ajv/scripts/info +0 -0
- package/node_modules/har-validator/node_modules/ajv/scripts/prepare-tests +0 -0
- package/node_modules/har-validator/node_modules/ajv/scripts/publish-built-version +0 -0
- package/node_modules/har-validator/node_modules/ajv/scripts/travis-gh-pages +0 -0
- package/node_modules/minimatch/README.md +37 -0
- package/node_modules/minimatch/minimatch.js +160 -102
- package/node_modules/minimatch/package.json +2 -2
- package/node_modules/qs/.editorconfig +1 -1
- package/node_modules/qs/CHANGELOG.md +14 -1
- package/node_modules/qs/README.md +11 -4
- package/node_modules/qs/dist/qs.js +20 -20
- package/node_modules/qs/lib/parse.js +21 -10
- package/node_modules/qs/lib/utils.js +28 -8
- package/node_modules/qs/package.json +1 -1
- package/node_modules/qs/test/parse.js +125 -9
- package/node_modules/qs/test/utils.js +36 -20
- package/node_modules/request/node_modules/qs/CHANGELOG.md +12 -0
- package/node_modules/request/node_modules/qs/README.md +9 -3
- package/node_modules/request/node_modules/qs/dist/qs.js +10 -10
- package/node_modules/request/node_modules/qs/lib/parse.js +4 -4
- package/node_modules/request/node_modules/qs/lib/utils.js +6 -6
- package/node_modules/request/node_modules/qs/package.json +13 -4
- package/node_modules/request/node_modules/qs/test/parse.js +9 -0
- package/node_modules/request/node_modules/qs/test/stringify.js +6 -0
- package/node_modules/underscore/amd/_setup.js +1 -1
- package/node_modules/underscore/amd/pipe.js +13 -0
- package/node_modules/underscore/cjs/_setup.js +1 -1
- package/node_modules/underscore/cjs/pipe.js +12 -0
- package/node_modules/underscore/modules/_flatten.js +20 -18
- package/node_modules/underscore/modules/_setup.js +1 -1
- package/node_modules/underscore/modules/index.js +2 -2
- package/node_modules/underscore/modules/isEqual.js +108 -93
- package/node_modules/underscore/modules/package.json +1 -1
- package/node_modules/underscore/package.json +1 -1
- package/node_modules/underscore/underscore-esm-min.js +3 -3
- package/node_modules/underscore/underscore-esm-min.js.map +1 -1
- package/node_modules/underscore/underscore-esm.js +132 -115
- package/node_modules/underscore/underscore-esm.js.map +1 -1
- package/node_modules/underscore/underscore-min.js +3 -3
- package/node_modules/underscore/underscore-min.js.map +1 -1
- package/node_modules/underscore/underscore-node-f.cjs +132 -115
- package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
- package/node_modules/underscore/underscore-node.cjs +2 -2
- package/node_modules/underscore/underscore-node.mjs +2 -2
- package/node_modules/underscore/underscore-umd-min.js +3 -3
- package/node_modules/underscore/underscore-umd-min.js.map +1 -1
- package/node_modules/underscore/underscore-umd.js +132 -115
- package/node_modules/underscore/underscore-umd.js.map +1 -1
- package/node_modules/underscore/underscore.js +132 -115
- package/package.json +1 -1
- package/node_modules/request/node_modules/qs/bower.json +0 -21
- package/node_modules/request/node_modules/qs/component.json +0 -15
- package/node_modules/underscore/amd/_set.js +0 -21
- package/node_modules/underscore/amd/set.js +0 -15
- package/node_modules/underscore/cjs/_set.js +0 -21
- package/node_modules/underscore/cjs/set.js +0 -15
|
@@ -6,7 +6,7 @@ The fastest JSON Schema validator for Node.js and browser. Supports draft-04/06/
|
|
|
6
6
|
|
|
7
7
|
[](https://travis-ci.org/ajv-validator/ajv)
|
|
8
8
|
[](https://www.npmjs.com/package/ajv)
|
|
9
|
-
[](https://www.npmjs.com/package/ajv/v/7.0.0-beta.
|
|
9
|
+
[](https://www.npmjs.com/package/ajv/v/7.0.0-beta.4)
|
|
10
10
|
[](https://www.npmjs.com/package/ajv)
|
|
11
11
|
[](https://coveralls.io/github/ajv-validator/ajv?branch=master)
|
|
12
12
|
[](https://gitter.im/ajv-validator/ajv)
|
|
@@ -15,12 +15,13 @@ The fastest JSON Schema validator for Node.js and browser. Supports draft-04/06/
|
|
|
15
15
|
|
|
16
16
|
## Ajv v7 beta is released
|
|
17
17
|
|
|
18
|
-
[Ajv version 7
|
|
18
|
+
[Ajv version 7 (beta)](https://github.com/ajv-validator/ajv/tree/v7-beta) is released with these changes:
|
|
19
19
|
|
|
20
|
+
- support of JSON Schema draft-2019-09 features: [`unevaluatedProperties`](./json-schema.md#unevaluatedproperties) and [`unevaluatedItems`](./json-schema.md#unevaluateditems), [dynamic recursive references](./validation.md#extending-recursive-schemas) and other [additional keywords](./json-schema.md#json-schema-draft-2019-09).
|
|
20
21
|
- to reduce the mistakes in JSON schemas and unexpected validation results, [strict mode](./docs/strict-mode.md) is added - it prohibits ignored or ambiguous JSON Schema elements.
|
|
21
|
-
- to make code injection from untrusted schemas impossible, [code generation](./docs/codegen.md) is fully re-written to be safe.
|
|
22
|
-
- to simplify Ajv extensions, the new keyword API that is used by pre-defined keywords is available to user-defined keywords - it is much easier to define any keywords now, especially with subschemas.
|
|
23
|
-
- schemas are compiled to ES6 code (ES5 code generation is supported with an option).
|
|
22
|
+
- to make code injection from untrusted schemas impossible, [code generation](./docs/codegen.md) is fully re-written to be safe and to allow code optimization (compiled schema code size is reduced by more than 10%).
|
|
23
|
+
- to simplify Ajv extensions, the new keyword API that is used by pre-defined keywords is available to user-defined keywords - it is much easier to define any keywords now, especially with subschemas. [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package was updated to use the new API (in [v4.0.0-beta.0](https://github.com/ajv-validator/ajv-keywords/releases/tag/v4.0.0-beta.0))
|
|
24
|
+
- schemas are compiled to ES6 code (ES5 code generation is also supported with an option).
|
|
24
25
|
- to improve reliability and maintainability the code is migrated to TypeScript.
|
|
25
26
|
|
|
26
27
|
**Please note**:
|
|
@@ -1214,7 +1215,8 @@ Defaults:
|
|
|
1214
1215
|
sourceCode: false,
|
|
1215
1216
|
processCode: undefined, // function (str: string, schema: object): string {}
|
|
1216
1217
|
cache: new Cache,
|
|
1217
|
-
serialize: undefined
|
|
1218
|
+
serialize: undefined,
|
|
1219
|
+
regExp: undefined // custom RegExp engine
|
|
1218
1220
|
}
|
|
1219
1221
|
```
|
|
1220
1222
|
|
|
@@ -1328,6 +1330,11 @@ Defaults:
|
|
|
1328
1330
|
- `transpile` that transpiled asynchronous validation function. You can still use `transpile` option with [ajv-async](https://github.com/ajv-validator/ajv-async) package. See [Asynchronous validation](#asynchronous-validation) for more information.
|
|
1329
1331
|
- _cache_: an optional instance of cache to store compiled schemas using stable-stringified schema as a key. For example, set-associative cache [sacjs](https://github.com/epoberezkin/sacjs) can be used. If not passed then a simple hash is used which is good enough for the common use case (a limited number of statically defined schemas). Cache should have methods `put(key, value)`, `get(key)`, `del(key)` and `clear()`.
|
|
1330
1332
|
- _serialize_: an optional function to serialize schema to cache key. Pass `false` to use schema itself as a key (e.g., if WeakMap used as a cache). By default [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used.
|
|
1333
|
+
- _regExp_: an optional function to create RegExp objects. This allows using a custom RegExp engine (e.g., [RE2](https://github.com/uhop/node-re2)) to mitigate ReDoS attacks. The function must have the signature `(pattern: string) => RegExpLike` where `RegExpLike` is an object with a `test(string) => boolean` method. Example with RE2:
|
|
1334
|
+
```javascript
|
|
1335
|
+
var ajv = new Ajv({regExp: require('re2')});
|
|
1336
|
+
```
|
|
1337
|
+
By default (`undefined`), native `RegExp` constructor is used.
|
|
1331
1338
|
|
|
1332
1339
|
|
|
1333
1340
|
## Validation errors
|
|
@@ -1451,6 +1458,7 @@ If you have published a useful plugin please submit a PR to add it to the next s
|
|
|
1451
1458
|
- [addons-linter](https://github.com/mozilla/addons-linter) - Mozilla Add-ons Linter
|
|
1452
1459
|
- [gh-pages-generator](https://github.com/epoberezkin/gh-pages-generator) - multi-page site generator converting markdown files to GitHub pages
|
|
1453
1460
|
- [ESLint](https://github.com/eslint/eslint) - the pluggable linting utility for JavaScript and JSX
|
|
1461
|
+
- [Spectral](https://github.com/stoplightio/spectral) - the customizable linting utility for JSON/YAML, OpenAPI, AsyncAPI, and JSON Schema
|
|
1454
1462
|
|
|
1455
1463
|
|
|
1456
1464
|
## Tests
|
|
@@ -343,6 +343,11 @@ function compile(schema, root, localRefs, baseId) {
|
|
|
343
343
|
, defaultsHash = {}
|
|
344
344
|
, customRules = [];
|
|
345
345
|
|
|
346
|
+
function patternCode(i, patterns) {
|
|
347
|
+
var regExpCode = opts.regExp ? 'regExp' : 'new RegExp';
|
|
348
|
+
return 'var pattern' + i + ' = ' + regExpCode + '(' + util.toQuotedString(patterns[i]) + ');';
|
|
349
|
+
}
|
|
350
|
+
|
|
346
351
|
root = root || { schema: schema, refVal: refVal, refs: refs };
|
|
347
352
|
|
|
348
353
|
var c = checkCompiling.call(this, schema, root, baseId);
|
|
@@ -429,6 +434,7 @@ function compile(schema, root, localRefs, baseId) {
|
|
|
429
434
|
'equal',
|
|
430
435
|
'ucs2length',
|
|
431
436
|
'ValidationError',
|
|
437
|
+
'regExp',
|
|
432
438
|
sourceCode
|
|
433
439
|
);
|
|
434
440
|
|
|
@@ -442,7 +448,8 @@ function compile(schema, root, localRefs, baseId) {
|
|
|
442
448
|
customRules,
|
|
443
449
|
equal,
|
|
444
450
|
ucs2length,
|
|
445
|
-
ValidationError
|
|
451
|
+
ValidationError,
|
|
452
|
+
opts.regExp
|
|
446
453
|
);
|
|
447
454
|
|
|
448
455
|
refVal[0] = validate;
|
|
@@ -659,11 +666,6 @@ function compIndex(schema, root, baseId) {
|
|
|
659
666
|
}
|
|
660
667
|
|
|
661
668
|
|
|
662
|
-
function patternCode(i, patterns) {
|
|
663
|
-
return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
|
|
667
669
|
function defaultCode(i) {
|
|
668
670
|
return 'var default' + i + ' = defaults[' + i + '];';
|
|
669
671
|
}
|
|
@@ -3239,6 +3241,7 @@ module.exports = function generate_pattern(it, $keyword, $ruleType) {
|
|
|
3239
3241
|
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
|
|
3240
3242
|
var $breakOnError = !it.opts.allErrors;
|
|
3241
3243
|
var $data = 'data' + ($dataLvl || '');
|
|
3244
|
+
var $valid = 'valid' + $lvl;
|
|
3242
3245
|
var $isData = it.opts.$data && $schema && $schema.$data,
|
|
3243
3246
|
$schemaValue;
|
|
3244
3247
|
if ($isData) {
|
|
@@ -3247,12 +3250,21 @@ module.exports = function generate_pattern(it, $keyword, $ruleType) {
|
|
|
3247
3250
|
} else {
|
|
3248
3251
|
$schemaValue = $schema;
|
|
3249
3252
|
}
|
|
3250
|
-
var $
|
|
3251
|
-
out += 'if ( ';
|
|
3253
|
+
var $regExpCode = it.opts.regExp ? 'regExp' : 'new RegExp';
|
|
3252
3254
|
if ($isData) {
|
|
3253
|
-
out += ' (' + ($
|
|
3255
|
+
out += ' var ' + ($valid) + ' = true; try { ' + ($valid) + ' = ' + ($regExpCode) + '(' + ($schemaValue) + ').test(' + ($data) + '); } catch(e) { ' + ($valid) + ' = false; } if ( ';
|
|
3256
|
+
if ($isData) {
|
|
3257
|
+
out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
|
|
3258
|
+
}
|
|
3259
|
+
out += ' !' + ($valid) + ') {';
|
|
3260
|
+
} else {
|
|
3261
|
+
var $regexp = it.usePattern($schema);
|
|
3262
|
+
out += ' if ( ';
|
|
3263
|
+
if ($isData) {
|
|
3264
|
+
out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
|
|
3265
|
+
}
|
|
3266
|
+
out += ' !' + ($regexp) + '.test(' + ($data) + ') ) {';
|
|
3254
3267
|
}
|
|
3255
|
-
out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { ';
|
|
3256
3268
|
var $$outStack = $$outStack || [];
|
|
3257
3269
|
$$outStack.push(out);
|
|
3258
3270
|
out = ''; /* istanbul ignore else */
|
|
@@ -5233,7 +5245,7 @@ function escapeJsonPtr(str) {
|
|
|
5233
5245
|
}
|
|
5234
5246
|
|
|
5235
5247
|
},{}],45:[function(require,module,exports){
|
|
5236
|
-
/** @license URI.js v4.4.
|
|
5248
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
5237
5249
|
(function (global, factory) {
|
|
5238
5250
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
5239
5251
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|