@digipair/skill-keycloak 0.15.4 → 0.16.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/index.cjs.js +7 -6
 - package/index.esm.js +7 -6
 - package/package.json +1 -1
 
    
        package/index.cjs.js
    CHANGED
    
    | 
         @@ -23522,14 +23522,14 @@ function indent(str, spaces) { 
     | 
|
| 
       23522 
23522 
     | 
    
         
             
                    var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
         
     | 
| 
       23523 
23523 
     | 
    
         
             
                    // match is required
         
     | 
| 
       23524 
23524 
     | 
    
         
             
                    if (!match) {
         
     | 
| 
       23525 
     | 
    
         
            -
                        return tokens = tokens1,  
     | 
| 
      
 23525 
     | 
    
         
            +
                        return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
         
     | 
| 
       23526 
23526 
     | 
    
         
             
                            v: nextMatch1
         
     | 
| 
       23527 
23527 
     | 
    
         
             
                        };
         
     | 
| 
       23528 
23528 
     | 
    
         
             
                    }
         
     | 
| 
       23529 
23529 
     | 
    
         
             
                    var token = match.token, offset = match.offset;
         
     | 
| 
       23530 
23530 
     | 
    
         
             
                    i1 += offset;
         
     | 
| 
       23531 
23531 
     | 
    
         
             
                    if (token === " ") {
         
     | 
| 
       23532 
     | 
    
         
            -
                        return tokens = tokens1,  
     | 
| 
      
 23532 
     | 
    
         
            +
                        return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
         
     | 
| 
       23533 
23533 
     | 
    
         
             
                    }
         
     | 
| 
       23534 
