step-node-agent 3.29.2 → 3.29.3-customJava25

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 (65) hide show
  1. package/node_modules/har-validator/node_modules/ajv/README.md +14 -6
  2. package/node_modules/har-validator/node_modules/ajv/dist/ajv.bundle.js +23 -11
  3. package/node_modules/har-validator/node_modules/ajv/dist/ajv.min.js +2 -2
  4. package/node_modules/har-validator/node_modules/ajv/dist/ajv.min.js.map +1 -1
  5. package/node_modules/har-validator/node_modules/ajv/lib/ajv.d.ts +5 -0
  6. package/node_modules/har-validator/node_modules/ajv/lib/compile/index.js +8 -6
  7. package/node_modules/har-validator/node_modules/ajv/lib/dot/pattern.jst +15 -4
  8. package/node_modules/har-validator/node_modules/ajv/lib/dotjs/pattern.js +14 -4
  9. package/node_modules/har-validator/node_modules/ajv/package.json +2 -1
  10. package/node_modules/har-validator/node_modules/ajv/scripts/info +0 -0
  11. package/node_modules/har-validator/node_modules/ajv/scripts/prepare-tests +0 -0
  12. package/node_modules/har-validator/node_modules/ajv/scripts/publish-built-version +0 -0
  13. package/node_modules/har-validator/node_modules/ajv/scripts/travis-gh-pages +0 -0
  14. package/node_modules/minimatch/README.md +37 -0
  15. package/node_modules/minimatch/minimatch.js +160 -102
  16. package/node_modules/minimatch/package.json +2 -2
  17. package/node_modules/qs/.editorconfig +1 -1
  18. package/node_modules/qs/CHANGELOG.md +14 -1
  19. package/node_modules/qs/README.md +11 -4
  20. package/node_modules/qs/dist/qs.js +20 -20
  21. package/node_modules/qs/lib/parse.js +21 -10
  22. package/node_modules/qs/lib/utils.js +28 -8
  23. package/node_modules/qs/package.json +1 -1
  24. package/node_modules/qs/test/parse.js +125 -9
  25. package/node_modules/qs/test/utils.js +36 -20
  26. package/node_modules/request/node_modules/qs/CHANGELOG.md +12 -0
  27. package/node_modules/request/node_modules/qs/README.md +9 -3
  28. package/node_modules/request/node_modules/qs/dist/qs.js +10 -10
  29. package/node_modules/request/node_modules/qs/lib/parse.js +4 -4
  30. package/node_modules/request/node_modules/qs/lib/utils.js +6 -6
  31. package/node_modules/request/node_modules/qs/package.json +13 -4
  32. package/node_modules/request/node_modules/qs/test/parse.js +9 -0
  33. package/node_modules/request/node_modules/qs/test/stringify.js +6 -0
  34. package/node_modules/underscore/amd/_setup.js +1 -1
  35. package/node_modules/underscore/amd/pipe.js +13 -0
  36. package/node_modules/underscore/cjs/_setup.js +1 -1
  37. package/node_modules/underscore/cjs/pipe.js +12 -0
  38. package/node_modules/underscore/modules/_flatten.js +20 -18
  39. package/node_modules/underscore/modules/_setup.js +1 -1
  40. package/node_modules/underscore/modules/index.js +2 -2
  41. package/node_modules/underscore/modules/isEqual.js +108 -93
  42. package/node_modules/underscore/modules/package.json +1 -1
  43. package/node_modules/underscore/package.json +1 -1
  44. package/node_modules/underscore/underscore-esm-min.js +3 -3
  45. package/node_modules/underscore/underscore-esm-min.js.map +1 -1
  46. package/node_modules/underscore/underscore-esm.js +132 -115
  47. package/node_modules/underscore/underscore-esm.js.map +1 -1
  48. package/node_modules/underscore/underscore-min.js +3 -3
  49. package/node_modules/underscore/underscore-min.js.map +1 -1
  50. package/node_modules/underscore/underscore-node-f.cjs +132 -115
  51. package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
  52. package/node_modules/underscore/underscore-node.cjs +2 -2
  53. package/node_modules/underscore/underscore-node.mjs +2 -2
  54. package/node_modules/underscore/underscore-umd-min.js +3 -3
  55. package/node_modules/underscore/underscore-umd-min.js.map +1 -1
  56. package/node_modules/underscore/underscore-umd.js +132 -115
  57. package/node_modules/underscore/underscore-umd.js.map +1 -1
  58. package/node_modules/underscore/underscore.js +132 -115
  59. package/package.json +1 -1
  60. package/node_modules/request/node_modules/qs/bower.json +0 -21
  61. package/node_modules/request/node_modules/qs/component.json +0 -15
  62. package/node_modules/underscore/amd/_set.js +0 -21
  63. package/node_modules/underscore/amd/set.js +0 -15
  64. package/node_modules/underscore/cjs/_set.js +0 -21
  65. 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
  [![Build Status](https://travis-ci.org/ajv-validator/ajv.svg?branch=master)](https://travis-ci.org/ajv-validator/ajv)
8
8
  [![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv)
9
- [![npm (beta)](https://img.shields.io/npm/v/ajv/beta)](https://www.npmjs.com/package/ajv/v/7.0.0-beta.0)
9
+ [![npm (beta)](https://img.shields.io/npm/v/ajv/beta)](https://www.npmjs.com/package/ajv/v/7.0.0-beta.4)
10
10
  [![npm downloads](https://img.shields.io/npm/dm/ajv.svg)](https://www.npmjs.com/package/ajv)
11
11
  [![Coverage Status](https://coveralls.io/repos/github/ajv-validator/ajv/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv?branch=master)
12
12
  [![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](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.0.0-beta.0](https://github.com/ajv-validator/ajv/tree/v7-beta) is released with these changes:
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 $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema);
3251
- out += 'if ( ';
3253
+ var $regExpCode = it.opts.regExp ? 'regExp' : 'new RegExp';
3252
3254
  if ($isData) {
3253
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
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.0 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
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) :