@nmshd/runtime 1.2.2 → 1.2.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/dist/buildInformation.js +5 -5
- package/dist/useCases/common/validation/SchemaValidator.js +1 -1
- package/dist/useCases/common/validation/SchemaValidator.js.map +1 -1
- package/lib-web/nmshd.runtime.js +34 -25
- package/lib-web/nmshd.runtime.js.map +1 -1
- package/lib-web/nmshd.runtime.min.js +2 -2
- package/lib-web/nmshd.runtime.min.js.map +1 -1
- package/package.json +10 -10
package/dist/buildInformation.js
CHANGED
|
@@ -7,11 +7,11 @@ const content_1 = require("@nmshd/content");
|
|
|
7
7
|
const crypto_1 = require("@nmshd/crypto");
|
|
8
8
|
const transport_1 = require("@nmshd/transport");
|
|
9
9
|
exports.buildInformation = {
|
|
10
|
-
version: "1.2.
|
|
11
|
-
build: "
|
|
12
|
-
date: "2021-12-
|
|
13
|
-
commit: "
|
|
14
|
-
dependencies: {"@js-soft/docdb-querytranslator":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"1.0.2","@js-soft/ts-utils":"^1.1.1","@nmshd/consumption":"1.0.
|
|
10
|
+
version: "1.2.3",
|
|
11
|
+
build: "18",
|
|
12
|
+
date: "2021-12-16T08:38:15+00:00",
|
|
13
|
+
commit: "cdbf1043c7e5d8188802f6a3d5449076df346eb7",
|
|
14
|
+
dependencies: {"@js-soft/docdb-querytranslator":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"1.0.2","@js-soft/ts-utils":"^1.1.1","@nmshd/consumption":"1.0.6","@nmshd/content":"1.1.2","@nmshd/crypto":"1.0.6","@nmshd/transport":"1.1.1","ajv":"^8.8.2","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","fluent-ts-validator":"3.0.2","luxon":"^2.2.0","qrcode":"1.5.0","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
|
|
15
15
|
libraries: {
|
|
16
16
|
serval: ts_serval_1.buildInformation,
|
|
17
17
|
consumption: consumption_1.buildInformation,
|
|
@@ -19,7 +19,7 @@ class SchemaValidator {
|
|
|
19
19
|
return result;
|
|
20
20
|
}
|
|
21
21
|
schemaErrorToValidationFailure(err, target) {
|
|
22
|
-
const errorMessage = `${err.instancePath} ${err.message}`.replace(/^\//, "").replace(/"/g, "");
|
|
22
|
+
const errorMessage = `${err.instancePath} ${err.message}`.replace(/^\//, "").replace(/"/g, "").trim();
|
|
23
23
|
return new fluent_ts_validator_1.ValidationFailure(target, err.instancePath, undefined, undefined, errorMessage);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaValidator.js","sourceRoot":"","sources":["../../../../src/useCases/common/validation/SchemaValidator.ts"],"names":[],"mappings":";;;AACA,6DAA0E;AAI1E,MAAa,eAAe;IACxB,YAAsC,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAErD,QAAQ,CAAC,KAAQ;QACpB,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAErD,OAAO,IAAI,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,CAAC;IAES,uBAAuB,CAAC,gBAA4C;QAC1E,MAAM,MAAM,GAAG,IAAI,sCAAgB,EAAE,CAAC;QAEtC,IAAI,gBAAgB,CAAC,OAAO,EAAE;YAC1B,OAAO,MAAM,CAAC;SACjB;QAED,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,MAAO,CAAC,GAAG,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;QAEtF,OAAO,MAAM,CAAC;IAClB,CAAC;IAEO,8BAA8B,CAAI,GAAgB,EAAE,MAAS;QACjE,MAAM,YAAY,GAAG,GAAG,GAAG,CAAC,YAAY,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"SchemaValidator.js","sourceRoot":"","sources":["../../../../src/useCases/common/validation/SchemaValidator.ts"],"names":[],"mappings":";;;AACA,6DAA0E;AAI1E,MAAa,eAAe;IACxB,YAAsC,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAErD,QAAQ,CAAC,KAAQ;QACpB,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAErD,OAAO,IAAI,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,CAAC;IAES,uBAAuB,CAAC,gBAA4C;QAC1E,MAAM,MAAM,GAAG,IAAI,sCAAgB,EAAE,CAAC;QAEtC,IAAI,gBAAgB,CAAC,OAAO,EAAE;YAC1B,OAAO,MAAM,CAAC;SACjB;QAED,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,MAAO,CAAC,GAAG,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;QAEtF,OAAO,MAAM,CAAC;IAClB,CAAC;IAEO,8BAA8B,CAAI,GAAgB,EAAE,MAAS;QACjE,MAAM,YAAY,GAAG,GAAG,GAAG,CAAC,YAAY,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAEtG,OAAO,IAAI,uCAAiB,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;IAC/F,CAAC;CACJ;AA1BD,0CA0BC"}
|
package/lib-web/nmshd.runtime.js
CHANGED
|
@@ -330,11 +330,11 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
|
|
|
330
330
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
331
331
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
332
332
|
exports.buildInformation = {
|
|
333
|
-
version: "1.2.
|
|
334
|
-
build: "
|
|
335
|
-
date: "2021-12-
|
|
336
|
-
commit: "
|
|
337
|
-
dependencies: {"@js-soft/docdb-querytranslator":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"1.0.2","@js-soft/ts-utils":"^1.1.1","@nmshd/consumption":"1.0.
|
|
333
|
+
version: "1.2.3",
|
|
334
|
+
build: "18",
|
|
335
|
+
date: "2021-12-16T08:38:15+00:00",
|
|
336
|
+
commit: "cdbf1043c7e5d8188802f6a3d5449076df346eb7",
|
|
337
|
+
dependencies: {"@js-soft/docdb-querytranslator":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"1.0.2","@js-soft/ts-utils":"^1.1.1","@nmshd/consumption":"1.0.6","@nmshd/content":"1.1.2","@nmshd/crypto":"1.0.6","@nmshd/transport":"1.1.1","ajv":"^8.8.2","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","fluent-ts-validator":"3.0.2","luxon":"^2.2.0","qrcode":"1.5.0","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
|
|
338
338
|
libraries: {
|
|
339
339
|
serval: ts_serval_1.buildInformation,
|
|
340
340
|
consumption: consumption_1.buildInformation,
|
|
@@ -6073,7 +6073,7 @@ class SchemaValidator {
|
|
|
6073
6073
|
return result;
|
|
6074
6074
|
}
|
|
6075
6075
|
schemaErrorToValidationFailure(err, target) {
|
|
6076
|
-
const errorMessage = `${err.instancePath} ${err.message}`.replace(/^\//, "").replace(/"/g, "");
|
|
6076
|
+
const errorMessage = `${err.instancePath} ${err.message}`.replace(/^\//, "").replace(/"/g, "").trim();
|
|
6077
6077
|
return new fluent_ts_validator_1.ValidationFailure(target, err.instancePath, undefined, undefined, errorMessage);
|
|
6078
6078
|
}
|
|
6079
6079
|
}
|
|
@@ -30509,8 +30509,7 @@ var Duration = /*#__PURE__*/function () {
|
|
|
30509
30509
|
|
|
30510
30510
|
var i = Math.trunc(own);
|
|
30511
30511
|
built[k] = i;
|
|
30512
|
-
accumulated[k] = own - i; //
|
|
30513
|
-
// plus anything further down the chain that should be rolled up in to this
|
|
30512
|
+
accumulated[k] = (own * 1000 - i * 1000) / 1000; // plus anything further down the chain that should be rolled up in to this
|
|
30514
30513
|
|
|
30515
30514
|
for (var down in vals) {
|
|
30516
30515
|
if (orderedUnits$1.indexOf(down) > orderedUnits$1.indexOf(k)) {
|
|
@@ -32271,14 +32270,19 @@ function dateTimeFromMatches(matches) {
|
|
|
32271
32270
|
}
|
|
32272
32271
|
};
|
|
32273
32272
|
|
|
32274
|
-
var zone;
|
|
32273
|
+
var zone = null;
|
|
32274
|
+
var specificOffset;
|
|
32275
32275
|
|
|
32276
|
-
if (!isUndefined(matches.
|
|
32277
|
-
zone = new FixedOffsetZone(matches.Z);
|
|
32278
|
-
} else if (!isUndefined(matches.z)) {
|
|
32276
|
+
if (!isUndefined(matches.z)) {
|
|
32279
32277
|
zone = IANAZone.create(matches.z);
|
|
32280
|
-
}
|
|
32281
|
-
|
|
32278
|
+
}
|
|
32279
|
+
|
|
32280
|
+
if (!isUndefined(matches.Z)) {
|
|
32281
|
+
if (!zone) {
|
|
32282
|
+
zone = new FixedOffsetZone(matches.Z);
|
|
32283
|
+
}
|
|
32284
|
+
|
|
32285
|
+
specificOffset = matches.Z;
|
|
32282
32286
|
}
|
|
32283
32287
|
|
|
32284
32288
|
if (!isUndefined(matches.q)) {
|
|
@@ -32310,7 +32314,7 @@ function dateTimeFromMatches(matches) {
|
|
|
32310
32314
|
|
|
32311
32315
|
return r;
|
|
32312
32316
|
}, {});
|
|
32313
|
-
return [vals, zone];
|
|
32317
|
+
return [vals, zone, specificOffset];
|
|
32314
32318
|
}
|
|
32315
32319
|
|
|
32316
32320
|
var dummyDateTimeCache = null;
|
|
@@ -32382,9 +32386,10 @@ function explainFromTokens(locale, input, format) {
|
|
|
32382
32386
|
_match = match(input, regex, handlers),
|
|
32383
32387
|
rawMatches = _match[0],
|
|
32384
32388
|
matches = _match[1],
|
|
32385
|
-
_ref6 = matches ? dateTimeFromMatches(matches) : [null, null],
|
|
32389
|
+
_ref6 = matches ? dateTimeFromMatches(matches) : [null, null, undefined],
|
|
32386
32390
|
result = _ref6[0],
|
|
32387
|
-
zone = _ref6[1]
|
|
32391
|
+
zone = _ref6[1],
|
|
32392
|
+
specificOffset = _ref6[2];
|
|
32388
32393
|
|
|
32389
32394
|
if (hasOwnProperty(matches, "a") && hasOwnProperty(matches, "H")) {
|
|
32390
32395
|
throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");
|
|
@@ -32397,7 +32402,8 @@ function explainFromTokens(locale, input, format) {
|
|
|
32397
32402
|
rawMatches: rawMatches,
|
|
32398
32403
|
matches: matches,
|
|
32399
32404
|
result: result,
|
|
32400
|
-
zone: zone
|
|
32405
|
+
zone: zone,
|
|
32406
|
+
specificOffset: specificOffset
|
|
32401
32407
|
};
|
|
32402
32408
|
}
|
|
32403
32409
|
}
|
|
@@ -32405,9 +32411,10 @@ function parseFromTokens(locale, input, format) {
|
|
|
32405
32411
|
var _explainFromTokens = explainFromTokens(locale, input, format),
|
|
32406
32412
|
result = _explainFromTokens.result,
|
|
32407
32413
|
zone = _explainFromTokens.zone,
|
|
32414
|
+
specificOffset = _explainFromTokens.specificOffset,
|
|
32408
32415
|
invalidReason = _explainFromTokens.invalidReason;
|
|
32409
32416
|
|
|
32410
|
-
return [result, zone, invalidReason];
|
|
32417
|
+
return [result, zone, specificOffset, invalidReason];
|
|
32411
32418
|
}
|
|
32412
32419
|
|
|
32413
32420
|
var nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],
|
|
@@ -32695,14 +32702,15 @@ function adjustTime(inst, dur) {
|
|
|
32695
32702
|
// by handling the zone options
|
|
32696
32703
|
|
|
32697
32704
|
|
|
32698
|
-
function parseDataToDateTime(parsed, parsedZone, opts, format, text) {
|
|
32705
|
+
function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
|
|
32699
32706
|
var setZone = opts.setZone,
|
|
32700
32707
|
zone = opts.zone;
|
|
32701
32708
|
|
|
32702
32709
|
if (parsed && Object.keys(parsed).length !== 0) {
|
|
32703
32710
|
var interpretationZone = parsedZone || zone,
|
|
32704
32711
|
inst = DateTime.fromObject(parsed, _extends({}, opts, {
|
|
32705
|
-
zone: interpretationZone
|
|
32712
|
+
zone: interpretationZone,
|
|
32713
|
+
specificOffset: specificOffset
|
|
32706
32714
|
}));
|
|
32707
32715
|
return setZone ? inst : inst.setZone(zone);
|
|
32708
32716
|
} else {
|
|
@@ -33247,7 +33255,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
33247
33255
|
}
|
|
33248
33256
|
|
|
33249
33257
|
var tsNow = Settings.now(),
|
|
33250
|
-
offsetProvis = zoneToUse.offset(tsNow),
|
|
33258
|
+
offsetProvis = !isUndefined(opts.specificOffset) ? opts.specificOffset : zoneToUse.offset(tsNow),
|
|
33251
33259
|
normalized = normalizeObject(obj, normalizeUnit),
|
|
33252
33260
|
containsOrdinal = !isUndefined(normalized.ordinal),
|
|
33253
33261
|
containsGregorYear = !isUndefined(normalized.year),
|
|
@@ -33451,12 +33459,13 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
33451
33459
|
_parseFromTokens = parseFromTokens(localeToUse, text, fmt),
|
|
33452
33460
|
vals = _parseFromTokens[0],
|
|
33453
33461
|
parsedZone = _parseFromTokens[1],
|
|
33454
|
-
|
|
33462
|
+
specificOffset = _parseFromTokens[2],
|
|
33463
|
+
invalid = _parseFromTokens[3];
|
|
33455
33464
|
|
|
33456
33465
|
if (invalid) {
|
|
33457
33466
|
return DateTime.invalid(invalid);
|
|
33458
33467
|
} else {
|
|
33459
|
-
return parseDataToDateTime(vals, parsedZone, opts, "format " + fmt, text);
|
|
33468
|
+
return parseDataToDateTime(vals, parsedZone, opts, "format " + fmt, text, specificOffset);
|
|
33460
33469
|
}
|
|
33461
33470
|
}
|
|
33462
33471
|
/**
|
|
@@ -35094,7 +35103,7 @@ function friendlyDateTime(dateTimeish) {
|
|
|
35094
35103
|
}
|
|
35095
35104
|
}
|
|
35096
35105
|
|
|
35097
|
-
var VERSION = "2.
|
|
35106
|
+
var VERSION = "2.2.0";
|
|
35098
35107
|
|
|
35099
35108
|
exports.DateTime = DateTime;
|
|
35100
35109
|
exports.Duration = Duration;
|