@mll-lab/js-utils 2.19.0 → 2.20.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/array.d.ts +1 -0
- package/dist/index.common.js +15 -3
- package/dist/index.common.js.map +1 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/predicates.d.ts +5 -2
- package/package.json +15 -9
package/dist/index.js
CHANGED
|
@@ -9435,6 +9435,9 @@ root._=_;}}).call(commonjsGlobal);});
|
|
|
9435
9435
|
function isNonEmptyArray(value) {
|
|
9436
9436
|
return value.length > 0;
|
|
9437
9437
|
}
|
|
9438
|
+
function isEmptyArray(value) {
|
|
9439
|
+
return value instanceof Array && value.length === 0;
|
|
9440
|
+
}
|
|
9438
9441
|
/**
|
|
9439
9442
|
* Return a new array that does not contain the item at the specified index.
|
|
9440
9443
|
*/
|
|
@@ -15261,6 +15264,11 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
15261
15264
|
});
|
|
15262
15265
|
}
|
|
15263
15266
|
|
|
15267
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
15268
|
+
var e = new Error(message);
|
|
15269
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
15270
|
+
};
|
|
15271
|
+
|
|
15264
15272
|
const GERMAN_THOUSAND_SEPARATOR = '.';
|
|
15265
15273
|
const GERMAN_DECIMAL_SEPARATOR = ',';
|
|
15266
15274
|
const ENGLISH_THOUSAND_SEPARATOR = ',';
|
|
@@ -15354,15 +15362,18 @@ const isAlphanumeric = function isAlphanumeric(value) {
|
|
|
15354
15362
|
return isString(value) && /^[A-Za-z0-9]+$/.test(value);
|
|
15355
15363
|
};
|
|
15356
15364
|
/**
|
|
15357
|
-
* BSNR (Betriebsstättennummer) ist eine
|
|
15358
|
-
*
|
|
15365
|
+
* Die BSNR (Betriebsstättennummer) ist eine neunstellige Zahl, die eine eindeutige Zuordnung
|
|
15366
|
+
* von Leistungen zu dem entsprechenden Ort der Leistungserbringung ermöglicht.
|
|
15367
|
+
* Die BSNR ist für alle vertrags(zahn)ärztlichen Leistungserbringer gültig
|
|
15359
15368
|
* und klar abzugrenzen vom Institutskennzeichen (IK-Nummer) eines Krankenhauses.
|
|
15369
|
+
*
|
|
15370
|
+
* https://reimbursement.institute/glossar/bsnr-betriebsstaettennummer
|
|
15360
15371
|
*/
|
|
15361
15372
|
const isBSNR = function isBSNR(value) {
|
|
15362
15373
|
return isString(value) && /^\d{9}$/.test(value);
|
|
15363
15374
|
};
|
|
15364
|
-
// Taken from https://emailregex.com
|
|
15365
15375
|
const EMAIL_REGEX =
|
|
15376
|
+
// Taken from https://emailregex.com
|
|
15366
15377
|
// eslint-disable-next-line no-useless-escape
|
|
15367
15378
|
/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
15368
15379
|
const isEmail = function isEmail(value) {
|
|
@@ -15484,6 +15495,7 @@ exports.insertIf = insertIf;
|
|
|
15484
15495
|
exports.isAlphanumeric = isAlphanumeric;
|
|
15485
15496
|
exports.isBSNR = isBSNR;
|
|
15486
15497
|
exports.isEmail = isEmail;
|
|
15498
|
+
exports.isEmptyArray = isEmptyArray;
|
|
15487
15499
|
exports.isFuture = isFuture;
|
|
15488
15500
|
exports.isLabId = isLabId;
|
|
15489
15501
|
exports.isMobileDevice = isMobileDevice;
|