@hpcc-js/ddl-shim 2.25.1 → 2.25.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.
- package/LICENSE +43 -43
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.es6.js +24 -12
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +24 -12
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -3
- package/src/__package__.ts +3 -3
- package/src/cli.ts +60 -60
- package/src/ddl/v0_0_22.ts +344 -344
- package/src/ddl/v1.ts +313 -313
- package/src/ddl/v2.ts +426 -426
- package/src/ddl/v2_0_23.ts +395 -395
- package/src/ddl/v2_1_0.ts +406 -406
- package/src/dermatology.ts +229 -229
- package/src/index.ts +11 -11
- package/src/upgrade.ts +734 -734
- package/src/validate.ts +39 -39
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
package/dist/index.es6.js
CHANGED
|
@@ -14,8 +14,8 @@ function _mergeNamespaces(n, m) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
var PKG_NAME = "@hpcc-js/ddl-shim";
|
|
17
|
-
var PKG_VERSION = "2.25.
|
|
18
|
-
var BUILD_VERSION = "2.108.
|
|
17
|
+
var PKG_VERSION = "2.25.2";
|
|
18
|
+
var BUILD_VERSION = "2.108.10";
|
|
19
19
|
|
|
20
20
|
function isWorkunitDatasource(ref) {
|
|
21
21
|
return ref.WUID !== undefined;
|
|
@@ -3881,6 +3881,11 @@ function requireCompile () {
|
|
|
3881
3881
|
, defaultsHash = {}
|
|
3882
3882
|
, customRules = [];
|
|
3883
3883
|
|
|
3884
|
+
function patternCode(i, patterns) {
|
|
3885
|
+
var regExpCode = opts.regExp ? 'regExp' : 'new RegExp';
|
|
3886
|
+
return 'var pattern' + i + ' = ' + regExpCode + '(' + util.toQuotedString(patterns[i]) + ');';
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3884
3889
|
root = root || { schema: schema, refVal: refVal, refs: refs };
|
|
3885
3890
|
|
|
3886
3891
|
var c = checkCompiling.call(this, schema, root, baseId);
|
|
@@ -3967,6 +3972,7 @@ function requireCompile () {
|
|
|
3967
3972
|
'equal',
|
|
3968
3973
|
'ucs2length',
|
|
3969
3974
|
'ValidationError',
|
|
3975
|
+
'regExp',
|
|
3970
3976
|
sourceCode
|
|
3971
3977
|
);
|
|
3972
3978
|
|
|
@@ -3980,7 +3986,8 @@ function requireCompile () {
|
|
|
3980
3986
|
customRules,
|
|
3981
3987
|
equal,
|
|
3982
3988
|
ucs2length,
|
|
3983
|
-
ValidationError
|
|
3989
|
+
ValidationError,
|
|
3990
|
+
opts.regExp
|
|
3984
3991
|
);
|
|
3985
3992
|
|
|
3986
3993
|
refVal[0] = validate;
|
|
@@ -4197,11 +4204,6 @@ function requireCompile () {
|
|
|
4197
4204
|
}
|
|
4198
4205
|
|
|
4199
4206
|
|
|
4200
|
-
function patternCode(i, patterns) {
|
|
4201
|
-
return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';
|
|
4202
|
-
}
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
4207
|
function defaultCode(i) {
|
|
4206
4208
|
return 'var default' + i + ' = defaults[' + i + '];';
|
|
4207
4209
|
}
|
|
@@ -6225,6 +6227,7 @@ function requirePattern () {
|
|
|
6225
6227
|
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
|
|
6226
6228
|
var $breakOnError = !it.opts.allErrors;
|
|
6227
6229
|
var $data = 'data' + ($dataLvl || '');
|
|
6230
|
+
var $valid = 'valid' + $lvl;
|
|
6228
6231
|
var $isData = it.opts.$data && $schema && $schema.$data,
|
|
6229
6232
|
$schemaValue;
|
|
6230
6233
|
if ($isData) {
|
|
@@ -6233,12 +6236,21 @@ function requirePattern () {
|
|
|
6233
6236
|
} else {
|
|
6234
6237
|
$schemaValue = $schema;
|
|
6235
6238
|
}
|
|
6236
|
-
var $
|
|
6237
|
-
out += 'if ( ';
|
|
6239
|
+
var $regExpCode = it.opts.regExp ? 'regExp' : 'new RegExp';
|
|
6238
6240
|
if ($isData) {
|
|
6239
|
-
out += ' (' + ($
|
|
6241
|
+
out += ' var ' + ($valid) + ' = true; try { ' + ($valid) + ' = ' + ($regExpCode) + '(' + ($schemaValue) + ').test(' + ($data) + '); } catch(e) { ' + ($valid) + ' = false; } if ( ';
|
|
6242
|
+
if ($isData) {
|
|
6243
|
+
out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
|
|
6244
|
+
}
|
|
6245
|
+
out += ' !' + ($valid) + ') {';
|
|
6246
|
+
} else {
|
|
6247
|
+
var $regexp = it.usePattern($schema);
|
|
6248
|
+
out += ' if ( ';
|
|
6249
|
+
if ($isData) {
|
|
6250
|
+
out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
|
|
6251
|
+
}
|
|
6252
|
+
out += ' !' + ($regexp) + '.test(' + ($data) + ') ) {';
|
|
6240
6253
|
}
|
|
6241
|
-
out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { ';
|
|
6242
6254
|
var $$outStack = $$outStack || [];
|
|
6243
6255
|
$$outStack.push(out);
|
|
6244
6256
|
out = ''; /* istanbul ignore else */
|