@hpcc-js/marshaller 2.28.6 → 2.28.8

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/dist/index.es6.js CHANGED
@@ -13,8 +13,8 @@ import { JSONEditor, JSEditor } from '@hpcc-js/codemirror';
13
13
  import { PropertyEditor } from '@hpcc-js/other';
14
14
 
15
15
  var PKG_NAME$1 = "@hpcc-js/marshaller";
16
- var PKG_VERSION$1 = "2.28.6";
17
- var BUILD_VERSION = "2.108.6";
16
+ var PKG_VERSION$1 = "2.28.8";
17
+ var BUILD_VERSION = "2.108.8";
18
18
 
19
19
  /******************************************************************************
20
20
  Copyright (c) Microsoft Corporation.
@@ -2330,7 +2330,7 @@ var DSPicker = /** @class */ (function (_super) {
2330
2330
  }(ActivitySelection));
2331
2331
  DSPicker.prototype._class += " DSPicker";
2332
2332
 
2333
- function _mergeNamespaces(n, m) {
2333
+ function _mergeNamespaces$1(n, m) {
2334
2334
  m.forEach(function (e) {
2335
2335
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
2336
2336
  if (k !== 'default' && !(k in n)) {
@@ -2346,7 +2346,7 @@ function _mergeNamespaces(n, m) {
2346
2346
  }
2347
2347
 
2348
2348
  var PKG_NAME = "@hpcc-js/ddl-shim";
2349
- var PKG_VERSION = "2.25.0";
2349
+ var PKG_VERSION = "2.25.1";
2350
2350
 
2351
2351
  function isWorkunitDatasource(ref) {
2352
2352
  return ref.WUID !== undefined;
@@ -3405,10 +3405,10 @@ var hasRequiredUri_all;
3405
3405
  function requireUri_all () {
3406
3406
  if (hasRequiredUri_all) return uri_all$1.exports;
3407
3407
  hasRequiredUri_all = 1;
3408
- (function (module, exports) {
3408
+ (function (module, exports$1) {
3409
3409
  (function (global, factory) {
3410
- factory(exports) ;
3411
- }(uri_all, (function (exports) {
3410
+ factory(exports$1) ;
3411
+ }(uri_all, (function (exports$1) {
3412
3412
  function merge() {
3413
3413
  for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
3414
3414
  sets[_key] = arguments[_key];
@@ -4790,20 +4790,20 @@ function requireUri_all () {
4790
4790
  SCHEMES[handler$5.scheme] = handler$5;
4791
4791
  SCHEMES[handler$6.scheme] = handler$6;
4792
4792
 
4793
- exports.SCHEMES = SCHEMES;
4794
- exports.pctEncChar = pctEncChar;
4795
- exports.pctDecChars = pctDecChars;
4796
- exports.parse = parse;
4797
- exports.removeDotSegments = removeDotSegments;
4798
- exports.serialize = serialize;
4799
- exports.resolveComponents = resolveComponents;
4800
- exports.resolve = resolve;
4801
- exports.normalize = normalize;
4802
- exports.equal = equal;
4803
- exports.escapeComponent = escapeComponent;
4804
- exports.unescapeComponent = unescapeComponent;
4805
-
4806
- Object.defineProperty(exports, '__esModule', { value: true });
4793
+ exports$1.SCHEMES = SCHEMES;
4794
+ exports$1.pctEncChar = pctEncChar;
4795
+ exports$1.pctDecChars = pctDecChars;
4796
+ exports$1.parse = parse;
4797
+ exports$1.removeDotSegments = removeDotSegments;
4798
+ exports$1.serialize = serialize;
4799
+ exports$1.resolveComponents = resolveComponents;
4800
+ exports$1.resolve = resolve;
4801
+ exports$1.normalize = normalize;
4802
+ exports$1.equal = equal;
4803
+ exports$1.escapeComponent = escapeComponent;
4804
+ exports$1.unescapeComponent = unescapeComponent;
4805
+
4806
+ Object.defineProperty(exports$1, '__esModule', { value: true });
4807
4807
 
4808
4808
  })));
4809
4809
 
@@ -6181,6 +6181,11 @@ function requireCompile () {
6181
6181
  , defaultsHash = {}
6182
6182
  , customRules = [];
6183
6183
 
6184
+ function patternCode(i, patterns) {
6185
+ var regExpCode = opts.regExp ? 'regExp' : 'new RegExp';
6186
+ return 'var pattern' + i + ' = ' + regExpCode + '(' + util.toQuotedString(patterns[i]) + ');';
6187
+ }
6188
+
6184
6189
  root = root || { schema: schema, refVal: refVal, refs: refs };
6185
6190
 
6186
6191
  var c = checkCompiling.call(this, schema, root, baseId);
@@ -6267,6 +6272,7 @@ function requireCompile () {
6267
6272
  'equal',
6268
6273
  'ucs2length',
6269
6274
  'ValidationError',
6275
+ 'regExp',
6270
6276
  sourceCode
6271
6277
  );
6272
6278
 
@@ -6280,7 +6286,8 @@ function requireCompile () {
6280
6286
  customRules,
6281
6287
  equal,
6282
6288
  ucs2length,
6283
- ValidationError
6289
+ ValidationError,
6290
+ opts.regExp
6284
6291
  );
6285
6292
 
6286
6293
  refVal[0] = validate;
@@ -6497,11 +6504,6 @@ function requireCompile () {
6497
6504
  }
6498
6505
 
6499
6506
 
6500
- function patternCode(i, patterns) {
6501
- return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';
6502
- }
6503
-
6504
-
6505
6507
  function defaultCode(i) {
6506
6508
  return 'var default' + i + ' = defaults[' + i + '];';
6507
6509
  }
@@ -8525,6 +8527,7 @@ function requirePattern () {
8525
8527
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
8526
8528
  var $breakOnError = !it.opts.allErrors;
8527
8529
  var $data = 'data' + ($dataLvl || '');
8530
+ var $valid = 'valid' + $lvl;
8528
8531
  var $isData = it.opts.$data && $schema && $schema.$data,
8529
8532
  $schemaValue;
8530
8533
  if ($isData) {
@@ -8533,12 +8536,21 @@ function requirePattern () {
8533
8536
  } else {
8534
8537
  $schemaValue = $schema;
8535
8538
  }
8536
- var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema);
8537
- out += 'if ( ';
8539
+ var $regExpCode = it.opts.regExp ? 'regExp' : 'new RegExp';
8538
8540
  if ($isData) {
8539
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
8541
+ out += ' var ' + ($valid) + ' = true; try { ' + ($valid) + ' = ' + ($regExpCode) + '(' + ($schemaValue) + ').test(' + ($data) + '); } catch(e) { ' + ($valid) + ' = false; } if ( ';
8542
+ if ($isData) {
8543
+ out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
8544
+ }
8545
+ out += ' !' + ($valid) + ') {';
8546
+ } else {
8547
+ var $regexp = it.usePattern($schema);
8548
+ out += ' if ( ';
8549
+ if ($isData) {
8550
+ out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
8551
+ }
8552
+ out += ' !' + ($regexp) + '.test(' + ($data) + ') ) {';
8540
8553
  }
8541
- out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { ';
8542
8554
  var $$outStack = $$outStack || [];
8543
8555
  $$outStack.push(out);
8544
8556
  out = ''; /* istanbul ignore else */
@@ -10898,7 +10910,7 @@ function requireAjv () {
10898
10910
  var ajvExports = requireAjv();
10899
10911
  var ajv = /*@__PURE__*/getDefaultExportFromCjs(ajvExports);
10900
10912
 
10901
- var _Ajv = /*#__PURE__*/_mergeNamespaces({
10913
+ var _Ajv = /*#__PURE__*/_mergeNamespaces$1({
10902
10914
  __proto__: null,
10903
10915
  default: ajv
10904
10916
  }, [ajvExports]);