@digipair/skill-keycloak 0.103.2 → 0.105.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/index.esm.js
CHANGED
@@ -23907,14 +23907,14 @@ function indent(str, spaces) {
|
|
23907
23907
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23908
23908
|
// match is required
|
23909
23909
|
if (!match) {
|
23910
|
-
return
|
23910
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
23911
23911
|
v: nextMatch1
|
23912
23912
|
};
|
23913
23913
|
}
|
23914
23914
|
var token = match.token, offset = match.offset;
|
23915
23915
|
i1 += offset;
|
23916
23916
|
if (token === " ") {
|
23917
|
-
return
|
23917
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
23918
23918
|
}
|
23919
23919
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
23920
23920
|
token
|
@@ -23933,7 +23933,7 @@ function indent(str, spaces) {
|
|
23933
23933
|
if (contextKeys.some(function(el) {
|
23934
23934
|
return el.startsWith(name);
|
23935
23935
|
})) {
|
23936
|
-
return
|
23936
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
23937
23937
|
}
|
23938
23938
|
if (dateTimeIdentifiers.some(function(el) {
|
23939
23939
|
return el === name;
|
@@ -23952,9 +23952,9 @@ function indent(str, spaces) {
|
|
23952
23952
|
if (dateTimeIdentifiers.some(function(el) {
|
23953
23953
|
return el.startsWith(name);
|
23954
23954
|
})) {
|
23955
|
-
return
|
23955
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
23956
23956
|
}
|
23957
|
-
return
|
23957
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
23958
23958
|
v: nextMatch1
|
23959
23959
|
};
|
23960
23960
|
};
|
@@ -24818,7 +24818,7 @@ var parser = LRParser.deserialize({
|
|
24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,X;'S;=`-u<%lO,X~,wRO;'S,X;'S;=`-Q;=`O,X~-TXOY,XZ#O,X#O#P,t#P#S,X#S#T-p#T;'S,X;'S;=`-u;=`<%l,X<%lO,X~-uO$Z~~-xP;=`<%l,X~.QO#S~~.VO#R~",
|
24822
24822
|
tokenizers: [
|
24823
24823
|
propertyIdentifiers,
|
24824
24824
|
identifiers$2,
|
@@ -25334,6 +25334,9 @@ function parseParameterNames(fn) {
|
|
25334
25334
|
function notImplemented(thing) {
|
25335
25335
|
return new Error("not implemented: ".concat(thing));
|
25336
25336
|
}
|
25337
|
+
function isNotImplemented(err) {
|
25338
|
+
return /^not implemented/.test(err.message);
|
25339
|
+
}
|
25337
25340
|
/**
|
25338
25341
|
* Returns a name from context or undefined if it does not exist.
|
25339
25342
|
*
|
@@ -25454,6 +25457,9 @@ var builtins = {
|
|
25454
25457
|
d = from;
|
25455
25458
|
}
|
25456
25459
|
if (year) {
|
25460
|
+
if (!isNumber$2(month) || !isNumber$2(day)) {
|
25461
|
+
return null;
|
25462
|
+
}
|
25457
25463
|
d = date().setZone("utc").set({
|
25458
25464
|
year: year,
|
25459
25465
|
month: month,
|
@@ -25508,7 +25514,7 @@ var builtins = {
|
|
25508
25514
|
from = hour;
|
25509
25515
|
hour = null;
|
25510
25516
|
}
|
25511
|
-
if (isString$3(from)) {
|
25517
|
+
if (isString$3(from) && from) {
|
25512
25518
|
t = date(null, from);
|
25513
25519
|
}
|
25514
25520
|
if (isDateTime(from)) {
|
@@ -25519,6 +25525,9 @@ var builtins = {
|
|
25519
25525
|
});
|
25520
25526
|
}
|
25521
25527
|
if (isNumber$2(hour)) {
|
25528
|
+
if (!isNumber$2(minute) || !isNumber$2(second)) {
|
25529
|
+
return null;
|
25530
|
+
}
|
25522
25531
|
// TODO: support offset = days and time duration
|
25523
25532
|
t = date().set({
|
25524
25533
|
hour: hour,
|
@@ -25628,7 +25637,8 @@ var builtins = {
|
|
25628
25637
|
"string"
|
25629
25638
|
]),
|
25630
25639
|
"replace": fn(function(input, pattern, replacement, flags) {
|
25631
|
-
|
25640
|
+
var regexp = createRegexp(pattern, flags || "", "g");
|
25641
|
+
return regexp && input.replace(regexp, replacement.replace(/\$0/g, "$$&"));
|
25632
25642
|
}, [
|
25633
25643
|
"string",
|
25634
25644
|
"string",
|
@@ -25641,9 +25651,9 @@ var builtins = {
|
|
25641
25651
|
"string",
|
25642
25652
|
"string"
|
25643
25653
|
]),
|
25644
|
-
// eslint-disable-next-line
|
25645
25654
|
"matches": fn(function(input, pattern, flags) {
|
25646
|
-
|
25655
|
+
var regexp = createRegexp(pattern, flags || "", "");
|
25656
|
+
return regexp && regexp.test(input);
|
25647
25657
|
}, [
|
25648
25658
|
"string",
|
25649
25659
|
"string",
|
@@ -25662,7 +25672,8 @@ var builtins = {
|
|
25662
25672
|
"string"
|
25663
25673
|
]),
|
25664
25674
|
"split": fn(function(string, delimiter) {
|
25665
|
-
|
25675
|
+
var regexp = createRegexp(delimiter, "", "");
|
25676
|
+
return regexp && string.split(regexp);
|
25666
25677
|
}, [
|
25667
25678
|
"string",
|
25668
25679
|
"string"
|
@@ -26578,6 +26589,35 @@ function mode(array) {
|
|
26578
26589
|
function ifValid(o) {
|
26579
26590
|
return o.isValid ? o : null;
|
26580
26591
|
}
|
26592
|
+
/**
|
26593
|
+
* Concatenates flags for a regular expression.
|
26594
|
+
*
|
26595
|
+
* Ensures that default flags are included without duplication, even if
|
26596
|
+
* user-specified flags overlap with the defaults.
|
26597
|
+
*/ function buildFlags(flags, defaultFlags) {
|
26598
|
+
var unsupportedFlags = flags.replace(/[smix]/g, "");
|
26599
|
+
if (unsupportedFlags) {
|
26600
|
+
throw new Error("illegal flags: " + unsupportedFlags);
|
26601
|
+
}
|
26602
|
+
// we don't implement the <x> flag
|
26603
|
+
if (/x/.test(flags)) {
|
26604
|
+
throw notImplemented("matches <x> flag");
|
26605
|
+
}
|
26606
|
+
return flags + defaultFlags;
|
26607
|
+
}
|
26608
|
+
/**
|
26609
|
+
* Creates a regular expression from a given pattern
|
26610
|
+
*/ function createRegexp(pattern, flags) {
|
26611
|
+
var defaultFlags = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
|
26612
|
+
try {
|
26613
|
+
return new RegExp(pattern, "u" + buildFlags(flags, defaultFlags));
|
26614
|
+
} catch (_err) {
|
26615
|
+
if (isNotImplemented(_err)) {
|
26616
|
+
throw _err;
|
26617
|
+
}
|
26618
|
+
}
|
26619
|
+
return null;
|
26620
|
+
}
|
26581
26621
|
function parseExpression(expression) {
|
26582
26622
|
var context = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, dialect = arguments.length > 2 ? arguments[2] : void 0;
|
26583
26623
|
return parser.configure({
|
@@ -27032,27 +27072,59 @@ function evalNode(node, input, args) {
|
|
27032
27072
|
};
|
27033
27073
|
case "Type":
|
27034
27074
|
return args[0];
|
27075
|
+
// (x in [ [1,2], [3,4] ]), (y in x)
|
27035
27076
|
case "InExpressions":
|
27036
27077
|
return function(context) {
|
27037
|
-
|
27038
|
-
|
27039
|
-
|
27040
|
-
|
27041
|
-
|
27042
|
-
|
27043
|
-
|
27044
|
-
|
27045
|
-
|
27046
|
-
|
27047
|
-
|
27048
|
-
|
27049
|
-
|
27050
|
-
|
27078
|
+
// we build up evaluation contexts from left to right,
|
27079
|
+
// ending up with the cartesian product over all available contexts
|
27080
|
+
//
|
27081
|
+
// previous context is provided to later context providers
|
27082
|
+
// producing <null> as a context during evaluation causes the
|
27083
|
+
// whole result to turn <null>
|
27084
|
+
var isValidContexts = function(contexts) {
|
27085
|
+
if (contexts === null || contexts.some(function(arr) {
|
27086
|
+
return getType(arr) === "nil";
|
27087
|
+
})) {
|
27088
|
+
return false;
|
27089
|
+
}
|
27090
|
+
return true;
|
27091
|
+
};
|
27092
|
+
var join = function(aContexts, bContextProducer) {
|
27093
|
+
var _instance;
|
27094
|
+
return (_instance = []).concat.apply(_instance, _to_consumable_array$2(aContexts.map(function(aContext) {
|
27095
|
+
var bContexts = bContextProducer(Object.assign(Object.assign({}, context), aContext));
|
27096
|
+
if (!isValidContexts(bContexts)) {
|
27097
|
+
return null;
|
27098
|
+
}
|
27099
|
+
return bContexts.map(function(bContext) {
|
27100
|
+
return Object.assign(Object.assign({}, aContext), bContext);
|
27101
|
+
});
|
27102
|
+
})));
|
27103
|
+
};
|
27104
|
+
var cartesian = function(aContexts, bContextProducer) {
|
27105
|
+
for(var _len = arguments.length, otherContextProducers = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
|
27106
|
+
otherContextProducers[_key - 2] = arguments[_key];
|
27107
|
+
}
|
27108
|
+
if (!isValidContexts(aContexts)) {
|
27109
|
+
return null;
|
27110
|
+
}
|
27111
|
+
if (!bContextProducer) {
|
27112
|
+
return aContexts;
|
27051
27113
|
}
|
27052
|
-
return
|
27053
|
-
|
27054
|
-
|
27055
|
-
|
27114
|
+
return cartesian.apply(void 0, [
|
27115
|
+
join(aContexts, bContextProducer)
|
27116
|
+
].concat(_to_consumable_array$2(otherContextProducers)));
|
27117
|
+
};
|
27118
|
+
var cartesianProduct = function(contextProducers) {
|
27119
|
+
var _contextProducers = _to_array(contextProducers), aContextProducer = _contextProducers[0], otherContextProducers = _contextProducers.slice(1);
|
27120
|
+
var aContexts = aContextProducer(context);
|
27121
|
+
return cartesian.apply(void 0, [
|
27122
|
+
aContexts
|
27123
|
+
].concat(_to_consumable_array$2(otherContextProducers)));
|
27124
|
+
};
|
27125
|
+
var product = cartesianProduct(args);
|
27126
|
+
return product && product.map(function(p) {
|
27127
|
+
return Object.assign(Object.assign({}, context), p);
|
27056
27128
|
});
|
27057
27129
|
};
|
27058
27130
|
// Name kw<"in"> Expr
|
@@ -27682,31 +27754,6 @@ function createDateTimeRange(start, end, startIncluded, endIncluded) {
|
|
27682
27754
|
includes: includes
|
27683
27755
|
});
|
27684
27756
|
}
|
27685
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
27686
|
-
function cartesianProduct(arrays) {
|
27687
|
-
var _instance;
|
27688
|
-
if (arrays.some(function(arr) {
|
27689
|
-
return getType(arr) === "nil";
|
27690
|
-
})) {
|
27691
|
-
return null;
|
27692
|
-
}
|
27693
|
-
var f = function(a, b) {
|
27694
|
-
return (_instance = []).concat.apply(_instance, _to_consumable_array$2(a.map(function(d) {
|
27695
|
-
return b.map(function(e) {
|
27696
|
-
return [].concat(d, e);
|
27697
|
-
});
|
27698
|
-
})));
|
27699
|
-
};
|
27700
|
-
var cartesian = function(a, b) {
|
27701
|
-
for(var _len = arguments.length, c = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
|
27702
|
-
c[_key - 2] = arguments[_key];
|
27703
|
-
}
|
27704
|
-
return b ? cartesian.apply(void 0, [
|
27705
|
-
f(a, b)
|
27706
|
-
].concat(_to_consumable_array$2(c))) : a || [];
|
27707
|
-
};
|
27708
|
-
return cartesian.apply(void 0, _to_consumable_array$2(arrays));
|
27709
|
-
}
|
27710
27757
|
function coalecenseTypes(a, b) {
|
27711
27758
|
if (!b) {
|
27712
27759
|
return a.type;
|
@@ -27768,15 +27815,24 @@ function parseString(str) {
|
|
27768
27815
|
if (str.endsWith('"')) {
|
27769
27816
|
str = str.slice(0, -1);
|
27770
27817
|
}
|
27771
|
-
return str.replace(/(\\")|(\\\\)|(\\u[a-fA-F0-9]{5,6})|((?:\\u[a-fA-F0-9]{1,4})+)/ig, function(substring) {
|
27818
|
+
return str.replace(/(\\")|(\\\\)|(\\n)|(\\r)|(\\t)|(\\u[a-fA-F0-9]{5,6})|((?:\\u[a-fA-F0-9]{1,4})+)/ig, function(substring) {
|
27772
27819
|
for(var _len = arguments.length, groups = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
27773
27820
|
groups[_key - 1] = arguments[_key];
|
27774
27821
|
}
|
27775
|
-
var _groups = _sliced_to_array$1(groups,
|
27822
|
+
var _groups = _sliced_to_array$1(groups, 7), quotes = _groups[0], backslash = _groups[1], newline = _groups[2], carriageReturn = _groups[3], tab = _groups[4], codePoint = _groups[5], charCodes = _groups[6];
|
27776
27823
|
if (quotes) {
|
27777
27824
|
return '"';
|
27778
27825
|
}
|
27779
|
-
if (
|
27826
|
+
if (newline) {
|
27827
|
+
return "\n";
|
27828
|
+
}
|
27829
|
+
if (carriageReturn) {
|
27830
|
+
return "\r";
|
27831
|
+
}
|
27832
|
+
if (tab) {
|
27833
|
+
return " ";
|
27834
|
+
}
|
27835
|
+
if (backslash) {
|
27780
27836
|
return "\\";
|
27781
27837
|
}
|
27782
27838
|
var escapePattern = /\\u([a-fA-F0-9]+)/ig;
|
package/package.json
CHANGED
File without changes
|
File without changes
|