@parcel/codeframe 2.9.2 → 2.9.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/lib/codeframe.js +7 -7
- package/lib/codeframe.js.map +1 -1
- package/package.json +2 -2
    
        package/lib/codeframe.js
    CHANGED
    
    | @@ -11790,7 +11790,7 @@ Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript | |
| 11790 11790 | 
             
               * content.
         | 
| 11791 11791 | 
             
               * @param {RegExpMatchArray} match
         | 
| 11792 11792 | 
             
               * @param {{after:number}} param1
         | 
| 11793 | 
            -
               */ const hasClosingTag = (match, { after: after | 
| 11793 | 
            +
               */ const hasClosingTag = (match, { after: after })=>{
         | 
| 11794 11794 | 
             
                    const tag = "</" + match[0].slice(1);
         | 
| 11795 11795 | 
             
                    const pos = match.input.indexOf(tag, after);
         | 
| 11796 11796 | 
             
                    return pos !== -1;
         | 
| @@ -29710,7 +29710,7 @@ Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript | |
| 29710 29710 | 
             
               * content.
         | 
| 29711 29711 | 
             
               * @param {RegExpMatchArray} match
         | 
| 29712 29712 | 
             
               * @param {{after:number}} param1
         | 
| 29713 | 
            -
               */ const hasClosingTag = (match, { after: after | 
| 29713 | 
            +
               */ const hasClosingTag = (match, { after: after })=>{
         | 
| 29714 29714 | 
             
                    const tag = "</" + match[0].slice(1);
         | 
| 29715 29715 | 
             
                    const pos = match.input.indexOf(tag, after);
         | 
| 29716 29716 | 
             
                    return pos !== -1;
         | 
| @@ -31531,7 +31531,7 @@ for (const model of Object.keys($7fbed568611944d2$var$convert)){ | |
| 31531 31531 | 
             
                if (!("channels" in $7fbed568611944d2$var$convert[model])) throw new Error("missing channels property: " + model);
         | 
| 31532 31532 | 
             
                if (!("labels" in $7fbed568611944d2$var$convert[model])) throw new Error("missing channel labels property: " + model);
         | 
| 31533 31533 | 
             
                if ($7fbed568611944d2$var$convert[model].labels.length !== $7fbed568611944d2$var$convert[model].channels) throw new Error("channel and label counts mismatch: " + model);
         | 
| 31534 | 
            -
                const { channels: channels | 
| 31534 | 
            +
                const { channels: channels, labels: labels } = $7fbed568611944d2$var$convert[model];
         | 
| 31535 31535 | 
             
                delete $7fbed568611944d2$var$convert[model].channels;
         | 
| 31536 31536 | 
             
                delete $7fbed568611944d2$var$convert[model].labels;
         | 
| 31537 31537 | 
             
                Object.defineProperty($7fbed568611944d2$var$convert[model], "channels", {
         | 
| @@ -34250,7 +34250,7 @@ Syntax highlighting with language autodetection. | |
| 34250 34250 | 
             
            https://highlightjs.org/
         | 
| 34251 34251 | 
             
            */ const $03b62e45aee69014$var$escape$1 = $03b62e45aee69014$var$escapeHTML;
         | 
| 34252 34252 | 
             
            const $03b62e45aee69014$var$inherit$1 = $03b62e45aee69014$var$inherit;
         | 
| 34253 | 
            -
            const { nodeStream: $03b62e45aee69014$var$nodeStream$1 | 
| 34253 | 
            +
            const { nodeStream: $03b62e45aee69014$var$nodeStream$1, mergeStreams: $03b62e45aee69014$var$mergeStreams$1 } = $03b62e45aee69014$var$utils;
         | 
| 34254 34254 | 
             
            const $03b62e45aee69014$var$NO_MATCH = Symbol("nomatch");
         | 
| 34255 34255 | 
             
            /**
         | 
| 34256 34256 | 
             
             * @param {any} hljs - object that is extended (legacy)
         | 
| @@ -34874,7 +34874,7 @@ const $03b62e45aee69014$var$NO_MATCH = Symbol("nomatch"); | |
| 34874 34874 | 
             
               *
         | 
| 34875 34875 | 
             
               * @param {string|string[]} aliasList - single alias or list of aliases
         | 
| 34876 34876 | 
             
               * @param {{languageName: string}} opts
         | 
| 34877 | 
            -
               */ function registerAliases(aliasList, { languageName: languageName | 
| 34877 | 
            +
               */ function registerAliases(aliasList, { languageName: languageName }) {
         | 
| 34878 34878 | 
             
                    if (typeof aliasList === "string") aliasList = [
         | 
| 34879 34879 | 
             
                        aliasList
         | 
| 34880 34880 | 
             
                    ];
         | 
| @@ -35728,7 +35728,7 @@ var $5e2cf9f740fe0527$exports = {}; | |
| 35728 35728 | 
             
            "use strict";
         | 
| 35729 35729 | 
             
            var $5f04f11630a6945d$exports = {};
         | 
| 35730 35730 | 
             
            "use strict";
         | 
| 35731 | 
            -
            $5f04f11630a6945d$exports = ({ onlyFirst: onlyFirst = false | 
| 35731 | 
            +
            $5f04f11630a6945d$exports = ({ onlyFirst: onlyFirst = false } = {})=>{
         | 
| 35732 35732 | 
             
                const pattern = [
         | 
| 35733 35733 | 
             
                    "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
         | 
| 35734 35734 | 
             
                    "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
         | 
| @@ -35926,7 +35926,7 @@ function $796233c1fee0ccb8$export$2e2bcd8739ae039(code, highlights, inputOpts = | |
| 35926 35926 | 
             
                };
         | 
| 35927 35927 | 
             
                // Prefix lines with the line number
         | 
| 35928 35928 | 
             
                const lineNumberPrefixer = (params)=>{
         | 
| 35929 | 
            -
                    let { lineNumber: lineNumber | 
| 35929 | 
            +
                    let { lineNumber: lineNumber, lineNumberLength: lineNumberLength, isHighlighted: isHighlighted } = params;
         | 
| 35930 35930 | 
             
                    return `${isHighlighted ? highlighter(">") : " "} ${lineNumber ? lineNumber.padStart(lineNumberLength, " ") : " ".repeat(lineNumberLength)} | `;
         | 
| 35931 35931 | 
             
                };
         | 
| 35932 35932 | 
             
                // Make columns/lines start at 1
         |