23534 
     | 
    
         
             
                    tokens1 = _to_consumable_array$3(tokens1).concat([
         
     | 
| 
       23535 
23535 
     | 
    
         
             
                        token
         
     | 
| 
         @@ -23548,7 +23548,7 @@ function indent(str, spaces) { 
     | 
|
| 
       23548 
23548 
     | 
    
         
             
                    if (contextKeys.some(function(el) {
         
     | 
| 
       23549 
23549 
     | 
    
         
             
                        return el.startsWith(name);
         
     | 
| 
       23550 
23550 
     | 
    
         
             
                    })) {
         
     | 
| 
       23551 
     | 
    
         
            -
                        return tokens = tokens1,  
     | 
| 
      
 23551 
     | 
    
         
            +
                        return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
         
     | 
| 
       23552 
23552 
     | 
    
         
             
                    }
         
     | 
| 
       23553 
23553 
     | 
    
         
             
                    if (dateTimeIdentifiers.some(function(el) {
         
     | 
| 
       23554 
23554 
     | 
    
         
             
                        return el === name;
         
     | 
| 
         @@ -23567,9 +23567,9 @@ function indent(str, spaces) { 
     | 
|
| 
       23567 
23567 
     | 
    
         
             
                    if (dateTimeIdentifiers.some(function(el) {
         
     | 
| 
       23568 
23568 
     | 
    
         
             
                        return el.startsWith(name);
         
     | 
| 
       23569 
23569 
     | 
    
         
             
                    })) {
         
     | 
| 
       23570 
     | 
    
         
            -
                        return tokens = tokens1,  
     | 
| 
      
 23570 
     | 
    
         
            +
                        return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
         
     | 
| 
       23571 
23571 
     | 
    
         
             
                    }
         
     | 
| 
       23572 
     | 
    
         
            -
                    return tokens = tokens1,  
     | 
| 
      
 23572 
     | 
    
         
            +
                    return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
         
     | 
| 
       23573 
23573 
     | 
    
         
             
                        v: nextMatch1
         
     | 
| 
       23574 
23574 
     | 
    
         
             
                    };
         
     | 
| 
       23575 
23575 
     | 
    
         
             
                };
         
     | 
| 
         @@ -27360,6 +27360,7 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR 
     | 
|
| 
       27360 
27360 
     | 
    
         
             
                LIBRARIES: {},
         
     | 
| 
       27361 
27361 
     | 
    
         
             
                BASE_URL: 'https://cdn.jsdelivr.net/npm'
         
     | 
| 
       27362 
27362 
     | 
    
         
             
            };
         
     | 
| 
      
 27363 
     | 
    
         
            +
            const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
         
     | 
| 
       27363 
27364 
     | 
    
         
             
            const isPinsSettings = (value)=>{
         
     | 
| 
       27364 
27365 
     | 
    
         
             
                return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
         
     | 
| 
       27365 
27366 
     | 
    
         
             
            };
         
     | 
| 
         @@ -27416,7 +27417,7 @@ const executePins = async (settingsOrigin, context = {})=>{ 
     | 
|
| 
       27416 
27417 
     | 
    
         
             
                    return results;
         
     | 
| 
       27417 
27418 
     | 
    
         
             
                }
         
     | 
| 
       27418 
27419 
     | 
    
         
             
                const version = context.config.VERSIONS[settings.library] || 'latest';
         
     | 
| 
       27419 
     | 
    
         
            -
                const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
         
     | 
| 
      
 27420 
     | 
    
         
            +
                const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
         
     | 
| 
       27420 
27421 
     | 
    
         
             
                const pins = library == null ? void 0 : library[settings.element];
         
     | 
| 
       27421 
27422 
     | 
    
         
             
                if (!pins) {
         
     | 
| 
       27422 
27423 
     | 
    
         
             
                    throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
         
     | 
    
        package/index.esm.js
    CHANGED
    
    | 
         @@ -23493,14 +23493,14 @@ function indent(str, spaces) { 
     | 
|
| 
       23493 
23493 
     | 
    
         
             
                    var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
         
     | 
| 
       23494 
23494 
     | 
    
         
             
                    // match is required
         
     | 
| 
       23495 
23495 
     | 
    
         
             
                    if (!match) {
         
     | 
| 
       23496 
     | 
    
         
            -
                        return nextMatch = nextMatch1,  
     | 
| 
      
 23496 
     | 
    
         
            +
                        return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
         
     | 
| 
       23497 
23497 
     | 
    
         
             
                            v: nextMatch1
         
     | 
| 
       23498 
23498 
     | 
    
         
             
                        };
         
     | 
| 
       23499 
23499 
     | 
    
         
             
                    }
         
     | 
| 
       23500 
23500 
     | 
    
         
             
                    var token = match.token, offset = match.offset;
         
     | 
| 
       23501 
23501 
     | 
    
         
             
                    i1 += offset;
         
     | 
| 
       23502 
23502 
     | 
    
         
             
                    if (token === " ") {
         
     | 
| 
       23503 
     | 
    
         
            -
                        return nextMatch = nextMatch1,  
     | 
| 
      
 23503 
     | 
    
         
            +
                        return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
         
     | 
| 
       23504 
23504 
     | 
    
         
             
                    }
         
     | 
| 
       23505 
23505 
     | 
    
         
             
                    tokens1 = _to_consumable_array$3(tokens1).concat([
         
     | 
| 
       23506 
23506 
     | 
    
         
             
                        token
         
     | 
| 
         @@ -23519,7 +23519,7 @@ function indent(str, spaces) { 
     | 
|
| 
       23519 
23519 
     | 
    
         
             
                    if (contextKeys.some(function(el) {
         
     | 
| 
       23520 
23520 
     | 
    
         
             
                        return el.startsWith(name);
         
     | 
| 
       23521 
23521 
     | 
    
         
             
                    })) {
         
     | 
| 
       23522 
     | 
    
         
            -
                        return nextMatch = nextMatch1,  
     | 
| 
      
 23522 
     | 
    
         
            +
                        return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
         
     | 
| 
       23523 
23523 
     | 
    
         
             
                    }
         
     | 
| 
       23524 
23524 
     | 
    
         
             
                    if (dateTimeIdentifiers.some(function(el) {
         
     | 
| 
       23525 
23525 
     | 
    
         
             
                        return el === name;
         
     | 
| 
         @@ -23538,9 +23538,9 @@ function indent(str, spaces) { 
     | 
|
| 
       23538 
23538 
     | 
    
         
             
                    if (dateTimeIdentifiers.some(function(el) {
         
     | 
| 
       23539 
23539 
     | 
    
         
             
                        return el.startsWith(name);
         
     | 
| 
       23540 
23540 
     | 
    
         
             
                    })) {
         
     | 
| 
       23541 
     | 
    
         
            -
                        return nextMatch = nextMatch1,  
     | 
| 
      
 23541 
     | 
    
         
            +
                        return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
         
     | 
| 
       23542 
23542 
     | 
    
         
             
                    }
         
     | 
| 
       23543 
     | 
    
         
            -
                    return nextMatch = nextMatch1,  
     | 
| 
      
 23543 
     | 
    
         
            +
                    return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
         
     | 
| 
       23544 
23544 
     | 
    
         
             
                        v: nextMatch1
         
     | 
| 
       23545 
23545 
     | 
    
         
             
                    };
         
     | 
| 
       23546 
23546 
     | 
    
         
             
                };
         
     | 
| 
         @@ -27331,6 +27331,7 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR 
     | 
|
| 
       27331 
27331 
     | 
    
         
             
                LIBRARIES: {},
         
     | 
| 
       27332 
27332 
     | 
    
         
             
                BASE_URL: 'https://cdn.jsdelivr.net/npm'
         
     | 
| 
       27333 
27333 
     | 
    
         
             
            };
         
     | 
| 
      
 27334 
     | 
    
         
            +
            const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
         
     | 
| 
       27334 
27335 
     | 
    
         
             
            const isPinsSettings = (value)=>{
         
     | 
| 
       27335 
27336 
     | 
    
         
             
                return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
         
     | 
| 
       27336 
27337 
     | 
    
         
             
            };
         
     | 
| 
         @@ -27387,7 +27388,7 @@ const executePins = async (settingsOrigin, context = {})=>{ 
     | 
|
| 
       27387 
27388 
     | 
    
         
             
                    return results;
         
     | 
| 
       27388 
27389 
     | 
    
         
             
                }
         
     | 
| 
       27389 
27390 
     | 
    
         
             
                const version = context.config.VERSIONS[settings.library] || 'latest';
         
     | 
| 
       27390 
     | 
    
         
            -
                const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
         
     | 
| 
      
 27391 
     | 
    
         
            +
                const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
         
     | 
| 
       27391 
27392 
     | 
    
         
             
                const pins = library == null ? void 0 : library[settings.element];
         
     | 
| 
       27392 
27393 
     | 
    
         
             
                if (!pins) {
         
     | 
| 
       27393 
27394 
     | 
    
         
             
                    throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
         
     |