@nmshd/runtime 1.4.0 → 1.4.1
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
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.4.
|
|
11
|
-
build: "
|
|
12
|
-
date: "2022-
|
|
13
|
-
commit: "
|
|
14
|
-
dependencies: {"@js-soft/docdb-querytranslator":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"1.1.1","@js-soft/ts-utils":"^1.1.1","@nmshd/consumption":"1.0.
|
|
10
|
+
version: "1.4.1",
|
|
11
|
+
build: "44",
|
|
12
|
+
date: "2022-04-22T12:46:10+00:00",
|
|
13
|
+
commit: "1b084693e1db32b70aabb77250e88aafd4f82c71",
|
|
14
|
+
dependencies: {"@js-soft/docdb-querytranslator":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"1.1.1","@js-soft/ts-utils":"^1.1.1","@nmshd/consumption":"1.0.15","@nmshd/content":"1.1.5","@nmshd/crypto":"1.0.8","@nmshd/transport":"1.2.0","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","fluent-ts-validator":"3.0.3","json-stringify-safe":"^5.0.1","luxon":"^2.3.2","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,
|
package/lib-web/nmshd.runtime.js
CHANGED
|
@@ -329,11 +329,11 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
|
|
|
329
329
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
330
330
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
331
331
|
exports.buildInformation = {
|
|
332
|
-
version: "1.4.
|
|
333
|
-
build: "
|
|
334
|
-
date: "2022-
|
|
335
|
-
commit: "
|
|
336
|
-
dependencies: {"@js-soft/docdb-querytranslator":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"1.1.1","@js-soft/ts-utils":"^1.1.1","@nmshd/consumption":"1.0.
|
|
332
|
+
version: "1.4.1",
|
|
333
|
+
build: "44",
|
|
334
|
+
date: "2022-04-22T12:46:10+00:00",
|
|
335
|
+
commit: "1b084693e1db32b70aabb77250e88aafd4f82c71",
|
|
336
|
+
dependencies: {"@js-soft/docdb-querytranslator":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"1.1.1","@js-soft/ts-utils":"^1.1.1","@nmshd/consumption":"1.0.15","@nmshd/content":"1.1.5","@nmshd/crypto":"1.0.8","@nmshd/transport":"1.2.0","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","fluent-ts-validator":"3.0.3","json-stringify-safe":"^5.0.1","luxon":"^2.3.2","qrcode":"1.5.0","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
|
|
337
337
|
libraries: {
|
|
338
338
|
serval: ts_serval_1.buildInformation,
|
|
339
339
|
consumption: consumption_1.buildInformation,
|
|
@@ -29044,6 +29044,9 @@ var Formatter = /*#__PURE__*/function () {
|
|
|
29044
29044
|
case "d":
|
|
29045
29045
|
return "day";
|
|
29046
29046
|
|
|
29047
|
+
case "w":
|
|
29048
|
+
return "week";
|
|
29049
|
+
|
|
29047
29050
|
case "M":
|
|
29048
29051
|
return "month";
|
|
29049
29052
|
|
|
@@ -29293,7 +29296,6 @@ var SystemZone = /*#__PURE__*/function (_Zone) {
|
|
|
29293
29296
|
return SystemZone;
|
|
29294
29297
|
}(Zone);
|
|
29295
29298
|
|
|
29296
|
-
RegExp("^" + ianaRegex.source + "$");
|
|
29297
29299
|
var dtfCache = {};
|
|
29298
29300
|
|
|
29299
29301
|
function makeDTF(zone) {
|
|
@@ -29306,7 +29308,8 @@ function makeDTF(zone) {
|
|
|
29306
29308
|
day: "2-digit",
|
|
29307
29309
|
hour: "2-digit",
|
|
29308
29310
|
minute: "2-digit",
|
|
29309
|
-
second: "2-digit"
|
|
29311
|
+
second: "2-digit",
|
|
29312
|
+
era: "short"
|
|
29310
29313
|
});
|
|
29311
29314
|
}
|
|
29312
29315
|
|
|
@@ -29317,34 +29320,38 @@ var typeToPos = {
|
|
|
29317
29320
|
year: 0,
|
|
29318
29321
|
month: 1,
|
|
29319
29322
|
day: 2,
|
|
29320
|
-
|
|
29321
|
-
|
|
29322
|
-
|
|
29323
|
+
era: 3,
|
|
29324
|
+
hour: 4,
|
|
29325
|
+
minute: 5,
|
|
29326
|
+
second: 6
|
|
29323
29327
|
};
|
|
29324
29328
|
|
|
29325
29329
|
function hackyOffset(dtf, date) {
|
|
29326
29330
|
var formatted = dtf.format(date).replace(/\u200E/g, ""),
|
|
29327
|
-
parsed = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(formatted),
|
|
29331
|
+
parsed = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(formatted),
|
|
29328
29332
|
fMonth = parsed[1],
|
|
29329
29333
|
fDay = parsed[2],
|
|
29330
29334
|
fYear = parsed[3],
|
|
29331
|
-
|
|
29332
|
-
|
|
29333
|
-
|
|
29334
|
-
|
|
29335
|
+
fadOrBc = parsed[4],
|
|
29336
|
+
fHour = parsed[5],
|
|
29337
|
+
fMinute = parsed[6],
|
|
29338
|
+
fSecond = parsed[7];
|
|
29339
|
+
return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond];
|
|
29335
29340
|
}
|
|
29336
29341
|
|
|
29337
29342
|
function partsOffset(dtf, date) {
|
|
29338
|
-
var formatted = dtf.formatToParts(date)
|
|
29339
|
-
|
|
29343
|
+
var formatted = dtf.formatToParts(date);
|
|
29344
|
+
var filled = [];
|
|
29340
29345
|
|
|
29341
29346
|
for (var i = 0; i < formatted.length; i++) {
|
|
29342
29347
|
var _formatted$i = formatted[i],
|
|
29343
29348
|
type = _formatted$i.type,
|
|
29344
|
-
value = _formatted$i.value
|
|
29345
|
-
|
|
29349
|
+
value = _formatted$i.value;
|
|
29350
|
+
var pos = typeToPos[type];
|
|
29346
29351
|
|
|
29347
|
-
if (
|
|
29352
|
+
if (type === "era") {
|
|
29353
|
+
filled[pos] = value;
|
|
29354
|
+
} else if (!isUndefined(pos)) {
|
|
29348
29355
|
filled[pos] = parseInt(value, 10);
|
|
29349
29356
|
}
|
|
29350
29357
|
}
|
|
@@ -29387,7 +29394,7 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
29387
29394
|
* @param {string} s - The string to check validity on
|
|
29388
29395
|
* @example IANAZone.isValidSpecifier("America/New_York") //=> true
|
|
29389
29396
|
* @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false
|
|
29390
|
-
* @deprecated This method returns false some valid IANA names. Use isValidZone instead
|
|
29397
|
+
* @deprecated This method returns false for some valid IANA names. Use isValidZone instead.
|
|
29391
29398
|
* @return {boolean}
|
|
29392
29399
|
*/
|
|
29393
29400
|
;
|
|
@@ -29455,15 +29462,20 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
29455
29462
|
_proto.offset = function offset(ts) {
|
|
29456
29463
|
var date = new Date(ts);
|
|
29457
29464
|
if (isNaN(date)) return NaN;
|
|
29465
|
+
var dtf = makeDTF(this.name);
|
|
29458
29466
|
|
|
29459
|
-
var
|
|
29460
|
-
_ref2 = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date),
|
|
29467
|
+
var _ref2 = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date),
|
|
29461
29468
|
year = _ref2[0],
|
|
29462
29469
|
month = _ref2[1],
|
|
29463
29470
|
day = _ref2[2],
|
|
29464
|
-
|
|
29465
|
-
|
|
29466
|
-
|
|
29471
|
+
adOrBc = _ref2[3],
|
|
29472
|
+
hour = _ref2[4],
|
|
29473
|
+
minute = _ref2[5],
|
|
29474
|
+
second = _ref2[6];
|
|
29475
|
+
|
|
29476
|
+
if (adOrBc === "BC") {
|
|
29477
|
+
year = -Math.abs(year) + 1;
|
|
29478
|
+
} // because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat
|
|
29467
29479
|
|
|
29468
29480
|
|
|
29469
29481
|
var adjustedHour = hour === 24 ? 0 : hour;
|
|
@@ -31180,6 +31192,7 @@ var Duration = /*#__PURE__*/function () {
|
|
|
31180
31192
|
* * `m` for minutes
|
|
31181
31193
|
* * `h` for hours
|
|
31182
31194
|
* * `d` for days
|
|
31195
|
+
* * `w` for weeks
|
|
31183
31196
|
* * `M` for months
|
|
31184
31197
|
* * `y` for years
|
|
31185
31198
|
* Notes:
|
|
@@ -31206,8 +31219,9 @@ var Duration = /*#__PURE__*/function () {
|
|
|
31206
31219
|
return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
|
|
31207
31220
|
}
|
|
31208
31221
|
/**
|
|
31209
|
-
* Returns a string representation of a Duration with all units included
|
|
31210
|
-
* To modify its behavior use the `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.
|
|
31222
|
+
* Returns a string representation of a Duration with all units included.
|
|
31223
|
+
* To modify its behavior use the `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.
|
|
31224
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
31211
31225
|
* @param opts - On option object to override the formatting. Accepts the same keys as the options parameter of the native `Int.NumberFormat` constructor, as well as `listStyle`.
|
|
31212
31226
|
* @example
|
|
31213
31227
|
* ```js
|
|
@@ -33480,7 +33494,13 @@ function unitOutOfRange(unit, value) {
|
|
|
33480
33494
|
}
|
|
33481
33495
|
|
|
33482
33496
|
function dayOfWeek(year, month, day) {
|
|
33483
|
-
var
|
|
33497
|
+
var d = new Date(Date.UTC(year, month - 1, day));
|
|
33498
|
+
|
|
33499
|
+
if (year < 100 && year >= 0) {
|
|
33500
|
+
d.setUTCFullYear(d.getUTCFullYear() - 1900);
|
|
33501
|
+
}
|
|
33502
|
+
|
|
33503
|
+
var js = d.getUTCDay();
|
|
33484
33504
|
return js === 0 ? 7 : js;
|
|
33485
33505
|
}
|
|
33486
33506
|
|
|
@@ -33908,9 +33928,6 @@ function normalizeUnit(unit) {
|
|
|
33908
33928
|
} // this is a dumbed down version of fromObject() that runs about 60% faster
|
|
33909
33929
|
// but doesn't do any validation, makes a bunch of assumptions about what units
|
|
33910
33930
|
// are present, and so on.
|
|
33911
|
-
// this is a dumbed down version of fromObject() that runs about 60% faster
|
|
33912
|
-
// but doesn't do any validation, makes a bunch of assumptions about what units
|
|
33913
|
-
// are present, and so on.
|
|
33914
33931
|
|
|
33915
33932
|
|
|
33916
33933
|
function quickDT(obj, opts) {
|
|
@@ -34612,7 +34629,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
34612
34629
|
}
|
|
34613
34630
|
}
|
|
34614
34631
|
/**
|
|
34615
|
-
* Check if an object is
|
|
34632
|
+
* Check if an object is an instance of DateTime. Works across context boundaries
|
|
34616
34633
|
* @param {object} o
|
|
34617
34634
|
* @return {boolean}
|
|
34618
34635
|
*/
|
|
@@ -36210,7 +36227,7 @@ function friendlyDateTime(dateTimeish) {
|
|
|
36210
36227
|
}
|
|
36211
36228
|
}
|
|
36212
36229
|
|
|
36213
|
-
var VERSION = "2.3.
|
|
36230
|
+
var VERSION = "2.3.2";
|
|
36214
36231
|
|
|
36215
36232
|
exports.DateTime = DateTime;
|
|
36216
36233
|
exports.Duration = Duration;
|