diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 37c4ab8..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -old-test -old-lib diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index cebf84b..0000000 --- a/.eslintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "shellscape" -} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index f7cd1f4..be1b2ce 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -14,7 +14,7 @@ jobs: build: runs-on: ubuntu-latest - name: Node v${{ matrix.node }} + name: Validate steps: - name: Checkout Commit @@ -25,9 +25,6 @@ jobs: with: node-version: 20.19.0 - - name: Checkout Master - run: git branch -f master origin/master - - name: Install PNPM uses: pnpm/action-setup@v4 diff --git a/.gitignore b/.gitignore index 9a74d60..e1f9052 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,4 @@ .DS_Store -.eslintcache -.nyc_output -*~ - -coverage.* -node_modules/ npm-debug.log -s.js +dist +node_modules diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..5ee7abd --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +pnpm exec lint-staged diff --git a/.nvmrc b/.nvmrc index f599e28..7d41c73 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -10 +22.14.0 diff --git a/.oxlintrc.json b/.oxlintrc.json new file mode 100644 index 0000000..b22327e --- /dev/null +++ b/.oxlintrc.json @@ -0,0 +1,180 @@ +{ + "ignore": [ + "**/*.coffee", + "**/*.css", + "**/*.hbs", + "**/*.json", + "**/*.less", + "**/*.scss", + "**/*.svg", + "dist/**", + "node_modules/**" + ], + "project": [ + "./apps/desktop/tsconfig.json", + "./apps/web/tsconfig.json", + "./shared/tsconfig.lint.json" + ], + "rules": { + "correctness/no-array-constructor": "error", + "correctness/no-class-assign": "error", + "correctness/no-cond-assign": "error", + "correctness/no-const-assign": "error", + "correctness/no-constant-condition": "warn", + "correctness/no-control-regex": "error", + "correctness/no-debugger": "error", + "correctness/no-dupe-args": "error", + "correctness/no-dupe-class-members": "error", + "correctness/no-dupe-keys": "error", + "correctness/no-duplicate-case": "error", + "correctness/no-empty-character-class": "error", + "correctness/no-empty-pattern": "error", + "correctness/no-ex-assign": "error", + "correctness/no-func-assign": "error", + "correctness/no-invalid-regexp": "error", + "correctness/no-irregular-whitespace": "error", + "correctness/no-obj-calls": "error", + "correctness/no-octal": "error", + "correctness/no-prototype-builtins": "error", + "correctness/no-regex-spaces": "error", + "correctness/no-self-assign": "error", + "correctness/no-sparse-arrays": "error", + "correctness/no-template-curly-in-string": "error", + "correctness/no-this-before-super": "error", + "correctness/no-undef": "error", + "correctness/no-unreachable": "error", + "correctness/no-unsafe-finally": "error", + "correctness/no-unsafe-negation": "error", + "correctness/require-yield": "error", + "correctness/use-isnan": "error", + "correctness/valid-typeof": "error", + "performance/no-new-buffer": "error", + "style/camelcase": [ + "error", + { + "properties": "never" + } + ], + "style/capitalized-comments": "off", + "style/comma-dangle": ["error", "never"], + "style/eqeqeq": [ + "error", + "always", + { + "null": "ignore" + } + ], + "style/linebreak-style": ["error", "unix"], + "style/new-cap": [ + "error", + { + "capIsNew": false, + "newIsCap": true + } + ], + "style/no-bitwise": "error", + "style/no-continue": "error", + "style/no-else-return": "error", + "style/no-lonely-if": "error", + "style/no-multi-assign": ["error"], + "style/no-new-object": "error", + "style/no-param-reassign": ["warn", { "props": false }], + "style/no-plusplus": [ + "error", + { + "allowForLoopAfterthoughts": true + } + ], + "style/no-unneeded-ternary": [ + "error", + { + "defaultAssignment": false + } + ], + "style/no-var": "error", + "style/object-shorthand": [ + "error", + "always", + { + "avoidQuotes": true, + "ignoreConstructors": false + } + ], + "style/one-var": ["error", "never"], + "style/operator-assignment": ["error", "always"], + "style/prefer-const": [ + "error", + { + "destructuring": "any", + "ignoreReadBeforeAssign": true + } + ], + "style/prefer-destructuring": [ + "warn", + { + "array": false, + "object": true + } + ], + "style/prefer-numeric-literals": "error", + "style/prefer-rest-params": "error", + "style/prefer-spread": "error", + "style/prefer-template": "error", + "style/radix": "error", + "style/spaced-comment": ["error", "always"], + "style/strict": "error", + "style/symbol-description": "error", + "style/vars-on-top": "error", + "style/yoda": "error", + "suspicious/no-await-in-loop": "error", + "suspicious/no-compare-neg-zero": "error", + "suspicious/no-empty": ["error", { "allowEmptyCatch": true }], + "suspicious/no-empty-function": [ + "error", + { + "allow": ["arrowFunctions", "functions", "methods"] + } + ], + "suspicious/no-eval": "error", + "suspicious/no-extend-native": "error", + "suspicious/no-extra-bind": "error", + "suspicious/no-extra-boolean-cast": "error", + "suspicious/no-fallthrough": "error", + "suspicious/no-global-assign": "error", + "suspicious/no-implied-eval": "error", + "suspicious/no-inner-declarations": "error", + "suspicious/no-iterator": "error", + "suspicious/no-labels": "error", + "suspicious/no-lone-blocks": "error", + "suspicious/no-loop-func": "error", + "suspicious/no-multi-str": "error", + "suspicious/no-new": "error", + "suspicious/no-new-func": "error", + "suspicious/no-new-wrappers": "error", + "suspicious/no-octal-escape": "error", + "suspicious/no-return-assign": "error", + "suspicious/no-return-await": "error", + "suspicious/no-script-url": "error", + "suspicious/no-self-compare": "error", + "suspicious/no-sequences": "error", + "suspicious/no-throw-literal": "error", + "suspicious/no-unmodified-loop-condition": "off", + "suspicious/no-unused-expressions": [ + "error", + { + "allowShortCircuit": true, + "allowTernary": false + } + ], + "suspicious/no-unused-labels": "error", + "suspicious/no-useless-concat": "error", + "suspicious/no-useless-constructor": "error", + "suspicious/no-useless-escape": "error", + "suspicious/no-useless-return": "error", + "suspicious/no-void": "off", + "suspicious/no-with": "error", + "unicorn/no-new-array": "off", + "unicorn/no-useless-fallback-in-spread": "off" + }, + "typescript": true +} diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..96fb2c5 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,13 @@ +**/@codegen +**/cdk.out +**/dist/ +**/fixtures/ +**/snapshots/ + +.cdk +.github/PULL_REQUEST_TEMPLATE.md +.moon/cache +cdk.out +dist + +pnpm-lock.yaml diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..58c7598 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "arrowParens": "always", + "importOrder": ["", "", "", "", "^[~]", "", "^[.]"], + "plugins": ["@ianvs/prettier-plugin-sort-imports", "prettier-plugin-package"], + "printWidth": 100, + "singleQuote": true, + "trailingComma": "none" +} diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 612e9b3..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "attach", - "name": "Attach Debugger", - "port": 9229 - }, - { - "type": "node", - "request": "launch", - "name": "Jest Debug", - "program": "${workspaceRoot}/node_modules/jest/bin/jest.js", - "cwd": "${workspaceRoot}", - "args": [ - "--runInBand" - ], - "runtimeArgs": [ - "--nolazy" - ], - "env": { - "NODE_ENV": "development" - }, - "sourceMaps": true, - "console": "integratedTerminal" - } - ] -} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 2ea07f1..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "typescript.format.insertSpaceBeforeFunctionParenthesis": true, - "typescript.format.insertSpaceAfterConstructor": true, - "typescript.format.enable": true -} \ No newline at end of file diff --git a/README.md b/README.md index 1b10c9b..d23b510 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ -[tests]: https://img.shields.io/circleci/project/github/shellscape/postcss-values-parser.svg +[tests]: https://img.shields.io/circleci/project/github/shellscape/postcss-values-parser.svg [tests-url]: https://circleci.com/gh/shellscape/postcss-values-parser - [cover]: https://codecov.io/gh/shellscape/postcss-values-parser/branch/master/graph/badge.svg [cover-url]: https://codecov.io/gh/shellscape/postcss-values-parser - [size]: https://packagephobia.now.sh/badge?p=postcss-values-parser [size-url]: https://packagephobia.now.sh/result?p=postcss-values-parser diff --git a/ava.config.js b/ava.config.js new file mode 100644 index 0000000..d3bea4b --- /dev/null +++ b/ava.config.js @@ -0,0 +1,10 @@ +export default { + files: ['!**/fixtures/**', '!**/helpers/**', '!**/rewiremock.js'], + require: ['./test/rewiremock.cjs'], + typescript: { + rewritePaths: { + 'src/': 'dist/' + }, + compile: false + } +}; diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index f1b170a..0000000 --- a/codecov.yml +++ /dev/null @@ -1,10 +0,0 @@ -codecov: - branch: master -coverage: - precision: 2 - round: down - range: 70...100 - status: - project: 'no' - patch: 'yes' -comment: 'off' diff --git a/docs/AtWord.md b/docs/AtWord.md index 28c86f9..0e591cc 100644 --- a/docs/AtWord.md +++ b/docs/AtWord.md @@ -5,19 +5,20 @@ The `AtWord` node inherits directly from `AtRule` in PostCSS, and is purely cosm ## Properties ### `name` + Type: `String`
The portion of the at-word which identifies it, minus the leading `@` character. ### `type` + Type: `String` Value: `'atword'` ## Example Values ```css - @batman - @color +@batman @color; ``` _Note: Using the `variables` property, `AtWords` may instead be treated as variables._ diff --git a/docs/Comment.md b/docs/Comment.md index 557dec7..4289fb6 100644 --- a/docs/Comment.md +++ b/docs/Comment.md @@ -5,15 +5,18 @@ The `Comment` node inherits directly from `Comment` in PostCSS. This node repres ## Properties ### `inline` + Type: `Boolean`
If `true`, indicates that the type of comment is "inline," or a comment that begins with `//`. If `false`, indicates that the comment is a traditional block comment. ### `type` + Type: `String` Value: `'comment'` ### `value` + Type: `String`
A `String` representation of the body of the comment. @@ -21,6 +24,6 @@ A `String` representation of the body of the comment. ## Example Values ```css - // na na na na na na na na batmannnnn - /* joker cheats at poker */ +// na na na na na na na na batmannnnn +/* joker cheats at poker */ ``` diff --git a/docs/Exports.md b/docs/Exports.md index dd8a1f4..8fbc252 100644 --- a/docs/Exports.md +++ b/docs/Exports.md @@ -3,6 +3,7 @@ This module exports the following methods: ### `parse(css, options)` + Returns: `Root`
Parses a given `String` and returns an AST with a `Root` node. If the input is an invalid CSS value, a `CSSSyntaxError` is thrown. @@ -10,21 +11,25 @@ Parses a given `String` and returns an AST with a `Root` node. If the input is a #### Parameters #### `css` + Type: `String`
_Required_ #### `options` + Type: `Object` ##### Properties ##### `ignoreUnknownWords` + Type: `Boolean`
Default: `false` If `true`, will allow all unknown parts of the value to be parsed and added to the AST. Similar functionality in the previous version went by the `loose` option name. If `false`, unknown values will throw `CssSyntaxError`. ##### `interpolation` + Type: `Boolean|Object`
Default: `false` @@ -32,6 +37,7 @@ Set this option to enable parsing of interpolated values for languages such as S `interpolation: { prefix: '@' }` will allow parsing of the interpolated value `@{batman}` which uses `@` as the "prefix". For SCSS one might use `interpolation: { prefix: '#' }`. ##### `variables` + Type: `Object`
Default: `{ prefixes: ['--'] }` @@ -44,12 +50,14 @@ A `Function` with a signature matching `(bit) => {}` used to concatenate or mani #### Parameters #### `node` + Type: `Node`
_Required_ The `Node` to stringify. #### `builder` + Type: `Function` _Required_ @@ -60,5 +68,6 @@ Transforms a `Node` into its `String` representation. #### Parameters #### `node` + Type: `Node`
_Required_ diff --git a/docs/Func.md b/docs/Func.md index f07c922..e30d382 100644 --- a/docs/Func.md +++ b/docs/Func.md @@ -5,26 +5,31 @@ The `Func` node inherits directly from `Container` in PostCSS. This node represe ## Properties ### `isColor` + Type: `Boolean`
If `true`, denotes that the function represents a color-producing function. Valid color-producing functions are: `hsl()`, `hsla()`, `rgb()`, and `rgba()`. ### `isVar` + Type: `Boolean`
If `true`, denotes that the function represents a CSS variable usage function. Valid var function is: `var( , ? )`. ### `name` + Type: `String`
The name of the function. ### `params` + Type: `String`
A `String` representation of the body of the function, between parenthesis, including the parenthesis characters. This value will be parsed and the result placed into the `nodes` property. This value should be considered only a snapshot for reference. To manipulate function parameters, please leverage the `Container.nodes` property. ### `type` + Type: `String` Value: `'func'` diff --git a/docs/Interpolation.md b/docs/Interpolation.md index f83842b..a7ff5ce 100644 --- a/docs/Interpolation.md +++ b/docs/Interpolation.md @@ -5,20 +5,22 @@ The `Interpolation` node inherits directly from `Container` in PostCSS. This nod ## Properties ### `type` + Type: `String` Value: `'interpolation'` ### `params` + Type: `String`
A `String` representation of the body of the interpolation statement. This value will be parsed and the result placed into the `nodes` property. ### `prefix` + Type: `String`
A `String` representation of the first/signifying character of the interpolation statement. - ## Example Values ```scss diff --git a/docs/Numeric.md b/docs/Numeric.md index 3974a01..cdb71cd 100644 --- a/docs/Numeric.md +++ b/docs/Numeric.md @@ -5,15 +5,18 @@ The `Numeric` node inherits directly from `Node` in PostCSS. This node represent ## Properties ### `type` + Type: `String` Value: `'numeric'` ### `unit` + Type: `String`
The unit of the numeric figure, if one was used. Valid units are: `%, ch, cm, em, ex, in, mm, pc, pt, px, rem, vh, vmax, vmin, vw`. ### `value` + Type: `String`
A `String` representation of the numeric figure, without unit. diff --git a/docs/Operator.md b/docs/Operator.md index aa3bcb1..b4d39b8 100644 --- a/docs/Operator.md +++ b/docs/Operator.md @@ -5,10 +5,12 @@ The `Operator` node inherits directly from `Node` in PostCSS. This node represen ## Properties ### `type` + Type: `String` Value: `'operator'` ### `value` + Type: `String`
A `String` representation of the operator. diff --git a/docs/Punctuation.md b/docs/Punctuation.md index 58204eb..ebeac5c 100644 --- a/docs/Punctuation.md +++ b/docs/Punctuation.md @@ -5,10 +5,12 @@ The `Punctuation` node inherits directly from `Node` in PostCSS. This node repre ## Properties ### `type` + Type: `String` Value: `'punctuation'` ### `value` + Type: `String`
A `String` representation of the punctuation character. diff --git a/docs/Quoted.md b/docs/Quoted.md index 0737624..f294b51 100644 --- a/docs/Quoted.md +++ b/docs/Quoted.md @@ -5,23 +5,27 @@ The `Quoted` node inherits directly from `Node` in PostCSS. This node represents ## Properties ### `quote` + Type: `String`
The quotation character used to denote the beginning and end of the string. ### `type` + Type: `String` Value: `'quoted'` ### `value` + Type: `String`
-The value of the string between the quote characters, *including* quotes. +The value of the string between the quote characters, _including_ quotes. ### `contents` + Type: `String`
-The value of the string between the quote characters, *without* quotes. +The value of the string between the quote characters, _without_ quotes. ## Example Values diff --git a/docs/README.md b/docs/README.md index 9027d0c..0090265 100644 --- a/docs/README.md +++ b/docs/README.md @@ -70,5 +70,4 @@ root.walkNumerics((node) => nodes.push(node)); // unit: 'pt', // ... // } ] - ``` diff --git a/docs/UnicodeRange.md b/docs/UnicodeRange.md index ac81a34..96bc374 100644 --- a/docs/UnicodeRange.md +++ b/docs/UnicodeRange.md @@ -5,10 +5,12 @@ The `UnicodeRange` node inherits directly from `Node` in PostCSS. This node repr ## Properties ### `type` + Type: `String` Value: `'unicodeRange'` ### `name` + Type: `String`
A `String` representation of the unicode range specified. diff --git a/docs/Word.md b/docs/Word.md index 99e8e54..9f4a2c9 100644 --- a/docs/Word.md +++ b/docs/Word.md @@ -5,30 +5,36 @@ The `Word` node inherits directly from `Node` in PostCSS. This node is a catch-a ## Properties ### `isColor` + Type: `Boolean`
If `true`, denotes that the word represents a color. ### `isHex` + Type: `Boolean`
If `true`, denotes that the word represents a hexadecimal value. ### `isUrl` + Type: `Boolean`
If `true`, denotes that the word represents a Universal Resource Locator (URL). ### `isVariable` + Type: `Boolean`
If `true`, denotes that the word represents a CSS variable. ### `type` + Type: `String` Value: `'word'` ### `value` + Type: `String`
The value of the word. @@ -43,7 +49,6 @@ The value of the word. #fff ``` - this.isColor = false; this.isHex = false; this.isVariable = false; diff --git a/lib/ValuesParser.js b/lib/ValuesParser.js deleted file mode 100644 index 1542b00..0000000 --- a/lib/ValuesParser.js +++ /dev/null @@ -1,204 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const Parser = require('postcss/lib/parser'); - -const AtWord = require('./nodes/AtWord'); -const Comment = require('./nodes/Comment'); -const Func = require('./nodes/Func'); -const Interpolation = require('./nodes/Interpolation'); -const Numeric = require('./nodes/Numeric'); -const Operator = require('./nodes/Operator'); -const Punctuation = require('./nodes/Punctuation'); -const Quoted = require('./nodes/Quoted'); -const UnicodeRange = require('./nodes/UnicodeRange'); -const Word = require('./nodes/Word'); - -const defaults = { - ignoreUnknownWords: false, - // interpolation: { prefix: '@' } - interpolation: false, - parentNode: null, - variables: { - prefixes: ['--'] - } -}; - -module.exports = class ValuesParser extends Parser { - constructor(input, opts = {}) { - super(input); - - this.lastNode = null; - this.options = Object.assign({}, defaults, opts); - this.parentNode = this.options.parentNode; - } - - back(tokens) { - for (const token of tokens.reverse()) { - this.tokenizer.back(token); - } - } - - comment(token) { - super.comment(token); - - const inline = Comment.testInline(token); - const node = this.lastNode; - node.inline = inline; - Object.setPrototypeOf(node, Comment.prototype); - } - - fromFirst(tokens, Constructor) { - const [first] = tokens; - const [, value, startLine, startChar] = first; - const node = new Constructor({ value }); - - this.init(node, startLine, startChar); - this.current = node; - this.end(first); - this.back(tokens.slice(1)); - } - - init(node, line, column) { - super.init(node, line, column); - - // base methods like comment() don't set this.current, so we need some way of tracking the last - // node for manipulation - this.lastNode = node; - } - - other(start) { - // console.log('other', start); - - const brackets = []; - const tokens = []; - let token = start; - let type = null; - let bracket = null; - - while (token) { - [type] = token; - tokens.push(token); - - if (type === '(' || type === '[') { - if (!bracket) { - bracket = token; - } - - brackets.push(type === '(' ? ')' : ']'); - } else if (type === brackets[brackets.length - 1]) { - brackets.pop(); - if (brackets.length === 0) { - bracket = null; - } - } - - token = this.tokenizer.nextToken(); - } - - if (brackets.length > 0) { - this.unclosedBracket(bracket); - } - - this.unknownWord(tokens); - } - - // overriden to remove certain node types we don't need - parse() { - let token; - while (!this.tokenizer.endOfFile()) { - token = this.tokenizer.nextToken(); - - switch (token[0]) { - case 'space': - this.spaces += token[1]; - break; - - case 'comment': - this.comment(token); - break; - - case 'at-word': - this.atrule(token); - Object.setPrototypeOf(this.lastNode, AtWord.prototype); - this.lastNode.type = 'atword'; - break; - - default: - this.other(token); - break; - } - } - this.endFile(); - } - - unknownWord(tokens) { - // NOTE: keep commented for examining unknown structures - // console.log('unknown', tokens); - - const [first] = tokens; - const [type, value] = first; - - if (Punctuation.chars.includes(type)) { - Punctuation.fromTokens(tokens, this); - } else if (type === 'word' && Operator.test(tokens, this)) { - Operator.fromTokens(tokens, this); - } else if (Func.test(tokens)) { - Func.fromTokens(tokens, this); - } else if (this.options.interpolation && Interpolation.test(tokens, this)) { - Interpolation.fromTokens(tokens, this); - } else if (type === 'brackets') { - Punctuation.tokenizeBrackets(tokens, this); - } else if (type === 'comma') { - Punctuation.fromTokens(tokens, this); - } else if (type === 'operator') { - Operator.fromTokens(tokens, this); - } else if (type === 'string') { - Quoted.fromTokens(tokens, this); - } else if (type === 'word') { - if (value === ',') { - Punctuation.fromTokens(tokens, this); - } else if (value === '//') { - Comment.tokenizeNext(tokens, this); - } else if (Comment.testInline(first)) { - // catch protocol-relative urls in a url() function - // https://github.com/shellscape/postcss-values-parser/issues/65 - const { parentNode } = this; - if (parentNode && parentNode.type === 'func' && parentNode.name === 'url') { - Word.fromTokens(tokens, this); - } else { - Comment.tokenizeInline(tokens, this); - } - } else if (value.includes(',')) { - Punctuation.tokenizeCommas(tokens, this); - } else if (Word.testWord(tokens, this)) { - // we need to catch variables before the numeric and operator tests - Word.fromTokens(tokens, this); - } else if (Numeric.test(value)) { - Numeric.fromTokens(tokens, this); - } else if (UnicodeRange.test(value)) { - UnicodeRange.fromTokens(tokens, this); - } else if (Operator.chars.includes(value)) { - Operator.fromTokens(tokens, this); - } else if (/^[\w-]+$/.test(value)) { - Word.fromTokens(tokens, this); - } else if (Operator.regex.test(value)) { - Operator.tokenize(tokens, this); - } else if (this.options.ignoreUnknownWords) { - Word.fromTokens(tokens, this); - } else { - super.unknownWord(tokens); - } - } else { - /* istanbul ignore next */ - super.unknownWord(tokens); - } - } -}; diff --git a/lib/ValuesStringifier.js b/lib/ValuesStringifier.js deleted file mode 100644 index 2728d04..0000000 --- a/lib/ValuesStringifier.js +++ /dev/null @@ -1,78 +0,0 @@ -const Stringifier = require('postcss/lib/stringifier'); - -module.exports = class ValuesStringifier extends Stringifier { - static stringify(node, builder) { - const stringifier = new ValuesStringifier(builder); - stringifier.stringify(node); - } - - basic(node, value) { - const print = value || node.value; - const after = node.raws.after ? this.raw(node, 'after') || '' : ''; - // NOTE: before is handled by postcss in stringifier.body - - this.builder(print, node, 'start'); - this.builder(after, node, 'end'); - } - - atword(...args) { - this.atrule(...args); - } - - comment(node) { - if (node.inline) { - const left = this.raw(node, 'left', 'commentLeft'); - const right = this.raw(node, 'right', 'commentRight'); - this.builder(`//${left}${node.text}${right}`, node); - } else { - super.comment(node); - } - } - - func(node) { - const after = this.raw(node, 'after') || ''; - - this.builder(`${node.name}(`, node, 'start'); - - for (const child of node.nodes) { - // since we're duplicating this.body here, we have to handle `before` - // but we don't want the postcss default \n value, so check it's non-empty first - const before = child.raws.before ? this.raw(child, 'before') : ''; - if (before) { - this.builder(before); - } - this.stringify(child); - } - - this.builder(`)${after}`, node, 'end'); - } - - interpolation(node) { - this.basic(node, node.prefix + node.params); - } - - numeric(node) { - const print = node.value + node.unit; - this.basic(node, print); - } - - operator(node) { - this.basic(node); - } - - punctuation(node) { - this.basic(node); - } - - quoted(node) { - this.basic(node); - } - - unicodeRange(node) { - this.basic(node); - } - - word(node) { - this.basic(node); - } -}; diff --git a/lib/index.d.ts b/lib/index.d.ts deleted file mode 100644 index dd0f46b..0000000 --- a/lib/index.d.ts +++ /dev/null @@ -1,237 +0,0 @@ -/* - Copyright © 2019 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ - -import * as postcss from "postcss"; - -// Even though the concrete classes extend PostCSS classes, we can't extend -// PostCSS Node types here because they refer to statements that aren't -// compatible with our value nodes. This unfortunately means that we need to -// replicate a bunch of PostCSS's method declarations here. - -export interface NodeBase { - // Inherited from postcss.ContainerBase, but with our Node type. - next(): ChildNode | void; - prev(): ChildNode | void; - before(newNode: ChildNode | object | string | ChildNode[]): this; - after(newNode: ChildNode | object | string | ChildNode[]): this; - root(): Root; - replaceWith(...nodes: Array): this; - - // Inherited from postcss.ContainerBase with no changes. - source?: postcss.Source; - raws: any; - toString(stringifier?: Stringifier | Syntax): string; - error( - message: string, - options?: postcss.NodeErrorOptions - ): postcss.CssSyntaxError; - warn( - result: postcss.Result, - text: string, - opts?: postcss.WarningOptions - ): void; - remove(): this; - clone(overrides?: object): this; - cloneBefore(overrides?: object): this; - cloneAfter(overrides?: object): this; - raw(prop: string, defaultType?: string): any; -} - -export interface ContainerBase extends NodeBase { - walkFuncs(callback: (decl: Func, index: number) => any): boolean | void; - walkInterpolations( - callback: (interpolation: Interpolation, index: number) => any - ): boolean | void; - walkNumerics( - callback: (numeric: Numeric, index: number) => any - ): boolean | void; - walkOperators( - callback: (operator: Operator, index: number) => any - ): boolean | void; - walkPunctuations( - callback: (punctuation: Punctuation, index: number) => any - ): boolean | void; - walkQuoteds(callback: (quoted: Quoted, index: number) => any): boolean | void; - walkUnicodeRanges( - callback: (unicodeRange: UnicodeRange, index: number) => any - ): boolean | void; - walkWords(callback: (word: Word, index: number) => any): boolean | void; - walkType( - type: string, - callback: (node: ChildNode, index: number) => any - ): boolean | void; - - // Inherited from postcss.ContainerBase, but with our Node type. - nodes: ChildNode[]; - first?: ChildNode; - last?: ChildNode; - index(child: ChildNode | number): number; - every( - callback: (node: ChildNode, index: number, nodes: ChildNode[]) => any, - thisArg?: any - ): boolean; - some( - callback: (node: ChildNode, index: number, nodes: ChildNode[]) => boolean, - thisArg?: any - ): boolean; - each(callback: (node: ChildNode, index: number) => any): boolean | void; - walk(callback: (node: ChildNode, index: number) => any): boolean | void; - walkAtWords(callback: (atWord: AtWord, index: number) => any): boolean | void; - walkComments( - callback: (comment: Comment, index: number) => any - ): boolean | void; - prepend(...nodes: Array): this; - append(...nodes: Array): this; - insertBefore( - oldNode: ChildNode | number, - newNode: ChildNode | object | string - ): this; - insertAfter( - oldNode: ChildNode | number, - newNode: ChildNode | object | string - ): this; - removeChild(child: ChildNode | number): this; - - // Inherited from postcss.ContainerBase with no changes. - clone(overrides?: object): this; - remove(): this; - removeAll(): this; -} - -export interface Root extends ContainerBase { - type: "root"; - parent: undefined; - toResult(options?: { - to?: string; - map?: postcss.SourceMapOptions; - }): postcss.Result; -} - -export type Node = Root | ChildNode; - -export type ChildNode = - | AtWord - | Comment - | Func - | Interpolation - | Numeric - | Operator - | Punctuation - | Quoted - | UnicodeRange - | Word; - -export type Container = Root | Func | Interpolation; - -export interface AtWord extends ContainerBase { - type: "atrule"; - parent: Container; - name: string; - params: string; -} - -export interface Comment extends NodeBase { - type: "comment"; - parent: Container; - inline: boolean; - text: string; -} - -export interface Func extends ContainerBase { - type: "func"; - parent: Container; - isColor: boolean; - isVar: boolean; - name: string; - params: string; -} - -export interface Interpolation extends ContainerBase { - type: "interpolation"; - parent: Container; - params: string; - prefix: string; -} - -export interface Numeric extends NodeBase { - type: "numeric"; - parent: Container; - unit: string; - value: string; -} - -export interface Operator extends NodeBase { - type: "operator"; - parent: Container; - value: string; -} - -export interface Punctuation extends NodeBase { - type: "punctuation"; - parent: Container; - value: string; -} - -export interface Quoted extends NodeBase { - type: "quoted"; - parent: Container; - quote: string; - value: string; - contents: string; -} - -export interface UnicodeRange extends NodeBase { - type: "unicodeRange"; - parent: Container; - name: string; -} - -export interface Word extends NodeBase { - type: "word"; - parent: Container; - isColor: boolean; - isHex: boolean; - isUrl: boolean; - isVariable: boolean; - value: string; -} - -export function parse(css: string, options?: ParseOptions): Root; - -export interface ParseOptions { - ignoreUnknownWords?: boolean; - interpolation?: boolean | InterpolationOptions; - variables?: VariablesOptions; -} - -export interface InterpolationOptions { - prefix: string; -} - -export interface VariablesOptions { - prefixes: string[]; -} - -interface Syntax { - stringify?: Stringifier; -} - -interface Builder { - (part: string, node?: Node, type?: "start" | "end"): void; -} - -export interface Stringifier { - (node: Node, builder: Builder): void; -} - -export const stringify: Stringifier; - -export function nodeToString(node: Node): string; diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index c8cf4ac..0000000 --- a/lib/index.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const Input = require('postcss/lib/input'); - -const Parser = require('./ValuesParser'); -const { stringify } = require('./ValuesStringifier'); - -module.exports = { - parse(css, options) { - const input = new Input(css, options); - const parser = new Parser(input, options); - - parser.parse(); - - const { root } = parser; - const ogToString = root.toString; - - function toString(stringifier) { - return ogToString.bind(root)(stringifier || module.exports.stringify); - } - - root.toString = toString.bind(root); - - return parser.root; - }, - - stringify, - - nodeToString(node) { - let result = ''; - - module.exports.stringify(node, (bit) => { - result += bit; - }); - - return result; - } -}; diff --git a/lib/nodes/AtWord.js b/lib/nodes/AtWord.js deleted file mode 100644 index 4f9ee18..0000000 --- a/lib/nodes/AtWord.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const AtRule = require('postcss/lib/node'); - -const { registerWalker } = require('../walker'); - -const { stringify } = require('../ValuesStringifier'); - -class AtWord extends AtRule { - toString(stringifier = stringify) { - return super.toString(stringifier); - } -} - -registerWalker(AtWord); - -module.exports = AtWord; diff --git a/lib/nodes/Comment.js b/lib/nodes/Comment.js deleted file mode 100644 index 2a9b52e..0000000 --- a/lib/nodes/Comment.js +++ /dev/null @@ -1,78 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const PostCssComment = require('postcss/lib/comment'); - -const { stringify } = require('../ValuesStringifier'); - -const inlineRegex = /(\/\/)/; - -class Comment extends PostCssComment { - static testInline(token) { - return inlineRegex.test(token[1]); - } - - static tokenizeNext(tokens, parser) { - const [first] = tokens; - const newlineIndex = tokens.findIndex((t) => /\n/.test(t[1])); - let bits = tokens; - let rest = []; - - if (newlineIndex >= 0) { - bits = tokens.slice(0, newlineIndex); - rest = tokens.slice(newlineIndex); - } - - bits = bits.map((t) => t[1]); - - // see tilde comment in tokenizeInline - const text = bits.concat('~~').join(''); - const last = bits[bits.length - 1]; - const newToken = ['comment', text, first[2], first[3], last[2], last[3]]; - - parser.back([newToken, ...rest]); - } - - static tokenizeInline(tokens, parser) { - const [first, ...rest] = tokens; - const bits = first[1].split(/(\/\/.+)/).filter((t) => !!t); - const newTokens = []; - const [, , startLine, , endLine] = first; - let [, , , startChar, , endChar] = first; - - for (let bit of bits) { - const comment = bit.slice(0, 2) === '//'; - const type = comment ? 'comment' : 'word'; - - if (comment) { - // the Parser base comment() method trims the last two characters when creating the node - // these tildes are added to counter that. it's hacky, but it works, and we don't have to - // re-implement the method - bit += '~~'; - } - - if (bit !== bits[0]) { - startChar = endChar + 1; - } - - endChar = startChar + bit.length - 1; - - newTokens.push([type, bit, startLine, startChar, endLine, endChar]); - } - - parser.back(newTokens.concat(rest)); - } - - toString(stringifier = stringify) { - return super.toString(stringifier); - } -} - -module.exports = Comment; diff --git a/lib/nodes/Func.js b/lib/nodes/Func.js deleted file mode 100644 index 6c4fd37..0000000 --- a/lib/nodes/Func.js +++ /dev/null @@ -1,202 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const { getTokens } = require('../tokenize'); -const { registerWalker } = require('../walker'); - -const Container = require('./Container'); -const Punctuation = require('./Punctuation'); - -const cssFunctions = [ - 'annotation', - 'attr', - 'blur', - 'brightness', - 'calc', - 'character-variant', - 'circle', - 'contrast', - 'cubic-bezier', - 'dir', - 'drop-shadow', - 'element', - 'ellipse', - 'grayscale', - 'hsl', - 'hsla', - 'hue-rotate', - 'image', - 'inset', - 'invert', - 'lang', - 'linear-gradient', - 'matrix', - 'matrix3d', - 'minmax', - 'not', - 'nth-child', - 'nth-last-child', - 'nth-last-of-type', - 'nth-of-type', - 'opacity', - 'ornaments', - 'perspective', - 'polygon', - 'radial-gradient', - 'rect', - 'repeat', - 'repeating-linear-gradient', - 'repeating-radial-gradient', - 'rgb', - 'rgba', - 'rotate', - 'rotatex', - 'rotatey', - 'rotatez', - 'rotate3d', - 'saturate', - 'scale', - 'scalex', - 'scaley', - 'scalez', - 'scale3d', - 'sepia', - 'skew', - 'skewx', - 'skewy', - 'steps', - 'styleset', - 'stylistic', - 'swash', - 'symbols', - 'translate', - 'translatex', - 'translatey', - 'translatez', - 'translate3d', - 'url', - 'var' -]; -const vendorPrefixes = ['-webkit-', '-moz-', '-ms-', '-o-']; -const reFunctions = new RegExp(`^(${vendorPrefixes.join('|')})?(${cssFunctions.join('|')})`, 'i'); -const rePunctuation = new RegExp(`^(\\${Punctuation.chars.join('|\\')})`); -const reColorFunctions = /^(hsla?|hwb|lab|lch|rgba?)$/i; -const reVar = /^var$/i; -const reVarPrefix = /^--[^\s]+$/; - -class Func extends Container { - constructor(options = {}) { - super(options); - this.type = 'func'; - this.isColor = false; - this.isVar = false; - this.name = options.name || ''; - if (!this.nodes) { - this.nodes = []; - } - } - - static test(tokens) { - return ( - tokens.length > 1 && - tokens[0][0] === 'word' && - // fixes #91 - !rePunctuation.test(tokens[0][1]) && - (tokens[1][0] === 'brackets' || tokens[1][0] === '(') - ); - } - - static fromTokens(tokens, parser) { - const [[, , startLine, startChar]] = tokens; - const [name, brackets] = tokens.splice(0, 2); - const node = new Func({ name: name[1] }); - let foundParens = 0; - let expectedParens = 1; - let lastToken = brackets; - - // fixes #92 - // eslint-disable-next-line no-useless-escape - if (!reFunctions.test(node.name) && !/^[a-zA-Z\-\.]+$/.test(node.name)) { - const nameTokens = getTokens(node.name); - tokens.unshift(...nameTokens, brackets); - parser.back(tokens); - return; - } - - parser.init(node, startLine, startChar); - parser.current = node; // eslint-disable-line no-param-reassign - - if (brackets[0] === 'brackets') { - expectedParens = brackets[1].match(/[(]/g).length - 1; - } - - const rightTokens = []; - // the number of closing parens we should expect, minus one for the closing paren of brackets - - for (const token of tokens) { - if (foundParens < expectedParens) { - if (token[1] === ')') { - foundParens += 1; - } else if (token[1] === '(') { - expectedParens += 1; - } - brackets[1] += token[1]; - lastToken = token; - } else { - rightTokens.push(token); - } - } - - if (foundParens !== expectedParens) { - parser.unclosedBracket(brackets); - } - - [, node.params] = brackets; - - const params = brackets[1].slice(1, -1); - - if (params.length) { - let opts = parser.options; - - if (node.name === 'url') { - // any unknown words are likely part of a url. let the consumer scrutinize the result - opts = Object.assign({}, parser.options, { ignoreUnknownWords: true }); - } - opts.parentNode = node; - // use a new parser to parse the params of the function. recursion here makes for easier maint - // we must require this here due to circular dependency resolution - // eslint-disable-next-line global-require - const { parse } = require('../'); - const root = parse(params, opts); - const { nodes: children } = root; - - // TODO: correct line and character position (should we just pad the input? probably easiest) - for (const child of children) { - node.push(child); - } - - if (root.raws.after) { - node.last.raws.after = root.raws.after; - } - } - - parser.end(lastToken); - parser.back(rightTokens); - - const { lastNode } = parser; - const { nodes } = node; - lastNode.isColor = reColorFunctions.test(lastNode.name); - lastNode.isVar = reVar.test(lastNode.name) && nodes.length && reVarPrefix.test(nodes[0].value); - } -} - -registerWalker(Func); - -module.exports = Func; diff --git a/lib/nodes/Interpolation.js b/lib/nodes/Interpolation.js deleted file mode 100644 index 4f81edd..0000000 --- a/lib/nodes/Interpolation.js +++ /dev/null @@ -1,84 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const { registerWalker } = require('../walker'); - -const Container = require('./Container'); - -class Interpolation extends Container { - constructor(options = {}) { - super(options); - this.type = 'interpolation'; - this.prefix = options.prefix || ''; - if (!this.nodes) { - this.nodes = []; - } - } - - static test(tokens, parser) { - const { prefix } = parser.options.interpolation; - const [first, next] = tokens; - return tokens.length > 1 && first[0] === 'word' && prefix === first[1] && next[0] === '{'; - } - - static fromTokens(tokens, parser) { - const [[, , startLine, startChar]] = tokens; - const [first] = tokens.splice(0, 2); - const [, prefix] = first; - const node = new Interpolation({ prefix }); - const rightTokens = []; - - let closed = false; - let lastToken; - let brackets = '{'; - - parser.init(node, startLine, startChar); - parser.current = node; // eslint-disable-line no-param-reassign - - for (const token of tokens) { - if (closed) { - rightTokens.push(token); - } else { - if (token[1] === '}') { - closed = true; - } - brackets += token[1]; - lastToken = token; - } - } - - if (!closed) { - parser.unclosedBracket(first); - } - - node.params = brackets; - - const params = brackets.slice(1, -1); - - if (params.length) { - // use a new parser to parse the params of the function. recursion here makes for easier maint - // we must require this here due to circular dependency resolution - const { parse } = require('../'); // eslint-disable-line global-require - const { nodes: children } = parse(params, parser.options); - - // TODO: correct line and character position (should we just pad the input? probably easiest) - for (const child of children) { - node.push(child); - } - } - - parser.end(lastToken); - parser.back(rightTokens); - } -} - -registerWalker(Interpolation); - -module.exports = Interpolation; diff --git a/lib/nodes/Node.js b/lib/nodes/Node.js deleted file mode 100644 index 483a458..0000000 --- a/lib/nodes/Node.js +++ /dev/null @@ -1,21 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const PostCssNode = require('postcss/lib/node'); - -const { stringify } = require('../ValuesStringifier'); - -class Node extends PostCssNode { - toString(stringifier = stringify) { - return super.toString(stringifier || {}); - } -} - -module.exports = Node; diff --git a/lib/nodes/Numeric.js b/lib/nodes/Numeric.js deleted file mode 100644 index 7e35d99..0000000 --- a/lib/nodes/Numeric.js +++ /dev/null @@ -1,83 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ - -const { registerWalker } = require('../walker'); - -const Node = require('./Node'); - -/** A Number is: - * 1. None or one plus or minus symbol; then - * 2. Either, - * 2.1. One or more digits; and / or, - * 2.2. One period symbol; followed by, - * 2.2.1. One or more digits; - * then, - * 3. If one "e" letter, - * 3.1. One "e" letter; followed by, - * 3.1.1. None or one plus or minus symbol; followed by, - * 3.1.1.1. One or more digits. - * @see https://drafts.csswg.org/css-syntax/#consume-a-number - */ -const numberRegex = /^([+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)$/; - -/** A Unit is: - * 1. Either, - * 1.1. One dash; followed by, - * 1.1.1. One letter, non-ASCII, underscore, dash; or, - * 1.1.2. One escape slash; followed by, - * 1.1.2.1 One non-newline; - * or, - * 1.2. One letter, non-ASCII, underscore; or, - * 1.3. One escape slash; followed by, - * 1.3.1. One non-newline; - * then, - * 2. Zero or more of; - * 2.1 One letter, non-ASCII, underscore, dash; then / or, - * 2.2 One escape slash; followed by, - * 2.2.1. One non-newline. - * @see https://drafts.csswg.org/css-syntax/#consume-numeric-token - */ -const unitRegex = /^(-?(?:[-A-Z_a-z]|[^\x00-\x7F]|\\[^\n\f\r])(?:[-\w]|[^\x00-\x7F]|\\[^\n\f\r])*|%)$/; // eslint-disable-line no-control-regex - -/** A Numeric is: - * 1. One Number; followed by, - * 1.1 Zero or one Unit. - */ -const numericRegex = new RegExp( - `^${numberRegex.source.slice(1, -1) + unitRegex.source.slice(1, -1)}?$` -); - -class Numeric extends Node { - constructor(options = {}) { - super(options); - this.type = 'numeric'; - this.unit = options.unit || ''; - } - - static fromTokens(tokens, parser) { - parser.fromFirst(tokens, Numeric); - - const [[, rawValue]] = tokens; - const [, value, unit = ''] = rawValue.match(numericRegex); - - const { lastNode } = parser; - lastNode.unit = unit; - lastNode.value = value; - } - - static test(what) { - return numericRegex.test(what); - } -} - -registerWalker(Numeric); - -module.exports = Numeric; diff --git a/lib/nodes/Operator.js b/lib/nodes/Operator.js deleted file mode 100644 index 5034ca6..0000000 --- a/lib/nodes/Operator.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const { registerWalker } = require('../walker'); - -const Node = require('./Node'); - -const operators = ['+', '-', '/', '*', '%', '=', '<=', '>=', '<', '>']; -const operRegex = new RegExp(`([/|*}])`); -const compactRegex = /^[*/]\b/; - -class Operator extends Node { - constructor(options) { - super(options); - this.type = 'operator'; - } - - static get chars() { - return operators; - } - - static fromTokens(tokens, parser) { - parser.fromFirst(tokens, Operator); - } - - static get regex() { - return operRegex; - } - - static test(tokens, parser) { - const [first] = tokens; - const [, value] = first; - const { lastNode } = parser; - return lastNode && lastNode.type === 'func' && compactRegex.test(value); - } - - static tokenize(tokens, parser) { - const [first, ...rest] = tokens; - const [, value, startLine, , endLine, endChar] = first; - const parts = value.split(operRegex).filter((t) => !!t); - let [, , , startChar] = first; - - const newTokens = parts.map((part) => { - const newToken = ['word', part, startLine, startChar, endLine, endChar]; - - startChar += part.length; - - return newToken; - }); - - parser.back(newTokens.concat(rest)); - } -} - -registerWalker(Operator); - -module.exports = Operator; diff --git a/lib/nodes/Punctuation.js b/lib/nodes/Punctuation.js deleted file mode 100644 index c65b4f9..0000000 --- a/lib/nodes/Punctuation.js +++ /dev/null @@ -1,91 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const { getTokens } = require('../tokenize'); -const { registerWalker } = require('../walker'); - -const Node = require('./Node'); - -/** - * @desc Punctuation nodes can contain: - * , : ( ) { } [ ] - */ -class Punctuation extends Node { - constructor(options) { - super(options); - this.type = 'punctuation'; - } - - static get chars() { - return [',', ':', '(', ')', '[', ']', '{', '}']; - } - - static fromTokens(tokens, parser) { - parser.fromFirst(tokens, Punctuation); - } - - static tokenizeBrackets(tokens, parser) { - const [first, ...rest] = tokens; - const bits = first[1].split(/([()])/g).filter((t) => !!t); - const newTokens = []; - const [, , startLine, , endLine] = first; - let [, , , startChar, , endChar] = first; - - for (const bit of bits) { - let type = bit === '(' ? '(' : bit === ')' ? ')' : 'word'; - - if (/^\s+$/.test(bit)) { - type = 'space'; - } - - if (bit !== bits[0]) { - startChar = endChar + 1; - } - - endChar = startChar + bit.length - 1; - - if (type === 'word') { - const wordTokens = getTokens(bit); - for (const token of wordTokens) { - token[3] += startChar - 1; - newTokens.push(token); - } - } else { - newTokens.push([type, bit, startLine, startChar, endLine, endChar]); - } - } - - parser.back(newTokens.concat(rest)); - } - - static tokenizeCommas(tokens, parser) { - const [first, ...rest] = tokens; - const bits = first[1].split(/([,])/g).filter((t) => !!t); - const newTokens = []; - const [, , startLine, , endLine] = first; - let [, , , startChar, , endChar] = first; - - for (const bit of bits) { - if (bit !== bits[0]) { - startChar = endChar + 1; - } - - endChar = startChar + bit.length - 1; - - newTokens.push(['word', bit, startLine, startChar, endLine, endChar]); - } - - parser.back(newTokens.concat(rest)); - } -} - -registerWalker(Punctuation); - -module.exports = Punctuation; diff --git a/lib/nodes/Quoted.js b/lib/nodes/Quoted.js deleted file mode 100644 index f2a42c2..0000000 --- a/lib/nodes/Quoted.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const { unquote } = require('quote-unquote'); - -const { registerWalker } = require('../walker'); - -const Node = require('./Node'); - -class Quoted extends Node { - constructor(options) { - super(options); - this.type = 'quoted'; - /** - * When cloning the node via {@link Node.clone()} there are no constructor params - */ - if (options && options.value) { - this.contents = unquote(options.value); - [this.quote] = options.value; - } - } - - static fromTokens(tokens, parser) { - parser.fromFirst(tokens, Quoted); - } -} - -registerWalker(Quoted); - -module.exports = Quoted; diff --git a/lib/nodes/UnicodeRange.js b/lib/nodes/UnicodeRange.js deleted file mode 100644 index e1b273c..0000000 --- a/lib/nodes/UnicodeRange.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const { registerWalker } = require('../walker'); - -const Node = require('./Node'); - -class UnicodeRange extends Node { - constructor(options) { - super(options); - this.type = 'unicodeRange'; - } - - static fromTokens(tokens, parser) { - parser.fromFirst(tokens, UnicodeRange); - } - - static test(what) { - return /U\+(\d|\w)+(-\w+)?(\?+)?/.test(what); - } -} - -registerWalker(UnicodeRange); - -module.exports = UnicodeRange; diff --git a/lib/nodes/Word.js b/lib/nodes/Word.js deleted file mode 100644 index 153ce27..0000000 --- a/lib/nodes/Word.js +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const colors = require('color-name'); -const isUrl = require('is-url-superb'); - -const { registerWalker } = require('../walker'); - -const Node = require('./Node'); - -const escapeRegex = /^\\(.+)/; -const hexRegex = /^#(.+)/; -const colorRegex = /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i; -const colorNames = Object.keys(colors); - -class Word extends Node { - constructor(options) { - super(options); - this.type = 'word'; - this.isColor = false; - this.isHex = false; - this.isUrl = false; - this.isVariable = false; - } - - static fromTokens(tokens, parser) { - parser.fromFirst(tokens, Word); - - const { lastNode } = parser; - const { value } = lastNode; - lastNode.isColor = colorRegex.test(value) || colorNames.includes(value.toLowerCase()); - lastNode.isHex = hexRegex.test(value); - lastNode.isUrl = value.startsWith('//') ? isUrl(`http:${value}`) : isUrl(value); - lastNode.isVariable = Word.testVariable(tokens[0], parser); - } - - static testEscaped(tokens) { - const [first, next] = tokens; - const [type, value] = first; - - return ( - type === 'word' && - (escapeRegex.test(value) || (value === '\\' && next && !/^\s+$/.test(next[1]))) - ); - } - - static testHex(token) { - const [type, value] = token; - - return type === 'word' && hexRegex.test(value); - } - - static testVariable(token, parser) { - const [type, value] = token; - const { prefixes } = parser.options.variables; - const varRegex = new RegExp(`^(${prefixes.join('|')})`); - - return type === 'word' && varRegex.test(value); - } - - static testWord(tokens, parser) { - const [token] = tokens; - - return Word.testEscaped(tokens) || Word.testHex(token) || Word.testVariable(token, parser); - } -} - -registerWalker(Word); - -module.exports = Word; diff --git a/lib/tokenize.js b/lib/tokenize.js deleted file mode 100644 index 3b23122..0000000 --- a/lib/tokenize.js +++ /dev/null @@ -1,133 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const Input = require('postcss/lib/input'); -const tokenizer = require('postcss/lib/tokenize'); - -const operators = ['*', '-', '%', '+', '/']; -const operRegex = /([*/])/g; - -const brackets = (token, tokenize) => { - const [, , startLine, startChar, endLine, endChar] = token; - const part = token[1].slice(1, token[1].length - 1); - const subTokens = getTokens(part); // eslint-disable-line no-use-before-define - - // adjust line position numbers - for (const sub of subTokens) { - if (sub[0] !== 'space') { - const length = sub[5] - sub[3]; - sub[2] = startLine; - sub[3] += startChar; - sub[4] += endLine - 1; - sub[5] = sub[3] + length; - } - } - - const tokens = [['(', '(', startLine, startChar, startLine, startChar], ...subTokens]; - tokens.push([')', ')', startLine, endChar, endLine, endChar]); - - for (const tokn of tokens.reverse()) { - tokenize.back(tokn); - } -}; - -const comma = (token, tokenize) => { - const bits = token[1].split(/([,])/); - const tokens = []; - const [, , startLine, , endLine] = token; - let [, , , startChar, , endChar] = token; - - for (let bit of bits) { - bit = bit || ','; - const name = bit === ',' ? 'comma' : 'word'; - - if (bit !== bits[0]) { - startChar = endChar + 1; - } - - endChar = startChar + bit.length - 1; - - tokens.push([name, bit, startLine, startChar, endLine, endChar]); - } - - for (const tokn of tokens.reverse()) { - tokenize.back(tokn); - } -}; - -const getTokens = (what) => { - const input = new Input(what, {}); - const tokenize = wrapTokenizer(input); // eslint-disable-line no-use-before-define - const result = []; - - // this shouldn't ever be slow as the string being tokenized will always be small - while (!tokenize.endOfFile()) { - const token = tokenize.nextToken(); - result.push(token); - } - - return result; -}; - -const operator = (token, tokenize) => { - const [, value, startLine, , endLine, endChar] = token; - const parts = value.split(operRegex); - let [, , , startChar] = token; - - const tokens = parts.map((part) => { - const type = operators.includes(part) ? 'operator' : 'word'; - const newToken = [type, part, startLine, startChar, endLine, endChar]; - - startChar += part.length; - - return newToken; - }); - - for (const tokn of tokens.reverse()) { - tokenize.back(tokn); - } -}; - -const wrapTokenizer = (...args) => { - const tokenize = tokenizer(...args); - const ogNextToken = tokenize.nextToken; - - tokenize.nextToken = (...nextArgs) => { - let token = ogNextToken(...nextArgs); - - if (!token) { - return token; - } - - const [type, value] = token; - - // TODO: need to adjust the line/char offsets - if (type === 'brackets') { - brackets(token, tokenize); - token = ogNextToken(...nextArgs); - } else if (type === 'word') { - if (operators.includes(value)) { - token[0] = 'operator'; - } else if (operRegex.test(value)) { - operator(token, tokenize); - token = ogNextToken(...nextArgs); - } else if (value.length > 1 && value.includes(',')) { - comma(token, tokenize); - token = ogNextToken(...nextArgs); - } - } - - return token; - }; - - return tokenize; -}; - -module.exports = { getTokens, tokenizer: wrapTokenizer }; diff --git a/lib/walker.js b/lib/walker.js deleted file mode 100644 index 5f680df..0000000 --- a/lib/walker.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const Container = require('postcss/lib/container'); - -const registerWalker = (constructor) => { - let walkerName = `walk${constructor.name}`; - - // plural sugar - if (walkerName.lastIndexOf('s') !== walkerName.length - 1) { - walkerName += 's'; - } - - /* istanbul ignore next */ - if (Container.prototype[walkerName]) { - return; - } - - // we need access to `this` so we can't use an arrow function - Container.prototype[walkerName] = function walker(callback) { - return this.walkType(constructor, callback); - }; -}; - -Container.prototype.walkType = function walkType(type, callback) { - /* istanbul ignore next */ - if (!type || !callback) { - throw new Error('Parameters {type} and {callback} are required.'); - } - - // allow users to pass a constructor, or node type string; eg. Word. - const isTypeCallable = typeof type === 'function'; - - // eslint-disable-next-line consistent-return - return this.walk((node, index) => { - if ((isTypeCallable && node instanceof type) || (!isTypeCallable && node.type === type)) { - return callback.call(this, node, index); - } - }); -}; - -module.exports = { registerWalker }; diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 4573062..0000000 --- a/package-lock.json +++ /dev/null @@ -1,5682 +0,0 @@ -{ - "name": "postcss-values-parser", - "version": "6.0.2", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@babel/code-frame": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", - "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.4" - } - }, - "@babel/core": { - "version": "7.11.6", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.11.6.tgz", - "integrity": "sha512-Wpcv03AGnmkgm6uS6k8iwhIwTrcP0m17TL1n1sy7qD0qelDu4XNeW0dN0mHfa+Gei211yDaLoEe/VlbXQzM4Bg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/generator": "^7.11.6", - "@babel/helper-module-transforms": "^7.11.0", - "@babel/helpers": "^7.10.4", - "@babel/parser": "^7.11.5", - "@babel/template": "^7.10.4", - "@babel/traverse": "^7.11.5", - "@babel/types": "^7.11.5", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.2", - "lodash": "^4.17.19", - "resolve": "^1.3.2", - "semver": "^5.4.1", - "source-map": "^0.5.0" - }, - "dependencies": { - "json5": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", - "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "@babel/generator": { - "version": "7.11.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.11.6.tgz", - "integrity": "sha512-DWtQ1PV3r+cLbySoHrwn9RWEgKMBLLma4OBQloPRyDYvc5msJM9kvTLo1YnlJd1P/ZuKbdli3ijr5q3FvAF3uA==", - "dev": true, - "requires": { - "@babel/types": "^7.11.5", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "@babel/helper-function-name": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz", - "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==", - "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.10.4", - "@babel/template": "^7.10.4", - "@babel/types": "^7.10.4" - } - }, - "@babel/helper-get-function-arity": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz", - "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==", - "dev": true, - "requires": { - "@babel/types": "^7.10.4" - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.11.0", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.11.0.tgz", - "integrity": "sha512-JbFlKHFntRV5qKw3YC0CvQnDZ4XMwgzzBbld7Ly4Mj4cbFy3KywcR8NtNctRToMWJOVvLINJv525Gd6wwVEx/Q==", - "dev": true, - "requires": { - "@babel/types": "^7.11.0" - } - }, - "@babel/helper-module-imports": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.4.tgz", - "integrity": "sha512-nEQJHqYavI217oD9+s5MUBzk6x1IlvoS9WTPfgG43CbMEeStE0v+r+TucWdx8KFGowPGvyOkDT9+7DHedIDnVw==", - "dev": true, - "requires": { - "@babel/types": "^7.10.4" - } - }, - "@babel/helper-module-transforms": { - "version": "7.11.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.11.0.tgz", - "integrity": "sha512-02EVu8COMuTRO1TAzdMtpBPbe6aQ1w/8fePD2YgQmxZU4gpNWaL9gK3Jp7dxlkUlUCJOTaSeA+Hrm1BRQwqIhg==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.10.4", - "@babel/helper-replace-supers": "^7.10.4", - "@babel/helper-simple-access": "^7.10.4", - "@babel/helper-split-export-declaration": "^7.11.0", - "@babel/template": "^7.10.4", - "@babel/types": "^7.11.0", - "lodash": "^4.17.19" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.4.tgz", - "integrity": "sha512-n3UGKY4VXwXThEiKrgRAoVPBMqeoPgHVqiHZOanAJCG9nQUL2pLRQirUzl0ioKclHGpGqRgIOkgcIJaIWLpygg==", - "dev": true, - "requires": { - "@babel/types": "^7.10.4" - } - }, - "@babel/helper-replace-supers": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.4.tgz", - "integrity": "sha512-sPxZfFXocEymYTdVK1UNmFPBN+Hv5mJkLPsYWwGBxZAxaWfFu+xqp7b6qWD0yjNuNL2VKc6L5M18tOXUP7NU0A==", - "dev": true, - "requires": { - "@babel/helper-member-expression-to-functions": "^7.10.4", - "@babel/helper-optimise-call-expression": "^7.10.4", - "@babel/traverse": "^7.10.4", - "@babel/types": "^7.10.4" - } - }, - "@babel/helper-simple-access": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.4.tgz", - "integrity": "sha512-0fMy72ej/VEvF8ULmX6yb5MtHG4uH4Dbd6I/aHDb/JVg0bbivwt9Wg+h3uMvX+QSFtwr5MeItvazbrc4jtRAXw==", - "dev": true, - "requires": { - "@babel/template": "^7.10.4", - "@babel/types": "^7.10.4" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.11.0", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz", - "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==", - "dev": true, - "requires": { - "@babel/types": "^7.11.0" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz", - "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==", - "dev": true - }, - "@babel/helpers": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.10.4.tgz", - "integrity": "sha512-L2gX/XeUONeEbI78dXSrJzGdz4GQ+ZTA/aazfUsFaWjSe95kiCuOZ5HsXvkiw3iwF+mFHSRUfJU8t6YavocdXA==", - "dev": true, - "requires": { - "@babel/template": "^7.10.4", - "@babel/traverse": "^7.10.4", - "@babel/types": "^7.10.4" - } - }, - "@babel/highlight": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", - "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.4", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - } - } - }, - "@babel/parser": { - "version": "7.11.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz", - "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==", - "dev": true - }, - "@babel/template": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz", - "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/parser": "^7.10.4", - "@babel/types": "^7.10.4" - } - }, - "@babel/traverse": { - "version": "7.11.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.11.5.tgz", - "integrity": "sha512-EjiPXt+r7LiCZXEfRpSJd+jUMnBd4/9OUv7Nx3+0u9+eimMwJmG0Q98lw4/289JCoxSE8OolDMNZaaF/JZ69WQ==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/generator": "^7.11.5", - "@babel/helper-function-name": "^7.10.4", - "@babel/helper-split-export-declaration": "^7.11.0", - "@babel/parser": "^7.11.5", - "@babel/types": "^7.11.5", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.19" - }, - "dependencies": { - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - } - } - }, - "@babel/types": { - "version": "7.11.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz", - "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.4", - "lodash": "^4.17.19", - "to-fast-properties": "^2.0.0" - } - }, - "@concordance/react": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@concordance/react/-/react-2.0.0.tgz", - "integrity": "sha512-huLSkUuM2/P+U0uy2WwlKuixMsTODD8p4JVQBI4VKeopkiN0C7M3N9XYVawb4M+4spN5RrO/eLhk7KoQX6nsfA==", - "dev": true, - "requires": { - "arrify": "^1.0.1" - }, - "dependencies": { - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true - } - } - }, - "@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "requires": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - } - }, - "@istanbuljs/schema": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", - "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", - "dev": true - }, - "@nodelib/fs.scandir": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz", - "integrity": "sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.3", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz", - "integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz", - "integrity": "sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.3", - "fastq": "^1.6.0" - } - }, - "@sindresorhus/is": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", - "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", - "dev": true - }, - "@szmarczak/http-timer": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", - "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", - "dev": true, - "requires": { - "defer-to-connect": "^1.0.1" - } - }, - "@types/color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", - "dev": true - }, - "@types/glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-SEYeGAIQIQX8NN6LDKprLjbrd5dARM5EXsd8GI/A5l0apYI1fGMWgPHSe4ZKL4eozlAyI+doUE9XbYS4xCkQ1w==", - "dev": true, - "requires": { - "@types/minimatch": "*", - "@types/node": "*" - } - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", - "dev": true - }, - "@types/minimatch": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", - "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==", - "dev": true - }, - "@types/node": { - "version": "14.11.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.11.2.tgz", - "integrity": "sha512-jiE3QIxJ8JLNcb1Ps6rDbysDhN4xa8DJJvuC9prr6w+1tIh+QAbYyNF3tyiZNLDBIuBCf4KEcV2UvQm/V60xfA==", - "dev": true - }, - "@types/normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", - "dev": true - }, - "@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", - "dev": true - }, - "acorn": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.0.1.tgz", - "integrity": "sha512-dmKn4pqZ29iQl2Pvze1zTrps2luvls2PBY//neO2WJ0s10B3AxJXshN+Ph7B4GrhfGhHXrl4dnUwyNNXQcnWGQ==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", - "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", - "dev": true - }, - "acorn-walk": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.0.0.tgz", - "integrity": "sha512-oZRad/3SMOI/pxbbmqyurIx7jHw1wZDcR9G44L8pUVFEomX/0dH89SrM1KaDXuv1NpzAXz6Op/Xu/Qd5XXzdEA==", - "dev": true - }, - "aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "requires": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - } - }, - "ajv": { - "version": "6.12.5", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.5.tgz", - "integrity": "sha512-lRF8RORchjpKG50/WFf8xmg7sgCLFiYNNnqdKflk63whMQcWR5ngGjiSXkL9bjxy6B2npOK2HSMN49jEBMSkag==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-align": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", - "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", - "dev": true, - "requires": { - "string-width": "^3.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true - }, - "ansi-escapes": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", - "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", - "dev": true, - "requires": { - "type-fest": "^0.11.0" - }, - "dependencies": { - "type-fest": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz", - "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==", - "dev": true - } - } - }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "anymatch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", - "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "append-transform": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-2.0.0.tgz", - "integrity": "sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==", - "dev": true, - "requires": { - "default-require-extensions": "^3.0.0" - } - }, - "archy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", - "dev": true - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", - "dev": true - }, - "array-includes": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.1.tgz", - "integrity": "sha512-c2VXaCHl7zPsvpkFsw4nxvFie4fh1ur9bpcgsVkIjqn0H/Xwdg+7fv3n2r/isyS8EBj5b06M9kHyZuIr4El6WQ==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.0", - "is-string": "^1.0.5" - } - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true - }, - "array.prototype.flat": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.3.tgz", - "integrity": "sha512-gBlRZV0VSmfPIeWfuuy56XZMvbVfbEUnOXUvt3F/eUUUSyzlgLxhEX4YAEpxNAogRGehPSnfXyPtYyKAhkzQhQ==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.0-next.1" - } - }, - "arrgv": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/arrgv/-/arrgv-1.0.2.tgz", - "integrity": "sha512-a4eg4yhp7mmruZDQFqVMlxNRFGi/i1r87pt8SDHy0/I8PqSXoUTlWZRdAZo0VXgvEARcujbtTk8kiZRi1uDGRw==", - "dev": true - }, - "arrify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", - "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", - "dev": true - }, - "asn1.js": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", - "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "safer-buffer": "^2.1.0" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", - "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", - "dev": true, - "requires": { - "object-assign": "^4.1.1", - "util": "0.10.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", - "dev": true, - "requires": { - "inherits": "2.0.1" - } - } - } - }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true - }, - "ava": { - "version": "3.12.1", - "resolved": "https://registry.npmjs.org/ava/-/ava-3.12.1.tgz", - "integrity": "sha512-cS41+X+UfrcPed+CIgne/YV/6eWxaUjHEPH+W8WvNSqWTWku5YitjZGE5cMHFuJxwHELdR541xTBRn8Uwi4PSw==", - "dev": true, - "requires": { - "@concordance/react": "^2.0.0", - "acorn": "^8.0.1", - "acorn-walk": "^8.0.0", - "ansi-styles": "^4.2.1", - "arrgv": "^1.0.2", - "arrify": "^2.0.1", - "callsites": "^3.1.0", - "chalk": "^4.1.0", - "chokidar": "^3.4.2", - "chunkd": "^2.0.1", - "ci-info": "^2.0.0", - "ci-parallel-vars": "^1.0.1", - "clean-yaml-object": "^0.1.0", - "cli-cursor": "^3.1.0", - "cli-truncate": "^2.1.0", - "code-excerpt": "^3.0.0", - "common-path-prefix": "^3.0.0", - "concordance": "^5.0.1", - "convert-source-map": "^1.7.0", - "currently-unhandled": "^0.4.1", - "debug": "^4.1.1", - "del": "^5.1.0", - "emittery": "^0.7.1", - "equal-length": "^1.0.0", - "figures": "^3.2.0", - "globby": "^11.0.1", - "ignore-by-default": "^2.0.0", - "import-local": "^3.0.2", - "indent-string": "^4.0.0", - "is-error": "^2.2.2", - "is-plain-object": "^4.1.1", - "is-promise": "^4.0.0", - "lodash": "^4.17.20", - "matcher": "^3.0.0", - "md5-hex": "^3.0.1", - "mem": "^6.1.0", - "ms": "^2.1.2", - "ora": "^5.0.0", - "p-map": "^4.0.0", - "picomatch": "^2.2.2", - "pkg-conf": "^3.1.0", - "plur": "^4.0.0", - "pretty-ms": "^7.0.0", - "read-pkg": "^5.2.0", - "resolve-cwd": "^3.0.0", - "slash": "^3.0.0", - "source-map-support": "^0.5.19", - "stack-utils": "^2.0.2", - "strip-ansi": "^6.0.0", - "supertap": "^1.0.0", - "temp-dir": "^2.0.0", - "trim-off-newlines": "^1.0.1", - "update-notifier": "^4.1.1", - "write-file-atomic": "^3.0.3", - "yargs": "^15.4.1" - } - }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "base64-js": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", - "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==", - "dev": true - }, - "binary-extensions": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz", - "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==", - "dev": true - }, - "blueimp-md5": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.18.0.tgz", - "integrity": "sha512-vE52okJvzsVWhcgUHOv+69OG3Mdg151xyn41aVQN/5W5S+S43qZhxECtYLAEHMSFWX6Mv5IZrzj3T5+JqXfj5Q==", - "dev": true - }, - "bn.js": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.1.3.tgz", - "integrity": "sha512-GkTiFpjFtUzU9CbMeJ5iazkCzGL3jrhzerzZIuqLABjbwRaFt33I9tUdSNryIptM+RxDet6OKm2WnLXzW51KsQ==", - "dev": true - }, - "boxen": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", - "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", - "dev": true, - "requires": { - "ansi-align": "^3.0.0", - "camelcase": "^5.3.1", - "chalk": "^3.0.0", - "cli-boxes": "^2.2.0", - "string-width": "^4.1.0", - "term-size": "^2.1.0", - "type-fest": "^0.8.1", - "widest-line": "^3.1.0" - }, - "dependencies": { - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", - "dev": true - }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "requires": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "browserify-rsa": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", - "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "randombytes": "^2.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "browserify-sign": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", - "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", - "dev": true, - "requires": { - "bn.js": "^5.1.1", - "browserify-rsa": "^4.0.1", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "elliptic": "^6.5.3", - "inherits": "^2.0.4", - "parse-asn1": "^5.1.5", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - } - } - }, - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "requires": { - "pako": "~1.0.5" - } - }, - "buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", - "dev": true, - "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true - }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", - "dev": true - }, - "builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", - "dev": true - }, - "cacheable-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", - "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", - "dev": true, - "requires": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "dependencies": { - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "dev": true - } - } - }, - "caching-transform": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", - "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==", - "dev": true, - "requires": { - "hasha": "^5.0.0", - "make-dir": "^3.0.0", - "package-hash": "^4.0.0", - "write-file-atomic": "^3.0.0" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "chardet": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true - }, - "chokidar": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.2.tgz", - "integrity": "sha512-IZHaDeBeI+sZJRX7lGcXsdzgvZqKv6sECqsbErJA4mHWfpRrD8B97kSFN4cQz6nGBGiuFia1MKR4d6c1o8Cv7A==", - "dev": true, - "requires": { - "anymatch": "~3.1.1", - "braces": "~3.0.2", - "fsevents": "~2.1.2", - "glob-parent": "~5.1.0", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.4.0" - } - }, - "chunkd": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/chunkd/-/chunkd-2.0.1.tgz", - "integrity": "sha512-7d58XsFmOq0j6el67Ug9mHf9ELUXsQXYJBkyxhH/k+6Ke0qXRnv0kbemx+Twc6fRJ07C49lcbdgm9FL1Ei/6SQ==", - "dev": true - }, - "ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "dev": true - }, - "ci-parallel-vars": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ci-parallel-vars/-/ci-parallel-vars-1.0.1.tgz", - "integrity": "sha512-uvzpYrpmidaoxvIQHM+rKSrigjOe9feHYbw4uOI2gdfe1C3xIlxO+kVXq83WQWNniTf8bAxVpy+cQeFQsMERKg==", - "dev": true - }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true - }, - "clean-yaml-object": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/clean-yaml-object/-/clean-yaml-object-0.1.0.tgz", - "integrity": "sha1-Y/sRDcLOGoTcIfbZM0h20BCui2g=", - "dev": true - }, - "cli-boxes": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", - "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", - "dev": true - }, - "cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "requires": { - "restore-cursor": "^3.1.0" - } - }, - "cli-spinners": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.4.0.tgz", - "integrity": "sha512-sJAofoarcm76ZGpuooaO0eDy8saEy+YoZBLjC4h8srt4jeBnkYeOgqxgsJQTpyt2LjI5PTfLJHSL+41Yu4fEJA==", - "dev": true - }, - "cli-truncate": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", - "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", - "dev": true, - "requires": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - } - }, - "cli-width": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", - "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", - "dev": true - }, - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true - }, - "clone-response": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", - "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", - "dev": true, - "requires": { - "mimic-response": "^1.0.0" - } - }, - "code-excerpt": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-3.0.0.tgz", - "integrity": "sha512-VHNTVhd7KsLGOqfX3SyeO8RyYPMp1GJOg194VITk04WMYCv4plV68YWe6TJZxd9MhobjtpMRnVky01gqZsalaw==", - "dev": true, - "requires": { - "convert-to-spaces": "^1.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "colorette": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", - "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==", - "dev": true - }, - "commander": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-6.1.0.tgz", - "integrity": "sha512-wl7PNrYWd2y5mp1OK/LhTlv8Ff4kQJQRXXAvF+uU/TPNiVJUxZLRYGj/B0y/lPGAVcSbJqH2Za/cvHmrPMC8mA==", - "dev": true - }, - "common-path-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz", - "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==", - "dev": true - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, - "compare-module-exports": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/compare-module-exports/-/compare-module-exports-2.1.0.tgz", - "integrity": "sha512-3Lc0sTIuX1jmY2K2RrXRJOND6KsRTX2D4v3+eu1PDptsuJZVK4LZc852eZa9I+avj0NrUKlTNgqvccNOH6mbGg==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, - "concordance": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/concordance/-/concordance-5.0.1.tgz", - "integrity": "sha512-TbNtInKVElgEBnJ1v2Xg+MFX2lvFLbmlv3EuSC5wTfCwpB8kC3w3mffF6cKuUhkn475Ym1f1I4qmuXzx2+uXpw==", - "dev": true, - "requires": { - "date-time": "^3.1.0", - "esutils": "^2.0.3", - "fast-diff": "^1.2.0", - "js-string-escape": "^1.0.1", - "lodash": "^4.17.15", - "md5-hex": "^3.0.1", - "semver": "^7.3.2", - "well-known-symbols": "^2.0.0" - } - }, - "configstore": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", - "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", - "dev": true, - "requires": { - "dot-prop": "^5.2.0", - "graceful-fs": "^4.1.2", - "make-dir": "^3.0.0", - "unique-string": "^2.0.0", - "write-file-atomic": "^3.0.0", - "xdg-basedir": "^4.0.0" - } - }, - "console-browserify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", - "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", - "dev": true - }, - "constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", - "dev": true - }, - "contains-path": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz", - "integrity": "sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=", - "dev": true - }, - "convert-source-map": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", - "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "convert-to-spaces": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-1.0.2.tgz", - "integrity": "sha1-fj5Iu+bZl7FBfdyihoIEtNPYVxU=", - "dev": true - }, - "core-js": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz", - "integrity": "sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==", - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - }, - "cosmiconfig": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz", - "integrity": "sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==", - "dev": true, - "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - }, - "dependencies": { - "parse-json": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.1.0.tgz", - "integrity": "sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - } - } - }, - "create-ecdh": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", - "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "elliptic": "^6.5.3" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - } - }, - "crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", - "dev": true - }, - "currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", - "dev": true, - "requires": { - "array-find-index": "^1.0.1" - } - }, - "date-time": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/date-time/-/date-time-3.1.0.tgz", - "integrity": "sha512-uqCUKXE5q1PNBXjPqvwhwJf9SwMoAHBgWJ6DcrnS5o+W2JOiIILl0JEdVD8SGujrNS02GGxgwAg2PN2zONgtjg==", - "dev": true, - "requires": { - "time-zone": "^1.0.0" - } - }, - "debug": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", - "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - }, - "decompress-response": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", - "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", - "dev": true, - "requires": { - "mimic-response": "^1.0.0" - } - }, - "dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=", - "dev": true - }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true - }, - "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, - "default-require-extensions": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz", - "integrity": "sha512-ek6DpXq/SCpvjhpFsLFRVtIxJCRw6fUR42lYMVZuUMK7n8eMz4Uh5clckdBjEpLhn/gEBZo7hDJnJcwdKLKQjg==", - "dev": true, - "requires": { - "strip-bom": "^4.0.0" - }, - "dependencies": { - "strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true - } - } - }, - "defaults": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", - "dev": true, - "requires": { - "clone": "^1.0.2" - } - }, - "defer-to-connect": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", - "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", - "dev": true - }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "requires": { - "object-keys": "^1.0.12" - } - }, - "del": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/del/-/del-5.1.0.tgz", - "integrity": "sha512-wH9xOVHnczo9jN2IW68BabcecVPxacIA3g/7z6vhSU/4stOKQzeCRK0yD0A24WiAAUJmmVpWqrERcTxnLo3AnA==", - "dev": true, - "requires": { - "globby": "^10.0.1", - "graceful-fs": "^4.2.2", - "is-glob": "^4.0.1", - "is-path-cwd": "^2.2.0", - "is-path-inside": "^3.0.1", - "p-map": "^3.0.0", - "rimraf": "^3.0.0", - "slash": "^3.0.0" - }, - "dependencies": { - "globby": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", - "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", - "dev": true, - "requires": { - "@types/glob": "^7.1.1", - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.0.3", - "glob": "^7.1.3", - "ignore": "^5.1.1", - "merge2": "^1.2.3", - "slash": "^3.0.0" - } - }, - "p-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", - "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", - "dev": true, - "requires": { - "aggregate-error": "^3.0.0" - } - } - } - }, - "des.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", - "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "requires": { - "path-type": "^4.0.0" - } - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true - }, - "dot-prop": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", - "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", - "dev": true, - "requires": { - "is-obj": "^2.0.0" - } - }, - "duplexer3": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", - "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", - "dev": true - }, - "elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", - "dev": true, - "requires": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - } - } - }, - "emittery": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.1.tgz", - "integrity": "sha512-d34LN4L6h18Bzz9xpoku2nPwKxCPlPMr3EEKTkoEBi+1/+b0lcRkRJ1UVyyZaKNeqGR3swcGl6s390DNO4YVgQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, - "enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, - "requires": { - "ansi-colors": "^4.1.1" - } - }, - "equal-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/equal-length/-/equal-length-1.0.1.tgz", - "integrity": "sha1-IcoRLUirJLTh5//A5TOdMf38J0w=", - "dev": true - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.17.6", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.6.tgz", - "integrity": "sha512-Fr89bON3WFyUi5EvAeI48QTWX0AyekGgLA8H+c+7fbfCkJwRWRMLd8CQedNEyJuoYYhmtEqY92pgte1FAhBlhw==", - "dev": true, - "requires": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.0", - "is-regex": "^1.1.0", - "object-inspect": "^1.7.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.0", - "string.prototype.trimend": "^1.0.1", - "string.prototype.trimstart": "^1.0.1" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", - "dev": true - }, - "escape-goat": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", - "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "eslint": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", - "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "ajv": "^6.10.0", - "chalk": "^2.1.0", - "cross-spawn": "^6.0.5", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "eslint-scope": "^5.0.0", - "eslint-utils": "^1.4.3", - "eslint-visitor-keys": "^1.1.0", - "espree": "^6.1.2", - "esquery": "^1.0.1", - "esutils": "^2.0.2", - "file-entry-cache": "^5.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^12.1.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "inquirer": "^7.0.0", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.3.0", - "lodash": "^4.17.14", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", - "natural-compare": "^1.4.0", - "optionator": "^0.8.3", - "progress": "^2.0.0", - "regexpp": "^2.0.1", - "semver": "^6.1.2", - "strip-ansi": "^5.2.0", - "strip-json-comments": "^3.0.1", - "table": "^5.2.3", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - } - } - }, - "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - } - } - }, - "eslint-config-shellscape": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-shellscape/-/eslint-config-shellscape-2.1.0.tgz", - "integrity": "sha512-FRIx9ZWNdOsP4rAAHSK3bGwzxizIUAmFSlpMIvTHA841xazV3gZlAtkwVn0p/Hpl1MloQmvkty5aBFBfvWJvqQ==", - "dev": true, - "requires": { - "eslint": "^6.2.2", - "eslint-plugin-import": "^2.14.0", - "eslint-plugin-prettier": "^3.1.0", - "prettier": "^1.14.2" - }, - "dependencies": { - "prettier": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", - "dev": true - } - } - }, - "eslint-import-resolver-node": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz", - "integrity": "sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==", - "dev": true, - "requires": { - "debug": "^2.6.9", - "resolve": "^1.13.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "eslint-module-utils": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz", - "integrity": "sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA==", - "dev": true, - "requires": { - "debug": "^2.6.9", - "pkg-dir": "^2.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "requires": { - "find-up": "^2.1.0" - } - } - } - }, - "eslint-plugin-import": { - "version": "2.22.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.22.0.tgz", - "integrity": "sha512-66Fpf1Ln6aIS5Gr/55ts19eUuoDhAbZgnr6UxK5hbDx6l/QgQgx61AePq+BV4PP2uXQFClgMVzep5zZ94qqsxg==", - "dev": true, - "requires": { - "array-includes": "^3.1.1", - "array.prototype.flat": "^1.2.3", - "contains-path": "^0.1.0", - "debug": "^2.6.9", - "doctrine": "1.5.0", - "eslint-import-resolver-node": "^0.3.3", - "eslint-module-utils": "^2.6.0", - "has": "^1.0.3", - "minimatch": "^3.0.4", - "object.values": "^1.1.1", - "read-pkg-up": "^2.0.0", - "resolve": "^1.17.0", - "tsconfig-paths": "^3.9.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "doctrine": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz", - "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", - "dev": true, - "requires": { - "esutils": "^2.0.2", - "isarray": "^1.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "eslint-plugin-prettier": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.4.tgz", - "integrity": "sha512-jZDa8z76klRqo+TdGDTFJSavwbnWK2ZpqGKNZ+VvweMW516pDUMmQ2koXvxEE4JhzNvTv+radye/bWGBmA6jmg==", - "dev": true, - "requires": { - "prettier-linter-helpers": "^1.0.0" - } - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "eslint-utils": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", - "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^1.1.0" - } - }, - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true - }, - "espree": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz", - "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==", - "dev": true, - "requires": { - "acorn": "^7.1.1", - "acorn-jsx": "^5.2.0", - "eslint-visitor-keys": "^1.1.0" - }, - "dependencies": { - "acorn": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz", - "integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==", - "dev": true - } - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "esquery": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz", - "integrity": "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } - } - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "events": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.2.0.tgz", - "integrity": "sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg==", - "dev": true - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, - "execa": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.3.tgz", - "integrity": "sha512-WFDXGHckXPWZX19t1kCsXzOpqX9LWYNqn4C+HqZlk/V0imTkzJZqf87ZBhvpHaftERYknpk0fjSylnXVlVgI0A==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" - }, - "dependencies": { - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } - } - }, - "external-editor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", - "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", - "dev": true, - "requires": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - } - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "fast-glob": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.4.tgz", - "integrity": "sha512-kr/Oo6PX51265qeuCYsyGypiO5uJFgBS0jksyG7FUeCyQzNwYnzrNIMR1NXfkZXsMYXYLRAHgISHBz8gQcxKHQ==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.0", - "merge2": "^1.3.0", - "micromatch": "^4.0.2", - "picomatch": "^2.2.1" - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, - "fastq": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.8.0.tgz", - "integrity": "sha512-SMIZoZdLh/fgofivvIkmknUXyPnvxRE3DhtZ5Me3Mrsk5gyPL42F0xr51TdRXskBxHfMp+07bcYzfsYEsSQA9Q==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, - "file-entry-cache": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", - "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", - "dev": true, - "requires": { - "flat-cache": "^2.0.1" - } - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-cache-dir": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz", - "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - } - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", - "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", - "dev": true, - "requires": { - "flatted": "^2.0.0", - "rimraf": "2.6.3", - "write": "1.0.3" - }, - "dependencies": { - "rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } - } - }, - "flatted": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", - "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", - "dev": true - }, - "foreground-child": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", - "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.0", - "signal-exit": "^3.0.2" - }, - "dependencies": { - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } - } - }, - "fromentries": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.2.1.tgz", - "integrity": "sha512-Xu2Qh8yqYuDhQGOhD5iJGninErSfI9A3FrriD3tjUgV5VbJFeH8vfgZ9HnC6jWN80QDVNQK5vmxRAmEAp7Mevw==", - "dev": true - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "fsevents": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", - "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true - }, - "gensync": { - "version": "1.0.0-beta.1", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", - "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-own-enumerable-property-symbols": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", - "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==", - "dev": true - }, - "get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", - "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "global-dirs": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz", - "integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==", - "dev": true, - "requires": { - "ini": "^1.3.5" - } - }, - "globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", - "dev": true, - "requires": { - "type-fest": "^0.8.1" - }, - "dependencies": { - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true - } - } - }, - "globby": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.1.tgz", - "integrity": "sha512-iH9RmgwCmUJHi2z5o2l3eTtGBtXek1OYlHrbcxOYugyHLmAsZrPj43OtHThd62Buh/Vv6VyCBD2bdyWcGNQqoQ==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - } - }, - "got": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", - "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", - "dev": true, - "requires": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - } - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-symbols": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", - "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", - "dev": true - }, - "has-yarn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", - "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", - "dev": true - }, - "hash-base": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", - "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", - "dev": true, - "requires": { - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - } - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "hasha": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.0.tgz", - "integrity": "sha512-2W+jKdQbAdSIrggA8Q35Br8qKadTrqCTC8+XZvBWepKDK6m9XkX6Iz1a2yh2KP01kzAR/dpuMeUnocoLYDcskw==", - "dev": true, - "requires": { - "is-stream": "^2.0.0", - "type-fest": "^0.8.0" - }, - "dependencies": { - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true - } - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "dev": true, - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "hosted-git-info": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", - "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", - "dev": true - }, - "html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "http-cache-semantics": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", - "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", - "dev": true - }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, - "human-signals": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", - "dev": true - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", - "dev": true - }, - "ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true - }, - "ignore-by-default": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-2.0.0.tgz", - "integrity": "sha512-+mQSgMRiFD3L3AOxLYOCxjIq4OnAmo5CIuC+lj5ehCJcPtV++QacEV7FdpzvYxH6DaOySWzQU6RR0lPLy37ckA==", - "dev": true - }, - "import-fresh": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", - "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - } - } - }, - "import-lazy": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", - "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", - "dev": true - }, - "import-local": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", - "integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true - }, - "inquirer": { - "version": "7.3.3", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.3.3.tgz", - "integrity": "sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==", - "dev": true, - "requires": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.19", - "mute-stream": "0.0.8", - "run-async": "^2.4.0", - "rxjs": "^6.6.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6" - } - }, - "irregular-plurals": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.2.0.tgz", - "integrity": "sha512-YqTdPLfwP7YFN0SsD3QUVCkm9ZG2VzOXv3DOrw5G5mkMbVwptTwVcFv7/C0vOpBmgTxAeTG19XpUs1E522LW9Q==", - "dev": true - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-callable": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.2.tgz", - "integrity": "sha512-dnMqspv5nU3LoewK2N/y7KLtxtakvTuaCsU9FU50/QDmdbHNy/4/JuRtMHqRU22o3q+W89YQndQEeCVwK+3qrA==", - "dev": true - }, - "is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dev": true, - "requires": { - "ci-info": "^2.0.0" - } - }, - "is-date-object": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", - "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", - "dev": true - }, - "is-error": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/is-error/-/is-error-2.2.2.tgz", - "integrity": "sha512-IOQqts/aHWbiisY5DuPJQ0gcbvaLFCa7fBa9xoLfxBZvQ+ZI/Zh9xoI7Gk+G64N0FdK4AbibytHht2tWgpJWLg==", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-installed-globally": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", - "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", - "dev": true, - "requires": { - "global-dirs": "^2.0.1", - "is-path-inside": "^3.0.1" - } - }, - "is-interactive": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", - "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", - "dev": true - }, - "is-negative-zero": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.0.tgz", - "integrity": "sha1-lVOxIbD6wohp2p7UWeIMdUN4hGE=", - "dev": true - }, - "is-npm": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", - "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", - "dev": true - }, - "is-path-cwd": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", - "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", - "dev": true - }, - "is-path-inside": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz", - "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==", - "dev": true - }, - "is-plain-object": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-4.1.1.tgz", - "integrity": "sha512-5Aw8LLVsDlZsETVMhoMXzqsXwQqr/0vlnBYzIXJbYo2F4yYlhLHs+Ez7Bod7IIQKWkJbJfxrWD7pA1Dw1TKrwA==", - "dev": true - }, - "is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true - }, - "is-regex": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz", - "integrity": "sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg==", - "dev": true, - "requires": { - "has-symbols": "^1.0.1" - } - }, - "is-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", - "integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk=", - "dev": true - }, - "is-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", - "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", - "dev": true - }, - "is-string": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz", - "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==", - "dev": true - }, - "is-symbol": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", - "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", - "dev": true, - "requires": { - "has-symbols": "^1.0.1" - } - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "is-url-superb": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-url-superb/-/is-url-superb-4.0.0.tgz", - "integrity": "sha512-GI+WjezhPPcbM+tqE9LnmsY5qqjwHzTvjJ36wxYX5ujNXefSUJ/T17r5bqDV8yLhcgB59KTPNOc9O9cmHTPWsA==" - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, - "is-yarn-global": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", - "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "istanbul-lib-coverage": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", - "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", - "dev": true - }, - "istanbul-lib-hook": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz", - "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==", - "dev": true, - "requires": { - "append-transform": "^2.0.0" - } - }, - "istanbul-lib-instrument": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", - "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", - "dev": true, - "requires": { - "@babel/core": "^7.7.5", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.0.0", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "istanbul-lib-processinfo": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz", - "integrity": "sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw==", - "dev": true, - "requires": { - "archy": "^1.0.0", - "cross-spawn": "^7.0.0", - "istanbul-lib-coverage": "^3.0.0-alpha.1", - "make-dir": "^3.0.0", - "p-map": "^3.0.0", - "rimraf": "^3.0.0", - "uuid": "^3.3.3" - }, - "dependencies": { - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "p-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", - "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", - "dev": true, - "requires": { - "aggregate-error": "^3.0.0" - } - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } - } - }, - "istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "istanbul-lib-source-maps": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", - "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", - "dev": true, - "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - } - }, - "istanbul-reports": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz", - "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==", - "dev": true, - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - } - }, - "js-string-escape": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", - "integrity": "sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "js-yaml": { - "version": "3.14.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", - "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true - }, - "json-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", - "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true - }, - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - }, - "keyv": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", - "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", - "dev": true, - "requires": { - "json-buffer": "3.0.0" - } - }, - "latest-version": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", - "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", - "dev": true, - "requires": { - "package-json": "^6.3.0" - } - }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, - "lines-and-columns": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", - "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", - "dev": true - }, - "lint-staged": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.4.0.tgz", - "integrity": "sha512-uaiX4U5yERUSiIEQc329vhCTDDwUcSvKdRLsNomkYLRzijk3v8V9GWm2Nz0RMVB87VcuzLvtgy6OsjoH++QHIg==", - "dev": true, - "requires": { - "chalk": "^4.1.0", - "cli-truncate": "^2.1.0", - "commander": "^6.0.0", - "cosmiconfig": "^7.0.0", - "debug": "^4.1.1", - "dedent": "^0.7.0", - "enquirer": "^2.3.6", - "execa": "^4.0.3", - "listr2": "^2.6.0", - "log-symbols": "^4.0.0", - "micromatch": "^4.0.2", - "normalize-path": "^3.0.0", - "please-upgrade-node": "^3.2.0", - "string-argv": "0.3.1", - "stringify-object": "^3.3.0" - } - }, - "listr2": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-2.6.2.tgz", - "integrity": "sha512-6x6pKEMs8DSIpA/tixiYY2m/GcbgMplMVmhQAaLFxEtNSKLeWTGjtmU57xvv6QCm2XcqzyNXL/cTSVf4IChCRA==", - "dev": true, - "requires": { - "chalk": "^4.1.0", - "cli-truncate": "^2.1.0", - "figures": "^3.2.0", - "indent-string": "^4.0.0", - "log-update": "^4.0.0", - "p-map": "^4.0.0", - "rxjs": "^6.6.2", - "through": "^2.3.8" - } - }, - "load-json-file": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.3.0.tgz", - "integrity": "sha512-cJGP40Jc/VXUsp8/OrnyKyTZ1y6v/dphm3bioS+RrKXjK2BB6wHUd6JptZEFDGgGahMT+InnZO5i1Ei9mpC8Bw==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.15", - "parse-json": "^4.0.0", - "pify": "^4.0.1", - "strip-bom": "^3.0.0", - "type-fest": "^0.3.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "lodash": { - "version": "4.17.20", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", - "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", - "dev": true - }, - "lodash._reinterpolate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", - "dev": true - }, - "lodash.flattendeep": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", - "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", - "dev": true - }, - "lodash.some": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.some/-/lodash.some-4.6.0.tgz", - "integrity": "sha1-G7nzFO9ri63tE7VJFpsqlF62jk0=", - "dev": true - }, - "lodash.template": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", - "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", - "dev": true, - "requires": { - "lodash._reinterpolate": "^3.0.0", - "lodash.templatesettings": "^4.0.0" - } - }, - "lodash.templatesettings": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", - "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", - "dev": true, - "requires": { - "lodash._reinterpolate": "^3.0.0" - } - }, - "log-symbols": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", - "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", - "dev": true, - "requires": { - "chalk": "^4.0.0" - } - }, - "log-update": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", - "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", - "dev": true, - "requires": { - "ansi-escapes": "^4.3.0", - "cli-cursor": "^3.1.0", - "slice-ansi": "^4.0.0", - "wrap-ansi": "^6.2.0" - }, - "dependencies": { - "slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - } - } - } - }, - "lowercase-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", - "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", - "dev": true - }, - "lru-cache": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", - "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", - "dev": true, - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "dev": true, - "requires": { - "p-defer": "^1.0.0" - } - }, - "matcher": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", - "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", - "dev": true, - "requires": { - "escape-string-regexp": "^4.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - } - } - }, - "md5-hex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-3.0.1.tgz", - "integrity": "sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==", - "dev": true, - "requires": { - "blueimp-md5": "^2.10.0" - } - }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "mem": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/mem/-/mem-6.1.1.tgz", - "integrity": "sha512-Ci6bIfq/UgcxPTYa8dQQ5FY3BzKkT894bwXWXxC/zqs0XgMO2cT20CGkOqda7gZNkmK5VP4x89IGZ6K7hfbn3Q==", - "dev": true, - "requires": { - "map-age-cleaner": "^0.1.3", - "mimic-fn": "^3.0.0" - }, - "dependencies": { - "mimic-fn": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz", - "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==", - "dev": true - } - } - }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "micromatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", - "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.0.5" - } - }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "mimic-response": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", - "dev": true - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "dev": true - }, - "nanoid": { - "version": "3.1.22", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.22.tgz", - "integrity": "sha512-/2ZUaJX2ANuLtTvqTlgqBQNJoQO398KyJgZloL0PZkC0dpysjncRUPsFe3DUPzz/y3h+u7C46np8RMuvF3jsSQ==", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", - "dev": true - }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, - "node-libs-browser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", - "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", - "dev": true, - "requires": { - "assert": "^1.1.1", - "browserify-zlib": "^0.2.0", - "buffer": "^4.3.0", - "console-browserify": "^1.1.0", - "constants-browserify": "^1.0.0", - "crypto-browserify": "^3.11.0", - "domain-browser": "^1.1.1", - "events": "^3.0.0", - "https-browserify": "^1.0.0", - "os-browserify": "^0.3.0", - "path-browserify": "0.0.1", - "process": "^0.11.10", - "punycode": "^1.2.4", - "querystring-es3": "^0.2.0", - "readable-stream": "^2.3.3", - "stream-browserify": "^2.0.1", - "stream-http": "^2.7.2", - "string_decoder": "^1.0.0", - "timers-browserify": "^2.0.4", - "tty-browserify": "0.0.0", - "url": "^0.11.0", - "util": "^0.11.0", - "vm-browserify": "^1.0.1" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - } - } - }, - "node-preload": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/node-preload/-/node-preload-0.2.1.tgz", - "integrity": "sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==", - "dev": true, - "requires": { - "process-on-spawn": "^1.0.0" - } - }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - } - } - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "normalize-url": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", - "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", - "dev": true - }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "requires": { - "path-key": "^3.0.0" - }, - "dependencies": { - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - } - } - }, - "nyc": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", - "integrity": "sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==", - "dev": true, - "requires": { - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "caching-transform": "^4.0.0", - "convert-source-map": "^1.7.0", - "decamelize": "^1.2.0", - "find-cache-dir": "^3.2.0", - "find-up": "^4.1.0", - "foreground-child": "^2.0.0", - "get-package-type": "^0.1.0", - "glob": "^7.1.6", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-hook": "^3.0.0", - "istanbul-lib-instrument": "^4.0.0", - "istanbul-lib-processinfo": "^2.0.2", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.0.2", - "make-dir": "^3.0.0", - "node-preload": "^0.2.1", - "p-map": "^3.0.0", - "process-on-spawn": "^1.0.0", - "resolve-from": "^5.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "spawn-wrap": "^2.0.0", - "test-exclude": "^6.0.0", - "yargs": "^15.0.2" - }, - "dependencies": { - "p-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", - "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", - "dev": true, - "requires": { - "aggregate-error": "^3.0.0" - } - } - } - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "object-inspect": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.8.0.tgz", - "integrity": "sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA==", - "dev": true - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object.assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.1.tgz", - "integrity": "sha512-VT/cxmx5yaoHSOTSyrCygIDFco+RsibY2NM0a4RdEeY/4KgqezwFtK1yr3U67xYhqJSlASm2pKhLVzPj2lr4bA==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.0", - "has-symbols": "^1.0.1", - "object-keys": "^1.1.1" - }, - "dependencies": { - "es-abstract": { - "version": "1.18.0-next.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.0.tgz", - "integrity": "sha512-elZXTZXKn51hUBdJjSZGYRujuzilgXo8vSPQzjGYXLvSlGiCo8VO8ZGV3kjo9a0WNJJ57hENagwbtlRuHuzkcQ==", - "dev": true, - "requires": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.0", - "is-negative-zero": "^2.0.0", - "is-regex": "^1.1.1", - "object-inspect": "^1.8.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.0", - "string.prototype.trimend": "^1.0.1", - "string.prototype.trimstart": "^1.0.1" - } - } - } - }, - "object.values": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.1.tgz", - "integrity": "sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.0-next.1", - "function-bind": "^1.1.1", - "has": "^1.0.3" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - } - }, - "ora": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ora/-/ora-5.1.0.tgz", - "integrity": "sha512-9tXIMPvjZ7hPTbk8DFq1f7Kow/HU/pQYB60JbNq+QnGwcyhWVZaQ4hM9zQDEsPxw/muLpgiHSaumUZxCAmod/w==", - "dev": true, - "requires": { - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.4.0", - "is-interactive": "^1.0.0", - "log-symbols": "^4.0.0", - "mute-stream": "0.0.8", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" - } - }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", - "dev": true - }, - "os-shim": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/os-shim/-/os-shim-0.1.3.tgz", - "integrity": "sha1-a2LDeRz3kJ6jXtRuF2WLtBfLORc=", - "dev": true - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true - }, - "p-cancelable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", - "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", - "dev": true - }, - "p-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", - "dev": true - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dev": true, - "requires": { - "aggregate-error": "^3.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "package-hash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-4.0.0.tgz", - "integrity": "sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.15", - "hasha": "^5.0.0", - "lodash.flattendeep": "^4.4.0", - "release-zalgo": "^1.0.0" - } - }, - "package-json": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", - "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", - "dev": true, - "requires": { - "got": "^9.6.0", - "registry-auth-token": "^4.0.0", - "registry-url": "^5.0.0", - "semver": "^6.2.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "dev": true - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "parse-asn1": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", - "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", - "dev": true, - "requires": { - "asn1.js": "^5.2.0", - "browserify-aes": "^1.0.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - } - }, - "parse-ms": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-2.1.0.tgz", - "integrity": "sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA==", - "dev": true - }, - "path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - }, - "pbkdf2": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.1.tgz", - "integrity": "sha512-4Ejy1OPxi9f2tt1rRV7Go7zmfDQ+ZectEQz3VGUQhgq62HtIRPDyG/JtnwIxs6x3uNMwo2V7q1fMvKjb+Tnpqg==", - "dev": true, - "requires": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "perfy": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/perfy/-/perfy-1.1.5.tgz", - "integrity": "sha512-/ieVBpMaPTJf83YTUl2TImsSwMEJ23qGP2w27pE6aX+NrB/ZRGqOnQZpl7J719yFwd+ebDiHguPNFeMSamyK7w==", - "dev": true - }, - "picomatch": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", - "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", - "dev": true - }, - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true - }, - "pkg-conf": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-3.1.0.tgz", - "integrity": "sha512-m0OTbR/5VPNPqO1ph6Fqbj7Hv6QU7gR/tQW40ZqrL1rjgCU85W6C1bJn0BItuJqnR98PWzw7Z8hHeChD1WrgdQ==", - "dev": true, - "requires": { - "find-up": "^3.0.0", - "load-json-file": "^5.2.0" - }, - "dependencies": { - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - } - } - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - } - }, - "please-upgrade-node": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz", - "integrity": "sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==", - "dev": true, - "requires": { - "semver-compare": "^1.0.0" - } - }, - "plur": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/plur/-/plur-4.0.0.tgz", - "integrity": "sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg==", - "dev": true, - "requires": { - "irregular-plurals": "^3.2.0" - } - }, - "postcss": { - "version": "8.2.9", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.2.9.tgz", - "integrity": "sha512-b+TmuIL4jGtCHtoLi+G/PisuIl9avxs8IZMSmlABRwNz5RLUUACrC+ws81dcomz1nRezm5YPdXiMEzBEKgYn+Q==", - "dev": true, - "requires": { - "colorette": "^1.2.2", - "nanoid": "^3.1.22", - "source-map": "^0.6.1" - } - }, - "postcss-value-parser": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz", - "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", - "dev": true - }, - "pre-commit": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/pre-commit/-/pre-commit-1.2.2.tgz", - "integrity": "sha1-287g7p3nI15X95xW186UZBpp7sY=", - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "spawn-sync": "^1.0.15", - "which": "1.2.x" - }, - "dependencies": { - "which": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/which/-/which-1.2.14.tgz", - "integrity": "sha1-mofEN48D6CfOyvGs31bHNsAcFOU=", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } - } - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true - }, - "prepend-http": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", - "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", - "dev": true - }, - "prettier": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.1.2.tgz", - "integrity": "sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==", - "dev": true - }, - "prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "requires": { - "fast-diff": "^1.1.2" - } - }, - "pretty-ms": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-7.0.1.tgz", - "integrity": "sha512-973driJZvxiGOQ5ONsFhOF/DtzPMOMtgC11kCpUrPGMTgqp2q/1gwzCquocrN33is0VZ5GFHXZYMM9l6h67v2Q==", - "dev": true, - "requires": { - "parse-ms": "^2.1.0" - } - }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "process-on-spawn": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/process-on-spawn/-/process-on-spawn-1.0.0.tgz", - "integrity": "sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==", - "dev": true, - "requires": { - "fromentries": "^1.2.0" - } - }, - "progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true - }, - "pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", - "dev": true - }, - "public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - }, - "pupa": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.0.1.tgz", - "integrity": "sha512-hEJH0s8PXLY/cdXh66tNEQGndDrIKNqNC5xmrysZy3i5C3oEoLna7YAOad+7u125+zH1HNXUmGEkrhb3c2VriA==", - "dev": true, - "requires": { - "escape-goat": "^2.0.0" - } - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", - "dev": true - }, - "quote-unquote": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/quote-unquote/-/quote-unquote-1.0.0.tgz", - "integrity": "sha1-Z6mncUjv/q+BpNQoQEpxC6qsigs=" - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "requires": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, - "rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - } - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "parse-json": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.1.0.tgz", - "integrity": "sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true - } - } - }, - "read-pkg-up": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", - "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", - "dev": true, - "requires": { - "find-up": "^2.0.0", - "read-pkg": "^2.0.0" - }, - "dependencies": { - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "load-json-file": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", - "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "strip-bom": "^3.0.0" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", - "dev": true, - "requires": { - "error-ex": "^1.2.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "path-type": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", - "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", - "dev": true, - "requires": { - "pify": "^2.0.0" - } - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - }, - "read-pkg": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", - "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", - "dev": true, - "requires": { - "load-json-file": "^2.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^2.0.0" - } - } - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "readdirp": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz", - "integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "regexpp": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", - "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", - "dev": true - }, - "registry-auth-token": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.0.tgz", - "integrity": "sha512-P+lWzPrsgfN+UEpDS3U8AQKg/UjZX6mQSJueZj3EK+vNESoqBSpBUD3gmu4sF9lOsjXWjF11dQKUqemf3veq1w==", - "dev": true, - "requires": { - "rc": "^1.2.8" - } - }, - "registry-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", - "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", - "dev": true, - "requires": { - "rc": "^1.2.8" - } - }, - "release-zalgo": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", - "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", - "dev": true, - "requires": { - "es6-error": "^4.0.1" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", - "dev": true, - "requires": { - "path-parse": "^1.0.6" - } - }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - } - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - }, - "responselike": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", - "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", - "dev": true, - "requires": { - "lowercase-keys": "^1.0.0" - } - }, - "restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "requires": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - } - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true - }, - "rewiremock": { - "version": "3.14.3", - "resolved": "https://registry.npmjs.org/rewiremock/-/rewiremock-3.14.3.tgz", - "integrity": "sha512-6BaUGfp7NtxBjisxcGN73nNiA2fS2AwhEk/9DMUqxfv5v0aDM1wpOYpj5GSArqsJi07YCfLhkD8C74LAN7+FkQ==", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "compare-module-exports": "^2.1.0", - "lodash.some": "^4.6.0", - "lodash.template": "^4.4.0", - "node-libs-browser": "^2.1.0", - "path-parse": "^1.0.5", - "wipe-node-cache": "^2.1.2", - "wipe-webpack-cache": "^2.1.0" - } - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, - "run-async": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", - "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "dev": true - }, - "run-parallel": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz", - "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==", - "dev": true - }, - "rxjs": { - "version": "6.6.3", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.3.tgz", - "integrity": "sha512-trsQc+xYYXZ3urjOiJOuCOa5N3jAZ3eiSpQB5hIT8zGlL2QfnHLJ2r7GMkBGuIausdJN1OneaI6gQlsqNHHmZQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "semver": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", - "dev": true - }, - "semver-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", - "dev": true - }, - "semver-diff": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", - "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", - "dev": true, - "requires": { - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "serialize-error": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz", - "integrity": "sha1-ULZ51WNc34Rme9yOWa9OW4HV9go=", - "dev": true - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", - "dev": true - }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "slice-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", - "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-support": { - "version": "0.5.19", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", - "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "spawn-sync": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/spawn-sync/-/spawn-sync-1.0.15.tgz", - "integrity": "sha1-sAeZVX63+wyDdsKdROih6mfldHY=", - "dev": true, - "requires": { - "concat-stream": "^1.4.7", - "os-shim": "^0.1.2" - } - }, - "spawn-wrap": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-2.0.0.tgz", - "integrity": "sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==", - "dev": true, - "requires": { - "foreground-child": "^2.0.0", - "is-windows": "^1.0.2", - "make-dir": "^3.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "which": "^2.0.1" - }, - "dependencies": { - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } - } - }, - "spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.6.tgz", - "integrity": "sha512-+orQK83kyMva3WyPf59k1+Y525csj5JejicWut55zeTWANuN17qSiSLUXWtzHeNWORSvT7GLDJ/E/XiIWoXBTw==", - "dev": true - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "stack-utils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.2.tgz", - "integrity": "sha512-0H7QK2ECz3fyZMzQ8rH0j2ykpfbnd20BFtfg/SqVC2+sCTtcw0aDTGB7dk+de4U4uUeuz6nOtJcrkFFLG1B0Rg==", - "dev": true, - "requires": { - "escape-string-regexp": "^2.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - } - } - }, - "stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-http": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", - "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", - "dev": true, - "requires": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.3.6", - "to-arraybuffer": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "string-argv": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.1.tgz", - "integrity": "sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==", - "dev": true - }, - "string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } - }, - "string.prototype.trimend": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", - "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "string.prototype.trimstart": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", - "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "stringify-object": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", - "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", - "dev": true, - "requires": { - "get-own-enumerable-property-symbols": "^3.0.0", - "is-obj": "^1.0.1", - "is-regexp": "^1.0.0" - }, - "dependencies": { - "is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", - "dev": true - } - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - } - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true - }, - "supertap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supertap/-/supertap-1.0.0.tgz", - "integrity": "sha512-HZJ3geIMPgVwKk2VsmO5YHqnnJYl6bV5A9JW2uzqV43WmpgliNEYbuvukfor7URpaqpxuw3CfZ3ONdVbZjCgIA==", - "dev": true, - "requires": { - "arrify": "^1.0.1", - "indent-string": "^3.2.0", - "js-yaml": "^3.10.0", - "serialize-error": "^2.1.0", - "strip-ansi": "^4.0.0" - }, - "dependencies": { - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", - "dev": true - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "table": { - "version": "5.4.6", - "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", - "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", - "dev": true, - "requires": { - "ajv": "^6.10.2", - "lodash": "^4.17.14", - "slice-ansi": "^2.1.0", - "string-width": "^3.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "astral-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", - "dev": true - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "slice-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", - "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "astral-regex": "^1.0.0", - "is-fullwidth-code-point": "^2.0.0" - } - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "temp-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", - "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", - "dev": true - }, - "term-size": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.0.tgz", - "integrity": "sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==", - "dev": true - }, - "test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "requires": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - } - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true - }, - "time-zone": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/time-zone/-/time-zone-1.0.0.tgz", - "integrity": "sha1-mcW/VZWJZq9tBtg73zgA3IL67F0=", - "dev": true - }, - "timers-browserify": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.11.tgz", - "integrity": "sha512-60aV6sgJ5YEbzUdn9c8kYGIqOubPoUdqQCul3SBAsRCZ40s6Y5cMcrW4dt3/k/EsbLVJNl9n6Vz3fTc+k2GeKQ==", - "dev": true, - "requires": { - "setimmediate": "^1.0.4" - } - }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "requires": { - "os-tmpdir": "~1.0.2" - } - }, - "to-arraybuffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", - "dev": true - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true - }, - "to-readable-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", - "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", - "dev": true - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "trim-off-newlines": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz", - "integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=", - "dev": true - }, - "tsconfig-paths": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz", - "integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==", - "dev": true, - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.0", - "strip-bom": "^3.0.0" - } - }, - "tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", - "dev": true - }, - "tty-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", - "dev": true - }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2" - } - }, - "type-fest": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz", - "integrity": "sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==", - "dev": true - }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "requires": { - "is-typedarray": "^1.0.0" - } - }, - "typescript": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz", - "integrity": "sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==", - "dev": true - }, - "unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", - "dev": true, - "requires": { - "crypto-random-string": "^2.0.0" - } - }, - "update-notifier": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.1.tgz", - "integrity": "sha512-9y+Kds0+LoLG6yN802wVXoIfxYEwh3FlZwzMwpCZp62S2i1/Jzeqb9Eeeju3NSHccGGasfGlK5/vEHbAifYRDg==", - "dev": true, - "requires": { - "boxen": "^4.2.0", - "chalk": "^3.0.0", - "configstore": "^5.0.1", - "has-yarn": "^2.1.0", - "import-lazy": "^2.1.0", - "is-ci": "^2.0.0", - "is-installed-globally": "^0.3.1", - "is-npm": "^4.0.0", - "is-yarn-global": "^0.3.0", - "latest-version": "^5.0.0", - "pupa": "^2.0.1", - "semver-diff": "^3.1.1", - "xdg-basedir": "^4.0.0" - }, - "dependencies": { - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "uri-js": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.0.tgz", - "integrity": "sha512-B0yRTzYdUCCn9n+F4+Gh4yIDtMQcaJsmYBDsTSG8g/OejKBodLQ2IHfN3bM7jUsRXndopT7OIXWdYqc1fjmV6g==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } - } - }, - "url-parse-lax": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", - "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", - "dev": true, - "requires": { - "prepend-http": "^2.0.0" - } - }, - "util": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", - "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", - "dev": true, - "requires": { - "inherits": "2.0.3" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "dev": true - }, - "v8-compile-cache": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz", - "integrity": "sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==", - "dev": true - }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "vm-browserify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", - "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", - "dev": true - }, - "wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=", - "dev": true, - "requires": { - "defaults": "^1.0.3" - } - }, - "well-known-symbols": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/well-known-symbols/-/well-known-symbols-2.0.0.tgz", - "integrity": "sha512-ZMjC3ho+KXo0BfJb7JgtQ5IBuvnShdlACNkKkdsqBmYw3bPAaJfPeYUo6tLUaT5tG/Gkh7xkpBhKRQ9e7pyg9Q==", - "dev": true - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "widest-line": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", - "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", - "dev": true, - "requires": { - "string-width": "^4.0.0" - } - }, - "wipe-node-cache": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/wipe-node-cache/-/wipe-node-cache-2.1.2.tgz", - "integrity": "sha512-m7NXa8qSxBGMtdQilOu53ctMaIBXy93FOP04EC1Uf4bpsE+r+adfLKwIMIvGbABsznaSNxK/ErD4xXDyY5og9w==", - "dev": true - }, - "wipe-webpack-cache": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wipe-webpack-cache/-/wipe-webpack-cache-2.1.0.tgz", - "integrity": "sha512-OXzQMGpA7MnQQ8AG+uMl5mWR2ezy6fw1+DMHY+wzYP1qkF1jrek87psLBmhZEj+er4efO/GD4R8jXWFierobaA==", - "dev": true, - "requires": { - "wipe-node-cache": "^2.1.0" - } - }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "write": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", - "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", - "dev": true, - "requires": { - "mkdirp": "^0.5.1" - } - }, - "write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "xdg-basedir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", - "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", - "dev": true - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - }, - "y18n": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", - "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", - "dev": true - }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", - "dev": true - }, - "yaml": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.0.tgz", - "integrity": "sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg==", - "dev": true - }, - "yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - } - }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } -} diff --git a/package.json b/package.json index d4cf7d9..adf7e59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "postcss-values-parser", - "version": "6.0.2", + "version": "7.0.0", "description": "A CSS property value parser for use with PostCSS", "license": "MPL-2.0", "repository": "shellscape/postcss-values-parser", @@ -11,50 +11,35 @@ }, "homepage": "https://github.com/shellscape/postcss-values-parser", "bugs": "https://github.com/shellscape/postcss-values-parser/issues", - "main": "lib/index.js", - "types": "lib/index.d.ts", + "type": "module", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "engines": { - "node": ">=10" + "node": ">=20.19.0" }, "scripts": { - "ci:coverage": "nyc npm run test && nyc report --reporter=text-lcov > coverage.lcov", - "ci:test": "npm run test", - "lint": "eslint lib test --fix --cache", - "check-types": "tsc --noEmit", + "build": "tsc --project tsconfig.json", + "lint": "pnpm lint:docs && pnpm lint:json && pnpm lint:js", "lint-staged": "lint-staged", - "security": "npm audit --audit-level=high --prod", - "test": "ava" + "lint:docs": "prettier --write README.md", + "lint:js": "oxlint --format stylish --fix src test", + "lint:json": "prettier --write package.json", + "perf": "pnpm build && tsx perf/perf.ts", + "prepare": "husky", + "prepublishOnly": "pnpm lint && pnpm build", + "security": "pnpm audit --audit-level=high --prod", + "test": "pnpm build && vitest run", + "test:watch": "pnpm build && vitest" }, "files": [ - "lib", - "LICENSE", - "README.md" + "dist", + "README.md", + "LICENSE" ], - "dependencies": { - "color-name": "^1.1.4", - "is-url-superb": "^4.0.0", - "quote-unquote": "^1.0.0" - }, - "devDependencies": { - "ava": "^3.12.1", - "chalk": "^4.1.0", - "eslint-config-shellscape": "^2.1.0", - "globby": "^11.0.1", - "lint-staged": "^10.4.0", - "nyc": "^15.1.0", - "perfy": "^1.1.5", - "postcss": "^8.2.9", - "postcss-value-parser": "^4.1.0", - "pre-commit": "^1.2.2", - "prettier": "^2.1.2", - "rewiremock": "^3.14.3", - "strip-ansi": "^6.0.0", - "text-table": "^0.2.0", - "typescript": "^4.2.3" - }, - "peerDependencies": { - "postcss": "^8.2.9" - }, "keywords": [ "css", "less", @@ -66,28 +51,60 @@ "parsing", "properties" ], - "ava": { - "files": [ - "!**/fixtures/**", - "!**/helpers/**", - "!**/rewiremock.js" - ], - "require": [ - "./test/rewiremock.js" - ] + "peerDependencies": { + "postcss": "^8.4.14" }, - "lint-staged": { - "*.js": [ - "eslint --fix" - ] + "dependencies": { + "color-name": "^1.1.4", + "css-tree": "^3.1.0", + "husky": "^9.1.7", + "is-url-superb": "^4.0.0", + "quote-unquote": "^1.0.0" }, - "nyc": { - "include": [ - "lib/*.js" + "devDependencies": { + "@ava/typescript": "^6.0.0", + "@ianvs/prettier-plugin-sort-imports": "^4.4.2", + "@types/color-name": "^2.0.0", + "@types/css-tree": "^2.3.10", + "@types/node": "^24.0.6", + "@types/perfy": "^1.1.2", + "@types/text-table": "^0.2.5", + "@vitest/ui": "^3.2.4", + "ava": "^6.4.0", + "chalk": "^5.4.1", + "globby": "^14.1.0", + "lint-staged": "^16.1.2", + "oxlint": "^1.3.0", + "perfy": "^1.1.5", + "postcss": "^8.5.6", + "postcss-value-parser": "^4.2.0", + "pre-commit": "^1.2.2", + "prettier": "^3.6.2", + "prettier-plugin-package": "^1.4.0", + "rewiremock": "^3.14.6", + "strip-ansi": "^7.1.0", + "text-table": "^0.2.0", + "tsx": "^4.20.3", + "typescript": "^5.8.3", + "vitest": "^3.2.4" + }, + "lint-staged": { + "*.{ts,js}?(x)": [ + "oxlint --format stylish --fix", + "prettier --write" + ], + "**/(package|tsconfig(.*)?).json": [ + "prettier --write" + ], + "(pnpm-workspace|.github/**/*).{yml,yaml}": [ + "prettier --write" + ], + "*package.json": [ + "prettier --write --plugin=prettier-plugin-package" ], - "exclude": [ - "test/" + "((.github/**/*)|(README|CHANGELOG)|(**/(README|CHANGELOG))).md": [ + "prettier --write" ] }, - "pre-commit": "lint-staged" + "packageManager": "pnpm@10.12.4" } diff --git a/perf/perf.js b/perf/perf.js deleted file mode 100644 index 0e1c3d0..0000000 --- a/perf/perf.js +++ /dev/null @@ -1,71 +0,0 @@ -/* eslint global-require: off, import/no-dynamic-require: off, import/no-extraneous-dependencies: off */ -const { join } = require('path'); - -const chalk = require('chalk'); -const globby = require('globby'); -const perfy = require('perfy'); -const valueParser = require('postcss-value-parser'); - -const strip = require('strip-ansi'); -const table = require('text-table'); - -const { parse } = require('../'); - -(async () => { - const fixtures = await globby([join(__dirname, '../test/fixtures/*.js')]); - const results = []; - - for (const path of fixtures) { - const fixture = require(path); - const { options, snapshot } = fixture; - - if (!snapshot) { - continue; // eslint-disable-line no-continue - } - - for (const test of snapshot) { - let theirs; - let v2; - - perfy.start('values-parser'); - parse(test, options); - const ours = perfy.end('values-parser'); - - perfy.start('value-parser'); - try { - valueParser(test); - theirs = perfy.end('value-parser'); - } catch (e) { - theirs = { milliseconds: NaN }; - } - - results.push({ - test, - ours: ours.milliseconds, - theirs: theirs.milliseconds, - v2: v2.milliseconds - }); - } - } - - const rows = [ - [chalk.blue('Test'), chalk.blue('values-parser'), chalk.blue('v2'), chalk.blue('value-parser')], - ['----', '-------------', '--', '------------'] - ]; - - for (const result of results) { - const { test, ours, theirs, v2 } = result; - rows.push([ - JSON.stringify(test), - ours > theirs ? chalk.red(ours) : theirs > ours ? chalk.green(ours) : ours, - v2, - theirs - ]); - } - const t = table(rows, { - stringLength: (s) => strip(s).length - }); - const { log } = console; - log(chalk.blue(`Ran ${results.length} Tests\n`)); - log(t); -})(); diff --git a/perf/perf.ts b/perf/perf.ts new file mode 100644 index 0000000..e8f9828 --- /dev/null +++ b/perf/perf.ts @@ -0,0 +1,87 @@ +import { readFile } from 'node:fs/promises'; +import { join } from 'node:path'; + +import chalk from 'chalk'; +import { globby } from 'globby'; +import perfy from 'perfy'; +import valueParser from 'postcss-value-parser'; +import stripAnsi from 'strip-ansi'; +import table from 'text-table'; + +import { parse } from '../dist/index.js'; + +interface Fixture { + options?: Record; + snapshot?: string[]; +} + +interface PerfResult { + milliseconds: number; +} + +interface TestResult { + test: string; + ours: number; + theirs: number; +} + +(async () => { + const fixtures = await globby([join(import.meta.dirname, '../test/fixtures/*.json')]); + const results: TestResult[] = []; + + for (const path of fixtures) { + const fixtureContent = await readFile(path, 'utf-8'); + const fixture: Fixture = JSON.parse(fixtureContent); + const { options, snapshot } = fixture; + + if (!snapshot) { + continue; // eslint-disable-line no-continue + } + + for (const test of snapshot) { + let theirs: PerfResult; + + perfy.start('values-parser'); + parse(test, options); + const ours: PerfResult = perfy.end('values-parser'); + + perfy.start('value-parser'); + try { + valueParser(test); + theirs = perfy.end('value-parser'); + } catch (e) { + theirs = { milliseconds: NaN }; + } + + results.push({ + test, + ours: ours.milliseconds, + theirs: theirs.milliseconds + }); + } + } + + const rows = [ + [chalk.blue('Test'), chalk.blue('values-parser'), chalk.blue('v2'), chalk.blue('value-parser')], + ['----', '-------------', '--', '------------'] + ]; + + for (const result of results) { + const { test, ours, theirs } = result; + rows.push([ + JSON.stringify(test), + ours > theirs + ? chalk.red(ours.toString()) + : theirs > ours + ? chalk.green(ours.toString()) + : ours.toString(), + theirs.toString() + ]); + } + const t = table(rows, { + stringLength: (s: string) => stripAnsi(s).length + }); + const { log } = console; + log(chalk.blue(`Ran ${results.length} Tests. Results in ms\n`)); + log(t); +})(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..27716ff --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,3976 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + color-name: + specifier: ^1.1.4 + version: 1.1.4 + css-tree: + specifier: ^3.1.0 + version: 3.1.0 + husky: + specifier: ^9.1.7 + version: 9.1.7 + is-url-superb: + specifier: ^4.0.0 + version: 4.0.0 + quote-unquote: + specifier: ^1.0.0 + version: 1.0.0 + devDependencies: + '@ava/typescript': + specifier: ^6.0.0 + version: 6.0.0 + '@ianvs/prettier-plugin-sort-imports': + specifier: ^4.4.2 + version: 4.4.2(prettier@3.6.2) + '@types/color-name': + specifier: ^2.0.0 + version: 2.0.0 + '@types/css-tree': + specifier: ^2.3.10 + version: 2.3.10 + '@types/node': + specifier: ^24.0.6 + version: 24.0.6 + '@types/perfy': + specifier: ^1.1.2 + version: 1.1.2 + '@types/text-table': + specifier: ^0.2.5 + version: 0.2.5 + '@vitest/ui': + specifier: ^3.2.4 + version: 3.2.4(vitest@3.2.4) + ava: + specifier: ^6.4.0 + version: 6.4.0(@ava/typescript@6.0.0)(rollup@4.44.1) + chalk: + specifier: ^5.4.1 + version: 5.4.1 + globby: + specifier: ^14.1.0 + version: 14.1.0 + lint-staged: + specifier: ^16.1.2 + version: 16.1.2 + oxlint: + specifier: ^1.3.0 + version: 1.3.0 + perfy: + specifier: ^1.1.5 + version: 1.1.5 + postcss: + specifier: ^8.5.6 + version: 8.5.6 + postcss-value-parser: + specifier: ^4.2.0 + version: 4.2.0 + pre-commit: + specifier: ^1.2.2 + version: 1.2.2 + prettier: + specifier: ^3.6.2 + version: 3.6.2 + prettier-plugin-package: + specifier: ^1.4.0 + version: 1.4.0(prettier@3.6.2) + rewiremock: + specifier: ^3.14.6 + version: 3.14.6 + strip-ansi: + specifier: ^7.1.0 + version: 7.1.0 + text-table: + specifier: ^0.2.0 + version: 0.2.0 + tsx: + specifier: ^4.20.3 + version: 4.20.3 + typescript: + specifier: ^5.8.3 + version: 5.8.3 + vitest: + specifier: ^3.2.4 + version: 3.2.4(@types/node@24.0.6)(@vitest/ui@3.2.4)(tsx@4.20.3)(yaml@2.8.0) + +packages: + + '@ava/typescript@6.0.0': + resolution: {integrity: sha512-+8oDYc4J5cCaWZh1VUbyc+cegGplJO9FqHpqR4LVAVx8fRLVRaYlC4yyA6cqHJ1vWP23Ff/ECS5U68Zz6OLZlg==} + engines: {node: ^20.8 || ^22 || >=24} + + '@babel/code-frame@7.27.1': + resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.27.5': + resolution: {integrity: sha512-ZGhA37l0e/g2s1Cnzdix0O3aLYm66eF8aufiVteOgnwxgnRP8GoyMj7VWsgWnQbVKXyge7hqrFh2K2TQM6t1Hw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-string-parser@7.27.1': + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.27.1': + resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.27.7': + resolution: {integrity: sha512-qnzXzDXdr/po3bOTbTIQZ7+TxNKxpkN5IifVLXS+r7qwynkZfPyjZfE7hCXbo7IoO9TNcSyibgONsf2HauUd3Q==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/template@7.27.2': + resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.27.7': + resolution: {integrity: sha512-X6ZlfR/O/s5EQ/SnUSLzr+6kGnkg8HXGMzpgsMsrJVcfDtH1vIp6ctCN4eZ1LS5c0+te5Cb6Y514fASjMRJ1nw==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.27.7': + resolution: {integrity: sha512-8OLQgDScAOHXnAz2cV+RfzzNMipuLVBz2biuAJFMV9bfkNf393je3VM8CLkjQodW5+iWsSJdSgSWT6rsZoXHPw==} + engines: {node: '>=6.9.0'} + + '@esbuild/aix-ppc64@0.25.5': + resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.5': + resolution: {integrity: sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.5': + resolution: {integrity: sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.5': + resolution: {integrity: sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.5': + resolution: {integrity: sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.5': + resolution: {integrity: sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.5': + resolution: {integrity: sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.5': + resolution: {integrity: sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.5': + resolution: {integrity: sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.5': + resolution: {integrity: sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.5': + resolution: {integrity: sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.5': + resolution: {integrity: sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.5': + resolution: {integrity: sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.5': + resolution: {integrity: sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.5': + resolution: {integrity: sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.5': + resolution: {integrity: sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.5': + resolution: {integrity: sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.5': + resolution: {integrity: sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.5': + resolution: {integrity: sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.5': + resolution: {integrity: sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.5': + resolution: {integrity: sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.25.5': + resolution: {integrity: sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.5': + resolution: {integrity: sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.5': + resolution: {integrity: sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.5': + resolution: {integrity: sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@ianvs/prettier-plugin-sort-imports@4.4.2': + resolution: {integrity: sha512-KkVFy3TLh0OFzimbZglMmORi+vL/i2OFhEs5M07R9w0IwWAGpsNNyE4CY/2u0YoMF5bawKC2+8/fUH60nnNtjw==} + peerDependencies: + '@vue/compiler-sfc': 2.7.x || 3.x + prettier: 2 || 3 || ^4.0.0-0 + peerDependenciesMeta: + '@vue/compiler-sfc': + optional: true + + '@isaacs/cliui@8.0.2': + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/gen-mapping@0.3.8': + resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} + engines: {node: '>=6.0.0'} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/set-array@1.2.1': + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} + + '@jridgewell/trace-mapping@0.3.25': + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + + '@mapbox/node-pre-gyp@2.0.0': + resolution: {integrity: sha512-llMXd39jtP0HpQLVI37Bf1m2ADlEb35GYSh1SDSLsBhR+5iCxiNGlT31yqbNtVHygHAtMy6dWFERpU2JgufhPg==} + engines: {node: '>=18'} + hasBin: true + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@oxlint/darwin-arm64@1.3.0': + resolution: {integrity: sha512-TcCaETXYfiEfS+u/gZNND4WwEEtnJJjqg8BIC56WiCQDduYTvmmbQ0vxtqdNXlFzlvmRpZCSs7qaqXNy8/8FLA==} + cpu: [arm64] + os: [darwin] + + '@oxlint/darwin-x64@1.3.0': + resolution: {integrity: sha512-REgq9s1ZWuh++Vi+mUPNddLTp/D+iu+T8nLd3QM1dzQoBD/SZ7wRX3Mdv8QGT/m8dknmDBQuKAP6T47ox9HRSA==} + cpu: [x64] + os: [darwin] + + '@oxlint/linux-arm64-gnu@1.3.0': + resolution: {integrity: sha512-QAS8AWKDcDeUe8mJaw/pF2D9+js8FbFTo75AiekZKNm9V6QAAiCkyvesmILD8RrStw9aV2D/apOD71vsfcDoGA==} + cpu: [arm64] + os: [linux] + + '@oxlint/linux-arm64-musl@1.3.0': + resolution: {integrity: sha512-rAbz0KFkk5GPdERoFO4ZUZmVkECnHXjRG0O2MeT5zY7ddlyZUjEk1cWjw+HCtWVdKkqhZJeNFMuEiRLkpzBIIw==} + cpu: [arm64] + os: [linux] + + '@oxlint/linux-x64-gnu@1.3.0': + resolution: {integrity: sha512-6uLO1WsJwCtVNGHtjXwg2TRvxQYttYJKMjSdv6RUXGWY1AI+/+yHzvu+phU/F40uNC7CFhFnqWDuPaSZ49hdAQ==} + cpu: [x64] + os: [linux] + + '@oxlint/linux-x64-musl@1.3.0': + resolution: {integrity: sha512-+vrmJUHgtJmgIo+L9eTP04NI/OQNCOZtQo6I49qGWc9cpr+0MnIh9KMcyAOxmzVTF5g+CF1I/1bUz4pk4I3LDw==} + cpu: [x64] + os: [linux] + + '@oxlint/win32-arm64@1.3.0': + resolution: {integrity: sha512-k+ETUVl+O3b8Rcd2PP5V3LqQ2QoN/TOX2f19XXHZEynbVLY3twLYPb3hLdXqoo7CKRq3RJdTfn1upHH48/qrZQ==} + cpu: [arm64] + os: [win32] + + '@oxlint/win32-x64@1.3.0': + resolution: {integrity: sha512-nWSgK0fT02TQ/BiAUCd13BaobtHySkCDcQaL+NOmhgeb0tNWjtYiktuluahaIqFcYJPWczVlbs8DU/Eqo8vsug==} + cpu: [x64] + os: [win32] + + '@pkgjs/parseargs@0.11.0': + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + + '@polka/url@1.0.0-next.29': + resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==} + + '@rollup/pluginutils@5.2.0': + resolution: {integrity: sha512-qWJ2ZTbmumwiLFomfzTyt5Kng4hwPi9rwCYN4SHb6eaRU1KNO4ccxINHr/VhH4GgPlt1XfSTLX2LBTme8ne4Zw==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/rollup-android-arm-eabi@4.44.1': + resolution: {integrity: sha512-JAcBr1+fgqx20m7Fwe1DxPUl/hPkee6jA6Pl7n1v2EFiktAHenTaXl5aIFjUIEsfn9w3HE4gK1lEgNGMzBDs1w==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.44.1': + resolution: {integrity: sha512-RurZetXqTu4p+G0ChbnkwBuAtwAbIwJkycw1n6GvlGlBuS4u5qlr5opix8cBAYFJgaY05TWtM+LaoFggUmbZEQ==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.44.1': + resolution: {integrity: sha512-fM/xPesi7g2M7chk37LOnmnSTHLG/v2ggWqKj3CCA1rMA4mm5KVBT1fNoswbo1JhPuNNZrVwpTvlCVggv8A2zg==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.44.1': + resolution: {integrity: sha512-gDnWk57urJrkrHQ2WVx9TSVTH7lSlU7E3AFqiko+bgjlh78aJ88/3nycMax52VIVjIm3ObXnDL2H00e/xzoipw==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.44.1': + resolution: {integrity: sha512-wnFQmJ/zPThM5zEGcnDcCJeYJgtSLjh1d//WuHzhf6zT3Md1BvvhJnWoy+HECKu2bMxaIcfWiu3bJgx6z4g2XA==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.44.1': + resolution: {integrity: sha512-uBmIxoJ4493YATvU2c0upGz87f99e3wop7TJgOA/bXMFd2SvKCI7xkxY/5k50bv7J6dw1SXT4MQBQSLn8Bb/Uw==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.44.1': + resolution: {integrity: sha512-n0edDmSHlXFhrlmTK7XBuwKlG5MbS7yleS1cQ9nn4kIeW+dJH+ExqNgQ0RrFRew8Y+0V/x6C5IjsHrJmiHtkxQ==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.44.1': + resolution: {integrity: sha512-8WVUPy3FtAsKSpyk21kV52HCxB+me6YkbkFHATzC2Yd3yuqHwy2lbFL4alJOLXKljoRw08Zk8/xEj89cLQ/4Nw==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.44.1': + resolution: {integrity: sha512-yuktAOaeOgorWDeFJggjuCkMGeITfqvPgkIXhDqsfKX8J3jGyxdDZgBV/2kj/2DyPaLiX6bPdjJDTu9RB8lUPQ==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.44.1': + resolution: {integrity: sha512-W+GBM4ifET1Plw8pdVaecwUgxmiH23CfAUj32u8knq0JPFyK4weRy6H7ooxYFD19YxBulL0Ktsflg5XS7+7u9g==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loongarch64-gnu@4.44.1': + resolution: {integrity: sha512-1zqnUEMWp9WrGVuVak6jWTl4fEtrVKfZY7CvcBmUUpxAJ7WcSowPSAWIKa/0o5mBL/Ij50SIf9tuirGx63Ovew==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-powerpc64le-gnu@4.44.1': + resolution: {integrity: sha512-Rl3JKaRu0LHIx7ExBAAnf0JcOQetQffaw34T8vLlg9b1IhzcBgaIdnvEbbsZq9uZp3uAH+JkHd20Nwn0h9zPjA==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.44.1': + resolution: {integrity: sha512-j5akelU3snyL6K3N/iX7otLBIl347fGwmd95U5gS/7z6T4ftK288jKq3A5lcFKcx7wwzb5rgNvAg3ZbV4BqUSw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-riscv64-musl@4.44.1': + resolution: {integrity: sha512-ppn5llVGgrZw7yxbIm8TTvtj1EoPgYUAbfw0uDjIOzzoqlZlZrLJ/KuiE7uf5EpTpCTrNt1EdtzF0naMm0wGYg==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.44.1': + resolution: {integrity: sha512-Hu6hEdix0oxtUma99jSP7xbvjkUM/ycke/AQQ4EC5g7jNRLLIwjcNwaUy95ZKBJJwg1ZowsclNnjYqzN4zwkAw==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.44.1': + resolution: {integrity: sha512-EtnsrmZGomz9WxK1bR5079zee3+7a+AdFlghyd6VbAjgRJDbTANJ9dcPIPAi76uG05micpEL+gPGmAKYTschQw==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.44.1': + resolution: {integrity: sha512-iAS4p+J1az6Usn0f8xhgL4PaU878KEtutP4hqw52I4IO6AGoyOkHCxcc4bqufv1tQLdDWFx8lR9YlwxKuv3/3g==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-win32-arm64-msvc@4.44.1': + resolution: {integrity: sha512-NtSJVKcXwcqozOl+FwI41OH3OApDyLk3kqTJgx8+gp6On9ZEt5mYhIsKNPGuaZr3p9T6NWPKGU/03Vw4CNU9qg==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.44.1': + resolution: {integrity: sha512-JYA3qvCOLXSsnTR3oiyGws1Dm0YTuxAAeaYGVlGpUsHqloPcFjPg+X0Fj2qODGLNwQOAcCiQmHub/V007kiH5A==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.44.1': + resolution: {integrity: sha512-J8o22LuF0kTe7m+8PvW9wk3/bRq5+mRo5Dqo6+vXb7otCm3TPhYOJqOaQtGU9YMWQSL3krMnoOxMr0+9E6F3Ug==} + cpu: [x64] + os: [win32] + + '@sec-ant/readable-stream@0.4.1': + resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} + + '@sindresorhus/merge-streams@2.3.0': + resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==} + engines: {node: '>=18'} + + '@sindresorhus/merge-streams@4.0.0': + resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==} + engines: {node: '>=18'} + + '@types/chai@5.2.2': + resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==} + + '@types/color-name@2.0.0': + resolution: {integrity: sha512-63mTjolMJv75upGaUbT6J3lRDWl6pETPQsaWni9w3dMArhNBpgtHkX8ISb9zLV3YYLPA/SMk8ZGALa3k9WY/aQ==} + + '@types/css-tree@2.3.10': + resolution: {integrity: sha512-WcaBazJ84RxABvRttQjjFWgTcHvZR9jGr0Y3hccPkHjFyk/a3N8EuxjKr+QfrwjoM5b1yI1Uj1i7EzOAAwBwag==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + + '@types/estree@1.0.8': + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + + '@types/node@24.0.6': + resolution: {integrity: sha512-ZOyn+gOs749xU7ovp+Ibj0g1o3dFRqsfPnT22C2t5JzcRvgsEDpGawPbCISGKLudJk9Y0wiu9sYd6kUh0pc9TA==} + + '@types/perfy@1.1.2': + resolution: {integrity: sha512-HEiCmR//s59gmVM0aKEpxEQRr4vul2zVw50uOLv3GqpInKYxm0a5SjCY2zasDMmz65z30hxGG/lYtg0MtqAEHA==} + + '@types/text-table@0.2.5': + resolution: {integrity: sha512-hcZhlNvMkQG/k1vcZ6yHOl6WAYftQ2MLfTHcYRZ2xYZFD8tGVnE3qFV0lj1smQeDSR7/yY0PyuUalauf33bJeA==} + + '@vercel/nft@0.29.4': + resolution: {integrity: sha512-6lLqMNX3TuycBPABycx7A9F1bHQR7kiQln6abjFbPrf5C/05qHM9M5E4PeTE59c7z8g6vHnx1Ioihb2AQl7BTA==} + engines: {node: '>=18'} + hasBin: true + + '@vitest/expect@3.2.4': + resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==} + + '@vitest/mocker@3.2.4': + resolution: {integrity: sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==} + peerDependencies: + msw: ^2.4.9 + vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@3.2.4': + resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==} + + '@vitest/runner@3.2.4': + resolution: {integrity: sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==} + + '@vitest/snapshot@3.2.4': + resolution: {integrity: sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==} + + '@vitest/spy@3.2.4': + resolution: {integrity: sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==} + + '@vitest/ui@3.2.4': + resolution: {integrity: sha512-hGISOaP18plkzbWEcP/QvtRW1xDXF2+96HbEX6byqQhAUbiS5oH6/9JwW+QsQCIYON2bI6QZBF+2PvOmrRZ9wA==} + peerDependencies: + vitest: 3.2.4 + + '@vitest/utils@3.2.4': + resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==} + + abbrev@3.0.1: + resolution: {integrity: sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==} + engines: {node: ^18.17.0 || >=20.5.0} + + acorn-import-attributes@1.9.5: + resolution: {integrity: sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==} + peerDependencies: + acorn: ^8 + + acorn-walk@8.3.4: + resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==} + engines: {node: '>=0.4.0'} + + acorn@8.15.0: + resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==} + engines: {node: '>=0.4.0'} + hasBin: true + + agent-base@7.1.3: + resolution: {integrity: sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==} + engines: {node: '>= 14'} + + ansi-escapes@7.0.0: + resolution: {integrity: sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==} + engines: {node: '>=18'} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-regex@6.1.0: + resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==} + engines: {node: '>=12'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + + argparse@1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + + array-find-index@1.0.2: + resolution: {integrity: sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==} + engines: {node: '>=0.10.0'} + + arrgv@1.0.2: + resolution: {integrity: sha512-a4eg4yhp7mmruZDQFqVMlxNRFGi/i1r87pt8SDHy0/I8PqSXoUTlWZRdAZo0VXgvEARcujbtTk8kiZRi1uDGRw==} + engines: {node: '>=8.0.0'} + + arrify@3.0.0: + resolution: {integrity: sha512-tLkvA81vQG/XqE2mjDkGQHoOINtMHtysSnemrmoGe6PydDPMRbVugqyk4A6V/WDWEfm3l+0d8anA9r8cv/5Jaw==} + engines: {node: '>=12'} + + asn1.js@4.10.1: + resolution: {integrity: sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==} + + assert@1.5.1: + resolution: {integrity: sha512-zzw1uCAgLbsKwBfFc8CX78DDg+xZeBksSO3vwVIDDN5i94eOrPsSSyiVhmsSABFDM/OcpE2aagCat9dnWQLG1A==} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + async-sema@3.1.1: + resolution: {integrity: sha512-tLRNUXati5MFePdAk8dw7Qt7DpxPB60ofAgn8WRhW6a2rcimZnYBP9oxHiv0OHy+Wz7kPMG+t4LGdt31+4EmGg==} + + ava@6.4.0: + resolution: {integrity: sha512-aeFapuBZtaGwVMlFFf074SZJ0bPcdmAdJdsvhHMp+XaOnC2DgeMzopb7yyYAhulNGRJQfUK/SIBYo2PoX7+gtw==} + engines: {node: ^18.18 || ^20.8 || ^22 || ^23 || >=24} + hasBin: true + peerDependencies: + '@ava/typescript': '*' + peerDependenciesMeta: + '@ava/typescript': + optional: true + + available-typed-arrays@1.0.7: + resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} + engines: {node: '>= 0.4'} + + babel-runtime@6.26.0: + resolution: {integrity: sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + base64-js@1.5.1: + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + + bindings@1.5.0: + resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} + + blueimp-md5@2.19.0: + resolution: {integrity: sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==} + + bn.js@4.12.2: + resolution: {integrity: sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==} + + bn.js@5.2.2: + resolution: {integrity: sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw==} + + brace-expansion@2.0.2: + resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + brorand@1.1.0: + resolution: {integrity: sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==} + + browserify-aes@1.2.0: + resolution: {integrity: sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==} + + browserify-cipher@1.0.1: + resolution: {integrity: sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==} + + browserify-des@1.0.2: + resolution: {integrity: sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==} + + browserify-rsa@4.1.1: + resolution: {integrity: sha512-YBjSAiTqM04ZVei6sXighu679a3SqWORA3qZTEqZImnlkDIFtKc6pNutpjyZ8RJTjQtuYfeetkxM11GwoYXMIQ==} + engines: {node: '>= 0.10'} + + browserify-sign@4.2.3: + resolution: {integrity: sha512-JWCZW6SKhfhjJxO8Tyiiy+XYB7cqd2S5/+WeYHsKdNKFlCBhKbblba1A/HN/90YwtxKc8tCErjffZl++UNmGiw==} + engines: {node: '>= 0.12'} + + browserify-zlib@0.2.0: + resolution: {integrity: sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==} + + buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + + buffer-xor@1.0.3: + resolution: {integrity: sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==} + + buffer@4.9.2: + resolution: {integrity: sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==} + + builtin-status-codes@3.0.0: + resolution: {integrity: sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==} + + cac@6.7.14: + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} + engines: {node: '>=8'} + + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + + call-bind@1.0.8: + resolution: {integrity: sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==} + engines: {node: '>= 0.4'} + + call-bound@1.0.4: + resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} + engines: {node: '>= 0.4'} + + callsites@4.2.0: + resolution: {integrity: sha512-kfzR4zzQtAE9PC7CzZsjl3aBNbXWuXiSeOCdLcPpBfGW8YuCqQHcRPFDbr/BPVmd3EEPVpuFzLyuT/cUhPr4OQ==} + engines: {node: '>=12.20'} + + cbor@10.0.3: + resolution: {integrity: sha512-72Jnj81xMsqepqdcSdf2+fflz/UDsThOHy5hj2MW5F5xzHL8Oa0KQ6I6V9CwVUPxg5pf+W9xp6W2KilaRXWWtw==} + engines: {node: '>=18'} + + chai@5.2.0: + resolution: {integrity: sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==} + engines: {node: '>=12'} + + chalk@5.4.1: + resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + check-error@2.1.1: + resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} + engines: {node: '>= 16'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + chunkd@2.0.1: + resolution: {integrity: sha512-7d58XsFmOq0j6el67Ug9mHf9ELUXsQXYJBkyxhH/k+6Ke0qXRnv0kbemx+Twc6fRJ07C49lcbdgm9FL1Ei/6SQ==} + + ci-info@4.2.0: + resolution: {integrity: sha512-cYY9mypksY8NRqgDB1XD1RiJL338v/551niynFTGkZOO2LHuB2OmOYxDIe/ttN9AHwrqdum1360G3ald0W9kCg==} + engines: {node: '>=8'} + + ci-parallel-vars@1.0.1: + resolution: {integrity: sha512-uvzpYrpmidaoxvIQHM+rKSrigjOe9feHYbw4uOI2gdfe1C3xIlxO+kVXq83WQWNniTf8bAxVpy+cQeFQsMERKg==} + + cipher-base@1.0.6: + resolution: {integrity: sha512-3Ek9H3X6pj5TgenXYtNWdaBon1tgYCaebd+XPg0keyjEbEfkD4KkmAxkQ/i1vYvxdcT5nscLBfq9VJRmCBcFSw==} + engines: {node: '>= 0.10'} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-truncate@4.0.0: + resolution: {integrity: sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==} + engines: {node: '>=18'} + + cliui@8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} + + code-excerpt@4.0.0: + resolution: {integrity: sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + colorette@2.0.20: + resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} + + commander@14.0.0: + resolution: {integrity: sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA==} + engines: {node: '>=20'} + + common-path-prefix@3.0.0: + resolution: {integrity: sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==} + + compare-module-exports@2.1.0: + resolution: {integrity: sha512-3Lc0sTIuX1jmY2K2RrXRJOND6KsRTX2D4v3+eu1PDptsuJZVK4LZc852eZa9I+avj0NrUKlTNgqvccNOH6mbGg==} + + concat-stream@1.6.2: + resolution: {integrity: sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==} + engines: {'0': node >= 0.8} + + concordance@5.0.4: + resolution: {integrity: sha512-OAcsnTEYu1ARJqWVGwf4zh4JDfHZEaSNlNccFmt8YjB2l/n19/PF2viLINHc57vO4FKIAFl2FWASIGZZWZ2Kxw==} + engines: {node: '>=10.18.0 <11 || >=12.14.0 <13 || >=14'} + + consola@3.4.2: + resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} + engines: {node: ^14.18.0 || >=16.10.0} + + console-browserify@1.2.0: + resolution: {integrity: sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==} + + constants-browserify@1.0.0: + resolution: {integrity: sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==} + + convert-to-spaces@2.0.1: + resolution: {integrity: sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + core-js@2.6.12: + resolution: {integrity: sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==} + deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. + + core-util-is@1.0.3: + resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} + + create-ecdh@4.0.4: + resolution: {integrity: sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==} + + create-hash@1.1.3: + resolution: {integrity: sha512-snRpch/kwQhcdlnZKYanNF1m0RDlrCdSKQaH87w1FCFPVPNCQ/Il9QJKAX2jVBZddRdaHBMC+zXa9Gw9tmkNUA==} + + create-hash@1.2.0: + resolution: {integrity: sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==} + + create-hmac@1.1.7: + resolution: {integrity: sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==} + + cross-spawn@5.1.0: + resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==} + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + crypto-browserify@3.12.1: + resolution: {integrity: sha512-r4ESw/IlusD17lgQi1O20Fa3qNnsckR126TdUuBgAu7GBYSIPvdNyONd3Zrxh0xCwA4+6w/TDArBPsMvhur+KQ==} + engines: {node: '>= 0.10'} + + css-tree@3.1.0: + resolution: {integrity: sha512-0eW44TGN5SQXU1mWSkKwFstI/22X2bG1nYzZTYMAWjylYURhse752YgbE4Cx46AC+bAvI+/dYTPRk1LqSUnu6w==} + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} + + currently-unhandled@0.4.1: + resolution: {integrity: sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng==} + engines: {node: '>=0.10.0'} + + date-time@3.1.0: + resolution: {integrity: sha512-uqCUKXE5q1PNBXjPqvwhwJf9SwMoAHBgWJ6DcrnS5o+W2JOiIILl0JEdVD8SGujrNS02GGxgwAg2PN2zONgtjg==} + engines: {node: '>=6'} + + debug@4.4.1: + resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} + engines: {node: '>=6'} + + define-data-property@1.1.4: + resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} + engines: {node: '>= 0.4'} + + define-properties@1.2.1: + resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} + engines: {node: '>= 0.4'} + + des.js@1.1.0: + resolution: {integrity: sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg==} + + detect-libc@2.0.4: + resolution: {integrity: sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==} + engines: {node: '>=8'} + + diffie-hellman@5.0.3: + resolution: {integrity: sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==} + + domain-browser@1.2.0: + resolution: {integrity: sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==} + engines: {node: '>=0.4', npm: '>=1.2'} + + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + + eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + + elliptic@6.6.1: + resolution: {integrity: sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==} + + emittery@1.2.0: + resolution: {integrity: sha512-KxdRyyFcS85pH3dnU8Y5yFUm2YJdaHwcBZWrfG8o89ZY9a13/f9itbN+YG3ELbBo9Pg5zvIozstmuV8bX13q6g==} + engines: {node: '>=14.16'} + + emoji-regex@10.4.0: + resolution: {integrity: sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + + environment@1.1.0: + resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==} + engines: {node: '>=18'} + + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + es-module-lexer@1.7.0: + resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} + + es-object-atoms@1.1.1: + resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} + engines: {node: '>= 0.4'} + + esbuild@0.25.5: + resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==} + engines: {node: '>=18'} + hasBin: true + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + escape-string-regexp@2.0.0: + resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} + engines: {node: '>=8'} + + escape-string-regexp@5.0.0: + resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} + engines: {node: '>=12'} + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + + events@3.3.0: + resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} + engines: {node: '>=0.8.x'} + + evp_bytestokey@1.0.3: + resolution: {integrity: sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==} + + execa@9.6.0: + resolution: {integrity: sha512-jpWzZ1ZhwUmeWRhS7Qv3mhpOhLfwI+uAX4e5fOcXqwMR7EcJ0pj2kV1CVzHVMX/LphnKWD3LObjZCoJ71lKpHw==} + engines: {node: ^18.19.0 || >=20.5.0} + + expect-type@1.2.1: + resolution: {integrity: sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==} + engines: {node: '>=12.0.0'} + + fast-diff@1.3.0: + resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} + + fast-glob@3.3.3: + resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} + engines: {node: '>=8.6.0'} + + fastq@1.19.1: + resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==} + + fdir@6.4.6: + resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fflate@0.8.2: + resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} + + figures@6.1.0: + resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==} + engines: {node: '>=18'} + + file-uri-to-path@1.0.0: + resolution: {integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + find-up-simple@1.0.1: + resolution: {integrity: sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ==} + engines: {node: '>=18'} + + flatted@3.3.3: + resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==} + + for-each@0.3.5: + resolution: {integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==} + engines: {node: '>= 0.4'} + + foreground-child@3.3.1: + resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} + engines: {node: '>=14'} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + + get-east-asian-width@1.3.0: + resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==} + engines: {node: '>=18'} + + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + + get-stream@9.0.1: + resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==} + engines: {node: '>=18'} + + get-tsconfig@4.10.1: + resolution: {integrity: sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + glob@10.4.5: + resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} + hasBin: true + + globals@11.12.0: + resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} + engines: {node: '>=4'} + + globby@14.1.0: + resolution: {integrity: sha512-0Ia46fDOaT7k4og1PDW4YbodWWr3scS2vAr2lTbsplOt2WkKp0vQbkI9wKis/T5LV/dqPjO3bpS/z6GTJB82LA==} + engines: {node: '>=18'} + + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + has-property-descriptors@1.0.2: + resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} + + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + + has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + + hash-base@2.0.2: + resolution: {integrity: sha512-0TROgQ1/SxE6KmxWSvXHvRj90/Xo1JvZShofnYF+f6ZsGtR4eES7WfrQzPalmyagfKZCXpVnitiRebZulWsbiw==} + + hash-base@3.0.5: + resolution: {integrity: sha512-vXm0l45VbcHEVlTCzs8M+s0VeYsB2lnlAaThoLKGXr3bE/VWDOelNUnycUPEhKEaXARL2TEFjBOyUiM6+55KBg==} + engines: {node: '>= 0.10'} + + hash.js@1.1.7: + resolution: {integrity: sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==} + + hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} + + hmac-drbg@1.0.1: + resolution: {integrity: sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==} + + https-browserify@1.0.0: + resolution: {integrity: sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==} + + https-proxy-agent@7.0.6: + resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} + engines: {node: '>= 14'} + + human-signals@8.0.1: + resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==} + engines: {node: '>=18.18.0'} + + husky@9.1.7: + resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==} + engines: {node: '>=18'} + hasBin: true + + ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + + ignore-by-default@2.1.0: + resolution: {integrity: sha512-yiWd4GVmJp0Q6ghmM2B/V3oZGRmjrKLXvHR3TE1nfoXsmoggllfZUQe74EN0fJdPFZu2NIvNdrMMLm3OsV7Ohw==} + engines: {node: '>=10 <11 || >=12 <13 || >=14'} + + ignore@7.0.5: + resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==} + engines: {node: '>= 4'} + + imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + + indent-string@5.0.0: + resolution: {integrity: sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==} + engines: {node: '>=12'} + + inherits@2.0.3: + resolution: {integrity: sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==} + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + irregular-plurals@3.5.0: + resolution: {integrity: sha512-1ANGLZ+Nkv1ptFb2pa8oG8Lem4krflKuX/gINiHJHjJUKaJHk/SXk5x6K3J+39/p0h1RQ2saROclJJ+QLvETCQ==} + engines: {node: '>=8'} + + is-callable@1.2.7: + resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} + engines: {node: '>= 0.4'} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-fullwidth-code-point@4.0.0: + resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==} + engines: {node: '>=12'} + + is-fullwidth-code-point@5.0.0: + resolution: {integrity: sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==} + engines: {node: '>=18'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-plain-obj@4.1.0: + resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} + engines: {node: '>=12'} + + is-plain-object@5.0.0: + resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==} + engines: {node: '>=0.10.0'} + + is-promise@4.0.0: + resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} + + is-stream@4.0.1: + resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==} + engines: {node: '>=18'} + + is-typed-array@1.1.15: + resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==} + engines: {node: '>= 0.4'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-url-superb@4.0.0: + resolution: {integrity: sha512-GI+WjezhPPcbM+tqE9LnmsY5qqjwHzTvjJ36wxYX5ujNXefSUJ/T17r5bqDV8yLhcgB59KTPNOc9O9cmHTPWsA==} + engines: {node: '>=10'} + + isarray@1.0.0: + resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} + + isarray@2.0.5: + resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + jackspeak@3.4.3: + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + + js-string-escape@1.0.1: + resolution: {integrity: sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==} + engines: {node: '>= 0.8'} + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + js-tokens@9.0.1: + resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} + + js-yaml@3.14.1: + resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} + hasBin: true + + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + lilconfig@3.1.3: + resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} + engines: {node: '>=14'} + + lint-staged@16.1.2: + resolution: {integrity: sha512-sQKw2Si2g9KUZNY3XNvRuDq4UJqpHwF0/FQzZR2M7I5MvtpWvibikCjUVJzZdGE0ByurEl3KQNvsGetd1ty1/Q==} + engines: {node: '>=20.17'} + hasBin: true + + listr2@8.3.3: + resolution: {integrity: sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==} + engines: {node: '>=18.0.0'} + + load-json-file@7.0.1: + resolution: {integrity: sha512-Gnxj3ev3mB5TkVBGad0JM6dmLiQL+o0t23JPBZ9sd+yvSLk05mFoqKBw5N8gbbkU4TNXyqCgIrl/VM17OgUIgQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + lodash@4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + + log-update@6.1.0: + resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==} + engines: {node: '>=18'} + + loupe@3.1.4: + resolution: {integrity: sha512-wJzkKwJrheKtknCOKNEtDK4iqg/MxmZheEMtSTYvnzRdEYaZzmgH976nenp8WdJRdx5Vc1X/9MO0Oszl6ezeXg==} + + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + + lru-cache@4.1.5: + resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} + + magic-string@0.30.17: + resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} + + matcher@5.0.0: + resolution: {integrity: sha512-s2EMBOWtXFc8dgqvoAzKJXxNHibcdJMV0gwqKUaw9E2JBJuGUK7DrNKrA6g/i+v72TT16+6sVm5mS3thaMLQUw==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + + md5-hex@3.0.1: + resolution: {integrity: sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==} + engines: {node: '>=8'} + + md5.js@1.3.5: + resolution: {integrity: sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==} + + mdn-data@2.12.2: + resolution: {integrity: sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==} + + memoize@10.1.0: + resolution: {integrity: sha512-MMbFhJzh4Jlg/poq1si90XRlTZRDHVqdlz2mPyGJ6kqMpyHUyVpDd5gpFAvVehW64+RA1eKE9Yt8aSLY7w2Kgg==} + engines: {node: '>=18'} + + merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + miller-rabin@4.0.1: + resolution: {integrity: sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==} + hasBin: true + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minimalistic-assert@1.0.1: + resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} + + minimalistic-crypto-utils@1.0.1: + resolution: {integrity: sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==} + + minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} + + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.0.2: + resolution: {integrity: sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==} + engines: {node: '>= 18'} + + mkdirp@3.0.1: + resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} + engines: {node: '>=10'} + hasBin: true + + mrmime@2.0.1: + resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==} + engines: {node: '>=10'} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + nano-spawn@1.0.2: + resolution: {integrity: sha512-21t+ozMQDAL/UGgQVBbZ/xXvNO10++ZPuTmKRO8k9V3AClVRht49ahtDjfY8l1q6nSHOrE5ASfthzH3ol6R/hg==} + engines: {node: '>=20.17'} + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + + node-gyp-build@4.8.4: + resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==} + hasBin: true + + node-libs-browser@2.2.1: + resolution: {integrity: sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==} + + nofilter@3.1.0: + resolution: {integrity: sha512-l2NNj07e9afPnhAhvgVrCD/oy2Ai1yfLpuo3EpiO1jFTsB4sFz6oIfAfSZyQzVpkZQ9xS8ZS5g1jCBgq4Hwo0g==} + engines: {node: '>=12.19'} + + nopt@8.1.0: + resolution: {integrity: sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A==} + engines: {node: ^18.17.0 || >=20.5.0} + hasBin: true + + npm-run-path@6.0.0: + resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==} + engines: {node: '>=18'} + + object-inspect@1.13.4: + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} + + object-keys@1.1.1: + resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} + engines: {node: '>= 0.4'} + + object.assign@4.1.7: + resolution: {integrity: sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==} + engines: {node: '>= 0.4'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + os-browserify@0.3.0: + resolution: {integrity: sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==} + + os-shim@0.1.3: + resolution: {integrity: sha512-jd0cvB8qQ5uVt0lvCIexBaROw1KyKm5sbulg2fWOHjETisuCzWyt+eTZKEMs8v6HwzoGs8xik26jg7eCM6pS+A==} + engines: {node: '>= 0.4.0'} + + oxlint@1.3.0: + resolution: {integrity: sha512-PzAOmPxnXYpVF1q6h9pkOPH6uJ/44XrtFWJ8JcEMpoEq9HISNelD3lXhACtOAW8CArjLy/qSlu2KkyPxnXgctA==} + engines: {node: '>=8.*'} + hasBin: true + + p-map@7.0.3: + resolution: {integrity: sha512-VkndIv2fIB99swvQoA65bm+fsmt6UNdGeIB0oxBs+WhAhdh08QA04JXpI7rbB9r08/nkbysKoya9rtDERYOYMA==} + engines: {node: '>=18'} + + package-config@5.0.0: + resolution: {integrity: sha512-GYTTew2slBcYdvRHqjhwaaydVMvn/qrGC323+nKclYioNSLTDUM/lGgtGTgyHVtYcozb+XkE8CNhwcraOmZ9Mg==} + engines: {node: '>=18'} + + package-json-from-dist@1.0.1: + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + + pako@1.0.11: + resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} + + parse-asn1@5.1.7: + resolution: {integrity: sha512-CTM5kuWR3sx9IFamcl5ErfPl6ea/N8IYwiJ+vpeB2g+1iknv7zBl5uPwbMbRVznRVbrNY6lGuDoE5b30grmbqg==} + engines: {node: '>= 0.10'} + + parse-ms@4.0.0: + resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==} + engines: {node: '>=18'} + + path-browserify@0.0.1: + resolution: {integrity: sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + + path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + + path-scurry@1.11.1: + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} + + path-type@6.0.0: + resolution: {integrity: sha512-Vj7sf++t5pBD637NSfkxpHSMfWaeig5+DKWLhcqIYx6mWQz5hdJTGDVMQiJcw1ZYkhs7AazKDGpRVji1LJCZUQ==} + engines: {node: '>=18'} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + pathval@2.0.1: + resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==} + engines: {node: '>= 14.16'} + + pbkdf2@3.1.3: + resolution: {integrity: sha512-wfRLBZ0feWRhCIkoMB6ete7czJcnNnqRpcoWQBLqatqXXmelSRqfdDK4F3u9T2s2cXas/hQJcryI/4lAL+XTlA==} + engines: {node: '>=0.12'} + + perfy@1.1.5: + resolution: {integrity: sha512-/ieVBpMaPTJf83YTUl2TImsSwMEJ23qGP2w27pE6aX+NrB/ZRGqOnQZpl7J719yFwd+ebDiHguPNFeMSamyK7w==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + + picomatch@4.0.2: + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + engines: {node: '>=12'} + + pidtree@0.6.0: + resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==} + engines: {node: '>=0.10'} + hasBin: true + + plur@5.1.0: + resolution: {integrity: sha512-VP/72JeXqak2KiOzjgKtQen5y3IZHn+9GOuLDafPv0eXa47xq0At93XahYBs26MsifCQ4enGKwbjBTKgb9QJXg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + possible-typed-array-names@1.1.0: + resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==} + engines: {node: '>= 0.4'} + + postcss-value-parser@4.2.0: + resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} + + postcss@8.5.6: + resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} + engines: {node: ^10 || ^12 || >=14} + + pre-commit@1.2.2: + resolution: {integrity: sha512-qokTiqxD6GjODy5ETAIgzsRgnBWWQHQH2ghy86PU7mIn/wuWeTwF3otyNQZxWBwVn8XNr8Tdzj/QfUXpH+gRZA==} + + prettier-plugin-package@1.4.0: + resolution: {integrity: sha512-jy8UjgHadyznzWfunyjPQPqE2Y92TVF3Q0O829X6pk/ARoKn0vtSu+mtKIsmikZYb2N50mV6vRIqCf19XdOdIg==} + engines: {node: '>=10.13.0'} + peerDependencies: + prettier: ^2.0.0 || ^3.0.0 + + prettier@3.6.2: + resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==} + engines: {node: '>=14'} + hasBin: true + + pretty-ms@9.2.0: + resolution: {integrity: sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==} + engines: {node: '>=18'} + + process-nextick-args@2.0.1: + resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} + + process@0.11.10: + resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} + engines: {node: '>= 0.6.0'} + + pseudomap@1.0.2: + resolution: {integrity: sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==} + + public-encrypt@4.0.3: + resolution: {integrity: sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==} + + punycode@1.4.1: + resolution: {integrity: sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==} + + qs@6.14.0: + resolution: {integrity: sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==} + engines: {node: '>=0.6'} + + querystring-es3@0.2.1: + resolution: {integrity: sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==} + engines: {node: '>=0.4.x'} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + quote-unquote@1.0.0: + resolution: {integrity: sha512-twwRO/ilhlG/FIgYeKGFqyHhoEhqgnKVkcmqMKi2r524gz3ZbDTcyFt38E9xjJI2vT+KbRNHVbnJ/e0I25Azwg==} + + randombytes@2.1.0: + resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} + + randomfill@1.0.4: + resolution: {integrity: sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==} + + readable-stream@2.3.8: + resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} + + regenerator-runtime@0.11.1: + resolution: {integrity: sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==} + + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + + resolve-cwd@3.0.0: + resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} + engines: {node: '>=8'} + + resolve-from@5.0.0: + resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} + engines: {node: '>=8'} + + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + reusify@1.1.0: + resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + rewiremock@3.14.6: + resolution: {integrity: sha512-hjpS7iQUTVVh/IHV4GE1ypg4IzlgVc34gxZBarwwVrKfnjlyqHJuQdsia6Ac7m4f4k/zxxA3tX285MOstdysRQ==} + + rfdc@1.4.1: + resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} + + ripemd160@2.0.1: + resolution: {integrity: sha512-J7f4wutN8mdbV08MJnXibYpCOPHR+yzy+iQ/AsjMv2j8cLavQ8VGagDFUwwTAdF8FmRKVeNpbTTEwNHCW1g94w==} + + ripemd160@2.0.2: + resolution: {integrity: sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==} + + rollup@4.44.1: + resolution: {integrity: sha512-x8H8aPvD+xbl0Do8oez5f5o8eMS3trfCghc4HhLAnCkj7Vl0d1JWGs0UF/D886zLW2rOj2QymV/JcSSsw+XDNg==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + safe-buffer@5.1.2: + resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + semver@7.7.2: + resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==} + engines: {node: '>=10'} + hasBin: true + + serialize-error@7.0.1: + resolution: {integrity: sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==} + engines: {node: '>=10'} + + set-function-length@1.2.2: + resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} + engines: {node: '>= 0.4'} + + setimmediate@1.0.5: + resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==} + + sha.js@2.4.11: + resolution: {integrity: sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==} + hasBin: true + + shebang-command@1.2.0: + resolution: {integrity: sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==} + engines: {node: '>=0.10.0'} + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@1.0.0: + resolution: {integrity: sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==} + engines: {node: '>=0.10.0'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + side-channel-list@1.0.0: + resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==} + engines: {node: '>= 0.4'} + + side-channel-map@1.0.1: + resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==} + engines: {node: '>= 0.4'} + + side-channel-weakmap@1.0.2: + resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} + engines: {node: '>= 0.4'} + + side-channel@1.1.0: + resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} + engines: {node: '>= 0.4'} + + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + sirv@3.0.1: + resolution: {integrity: sha512-FoqMu0NCGBLCcAkS1qA+XJIQTR6/JHfQXl+uGteNCQ76T91DMUjPa9xfmeqMY3z80nLSg9yQmNjK0Px6RWsH/A==} + engines: {node: '>=18'} + + slash@5.1.0: + resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==} + engines: {node: '>=14.16'} + + slice-ansi@5.0.0: + resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==} + engines: {node: '>=12'} + + slice-ansi@7.1.0: + resolution: {integrity: sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==} + engines: {node: '>=18'} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + spawn-sync@1.0.15: + resolution: {integrity: sha512-9DWBgrgYZzNghseho0JOuh+5fg9u6QWhAWa51QC7+U5rCheZ/j1DrEZnyE0RBBRqZ9uEXGPgSSM0nky6burpVw==} + + sprintf-js@1.0.3: + resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + + stack-utils@2.0.6: + resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} + engines: {node: '>=10'} + + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + std-env@3.9.0: + resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==} + + stream-browserify@2.0.2: + resolution: {integrity: sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==} + + stream-http@2.8.3: + resolution: {integrity: sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==} + + string-argv@0.3.2: + resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} + engines: {node: '>=0.6.19'} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + + string-width@7.2.0: + resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} + engines: {node: '>=18'} + + string_decoder@1.1.1: + resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} + + string_decoder@1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + + strip-final-newline@4.0.0: + resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==} + engines: {node: '>=18'} + + strip-literal@3.0.0: + resolution: {integrity: sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==} + + supertap@3.0.1: + resolution: {integrity: sha512-u1ZpIBCawJnO+0QePsEiOknOfCRq0yERxiAchT0i4li0WHNUJbf0evXXSXOcCAR4M8iMDoajXYmstm/qO81Isw==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + tar@7.4.3: + resolution: {integrity: sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==} + engines: {node: '>=18'} + + temp-dir@3.0.0: + resolution: {integrity: sha512-nHc6S/bwIilKHNRgK/3jlhDoIHcp45YgyiwcAk46Tr0LfEqGBVpmiAyuiuxeVE44m3mXnEeVhaipLOEWmH+Njw==} + engines: {node: '>=14.16'} + + text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + + time-zone@1.0.0: + resolution: {integrity: sha512-TIsDdtKo6+XrPtiTm1ssmMngN1sAhyKnTO2kunQWqNPWIVvCm15Wmw4SWInwTVgJ5u/Tr04+8Ei9TNcw4x4ONA==} + engines: {node: '>=4'} + + timers-browserify@2.0.12: + resolution: {integrity: sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ==} + engines: {node: '>=0.6.0'} + + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinyexec@0.3.2: + resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} + + tinyglobby@0.2.14: + resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} + engines: {node: '>=12.0.0'} + + tinypool@1.1.1: + resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==} + engines: {node: ^18.0.0 || >=20.0.0} + + tinyrainbow@2.0.0: + resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} + engines: {node: '>=14.0.0'} + + tinyspy@4.0.3: + resolution: {integrity: sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==} + engines: {node: '>=14.0.0'} + + to-arraybuffer@1.0.1: + resolution: {integrity: sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA==} + + to-buffer@1.2.1: + resolution: {integrity: sha512-tB82LpAIWjhLYbqjx3X4zEeHN6M8CiuOEy2JY8SEQVdYRe3CCHOFaqrBW1doLDrfpWhplcW7BL+bO3/6S3pcDQ==} + engines: {node: '>= 0.4'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + totalist@3.0.1: + resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} + engines: {node: '>=6'} + + tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + + tsx@4.20.3: + resolution: {integrity: sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ==} + engines: {node: '>=18.0.0'} + hasBin: true + + tty-browserify@0.0.0: + resolution: {integrity: sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw==} + + type-fest@0.13.1: + resolution: {integrity: sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==} + engines: {node: '>=10'} + + typed-array-buffer@1.0.3: + resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==} + engines: {node: '>= 0.4'} + + typedarray@0.0.6: + resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} + + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@7.8.0: + resolution: {integrity: sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==} + + unicorn-magic@0.3.0: + resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==} + engines: {node: '>=18'} + + url@0.11.4: + resolution: {integrity: sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==} + engines: {node: '>= 0.4'} + + util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + util@0.10.4: + resolution: {integrity: sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==} + + util@0.11.1: + resolution: {integrity: sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==} + + vite-node@3.2.4: + resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + + vite@7.0.0: + resolution: {integrity: sha512-ixXJB1YRgDIw2OszKQS9WxGHKwLdCsbQNkpJN171udl6szi/rIySHL6/Os3s2+oE4P/FLD4dxg4mD7Wust+u5g==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + jiti: '>=1.21.0' + less: ^4.0.0 + lightningcss: ^1.21.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitest@3.2.4: + resolution: {integrity: sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/debug': ^4.1.12 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + '@vitest/browser': 3.2.4 + '@vitest/ui': 3.2.4 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/debug': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + vm-browserify@1.1.2: + resolution: {integrity: sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==} + + webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + + well-known-symbols@2.0.0: + resolution: {integrity: sha512-ZMjC3ho+KXo0BfJb7JgtQ5IBuvnShdlACNkKkdsqBmYw3bPAaJfPeYUo6tLUaT5tG/Gkh7xkpBhKRQ9e7pyg9Q==} + engines: {node: '>=6'} + + whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + + which-typed-array@1.1.19: + resolution: {integrity: sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==} + engines: {node: '>= 0.4'} + + which@1.2.14: + resolution: {integrity: sha512-16uPglFkRPzgiUXYMi1Jf8Z5EzN1iB4V0ZtMXcHZnwsBtQhhHeCqoWw7tsUY42hJGNDWtUsVLTjakIa5BgAxCw==} + hasBin: true + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + + wipe-node-cache@2.1.2: + resolution: {integrity: sha512-m7NXa8qSxBGMtdQilOu53ctMaIBXy93FOP04EC1Uf4bpsE+r+adfLKwIMIvGbABsznaSNxK/ErD4xXDyY5og9w==} + + wipe-webpack-cache@2.1.0: + resolution: {integrity: sha512-OXzQMGpA7MnQQ8AG+uMl5mWR2ezy6fw1+DMHY+wzYP1qkF1jrek87psLBmhZEj+er4efO/GD4R8jXWFierobaA==} + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + + wrap-ansi@9.0.0: + resolution: {integrity: sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==} + engines: {node: '>=18'} + + write-file-atomic@6.0.0: + resolution: {integrity: sha512-GmqrO8WJ1NuzJ2DrziEI2o57jKAVIQNf8a18W3nCYU3H7PNWqCCVTeH6/NQE93CIllIgQS98rrmVkYgTX9fFJQ==} + engines: {node: ^18.17.0 || >=20.5.0} + + xtend@4.0.2: + resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} + engines: {node: '>=0.4'} + + y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + + yallist@2.1.2: + resolution: {integrity: sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yaml@2.8.0: + resolution: {integrity: sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==} + engines: {node: '>= 14.6'} + hasBin: true + + yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + + yargs@17.7.2: + resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} + engines: {node: '>=12'} + + yoctocolors@2.1.1: + resolution: {integrity: sha512-GQHQqAopRhwU8Kt1DDM8NjibDXHC8eoh1erhGAJPEyveY9qqVeXvVikNKrDz69sHowPMorbPUrH/mx8c50eiBQ==} + engines: {node: '>=18'} + +snapshots: + + '@ava/typescript@6.0.0': + dependencies: + escape-string-regexp: 5.0.0 + execa: 9.6.0 + + '@babel/code-frame@7.27.1': + dependencies: + '@babel/helper-validator-identifier': 7.27.1 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/generator@7.27.5': + dependencies: + '@babel/parser': 7.27.7 + '@babel/types': 7.27.7 + '@jridgewell/gen-mapping': 0.3.8 + '@jridgewell/trace-mapping': 0.3.25 + jsesc: 3.1.0 + + '@babel/helper-string-parser@7.27.1': {} + + '@babel/helper-validator-identifier@7.27.1': {} + + '@babel/parser@7.27.7': + dependencies: + '@babel/types': 7.27.7 + + '@babel/template@7.27.2': + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/parser': 7.27.7 + '@babel/types': 7.27.7 + + '@babel/traverse@7.27.7': + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/generator': 7.27.5 + '@babel/parser': 7.27.7 + '@babel/template': 7.27.2 + '@babel/types': 7.27.7 + debug: 4.4.1 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.27.7': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.27.1 + + '@esbuild/aix-ppc64@0.25.5': + optional: true + + '@esbuild/android-arm64@0.25.5': + optional: true + + '@esbuild/android-arm@0.25.5': + optional: true + + '@esbuild/android-x64@0.25.5': + optional: true + + '@esbuild/darwin-arm64@0.25.5': + optional: true + + '@esbuild/darwin-x64@0.25.5': + optional: true + + '@esbuild/freebsd-arm64@0.25.5': + optional: true + + '@esbuild/freebsd-x64@0.25.5': + optional: true + + '@esbuild/linux-arm64@0.25.5': + optional: true + + '@esbuild/linux-arm@0.25.5': + optional: true + + '@esbuild/linux-ia32@0.25.5': + optional: true + + '@esbuild/linux-loong64@0.25.5': + optional: true + + '@esbuild/linux-mips64el@0.25.5': + optional: true + + '@esbuild/linux-ppc64@0.25.5': + optional: true + + '@esbuild/linux-riscv64@0.25.5': + optional: true + + '@esbuild/linux-s390x@0.25.5': + optional: true + + '@esbuild/linux-x64@0.25.5': + optional: true + + '@esbuild/netbsd-arm64@0.25.5': + optional: true + + '@esbuild/netbsd-x64@0.25.5': + optional: true + + '@esbuild/openbsd-arm64@0.25.5': + optional: true + + '@esbuild/openbsd-x64@0.25.5': + optional: true + + '@esbuild/sunos-x64@0.25.5': + optional: true + + '@esbuild/win32-arm64@0.25.5': + optional: true + + '@esbuild/win32-ia32@0.25.5': + optional: true + + '@esbuild/win32-x64@0.25.5': + optional: true + + '@ianvs/prettier-plugin-sort-imports@4.4.2(prettier@3.6.2)': + dependencies: + '@babel/generator': 7.27.5 + '@babel/parser': 7.27.7 + '@babel/traverse': 7.27.7 + '@babel/types': 7.27.7 + prettier: 3.6.2 + semver: 7.7.2 + transitivePeerDependencies: + - supports-color + + '@isaacs/cliui@8.0.2': + dependencies: + string-width: 5.1.2 + string-width-cjs: string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: wrap-ansi@7.0.0 + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.2 + + '@jridgewell/gen-mapping@0.3.8': + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/set-array@1.2.1': {} + + '@jridgewell/sourcemap-codec@1.5.0': {} + + '@jridgewell/trace-mapping@0.3.25': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.0 + + '@mapbox/node-pre-gyp@2.0.0': + dependencies: + consola: 3.4.2 + detect-libc: 2.0.4 + https-proxy-agent: 7.0.6 + node-fetch: 2.7.0 + nopt: 8.1.0 + semver: 7.7.2 + tar: 7.4.3 + transitivePeerDependencies: + - encoding + - supports-color + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.19.1 + + '@oxlint/darwin-arm64@1.3.0': + optional: true + + '@oxlint/darwin-x64@1.3.0': + optional: true + + '@oxlint/linux-arm64-gnu@1.3.0': + optional: true + + '@oxlint/linux-arm64-musl@1.3.0': + optional: true + + '@oxlint/linux-x64-gnu@1.3.0': + optional: true + + '@oxlint/linux-x64-musl@1.3.0': + optional: true + + '@oxlint/win32-arm64@1.3.0': + optional: true + + '@oxlint/win32-x64@1.3.0': + optional: true + + '@pkgjs/parseargs@0.11.0': + optional: true + + '@polka/url@1.0.0-next.29': {} + + '@rollup/pluginutils@5.2.0(rollup@4.44.1)': + dependencies: + '@types/estree': 1.0.8 + estree-walker: 2.0.2 + picomatch: 4.0.2 + optionalDependencies: + rollup: 4.44.1 + + '@rollup/rollup-android-arm-eabi@4.44.1': + optional: true + + '@rollup/rollup-android-arm64@4.44.1': + optional: true + + '@rollup/rollup-darwin-arm64@4.44.1': + optional: true + + '@rollup/rollup-darwin-x64@4.44.1': + optional: true + + '@rollup/rollup-freebsd-arm64@4.44.1': + optional: true + + '@rollup/rollup-freebsd-x64@4.44.1': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.44.1': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.44.1': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.44.1': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.44.1': + optional: true + + '@rollup/rollup-linux-loongarch64-gnu@4.44.1': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.44.1': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.44.1': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.44.1': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.44.1': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.44.1': + optional: true + + '@rollup/rollup-linux-x64-musl@4.44.1': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.44.1': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.44.1': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.44.1': + optional: true + + '@sec-ant/readable-stream@0.4.1': {} + + '@sindresorhus/merge-streams@2.3.0': {} + + '@sindresorhus/merge-streams@4.0.0': {} + + '@types/chai@5.2.2': + dependencies: + '@types/deep-eql': 4.0.2 + + '@types/color-name@2.0.0': {} + + '@types/css-tree@2.3.10': {} + + '@types/deep-eql@4.0.2': {} + + '@types/estree@1.0.8': {} + + '@types/node@24.0.6': + dependencies: + undici-types: 7.8.0 + + '@types/perfy@1.1.2': {} + + '@types/text-table@0.2.5': {} + + '@vercel/nft@0.29.4(rollup@4.44.1)': + dependencies: + '@mapbox/node-pre-gyp': 2.0.0 + '@rollup/pluginutils': 5.2.0(rollup@4.44.1) + acorn: 8.15.0 + acorn-import-attributes: 1.9.5(acorn@8.15.0) + async-sema: 3.1.1 + bindings: 1.5.0 + estree-walker: 2.0.2 + glob: 10.4.5 + graceful-fs: 4.2.11 + node-gyp-build: 4.8.4 + picomatch: 4.0.2 + resolve-from: 5.0.0 + transitivePeerDependencies: + - encoding + - rollup + - supports-color + + '@vitest/expect@3.2.4': + dependencies: + '@types/chai': 5.2.2 + '@vitest/spy': 3.2.4 + '@vitest/utils': 3.2.4 + chai: 5.2.0 + tinyrainbow: 2.0.0 + + '@vitest/mocker@3.2.4(vite@7.0.0(@types/node@24.0.6)(tsx@4.20.3)(yaml@2.8.0))': + dependencies: + '@vitest/spy': 3.2.4 + estree-walker: 3.0.3 + magic-string: 0.30.17 + optionalDependencies: + vite: 7.0.0(@types/node@24.0.6)(tsx@4.20.3)(yaml@2.8.0) + + '@vitest/pretty-format@3.2.4': + dependencies: + tinyrainbow: 2.0.0 + + '@vitest/runner@3.2.4': + dependencies: + '@vitest/utils': 3.2.4 + pathe: 2.0.3 + strip-literal: 3.0.0 + + '@vitest/snapshot@3.2.4': + dependencies: + '@vitest/pretty-format': 3.2.4 + magic-string: 0.30.17 + pathe: 2.0.3 + + '@vitest/spy@3.2.4': + dependencies: + tinyspy: 4.0.3 + + '@vitest/ui@3.2.4(vitest@3.2.4)': + dependencies: + '@vitest/utils': 3.2.4 + fflate: 0.8.2 + flatted: 3.3.3 + pathe: 2.0.3 + sirv: 3.0.1 + tinyglobby: 0.2.14 + tinyrainbow: 2.0.0 + vitest: 3.2.4(@types/node@24.0.6)(@vitest/ui@3.2.4)(tsx@4.20.3)(yaml@2.8.0) + + '@vitest/utils@3.2.4': + dependencies: + '@vitest/pretty-format': 3.2.4 + loupe: 3.1.4 + tinyrainbow: 2.0.0 + + abbrev@3.0.1: {} + + acorn-import-attributes@1.9.5(acorn@8.15.0): + dependencies: + acorn: 8.15.0 + + acorn-walk@8.3.4: + dependencies: + acorn: 8.15.0 + + acorn@8.15.0: {} + + agent-base@7.1.3: {} + + ansi-escapes@7.0.0: + dependencies: + environment: 1.1.0 + + ansi-regex@5.0.1: {} + + ansi-regex@6.1.0: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansi-styles@6.2.1: {} + + argparse@1.0.10: + dependencies: + sprintf-js: 1.0.3 + + array-find-index@1.0.2: {} + + arrgv@1.0.2: {} + + arrify@3.0.0: {} + + asn1.js@4.10.1: + dependencies: + bn.js: 4.12.2 + inherits: 2.0.4 + minimalistic-assert: 1.0.1 + + assert@1.5.1: + dependencies: + object.assign: 4.1.7 + util: 0.10.4 + + assertion-error@2.0.1: {} + + async-sema@3.1.1: {} + + ava@6.4.0(@ava/typescript@6.0.0)(rollup@4.44.1): + dependencies: + '@vercel/nft': 0.29.4(rollup@4.44.1) + acorn: 8.15.0 + acorn-walk: 8.3.4 + ansi-styles: 6.2.1 + arrgv: 1.0.2 + arrify: 3.0.0 + callsites: 4.2.0 + cbor: 10.0.3 + chalk: 5.4.1 + chunkd: 2.0.1 + ci-info: 4.2.0 + ci-parallel-vars: 1.0.1 + cli-truncate: 4.0.0 + code-excerpt: 4.0.0 + common-path-prefix: 3.0.0 + concordance: 5.0.4 + currently-unhandled: 0.4.1 + debug: 4.4.1 + emittery: 1.2.0 + figures: 6.1.0 + globby: 14.1.0 + ignore-by-default: 2.1.0 + indent-string: 5.0.0 + is-plain-object: 5.0.0 + is-promise: 4.0.0 + matcher: 5.0.0 + memoize: 10.1.0 + ms: 2.1.3 + p-map: 7.0.3 + package-config: 5.0.0 + picomatch: 4.0.2 + plur: 5.1.0 + pretty-ms: 9.2.0 + resolve-cwd: 3.0.0 + stack-utils: 2.0.6 + strip-ansi: 7.1.0 + supertap: 3.0.1 + temp-dir: 3.0.0 + write-file-atomic: 6.0.0 + yargs: 17.7.2 + optionalDependencies: + '@ava/typescript': 6.0.0 + transitivePeerDependencies: + - encoding + - rollup + - supports-color + + available-typed-arrays@1.0.7: + dependencies: + possible-typed-array-names: 1.1.0 + + babel-runtime@6.26.0: + dependencies: + core-js: 2.6.12 + regenerator-runtime: 0.11.1 + + balanced-match@1.0.2: {} + + base64-js@1.5.1: {} + + bindings@1.5.0: + dependencies: + file-uri-to-path: 1.0.0 + + blueimp-md5@2.19.0: {} + + bn.js@4.12.2: {} + + bn.js@5.2.2: {} + + brace-expansion@2.0.2: + dependencies: + balanced-match: 1.0.2 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + brorand@1.1.0: {} + + browserify-aes@1.2.0: + dependencies: + buffer-xor: 1.0.3 + cipher-base: 1.0.6 + create-hash: 1.2.0 + evp_bytestokey: 1.0.3 + inherits: 2.0.4 + safe-buffer: 5.2.1 + + browserify-cipher@1.0.1: + dependencies: + browserify-aes: 1.2.0 + browserify-des: 1.0.2 + evp_bytestokey: 1.0.3 + + browserify-des@1.0.2: + dependencies: + cipher-base: 1.0.6 + des.js: 1.1.0 + inherits: 2.0.4 + safe-buffer: 5.2.1 + + browserify-rsa@4.1.1: + dependencies: + bn.js: 5.2.2 + randombytes: 2.1.0 + safe-buffer: 5.2.1 + + browserify-sign@4.2.3: + dependencies: + bn.js: 5.2.2 + browserify-rsa: 4.1.1 + create-hash: 1.2.0 + create-hmac: 1.1.7 + elliptic: 6.6.1 + hash-base: 3.0.5 + inherits: 2.0.4 + parse-asn1: 5.1.7 + readable-stream: 2.3.8 + safe-buffer: 5.2.1 + + browserify-zlib@0.2.0: + dependencies: + pako: 1.0.11 + + buffer-from@1.1.2: {} + + buffer-xor@1.0.3: {} + + buffer@4.9.2: + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + isarray: 1.0.0 + + builtin-status-codes@3.0.0: {} + + cac@6.7.14: {} + + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + + call-bind@1.0.8: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + get-intrinsic: 1.3.0 + set-function-length: 1.2.2 + + call-bound@1.0.4: + dependencies: + call-bind-apply-helpers: 1.0.2 + get-intrinsic: 1.3.0 + + callsites@4.2.0: {} + + cbor@10.0.3: + dependencies: + nofilter: 3.1.0 + + chai@5.2.0: + dependencies: + assertion-error: 2.0.1 + check-error: 2.1.1 + deep-eql: 5.0.2 + loupe: 3.1.4 + pathval: 2.0.1 + + chalk@5.4.1: {} + + check-error@2.1.1: {} + + chownr@3.0.0: {} + + chunkd@2.0.1: {} + + ci-info@4.2.0: {} + + ci-parallel-vars@1.0.1: {} + + cipher-base@1.0.6: + dependencies: + inherits: 2.0.4 + safe-buffer: 5.2.1 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-truncate@4.0.0: + dependencies: + slice-ansi: 5.0.0 + string-width: 7.2.0 + + cliui@8.0.1: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + + code-excerpt@4.0.0: + dependencies: + convert-to-spaces: 2.0.1 + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + colorette@2.0.20: {} + + commander@14.0.0: {} + + common-path-prefix@3.0.0: {} + + compare-module-exports@2.1.0: {} + + concat-stream@1.6.2: + dependencies: + buffer-from: 1.1.2 + inherits: 2.0.4 + readable-stream: 2.3.8 + typedarray: 0.0.6 + + concordance@5.0.4: + dependencies: + date-time: 3.1.0 + esutils: 2.0.3 + fast-diff: 1.3.0 + js-string-escape: 1.0.1 + lodash: 4.17.21 + md5-hex: 3.0.1 + semver: 7.7.2 + well-known-symbols: 2.0.0 + + consola@3.4.2: {} + + console-browserify@1.2.0: {} + + constants-browserify@1.0.0: {} + + convert-to-spaces@2.0.1: {} + + core-js@2.6.12: {} + + core-util-is@1.0.3: {} + + create-ecdh@4.0.4: + dependencies: + bn.js: 4.12.2 + elliptic: 6.6.1 + + create-hash@1.1.3: + dependencies: + cipher-base: 1.0.6 + inherits: 2.0.4 + ripemd160: 2.0.1 + sha.js: 2.4.11 + + create-hash@1.2.0: + dependencies: + cipher-base: 1.0.6 + inherits: 2.0.4 + md5.js: 1.3.5 + ripemd160: 2.0.2 + sha.js: 2.4.11 + + create-hmac@1.1.7: + dependencies: + cipher-base: 1.0.6 + create-hash: 1.2.0 + inherits: 2.0.4 + ripemd160: 2.0.2 + safe-buffer: 5.2.1 + sha.js: 2.4.11 + + cross-spawn@5.1.0: + dependencies: + lru-cache: 4.1.5 + shebang-command: 1.2.0 + which: 1.2.14 + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + crypto-browserify@3.12.1: + dependencies: + browserify-cipher: 1.0.1 + browserify-sign: 4.2.3 + create-ecdh: 4.0.4 + create-hash: 1.2.0 + create-hmac: 1.1.7 + diffie-hellman: 5.0.3 + hash-base: 3.0.5 + inherits: 2.0.4 + pbkdf2: 3.1.3 + public-encrypt: 4.0.3 + randombytes: 2.1.0 + randomfill: 1.0.4 + + css-tree@3.1.0: + dependencies: + mdn-data: 2.12.2 + source-map-js: 1.2.1 + + currently-unhandled@0.4.1: + dependencies: + array-find-index: 1.0.2 + + date-time@3.1.0: + dependencies: + time-zone: 1.0.0 + + debug@4.4.1: + dependencies: + ms: 2.1.3 + + deep-eql@5.0.2: {} + + define-data-property@1.1.4: + dependencies: + es-define-property: 1.0.1 + es-errors: 1.3.0 + gopd: 1.2.0 + + define-properties@1.2.1: + dependencies: + define-data-property: 1.1.4 + has-property-descriptors: 1.0.2 + object-keys: 1.1.1 + + des.js@1.1.0: + dependencies: + inherits: 2.0.4 + minimalistic-assert: 1.0.1 + + detect-libc@2.0.4: {} + + diffie-hellman@5.0.3: + dependencies: + bn.js: 4.12.2 + miller-rabin: 4.0.1 + randombytes: 2.1.0 + + domain-browser@1.2.0: {} + + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + + eastasianwidth@0.2.0: {} + + elliptic@6.6.1: + dependencies: + bn.js: 4.12.2 + brorand: 1.1.0 + hash.js: 1.1.7 + hmac-drbg: 1.0.1 + inherits: 2.0.4 + minimalistic-assert: 1.0.1 + minimalistic-crypto-utils: 1.0.1 + + emittery@1.2.0: {} + + emoji-regex@10.4.0: {} + + emoji-regex@8.0.0: {} + + emoji-regex@9.2.2: {} + + environment@1.1.0: {} + + es-define-property@1.0.1: {} + + es-errors@1.3.0: {} + + es-module-lexer@1.7.0: {} + + es-object-atoms@1.1.1: + dependencies: + es-errors: 1.3.0 + + esbuild@0.25.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.5 + '@esbuild/android-arm': 0.25.5 + '@esbuild/android-arm64': 0.25.5 + '@esbuild/android-x64': 0.25.5 + '@esbuild/darwin-arm64': 0.25.5 + '@esbuild/darwin-x64': 0.25.5 + '@esbuild/freebsd-arm64': 0.25.5 + '@esbuild/freebsd-x64': 0.25.5 + '@esbuild/linux-arm': 0.25.5 + '@esbuild/linux-arm64': 0.25.5 + '@esbuild/linux-ia32': 0.25.5 + '@esbuild/linux-loong64': 0.25.5 + '@esbuild/linux-mips64el': 0.25.5 + '@esbuild/linux-ppc64': 0.25.5 + '@esbuild/linux-riscv64': 0.25.5 + '@esbuild/linux-s390x': 0.25.5 + '@esbuild/linux-x64': 0.25.5 + '@esbuild/netbsd-arm64': 0.25.5 + '@esbuild/netbsd-x64': 0.25.5 + '@esbuild/openbsd-arm64': 0.25.5 + '@esbuild/openbsd-x64': 0.25.5 + '@esbuild/sunos-x64': 0.25.5 + '@esbuild/win32-arm64': 0.25.5 + '@esbuild/win32-ia32': 0.25.5 + '@esbuild/win32-x64': 0.25.5 + + escalade@3.2.0: {} + + escape-string-regexp@2.0.0: {} + + escape-string-regexp@5.0.0: {} + + esprima@4.0.1: {} + + estree-walker@2.0.2: {} + + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.8 + + esutils@2.0.3: {} + + eventemitter3@5.0.1: {} + + events@3.3.0: {} + + evp_bytestokey@1.0.3: + dependencies: + md5.js: 1.3.5 + safe-buffer: 5.2.1 + + execa@9.6.0: + dependencies: + '@sindresorhus/merge-streams': 4.0.0 + cross-spawn: 7.0.6 + figures: 6.1.0 + get-stream: 9.0.1 + human-signals: 8.0.1 + is-plain-obj: 4.1.0 + is-stream: 4.0.1 + npm-run-path: 6.0.0 + pretty-ms: 9.2.0 + signal-exit: 4.1.0 + strip-final-newline: 4.0.0 + yoctocolors: 2.1.1 + + expect-type@1.2.1: {} + + fast-diff@1.3.0: {} + + fast-glob@3.3.3: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.8 + + fastq@1.19.1: + dependencies: + reusify: 1.1.0 + + fdir@6.4.6(picomatch@4.0.2): + optionalDependencies: + picomatch: 4.0.2 + + fflate@0.8.2: {} + + figures@6.1.0: + dependencies: + is-unicode-supported: 2.1.0 + + file-uri-to-path@1.0.0: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + find-up-simple@1.0.1: {} + + flatted@3.3.3: {} + + for-each@0.3.5: + dependencies: + is-callable: 1.2.7 + + foreground-child@3.3.1: + dependencies: + cross-spawn: 7.0.6 + signal-exit: 4.1.0 + + fsevents@2.3.3: + optional: true + + function-bind@1.1.2: {} + + get-caller-file@2.0.5: {} + + get-east-asian-width@1.3.0: {} + + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.2 + math-intrinsics: 1.1.0 + + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.1 + + get-stream@9.0.1: + dependencies: + '@sec-ant/readable-stream': 0.4.1 + is-stream: 4.0.1 + + get-tsconfig@4.10.1: + dependencies: + resolve-pkg-maps: 1.0.0 + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + glob@10.4.5: + dependencies: + foreground-child: 3.3.1 + jackspeak: 3.4.3 + minimatch: 9.0.5 + minipass: 7.1.2 + package-json-from-dist: 1.0.1 + path-scurry: 1.11.1 + + globals@11.12.0: {} + + globby@14.1.0: + dependencies: + '@sindresorhus/merge-streams': 2.3.0 + fast-glob: 3.3.3 + ignore: 7.0.5 + path-type: 6.0.0 + slash: 5.1.0 + unicorn-magic: 0.3.0 + + gopd@1.2.0: {} + + graceful-fs@4.2.11: {} + + has-property-descriptors@1.0.2: + dependencies: + es-define-property: 1.0.1 + + has-symbols@1.1.0: {} + + has-tostringtag@1.0.2: + dependencies: + has-symbols: 1.1.0 + + hash-base@2.0.2: + dependencies: + inherits: 2.0.4 + + hash-base@3.0.5: + dependencies: + inherits: 2.0.4 + safe-buffer: 5.2.1 + + hash.js@1.1.7: + dependencies: + inherits: 2.0.4 + minimalistic-assert: 1.0.1 + + hasown@2.0.2: + dependencies: + function-bind: 1.1.2 + + hmac-drbg@1.0.1: + dependencies: + hash.js: 1.1.7 + minimalistic-assert: 1.0.1 + minimalistic-crypto-utils: 1.0.1 + + https-browserify@1.0.0: {} + + https-proxy-agent@7.0.6: + dependencies: + agent-base: 7.1.3 + debug: 4.4.1 + transitivePeerDependencies: + - supports-color + + human-signals@8.0.1: {} + + husky@9.1.7: {} + + ieee754@1.2.1: {} + + ignore-by-default@2.1.0: {} + + ignore@7.0.5: {} + + imurmurhash@0.1.4: {} + + indent-string@5.0.0: {} + + inherits@2.0.3: {} + + inherits@2.0.4: {} + + irregular-plurals@3.5.0: {} + + is-callable@1.2.7: {} + + is-extglob@2.1.1: {} + + is-fullwidth-code-point@3.0.0: {} + + is-fullwidth-code-point@4.0.0: {} + + is-fullwidth-code-point@5.0.0: + dependencies: + get-east-asian-width: 1.3.0 + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-number@7.0.0: {} + + is-plain-obj@4.1.0: {} + + is-plain-object@5.0.0: {} + + is-promise@4.0.0: {} + + is-stream@4.0.1: {} + + is-typed-array@1.1.15: + dependencies: + which-typed-array: 1.1.19 + + is-unicode-supported@2.1.0: {} + + is-url-superb@4.0.0: {} + + isarray@1.0.0: {} + + isarray@2.0.5: {} + + isexe@2.0.0: {} + + jackspeak@3.4.3: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + + js-string-escape@1.0.1: {} + + js-tokens@4.0.0: {} + + js-tokens@9.0.1: {} + + js-yaml@3.14.1: + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + + jsesc@3.1.0: {} + + lilconfig@3.1.3: {} + + lint-staged@16.1.2: + dependencies: + chalk: 5.4.1 + commander: 14.0.0 + debug: 4.4.1 + lilconfig: 3.1.3 + listr2: 8.3.3 + micromatch: 4.0.8 + nano-spawn: 1.0.2 + pidtree: 0.6.0 + string-argv: 0.3.2 + yaml: 2.8.0 + transitivePeerDependencies: + - supports-color + + listr2@8.3.3: + dependencies: + cli-truncate: 4.0.0 + colorette: 2.0.20 + eventemitter3: 5.0.1 + log-update: 6.1.0 + rfdc: 1.4.1 + wrap-ansi: 9.0.0 + + load-json-file@7.0.1: {} + + lodash@4.17.21: {} + + log-update@6.1.0: + dependencies: + ansi-escapes: 7.0.0 + cli-cursor: 5.0.0 + slice-ansi: 7.1.0 + strip-ansi: 7.1.0 + wrap-ansi: 9.0.0 + + loupe@3.1.4: {} + + lru-cache@10.4.3: {} + + lru-cache@4.1.5: + dependencies: + pseudomap: 1.0.2 + yallist: 2.1.2 + + magic-string@0.30.17: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + + matcher@5.0.0: + dependencies: + escape-string-regexp: 5.0.0 + + math-intrinsics@1.1.0: {} + + md5-hex@3.0.1: + dependencies: + blueimp-md5: 2.19.0 + + md5.js@1.3.5: + dependencies: + hash-base: 3.0.5 + inherits: 2.0.4 + safe-buffer: 5.2.1 + + mdn-data@2.12.2: {} + + memoize@10.1.0: + dependencies: + mimic-function: 5.0.1 + + merge2@1.4.1: {} + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + + miller-rabin@4.0.1: + dependencies: + bn.js: 4.12.2 + brorand: 1.1.0 + + mimic-function@5.0.1: {} + + minimalistic-assert@1.0.1: {} + + minimalistic-crypto-utils@1.0.1: {} + + minimatch@9.0.5: + dependencies: + brace-expansion: 2.0.2 + + minipass@7.1.2: {} + + minizlib@3.0.2: + dependencies: + minipass: 7.1.2 + + mkdirp@3.0.1: {} + + mrmime@2.0.1: {} + + ms@2.1.3: {} + + nano-spawn@1.0.2: {} + + nanoid@3.3.11: {} + + node-fetch@2.7.0: + dependencies: + whatwg-url: 5.0.0 + + node-gyp-build@4.8.4: {} + + node-libs-browser@2.2.1: + dependencies: + assert: 1.5.1 + browserify-zlib: 0.2.0 + buffer: 4.9.2 + console-browserify: 1.2.0 + constants-browserify: 1.0.0 + crypto-browserify: 3.12.1 + domain-browser: 1.2.0 + events: 3.3.0 + https-browserify: 1.0.0 + os-browserify: 0.3.0 + path-browserify: 0.0.1 + process: 0.11.10 + punycode: 1.4.1 + querystring-es3: 0.2.1 + readable-stream: 2.3.8 + stream-browserify: 2.0.2 + stream-http: 2.8.3 + string_decoder: 1.3.0 + timers-browserify: 2.0.12 + tty-browserify: 0.0.0 + url: 0.11.4 + util: 0.11.1 + vm-browserify: 1.1.2 + + nofilter@3.1.0: {} + + nopt@8.1.0: + dependencies: + abbrev: 3.0.1 + + npm-run-path@6.0.0: + dependencies: + path-key: 4.0.0 + unicorn-magic: 0.3.0 + + object-inspect@1.13.4: {} + + object-keys@1.1.1: {} + + object.assign@4.1.7: + dependencies: + call-bind: 1.0.8 + call-bound: 1.0.4 + define-properties: 1.2.1 + es-object-atoms: 1.1.1 + has-symbols: 1.1.0 + object-keys: 1.1.1 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + os-browserify@0.3.0: {} + + os-shim@0.1.3: {} + + oxlint@1.3.0: + optionalDependencies: + '@oxlint/darwin-arm64': 1.3.0 + '@oxlint/darwin-x64': 1.3.0 + '@oxlint/linux-arm64-gnu': 1.3.0 + '@oxlint/linux-arm64-musl': 1.3.0 + '@oxlint/linux-x64-gnu': 1.3.0 + '@oxlint/linux-x64-musl': 1.3.0 + '@oxlint/win32-arm64': 1.3.0 + '@oxlint/win32-x64': 1.3.0 + + p-map@7.0.3: {} + + package-config@5.0.0: + dependencies: + find-up-simple: 1.0.1 + load-json-file: 7.0.1 + + package-json-from-dist@1.0.1: {} + + pako@1.0.11: {} + + parse-asn1@5.1.7: + dependencies: + asn1.js: 4.10.1 + browserify-aes: 1.2.0 + evp_bytestokey: 1.0.3 + hash-base: 3.0.5 + pbkdf2: 3.1.3 + safe-buffer: 5.2.1 + + parse-ms@4.0.0: {} + + path-browserify@0.0.1: {} + + path-key@3.1.1: {} + + path-key@4.0.0: {} + + path-parse@1.0.7: {} + + path-scurry@1.11.1: + dependencies: + lru-cache: 10.4.3 + minipass: 7.1.2 + + path-type@6.0.0: {} + + pathe@2.0.3: {} + + pathval@2.0.1: {} + + pbkdf2@3.1.3: + dependencies: + create-hash: 1.1.3 + create-hmac: 1.1.7 + ripemd160: 2.0.1 + safe-buffer: 5.2.1 + sha.js: 2.4.11 + to-buffer: 1.2.1 + + perfy@1.1.5: {} + + picocolors@1.1.1: {} + + picomatch@2.3.1: {} + + picomatch@4.0.2: {} + + pidtree@0.6.0: {} + + plur@5.1.0: + dependencies: + irregular-plurals: 3.5.0 + + possible-typed-array-names@1.1.0: {} + + postcss-value-parser@4.2.0: {} + + postcss@8.5.6: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + pre-commit@1.2.2: + dependencies: + cross-spawn: 5.1.0 + spawn-sync: 1.0.15 + which: 1.2.14 + + prettier-plugin-package@1.4.0(prettier@3.6.2): + dependencies: + prettier: 3.6.2 + + prettier@3.6.2: {} + + pretty-ms@9.2.0: + dependencies: + parse-ms: 4.0.0 + + process-nextick-args@2.0.1: {} + + process@0.11.10: {} + + pseudomap@1.0.2: {} + + public-encrypt@4.0.3: + dependencies: + bn.js: 4.12.2 + browserify-rsa: 4.1.1 + create-hash: 1.2.0 + parse-asn1: 5.1.7 + randombytes: 2.1.0 + safe-buffer: 5.2.1 + + punycode@1.4.1: {} + + qs@6.14.0: + dependencies: + side-channel: 1.1.0 + + querystring-es3@0.2.1: {} + + queue-microtask@1.2.3: {} + + quote-unquote@1.0.0: {} + + randombytes@2.1.0: + dependencies: + safe-buffer: 5.2.1 + + randomfill@1.0.4: + dependencies: + randombytes: 2.1.0 + safe-buffer: 5.2.1 + + readable-stream@2.3.8: + dependencies: + core-util-is: 1.0.3 + inherits: 2.0.4 + isarray: 1.0.0 + process-nextick-args: 2.0.1 + safe-buffer: 5.1.2 + string_decoder: 1.1.1 + util-deprecate: 1.0.2 + + regenerator-runtime@0.11.1: {} + + require-directory@2.1.1: {} + + resolve-cwd@3.0.0: + dependencies: + resolve-from: 5.0.0 + + resolve-from@5.0.0: {} + + resolve-pkg-maps@1.0.0: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + reusify@1.1.0: {} + + rewiremock@3.14.6: + dependencies: + babel-runtime: 6.26.0 + compare-module-exports: 2.1.0 + node-libs-browser: 2.2.1 + path-parse: 1.0.7 + wipe-node-cache: 2.1.2 + wipe-webpack-cache: 2.1.0 + + rfdc@1.4.1: {} + + ripemd160@2.0.1: + dependencies: + hash-base: 2.0.2 + inherits: 2.0.4 + + ripemd160@2.0.2: + dependencies: + hash-base: 3.0.5 + inherits: 2.0.4 + + rollup@4.44.1: + dependencies: + '@types/estree': 1.0.8 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.44.1 + '@rollup/rollup-android-arm64': 4.44.1 + '@rollup/rollup-darwin-arm64': 4.44.1 + '@rollup/rollup-darwin-x64': 4.44.1 + '@rollup/rollup-freebsd-arm64': 4.44.1 + '@rollup/rollup-freebsd-x64': 4.44.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.44.1 + '@rollup/rollup-linux-arm-musleabihf': 4.44.1 + '@rollup/rollup-linux-arm64-gnu': 4.44.1 + '@rollup/rollup-linux-arm64-musl': 4.44.1 + '@rollup/rollup-linux-loongarch64-gnu': 4.44.1 + '@rollup/rollup-linux-powerpc64le-gnu': 4.44.1 + '@rollup/rollup-linux-riscv64-gnu': 4.44.1 + '@rollup/rollup-linux-riscv64-musl': 4.44.1 + '@rollup/rollup-linux-s390x-gnu': 4.44.1 + '@rollup/rollup-linux-x64-gnu': 4.44.1 + '@rollup/rollup-linux-x64-musl': 4.44.1 + '@rollup/rollup-win32-arm64-msvc': 4.44.1 + '@rollup/rollup-win32-ia32-msvc': 4.44.1 + '@rollup/rollup-win32-x64-msvc': 4.44.1 + fsevents: 2.3.3 + + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + safe-buffer@5.1.2: {} + + safe-buffer@5.2.1: {} + + semver@7.7.2: {} + + serialize-error@7.0.1: + dependencies: + type-fest: 0.13.1 + + set-function-length@1.2.2: + dependencies: + define-data-property: 1.1.4 + es-errors: 1.3.0 + function-bind: 1.1.2 + get-intrinsic: 1.3.0 + gopd: 1.2.0 + has-property-descriptors: 1.0.2 + + setimmediate@1.0.5: {} + + sha.js@2.4.11: + dependencies: + inherits: 2.0.4 + safe-buffer: 5.2.1 + + shebang-command@1.2.0: + dependencies: + shebang-regex: 1.0.0 + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@1.0.0: {} + + shebang-regex@3.0.0: {} + + side-channel-list@1.0.0: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + + side-channel-map@1.0.1: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + + side-channel-weakmap@1.0.2: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + side-channel-map: 1.0.1 + + side-channel@1.1.0: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + side-channel-list: 1.0.0 + side-channel-map: 1.0.1 + side-channel-weakmap: 1.0.2 + + siginfo@2.0.0: {} + + signal-exit@4.1.0: {} + + sirv@3.0.1: + dependencies: + '@polka/url': 1.0.0-next.29 + mrmime: 2.0.1 + totalist: 3.0.1 + + slash@5.1.0: {} + + slice-ansi@5.0.0: + dependencies: + ansi-styles: 6.2.1 + is-fullwidth-code-point: 4.0.0 + + slice-ansi@7.1.0: + dependencies: + ansi-styles: 6.2.1 + is-fullwidth-code-point: 5.0.0 + + source-map-js@1.2.1: {} + + spawn-sync@1.0.15: + dependencies: + concat-stream: 1.6.2 + os-shim: 0.1.3 + + sprintf-js@1.0.3: {} + + stack-utils@2.0.6: + dependencies: + escape-string-regexp: 2.0.0 + + stackback@0.0.2: {} + + std-env@3.9.0: {} + + stream-browserify@2.0.2: + dependencies: + inherits: 2.0.4 + readable-stream: 2.3.8 + + stream-http@2.8.3: + dependencies: + builtin-status-codes: 3.0.0 + inherits: 2.0.4 + readable-stream: 2.3.8 + to-arraybuffer: 1.0.1 + xtend: 4.0.2 + + string-argv@0.3.2: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@5.1.2: + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + + string-width@7.2.0: + dependencies: + emoji-regex: 10.4.0 + get-east-asian-width: 1.3.0 + strip-ansi: 7.1.0 + + string_decoder@1.1.1: + dependencies: + safe-buffer: 5.1.2 + + string_decoder@1.3.0: + dependencies: + safe-buffer: 5.2.1 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-ansi@7.1.0: + dependencies: + ansi-regex: 6.1.0 + + strip-final-newline@4.0.0: {} + + strip-literal@3.0.0: + dependencies: + js-tokens: 9.0.1 + + supertap@3.0.1: + dependencies: + indent-string: 5.0.0 + js-yaml: 3.14.1 + serialize-error: 7.0.1 + strip-ansi: 7.1.0 + + tar@7.4.3: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.2 + minizlib: 3.0.2 + mkdirp: 3.0.1 + yallist: 5.0.0 + + temp-dir@3.0.0: {} + + text-table@0.2.0: {} + + time-zone@1.0.0: {} + + timers-browserify@2.0.12: + dependencies: + setimmediate: 1.0.5 + + tinybench@2.9.0: {} + + tinyexec@0.3.2: {} + + tinyglobby@0.2.14: + dependencies: + fdir: 6.4.6(picomatch@4.0.2) + picomatch: 4.0.2 + + tinypool@1.1.1: {} + + tinyrainbow@2.0.0: {} + + tinyspy@4.0.3: {} + + to-arraybuffer@1.0.1: {} + + to-buffer@1.2.1: + dependencies: + isarray: 2.0.5 + safe-buffer: 5.2.1 + typed-array-buffer: 1.0.3 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + totalist@3.0.1: {} + + tr46@0.0.3: {} + + tsx@4.20.3: + dependencies: + esbuild: 0.25.5 + get-tsconfig: 4.10.1 + optionalDependencies: + fsevents: 2.3.3 + + tty-browserify@0.0.0: {} + + type-fest@0.13.1: {} + + typed-array-buffer@1.0.3: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + is-typed-array: 1.1.15 + + typedarray@0.0.6: {} + + typescript@5.8.3: {} + + undici-types@7.8.0: {} + + unicorn-magic@0.3.0: {} + + url@0.11.4: + dependencies: + punycode: 1.4.1 + qs: 6.14.0 + + util-deprecate@1.0.2: {} + + util@0.10.4: + dependencies: + inherits: 2.0.3 + + util@0.11.1: + dependencies: + inherits: 2.0.3 + + vite-node@3.2.4(@types/node@24.0.6)(tsx@4.20.3)(yaml@2.8.0): + dependencies: + cac: 6.7.14 + debug: 4.4.1 + es-module-lexer: 1.7.0 + pathe: 2.0.3 + vite: 7.0.0(@types/node@24.0.6)(tsx@4.20.3)(yaml@2.8.0) + transitivePeerDependencies: + - '@types/node' + - jiti + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + + vite@7.0.0(@types/node@24.0.6)(tsx@4.20.3)(yaml@2.8.0): + dependencies: + esbuild: 0.25.5 + fdir: 6.4.6(picomatch@4.0.2) + picomatch: 4.0.2 + postcss: 8.5.6 + rollup: 4.44.1 + tinyglobby: 0.2.14 + optionalDependencies: + '@types/node': 24.0.6 + fsevents: 2.3.3 + tsx: 4.20.3 + yaml: 2.8.0 + + vitest@3.2.4(@types/node@24.0.6)(@vitest/ui@3.2.4)(tsx@4.20.3)(yaml@2.8.0): + dependencies: + '@types/chai': 5.2.2 + '@vitest/expect': 3.2.4 + '@vitest/mocker': 3.2.4(vite@7.0.0(@types/node@24.0.6)(tsx@4.20.3)(yaml@2.8.0)) + '@vitest/pretty-format': 3.2.4 + '@vitest/runner': 3.2.4 + '@vitest/snapshot': 3.2.4 + '@vitest/spy': 3.2.4 + '@vitest/utils': 3.2.4 + chai: 5.2.0 + debug: 4.4.1 + expect-type: 1.2.1 + magic-string: 0.30.17 + pathe: 2.0.3 + picomatch: 4.0.2 + std-env: 3.9.0 + tinybench: 2.9.0 + tinyexec: 0.3.2 + tinyglobby: 0.2.14 + tinypool: 1.1.1 + tinyrainbow: 2.0.0 + vite: 7.0.0(@types/node@24.0.6)(tsx@4.20.3)(yaml@2.8.0) + vite-node: 3.2.4(@types/node@24.0.6)(tsx@4.20.3)(yaml@2.8.0) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 24.0.6 + '@vitest/ui': 3.2.4(vitest@3.2.4) + transitivePeerDependencies: + - jiti + - less + - lightningcss + - msw + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + + vm-browserify@1.1.2: {} + + webidl-conversions@3.0.1: {} + + well-known-symbols@2.0.0: {} + + whatwg-url@5.0.0: + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + + which-typed-array@1.1.19: + dependencies: + available-typed-arrays: 1.0.7 + call-bind: 1.0.8 + call-bound: 1.0.4 + for-each: 0.3.5 + get-proto: 1.0.1 + gopd: 1.2.0 + has-tostringtag: 1.0.2 + + which@1.2.14: + dependencies: + isexe: 2.0.0 + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + + wipe-node-cache@2.1.2: {} + + wipe-webpack-cache@2.1.0: + dependencies: + wipe-node-cache: 2.1.2 + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@8.1.0: + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + + wrap-ansi@9.0.0: + dependencies: + ansi-styles: 6.2.1 + string-width: 7.2.0 + strip-ansi: 7.1.0 + + write-file-atomic@6.0.0: + dependencies: + imurmurhash: 0.1.4 + signal-exit: 4.1.0 + + xtend@4.0.2: {} + + y18n@5.0.8: {} + + yallist@2.1.2: {} + + yallist@5.0.0: {} + + yaml@2.8.0: {} + + yargs-parser@21.1.1: {} + + yargs@17.7.2: + dependencies: + cliui: 8.0.1 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + + yoctocolors@2.1.1: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..efc037a --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +onlyBuiltDependencies: + - esbuild diff --git a/lib/nodes/Container.js b/src/errors.ts similarity index 52% rename from lib/nodes/Container.js rename to src/errors.ts index 5c618ac..65cc740 100644 --- a/lib/nodes/Container.js +++ b/src/errors.ts @@ -1,5 +1,5 @@ /* - Copyright © 2018 Andrew Powell + Copyright © 2025 Andrew Powell This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this @@ -8,14 +8,18 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of this Source Code Form. */ -const PostCssContainer = require('postcss/lib/container'); -const { stringify } = require('../ValuesStringifier'); - -class Container extends PostCssContainer { - toString(stringifier = stringify) { - return super.toString(stringifier); +export class ParseError extends Error { + constructor(error: Error) { + super(error.message); + this.name = 'ParseError'; + this.stack = error.stack; } } -module.exports = Container; +export class AstError extends Error { + constructor() { + super('Invalid or empty AST'); + this.name = 'AstError'; + } +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..2281ff9 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,51 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ + +import { parse as parseInternal, ParseOptions } from './parser.js'; +import { stringify } from './stringify.js'; + +export { registerWalkers } from './walker.js'; +export { ParseOptions } from './parser.js'; +export * from './nodes/index.js'; + +interface Builder { + (part: string, node?: any, type?: 'start' | 'end'): void; +} + +export interface Stringifier { + (node: any, builder: Builder): void; +} + +export const parse = (css: string, options?: ParseOptions) => { + const root = parseInternal(css, options); + + const ogToString = root.toString; + + function toString(stringifier?: Stringifier) { + return ogToString.bind(root)(stringifier || stringify); + } + + root.toString = toString.bind(root); + + return root; +}; + +export const nodeToString = (node: any) => { + let result = ''; + + stringify(node, (bit: string) => { + result += bit; + }); + + return result; +}; + +export { stringify }; diff --git a/src/nodes/Comment.ts b/src/nodes/Comment.ts new file mode 100644 index 0000000..c7de43b --- /dev/null +++ b/src/nodes/Comment.ts @@ -0,0 +1,36 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { Node, NodeOptions } from './Node.js'; + +export class Comment extends Node { + readonly inline: boolean = false; + readonly text: string = ''; + declare type: string; + + constructor(options: NodeOptions) { + super(options); + this.type = 'comment'; + + if (options && options.node) { + const node = options.node as any; + const value = node.value || ''; + + (this as any).value = value; + (this as any).text = value.replace(/^\/\*|\*\/$/g, '').trim(); + (this as any).inline = value.startsWith('//'); + } else if (options && options.value) { + const value = options.value; + (this as any).value = value; + (this as any).text = value.replace(/^\/\*|\*\/$/g, '').trim(); + (this as any).inline = value.startsWith('//'); + } + } +} diff --git a/src/nodes/Container.ts b/src/nodes/Container.ts new file mode 100644 index 0000000..aa3e28f --- /dev/null +++ b/src/nodes/Container.ts @@ -0,0 +1,49 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { Input, Container as PostCssContainer } from 'postcss'; + +import { stringify } from '../stringify.js'; +import { Node, NodeOptions } from './Node.js'; + +export class Container extends PostCssContainer { + public readonly value: string = ''; + + constructor(options?: NodeOptions) { + super({}); + + if (!this.nodes) this.nodes = []; + + if (!options) return; + + if (options.value) { + (this as any).value = options.value; + } + + if (options.parent) { + this.parent = options.parent; + } + + if (options.node && options.node.loc) { + const { end, source, start } = options.node.loc as any; + this.source = { end, input: new Input(source), start }; + } + } + + // Note: The PostCSS types for .push seem a bit jacked up. + // it incorrectly expects properties for types on Declaration for anything being pushed + add(node: Container | Node) { + return this.push(node as any); + } + + toString(stringifier = stringify) { + return super.toString(stringifier || stringify); + } +} diff --git a/src/nodes/Func.ts b/src/nodes/Func.ts new file mode 100644 index 0000000..c9712f5 --- /dev/null +++ b/src/nodes/Func.ts @@ -0,0 +1,37 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { FunctionNode } from 'css-tree'; + +import { Container } from './Container.js'; +import { NodeOptions } from './Node.js'; + +const reColorFunctions = /^(hsla?|hwb|(ok)?lab|(ok)?lch|rgba?)$/i; +const reVar = /^var$/i; + +export class Func extends Container { + readonly isColor: boolean = false; + readonly isVar: boolean = false; + readonly name: string = ''; + readonly params: string = ''; + declare type: string; + + constructor(options: NodeOptions) { + super(options); + this.type = 'func'; + + if (options && options.node && options.node.type === 'Function') { + this.name = (options.node as FunctionNode).name; + this.isColor = reColorFunctions.test(this.name); + this.isVar = reVar.test(this.name); + (this as any).params = ''; + } + } +} diff --git a/src/nodes/Node.ts b/src/nodes/Node.ts new file mode 100644 index 0000000..64088aa --- /dev/null +++ b/src/nodes/Node.ts @@ -0,0 +1,47 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { CssNode } from 'css-tree'; +import { Input, Node as PostCssNode } from 'postcss'; + +import { stringify } from '../stringify.js'; + +export interface NodeOptions { + node?: CssNode; + value?: string; + parent?: any; +} + +export class Node extends PostCssNode { + public readonly value: string = ''; + + constructor(options?: NodeOptions) { + super({}); + + if (!options) return; + + if (options.value) { + (this as any).value = options.value; + } + + if (options.parent) { + this.parent = options.parent; + } + + if (options.node && options.node.loc) { + const { end, source, start } = options.node.loc as any; + this.source = { end, input: new Input(source), start }; + } + } + + toString(stringifier = stringify) { + return super.toString(stringifier || stringify); + } +} diff --git a/src/nodes/Numeric.ts b/src/nodes/Numeric.ts new file mode 100644 index 0000000..bf5a016 --- /dev/null +++ b/src/nodes/Numeric.ts @@ -0,0 +1,44 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { Dimension, NumberNode, Percentage } from 'css-tree'; + +import { Node, NodeOptions } from './Node.js'; + +export class Numeric extends Node { + readonly unit: string = ''; + declare type: string; + + constructor(options: NodeOptions) { + super(options); + this.type = 'numeric'; + + if ( + options && + options.node && + (options.node.type === 'Dimension' || + options.node.type === 'Number' || + options.node.type === 'Percentage') + ) { + const node = options.node as Dimension | NumberNode | Percentage; + + if (node.type === 'Dimension') { + this.unit = (node as Dimension).unit; + (this as any).value = String((node as Dimension).value); + } else if (node.type === 'Number') { + this.unit = ''; + (this as any).value = String((node as NumberNode).value); + } else if (node.type === 'Percentage') { + this.unit = '%'; + (this as any).value = String((node as Percentage).value) + '%'; + } + } + } +} diff --git a/src/nodes/Operator.ts b/src/nodes/Operator.ts new file mode 100644 index 0000000..8bb998d --- /dev/null +++ b/src/nodes/Operator.ts @@ -0,0 +1,29 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { Operator as CssOperator } from 'css-tree'; + +import { Node, NodeOptions } from './Node.js'; + +export class Operator extends Node { + declare type: string; + + constructor(options: NodeOptions) { + super(options); + this.type = 'operator'; + + if (options && options.node && options.node.type === 'Operator') { + const node = options.node as CssOperator; + (this as any).value = node.value; + } else if (options && options.value) { + (this as any).value = options.value; + } + } +} diff --git a/src/nodes/Parentheses.ts b/src/nodes/Parentheses.ts new file mode 100644 index 0000000..ac71fb6 --- /dev/null +++ b/src/nodes/Parentheses.ts @@ -0,0 +1,27 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { Container } from './Container.js'; +import { NodeOptions } from './Node.js'; + +export class Parentheses extends Container { + declare type: string; + + constructor(options: NodeOptions) { + super(options); + this.type = 'parentheses'; + + if (options.node) { + (this as any).value = '()'; + } else if (options.value) { + (this as any).value = options.value; + } + } +} diff --git a/src/nodes/Punctuation.ts b/src/nodes/Punctuation.ts new file mode 100644 index 0000000..7729074 --- /dev/null +++ b/src/nodes/Punctuation.ts @@ -0,0 +1,27 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { Node, NodeOptions } from './Node.js'; + +export class Punctuation extends Node { + declare type: string; + + constructor(options: NodeOptions) { + super(options); + this.type = 'punctuation'; + + if (options && options.node) { + const node = options.node as any; + (this as any).value = node.value; + } else if (options && options.value) { + (this as any).value = options.value; + } + } +} diff --git a/src/nodes/Quoted.ts b/src/nodes/Quoted.ts new file mode 100644 index 0000000..3dadeac --- /dev/null +++ b/src/nodes/Quoted.ts @@ -0,0 +1,54 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { StringNode } from 'css-tree'; +import { unquote } from 'quote-unquote'; + +import { Node, NodeOptions } from './Node.js'; + +export class Quoted extends Node { + readonly quote: string = ''; + readonly contents: string = ''; + declare type: string; + + constructor(options: NodeOptions) { + super(options); + this.type = 'quoted'; + + if (options && options.node && options.node.type === 'String') { + const node = options.node as StringNode; + const contents = node.value; // CSS-tree already gives us unquoted content + + // Get the original quoted string from source if we have location info + let fullValue = `"${contents}"`; + let quote = '"'; + + if (node.loc && node.loc.source && typeof node.loc.source === 'string') { + const original = node.loc.source.substring(node.loc.start.offset, node.loc.end.offset); + if (original) { + fullValue = original; + quote = original.charAt(0); + } + } + + (this as any).value = fullValue; + (this as any).quote = quote; + (this as any).contents = contents; + } else if (options && options.value) { + const fullValue = options.value; + const quote = fullValue.charAt(0); + const contents = unquote(fullValue); + + (this as any).value = fullValue; + (this as any).quote = quote; + (this as any).contents = contents; + } + } +} diff --git a/src/nodes/Root.ts b/src/nodes/Root.ts new file mode 100644 index 0000000..b5ff12b --- /dev/null +++ b/src/nodes/Root.ts @@ -0,0 +1,47 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { Input, Root as PostCssRoot } from 'postcss'; + +import { stringify } from '../stringify.js'; +import { Node, NodeOptions } from './Node.js'; + +export class Root extends PostCssRoot { + public readonly value = ''; + declare type: 'root'; + + constructor(options?: NodeOptions) { + super({}); + this.type = 'root'; + + if (!this.nodes) this.nodes = []; + + if (!options) return; + + if (options.value) { + (this as any).value = options.value; + } + + if (options.node && options.node.loc) { + const { end, source, start } = options.node.loc as any; + this.source = { end, input: new Input(source), start }; + } + } + + // Note: The PostCSS types for .push seem a bit jacked up. + // it incorrectly expects properties for types on Declaration for anything being pushed + add(node: Node) { + return this.push(node as any); + } + + toString(stringifier = stringify) { + return super.toString(stringifier || stringify); + } +} diff --git a/src/nodes/UnicodeRange.ts b/src/nodes/UnicodeRange.ts new file mode 100644 index 0000000..87b1187 --- /dev/null +++ b/src/nodes/UnicodeRange.ts @@ -0,0 +1,32 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { UnicodeRange as CssUnicodeRange } from 'css-tree'; + +import { Node, NodeOptions } from './Node.js'; + +export class UnicodeRange extends Node { + readonly name: string = ''; + declare type: string; + + constructor(options: NodeOptions) { + super(options); + this.type = 'unicodeRange'; + + if (options && options.node && options.node.type === 'UnicodeRange') { + const node = options.node as CssUnicodeRange; + (this as any).value = node.value; + (this as any).name = node.value; + } else if (options && options.value) { + (this as any).value = options.value; + (this as any).name = options.value; + } + } +} diff --git a/src/nodes/Word.ts b/src/nodes/Word.ts new file mode 100644 index 0000000..ae62ff0 --- /dev/null +++ b/src/nodes/Word.ts @@ -0,0 +1,64 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import colorNames from 'color-name'; +import { Hash, Identifier, StringNode } from 'css-tree'; +import isUrl from 'is-url-superb'; + +import { Node, NodeOptions } from './Node.js'; + +const reHex = /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i; +const reVariable = /^--/; + +export class Word extends Node { + readonly isColor: boolean = false; + readonly isHex: boolean = false; + readonly isUrl: boolean = false; + readonly isVariable: boolean = false; + declare type: string; + + constructor(options: NodeOptions) { + super(options); + this.type = 'word'; + + let value = ''; + + if ( + options && + options.node && + (options.node.type === 'Identifier' || + options.node.type === 'Hash' || + options.node.type === 'String') + ) { + const node = options.node as Identifier | Hash | StringNode; + + if (node.type === 'Identifier') { + value = (node as Identifier).name; + } else if (node.type === 'Hash') { + value = `#${(node as Hash).value}`; + } else if (node.type === 'String') { + value = (node as StringNode).value; + } else { + // Fallback for other node types + value = (node as any).value || (node as any).name || ''; + } + } else if (options && options.value) { + value = options.value; + } + + (this as any).value = value; + + // Determine word properties + this.isHex = reHex.test(value); + this.isVariable = reVariable.test(value); + this.isUrl = !this.isVariable && isUrl(value); + this.isColor = this.isHex || (colorNames as any)[value.toLowerCase()] !== undefined; + } +} diff --git a/src/nodes/index.ts b/src/nodes/index.ts new file mode 100644 index 0000000..138f793 --- /dev/null +++ b/src/nodes/index.ts @@ -0,0 +1,22 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +export { Node, NodeOptions } from './Node.js'; +export { Container } from './Container.js'; +export { Root } from './Root.js'; +export { Func } from './Func.js'; +export { Numeric } from './Numeric.js'; +export { Operator } from './Operator.js'; +export { Word } from './Word.js'; +export { Quoted } from './Quoted.js'; +export { UnicodeRange } from './UnicodeRange.js'; +export { Comment } from './Comment.js'; +export { Punctuation } from './Punctuation.js'; +export { Parentheses } from './Parentheses.js'; diff --git a/src/parser.ts b/src/parser.ts new file mode 100644 index 0000000..afaace0 --- /dev/null +++ b/src/parser.ts @@ -0,0 +1,247 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { CssNode, CssNodePlain, List, parse as parseAst, Value } from 'css-tree'; + +import { AstError, ParseError } from './errors.js'; +import * as Nodes from './nodes/index.js'; + +export interface ParseOptions { + ignoreUnknownWords?: boolean; + interpolation?: boolean | InterpolationOptions; + variables?: VariablesOptions; +} + +export interface InterpolationOptions { + prefix: string; +} + +export interface VariablesOptions { + prefixes: string[]; +} + +interface MaybeParent { + children: List | CssNodePlain[]; +} + +const assign = (parent: Nodes.Container | Nodes.Root, nodes: CssNode[]) => { + for (const node of nodes) { + let newNode: + | Nodes.Container + | Nodes.Node + | Nodes.Numeric + | Nodes.Operator + | Nodes.UnicodeRange + | Nodes.Word + | Nodes.Func + | Nodes.Quoted + | Nodes.Comment + | Nodes.Punctuation + | Nodes.Parentheses; + + switch (node.type) { + case 'Function': + newNode = new Nodes.Func({ node }); + break; + case 'Url': + // Create a Word node for URL with the URL value for toString() + newNode = new Nodes.Word({ + node: { + ...node, + type: 'Identifier' as any, + name: (node as any).value || '' + } as any + }); + // Set the value property to the URL content for toString() + (newNode as any).value = (node as any).value || ''; + break; + case 'Dimension': + case 'Number': + case 'Percentage': + newNode = new Nodes.Numeric({ node }); + break; + case 'Operator': + newNode = new Nodes.Operator({ node }); + break; + case 'UnicodeRange': + newNode = new Nodes.UnicodeRange({ node }); + break; + case 'String': + newNode = new Nodes.Quoted({ node }); + break; + case 'Hash': + case 'Identifier': + newNode = new Nodes.Word({ node }); + break; + case 'Parentheses': + newNode = new Nodes.Parentheses({ node }); + break; + default: + // Fallback to Word for unknown types + newNode = new Nodes.Word({ node }); + break; + } + + const maybeParent = node as unknown as MaybeParent; + + if ( + maybeParent.children && + (newNode instanceof Nodes.Container || + newNode instanceof Nodes.Func || + newNode instanceof Nodes.Parentheses) + ) { + let children: CssNode[]; + if (maybeParent.children instanceof List) { + children = maybeParent.children.toArray(); + } else { + children = maybeParent.children as CssNode[]; + } + + assign(newNode as Nodes.Container, children); + } + + parent.add(newNode); + } +}; + +export const parse = (css: string, _opts?: ParseOptions) => { + let ast: Value; + const root = new Nodes.Root({ + node: { + type: 'Value', + loc: { + source: css, + start: { line: 1, column: 1 }, + end: { line: 1, column: css.length + 1 } + } + } as any + }); + + try { + ast = parseAst(css, { + context: 'value', + positions: true + }) as Value; + } catch (error: any) { + throw new ParseError(error); + } + + if (!ast?.children) { + throw new AstError(); + } + + const nodes = ast.children.toArray(); + + if (!nodes.length) { + throw new AstError(); + } + + // Store original CSS input for source extraction + const assignWithSource = ( + parent: Nodes.Container | Nodes.Root, + nodes: CssNode[], + originalCss: string + ) => { + for (const node of nodes) { + let newNode: + | Nodes.Container + | Nodes.Node + | Nodes.Numeric + | Nodes.Operator + | Nodes.UnicodeRange + | Nodes.Word + | Nodes.Func + | Nodes.Quoted + | Nodes.Comment + | Nodes.Punctuation + | Nodes.Parentheses; + + // Create node options with original CSS for source extraction + const nodeOptions = { + node: { + ...node, + loc: node.loc + ? { + ...node.loc, + source: originalCss + } + : undefined + } + }; + + switch (node.type) { + case 'Function': + newNode = new Nodes.Func(nodeOptions); + break; + case 'Url': + // Create a Word node for URL with the URL value for toString() + newNode = new Nodes.Word({ + node: { + ...nodeOptions.node, + type: 'Identifier' as any, + name: (node as any).value || '' + } as any + }); + // Set the value property to the URL content for toString() + (newNode as any).value = (node as any).value || ''; + break; + case 'Dimension': + case 'Number': + case 'Percentage': + newNode = new Nodes.Numeric(nodeOptions); + break; + case 'Operator': + newNode = new Nodes.Operator(nodeOptions); + break; + case 'UnicodeRange': + newNode = new Nodes.UnicodeRange(nodeOptions); + break; + case 'String': + newNode = new Nodes.Quoted(nodeOptions); + break; + case 'Hash': + case 'Identifier': + newNode = new Nodes.Word(nodeOptions); + break; + case 'Parentheses': + newNode = new Nodes.Parentheses(nodeOptions); + break; + default: + // Fallback to Word for unknown types + newNode = new Nodes.Word(nodeOptions); + break; + } + + const maybeParent = node as unknown as MaybeParent; + + if ( + maybeParent.children && + (newNode instanceof Nodes.Container || + newNode instanceof Nodes.Func || + newNode instanceof Nodes.Parentheses) + ) { + let children: CssNode[]; + if (maybeParent.children instanceof List) { + children = maybeParent.children.toArray(); + } else { + children = maybeParent.children as CssNode[]; + } + + assignWithSource(newNode as Nodes.Container, children, originalCss); + } + + parent.add(newNode); + } + }; + + assignWithSource(root, nodes, css); + + return root; +}; diff --git a/src/stringify.ts b/src/stringify.ts new file mode 100644 index 0000000..796aebe --- /dev/null +++ b/src/stringify.ts @@ -0,0 +1,94 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ + +interface Builder { + (part: string, node?: any, type?: 'start' | 'end'): void; +} + +export interface Stringifier { + (node: any, builder: Builder): void; +} + +const stringifyNode = (node: any, builder: Builder, parentNode?: any, index?: number): void => { + // Add space before non-operator nodes if needed + const needsSpaceAfter = (prevNode: any, currentNode: any) => { + if (!prevNode) return false; + if (prevNode.type === 'operator' || currentNode.type === 'operator') return false; + if (prevNode.type === 'punctuation' || currentNode.type === 'punctuation') return false; + return true; + }; + + // Add space before current node if needed + if (parentNode && parentNode.nodes && index !== undefined && index > 0) { + const prevNode = parentNode.nodes[index - 1]; + if (needsSpaceAfter(prevNode, node)) { + builder(' '); + } + } + + switch (node.type) { + case 'root': + if (node.nodes) { + for (let i = 0; i < node.nodes.length; i++) { + stringifyNode(node.nodes[i], builder, node, i); + } + } + break; + + case 'func': + builder(node.name, node, 'start'); + builder('(', node); + if (node.nodes) { + for (let i = 0; i < node.nodes.length; i++) { + stringifyNode(node.nodes[i], builder, node, i); + } + } + builder(')', node, 'end'); + break; + + case 'parentheses': + builder('(', node, 'start'); + if (node.nodes) { + for (let i = 0; i < node.nodes.length; i++) { + stringifyNode(node.nodes[i], builder, node, i); + } + } + builder(')', node, 'end'); + break; + + case 'word': + case 'numeric': + case 'operator': + case 'quoted': + case 'unicodeRange': + case 'punctuation': + builder(node.value || '', node); + break; + + case 'comment': + if (node.inline) { + builder(`//${node.text}`, node); + } else { + builder(`/*${node.text}*/`, node); + } + break; + + default: + if (node.value) { + builder(node.value, node); + } + break; + } +}; + +export const stringify: Stringifier = (node: any, builder: Builder) => { + stringifyNode(node, builder); +}; diff --git a/src/types/quote-unquote.d.ts b/src/types/quote-unquote.d.ts new file mode 100644 index 0000000..1ae4f96 --- /dev/null +++ b/src/types/quote-unquote.d.ts @@ -0,0 +1,6 @@ +declare module 'quote-unquote' { + export function unquote(str: string): string; + export function quote(str: string): string; + export function single(str: string): string; + export function double(str: string): string; +} diff --git a/src/walker.ts b/src/walker.ts new file mode 100644 index 0000000..c56a9d9 --- /dev/null +++ b/src/walker.ts @@ -0,0 +1,60 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ + +interface WalkCallback { + (node: any, index: number): any; +} + +const createWalker = (type: string) => { + return function (this: any, callback: WalkCallback) { + let index = 0; + const walk = (node: any): any => { + if (node.type === type.toLowerCase()) { + const result = callback(node, index++); + if (result === false) return false; + } + + if (node.nodes && node.nodes.length > 0) { + for (const child of node.nodes) { + const result = walk(child); + if (result === false) return false; + } + } + }; + + return walk(this); + }; +}; + +export const registerWalkers = (Container: any) => { + const walkerTypes = [ + 'Funcs', + 'Words', + 'Numerics', + 'Operators', + 'Quoteds', + 'UnicodeRanges', + 'Comments', + 'Punctuations' + ]; + + for (const walkerType of walkerTypes) { + const methodName = `walk${walkerType}`; + const nodeType = walkerType.toLowerCase().slice(0, -1); // Remove 's' and lowercase + + Container.prototype[methodName] = createWalker(nodeType); + } + + // Special case for walkType + Container.prototype.walkType = function (type: string, callback: WalkCallback) { + return createWalker(type).call(this, callback); + }; +}; diff --git a/test/atword.test.js b/test/atword.test.js deleted file mode 100644 index f6d9068..0000000 --- a/test/atword.test.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { snapshot } = require('./fixtures/atword'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} diff --git a/test/comment.test.js b/test/comment.test.js deleted file mode 100644 index 408b088..0000000 --- a/test/comment.test.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { snapshot, throws } = require('./fixtures/comment'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} - -for (const fixture of throws) { - test(fixture, (t) => { - t.throws(() => parse(fixture)); - }); -} diff --git a/test/fixtures/atword.js b/test/fixtures/atword.js deleted file mode 100644 index 5959cf6..0000000 --- a/test/fixtures/atword.js +++ /dev/null @@ -1,13 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - snapshot: [' @word '] -}; diff --git a/test/fixtures/comment.js b/test/fixtures/comment.js deleted file mode 100644 index d1e96d7..0000000 --- a/test/fixtures/comment.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - snapshot: [ - '/*before*/ 1px /*between*/ 1px /*after*/', - '/**/', - '//before\n 1px //between\n 1px //after\n', - '//\n', - '//', - '/*before*/\n//between\n/*after*/', - '//before\n/*between*/\n//after' - ], - throws: ['/*comment*/ 1px /* unclosed '] -}; diff --git a/test/fixtures/func.js b/test/fixtures/func.js deleted file mode 100644 index 562b243..0000000 --- a/test/fixtures/func.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - snapshot: [ - 'url()', - 'url() foo bar baz', - 'url(var(foo))', - 'url( /gfx/img/bg.jpg )', - "url( '/gfx/img/bg.jpg' )", - 'url( "/gfx/img/bg.jpg" )', - "url( 'http://domain.com/gfx/img/bg.jpg' )", - 'url( "http://domain.com/gfx/img/bg.jpg" )', - 'url("/gfx/img/bg.jpg" hello )', - 'url("http://domain.com/gfx/img/bg.jpg" hello )', - 'url(http://123.example.com)', - 'url(//123.example.com)', - 'rgba( 29, 439 , 29 )', - 'RGBA( 29, 439 , 29 )', - 'RgBa( 29, 439 , 29 )', - 'Lab( 40% 56.6 39 )', - 'lCH(40% 68.8 34.5 / 50%)', - 'hwb(90deg 0% 0% / 0.5)', - 'calc(-0.5 * var(foo))', - 'calc(var(--foo)*var(--bar))', - 'calc(1px + -2vw - 4px)', - 'calc(((768px - 100vw) / 2) - 15px)', - 'calc(((768px - 100vw)/2) - 15px)', - 'bar(baz(black, 10%), 10%)', - '-webkit-linear-gradient(0)', - 'var(--foo)', - 'var( --foo)', - 'var(--foo )', - 'var( --foo )', - 'var(--foo, default-value)', - 'rotate(72.3deg)', - 'rotate(0.5deg)', - 'rotate(.5deg)', - 'rotate(0.5rad)', - 'rotate(0.5grad)', - 'rotate(0.5turn)', - '1em/var(--line-height)', - 'local(foo),local(bar)', - 'bat-man(#000)', - 'conic-gradient()', - 'color.red(#6b717f)' - ], - - throws: ['url( /gfx/img/bg.jpg '] -}; diff --git a/test/fixtures/func.json b/test/fixtures/func.json new file mode 100644 index 0000000..14fceff --- /dev/null +++ b/test/fixtures/func.json @@ -0,0 +1,55 @@ +{ + "snapshot": [ + "url()", + "url() foo bar baz", + "url( /gfx/img/bg.jpg )", + "url( '/gfx/img/bg.jpg' )", + "url( \"/gfx/img/bg.jpg\" )", + "url( 'http://domain.com/gfx/img/bg.jpg' )", + "url( \"http://domain.com/gfx/img/bg.jpg\" )", + "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=)", + "url(http://123.example.com)", + "url(//123.example.com)", + "rgba( 29, 439 , 29 )", + "RGBA( 29, 439 , 29 )", + "RgBa( 29, 439 , 29 )", + "Lab( 40% 56.6 39 )", + "okLab( 40% 56.6 39 )", + "lCH(40% 68.8 34.5 / 50%)", + "oklCH(40% 68.8 34.5 / 50%)", + "hwb(90deg 0% 0% / 0.5)", + "calc(-0.5 * var(foo))", + "calc(var(--foo)*var(--bar))", + "calc(1px + -2vw - 4px)", + "calc(((768px - 100vw) / 2) - 15px)", + "calc(((768px - 100vw)/2) - 15px)", + "calc(var(--mdc-layout-grid-gutter-desktop, 24px)/2*-1)", + "bar(baz(black, 10%), 10%)", + "-webkit-linear-gradient(0)", + "var(--foo)", + "var( --foo)", + "var(--foo )", + "var( --foo )", + "var(--foo, default-value)", + "var(--font-size)/var(--line-height)", + "rotate(72.3deg)", + "rotate(0.5deg)", + "rotate(.5deg)", + "rotate(0.5rad)", + "rotate(0.5grad)", + "rotate(0.5turn)", + "1em/var(--line-height)", + "local(foo),local(bar)", + "bat-man(#000)", + "conic-gradient()", + "url( /gfx/img/bg.jpg ", + "src(var(--foo))", + "clamp(1.25rem, 0.9423rem + 1.5385vw, 1.75rem)" + ], + "throws": [ + "url(var(--foo))", + "url(\"/gfx/img/bg.jpg\" hello )", + "url(\"http://domain.com/gfx/img/bg.jpg\" hello )", + "color.red(#6b717f)" + ] +} diff --git a/test/fixtures/interpolation.js b/test/fixtures/interpolation.js deleted file mode 100644 index e959108..0000000 --- a/test/fixtures/interpolation.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - options: { - interpolation: { prefix: '#' } - }, - snapshot: ['#{batman}', '#{2px}', '#{2 * 2px}'], - throws: ['#{batman'] -}; diff --git a/test/fixtures/numeric.js b/test/fixtures/numeric.js deleted file mode 100644 index b0ce33f..0000000 --- a/test/fixtures/numeric.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - snapshot: [ - '.23rem', - '0.5', - '-0.5', - '2.', - '+2', - '-2', - '5/5', - '5 +5', - '5 + 5', - '-2px', - '-16px', - '-16px -1px -1px -16px', - '10q', - '1e10', - '1E10', - '1e-10', - '1E-10', - '1e+10', - '1E+10', - '-.567800E-0012780em', - '.1E-10', - '.1E+10', - '0.5s', - '500ms', - '0.5s + 0.5s', - '-.3s', - '-.3s + 0.5s', - '1138--thx', - '32deg', - '0.5grad', - '0.5rad', - '.5deg', - '0.5deg', - '72.3deg', - '1.5dppx' - ], - throws: ['+-2.', '.', '.rem', '.2.3rem'] -}; - -// TODO: '1e -10', '1e' diff --git a/test/fixtures/numeric.json b/test/fixtures/numeric.json new file mode 100644 index 0000000..1627a5e --- /dev/null +++ b/test/fixtures/numeric.json @@ -0,0 +1,42 @@ +{ + "snapshot": [ + ".23rem", + "0.5", + "-0.5", + "+2", + "-2", + "5/5", + "5 +5", + "5 + 5", + "-2px", + "-16px", + "-16px -1px -1px -16px", + "10q", + "1e10", + "1E10", + "1e-10", + "1E-10", + "1e+10", + "1E+10", + "-.567800E-0012780em", + ".1E-10", + ".1E+10", + "0.5s", + "500ms", + "0.5s + 0.5s", + "-.3s", + "-.3s + 0.5s", + "1138--thx", + "32deg", + "0.5grad", + "0.5rad", + ".5deg", + "0.5deg", + "72.3deg", + "1.5dppx", + "1e -10", + "1e", + ".2.3rem" + ], + "throws": ["2.", "+-2.", ".", ".rem"] +} diff --git a/test/fixtures/operator.js b/test/fixtures/operator.js deleted file mode 100644 index 7836c7e..0000000 --- a/test/fixtures/operator.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - snapshot: ['2 * 10', '2 / 10', '10 % modulo'], - throws: ['5+ 5', '5px+5px'] -}; diff --git a/test/fixtures/operator.json b/test/fixtures/operator.json new file mode 100644 index 0000000..98f9893 --- /dev/null +++ b/test/fixtures/operator.json @@ -0,0 +1,4 @@ +{ + "snapshot": ["2 * 10", "2 / 10", "5+ 5", "5px+5px", "++(1)"], + "throws": ["10 % modulo"] +} diff --git a/test/fixtures/punctuation.js b/test/fixtures/punctuation.js deleted file mode 100644 index d6dd732..0000000 --- a/test/fixtures/punctuation.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - snapshot: [',', ':', ')', '{', '}', ']', ', : ( ) { } [ ]', '5,6,7,8', '(1,2)'], - throws: ['(', '['] -}; diff --git a/test/fixtures/quoted.js b/test/fixtures/quoted.js deleted file mode 100644 index 496973d..0000000 --- a/test/fixtures/quoted.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - snapshot: [ - '""', - "''", - "'word\\'word'", - '"word\\"word"', - '"word\'word"', - "'word\"word'", - '"string"', - 'word1"string"word2', - ' "string" ' - ], - - throws: ['"word', '"word\\', ' \\"word\\\'\\ \\\t '] -}; diff --git a/test/fixtures/quoted.json b/test/fixtures/quoted.json new file mode 100644 index 0000000..322d697 --- /dev/null +++ b/test/fixtures/quoted.json @@ -0,0 +1,16 @@ +{ + "snapshot": [ + "\"\"", + "''", + "'word\\'word'", + "\"word\\\\\"word\"", + "\"word\\'word\"", + "'word\"word'", + "\"string\"", + "word1\"string\"word2", + " \"foo\" ", + "\"word", + "\"word\\", + " \\\"word\\'\\ \\\t " + ] +} diff --git a/test/fixtures/unicode-range.js b/test/fixtures/unicode-range.js deleted file mode 100644 index 2ffe072..0000000 --- a/test/fixtures/unicode-range.js +++ /dev/null @@ -1,13 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - snapshot: ['U+26', 'U+0-7F', 'U+0025-00FF', 'U+4??', 'U+0025-00FF, U+4??'] -}; diff --git a/test/fixtures/unicode-range.json b/test/fixtures/unicode-range.json new file mode 100644 index 0000000..5a6c458 --- /dev/null +++ b/test/fixtures/unicode-range.json @@ -0,0 +1,4 @@ +{ + "snapshot": ["U+26", "U+0-7F", "U+0025-00FF", "U+4??", "U+0025-00FF, U+4??"], + "throws": [] +} diff --git a/test/fixtures/variable.js b/test/fixtures/variable.js deleted file mode 100644 index 2bfef20..0000000 --- a/test/fixtures/variable.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - options: { - variables: { prefixes: ['\\$', '--'] } - }, - snapshot: ['--batman', '--main-bg-color', '$batman', '$main-bg-color'] -}; diff --git a/test/fixtures/variable.json b/test/fixtures/variable.json new file mode 100644 index 0000000..64d4d18 --- /dev/null +++ b/test/fixtures/variable.json @@ -0,0 +1,7 @@ +{ + "options": { + "variables": { "prefixes": ["--"] } + }, + "snapshot": ["--batman", "--main-bg-color"], + "throws": [] +} diff --git a/test/fixtures/walker.js b/test/fixtures/walker.js deleted file mode 100644 index afb6e15..0000000 --- a/test/fixtures/walker.js +++ /dev/null @@ -1,24 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -module.exports = { - values: [ - { - value: 'calc((foo(768px - 100vw) / 2) - 15px) // batman\n//joker', - walkers: [ - { length: 2, type: 'Comments' }, - { length: 2, type: 'Funcs' }, - { length: 4, type: 'Numerics' }, - { length: 2, type: 'Punctuations' }, - { length: 0, type: 'Words' } - ] - } - ] -}; diff --git a/test/fixtures/walker.json b/test/fixtures/walker.json new file mode 100644 index 0000000..f29d1f1 --- /dev/null +++ b/test/fixtures/walker.json @@ -0,0 +1,21 @@ +{ + "values": [ + { + "value": "calc((foo(768px - 100vw) / 2) - 15px) // batman\n//joker", + "walkers": [ + { + "length": 2, + "type": "Funcs" + }, + { + "length": 4, + "type": "Numerics" + }, + { + "length": 2, + "type": "Words" + } + ] + } + ] +} diff --git a/test/fixtures/word.js b/test/fixtures/word.js deleted file mode 100644 index e25f2d4..0000000 --- a/test/fixtures/word.js +++ /dev/null @@ -1,28 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -/* eslint-disable no-useless-escape */ -module.exports = { - snapshot: [ - 'bold italic 12px \t /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - '(min-width: 700px) and (orientation: \\$landscape)', - '(width < 700px)', - '(width <= 700px)', - '(width >= 500px) and (width <= 1200px)', - ' \\"word\\" \\s ', - '--color', - '-webkit-transition', - '#fff', - '#123 #f09f #abcdef #a2b3c4d5', - 'blanchedalmond', - 'BLANCHEDALMOND', - 'blAncHedaLmoNd' - ] -}; diff --git a/test/fixtures/word.json b/test/fixtures/word.json new file mode 100644 index 0000000..b441bdf --- /dev/null +++ b/test/fixtures/word.json @@ -0,0 +1,13 @@ +{ + "snapshot": [ + "bold italic 12px \t /3 'Open Sans', Arial, \"Helvetica Neue\", sans-serif", + " \\\"word\\\" \\s ", + "--color", + "-webkit-transition", + "#fff", + "#123 #f09f #abcdef #a2b3c4d5", + "blanchedalmond", + "BLANCHEDALMOND", + "blAncHedaLmoNd" + ] +} diff --git a/test/func.test.js b/test/func.test.js deleted file mode 100644 index b6e7d34..0000000 --- a/test/func.test.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { snapshot, throws } = require('./fixtures/func'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - // console.log(nodes); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} - -for (const fixture of throws) { - test(fixture, (t) => { - t.throws(() => parse(fixture)); - }); -} diff --git a/test/func.test.ts b/test/func.test.ts new file mode 100644 index 0000000..44c5a71 --- /dev/null +++ b/test/func.test.ts @@ -0,0 +1,37 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { describe, expect, it } from 'vitest'; + +import { nodeToString, parse } from '../src/index.js'; +import { snapshot, throws } from './fixtures/func.json'; + +describe('function parsing', () => { + for (const fixture of snapshot) { + it(`should parse: ${fixture}`, () => { + const root = parse(fixture); + const nodes = root.nodes.map((node) => { + delete node.parent; // eslint-disable-line no-param-reassign + return node; + }); + const string = nodeToString(root); + + expect(root.first?.toString()).toMatchSnapshot(); + expect(string).toMatchSnapshot(); + expect(nodes).toMatchSnapshot(); + }); + } + + for (const fixture of throws) { + it(`should throw for: ${fixture}`, () => { + expect(() => parse(fixture)).toThrow(); + }); + } +}); diff --git a/test/integration.test.js b/test/integration.test.js deleted file mode 100644 index ed9d323..0000000 --- a/test/integration.test.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. - - These tests exist because of the use-case submitted in https://github.com/shellscape/postcss-values-parser/issues/63 - Multiple successive parses yielded results that were not duplicated in ava's individual process model -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); -const Punctuation = require('../lib/nodes/Punctuation'); - -test('integration', (t) => { - let root = parse(`normal normal 1em/1 'Source Sans Pro', serif`); - - t.is(root.nodes.length, 8); - - root = parse('1/-1'); - t.is(root.nodes.length, 3); - - root = parse('1 / -1'); - t.is(root.nodes.length, 3); -}); - -test('manipulation', (t) => { - const source = 'rgb(100% 100% 100%)'; - const root = parse(source); - const { first } = root; - - let string = nodeToString(root); - t.is(source, string); - - first.nodes.splice(1, 0, new Punctuation({ value: ',', parent: first })); - first.nodes.splice(3, 0, new Punctuation({ value: ',', parent: first })); - - string = nodeToString(root); - t.not(source, string); - t.snapshot(string); -}); diff --git a/test/integration.test.ts b/test/integration.test.ts new file mode 100644 index 0000000..198fda6 --- /dev/null +++ b/test/integration.test.ts @@ -0,0 +1,47 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. + + These tests exist because of the use-case submitted in https://github.com/shellscape/postcss-values-parser/issues/63 + Multiple successive parses yielded results that were not duplicated in ava's individual process model +*/ +import { describe, expect, it } from 'vitest'; + +import { nodeToString, parse } from '../src/index.js'; +import { Func, Operator } from '../src/nodes/index.js'; + +describe('integration tests', () => { + it('should handle multiple successive parses', () => { + let root = parse(`normal normal 1em/1 'Source Sans Pro', serif`); + + expect(root.nodes.length).toBe(8); + + root = parse('1/-1'); + expect(root.nodes.length).toBe(3); + + root = parse('1 / -1'); + expect(root.nodes.length).toBe(3); + }); + + it('should handle manipulation', () => { + const source = 'rgb(100% 100% 100%)'; + const root = parse(source); + const { first } = root; + + let string = nodeToString(root); + expect(string).toBe(source); + + (first as Func)!.nodes!.splice(1, 0, new Operator({ value: ',', parent: first }) as any); + (first as Func)!.nodes!.splice(3, 0, new Operator({ value: ',', parent: first }) as any); + + string = nodeToString(root); + expect(string).not.toBe(source); + expect(string).toMatchSnapshot(); + }); +}); diff --git a/test/interpolation.test.js b/test/interpolation.test.js deleted file mode 100644 index 40388d7..0000000 --- a/test/interpolation.test.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { options, snapshot, throws } = require('./fixtures/interpolation'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture, options); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} - -for (const fixture of throws) { - test(fixture, (t) => { - t.throws(() => parse(fixture)); - }); -} diff --git a/test/numeric.test.js b/test/numeric.test.js deleted file mode 100644 index 913c202..0000000 --- a/test/numeric.test.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { snapshot, throws } = require('./fixtures/numeric'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} - -for (const fixture of throws) { - test(fixture, (t) => { - t.throws(() => parse(fixture)); - }); -} diff --git a/test/numeric.test.ts b/test/numeric.test.ts new file mode 100644 index 0000000..2517c82 --- /dev/null +++ b/test/numeric.test.ts @@ -0,0 +1,37 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { describe, expect, it } from 'vitest'; + +import { nodeToString, parse } from '../src/index.js'; +import { snapshot, throws } from './fixtures/numeric.json'; + +describe('numeric parsing', () => { + for (const fixture of snapshot) { + it(`should parse: ${fixture}`, () => { + const root = parse(fixture); + const nodes = root.nodes.map((node) => { + delete node.parent; // eslint-disable-line no-param-reassign + return node; + }); + const string = nodeToString(root); + + expect(root.first?.toString()).toMatchSnapshot(); + expect(string).toMatchSnapshot(); + expect(nodes).toMatchSnapshot(); + }); + } + + for (const fixture of throws) { + it(`should throw for: ${fixture}`, () => { + expect(() => parse(fixture)).toThrow(); + }); + } +}); diff --git a/test/operator.test.js b/test/operator.test.js deleted file mode 100644 index 102d989..0000000 --- a/test/operator.test.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { snapshot, throws } = require('./fixtures/operator'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} - -for (const fixture of throws) { - test(fixture, (t) => { - t.throws(() => parse(fixture)); - }); -} diff --git a/test/operator.test.ts b/test/operator.test.ts new file mode 100644 index 0000000..578c249 --- /dev/null +++ b/test/operator.test.ts @@ -0,0 +1,37 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { describe, expect, it } from 'vitest'; + +import { nodeToString, parse } from '../src/index.js'; +import { snapshot, throws } from './fixtures/operator.json'; + +describe('operator parsing', () => { + for (const fixture of snapshot) { + it(`should parse: ${fixture}`, () => { + const root = parse(fixture); + const nodes = root.nodes.map((node) => { + delete node.parent; // eslint-disable-line no-param-reassign + return node; + }); + const string = nodeToString(root); + + expect(root.first?.toString()).toMatchSnapshot(); + expect(string).toMatchSnapshot(); + expect(nodes).toMatchSnapshot(); + }); + } + + for (const fixture of throws) { + it(`should throw for: ${fixture}`, () => { + expect(() => parse(fixture)).toThrow(); + }); + } +}); diff --git a/test/punctuation.test.js b/test/punctuation.test.js deleted file mode 100644 index 7066471..0000000 --- a/test/punctuation.test.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { snapshot, throws } = require('./fixtures/punctuation'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} - -for (const fixture of throws) { - test(fixture, (t) => { - t.throws(() => parse(fixture)); - }); -} diff --git a/test/quoted.test.js b/test/quoted.test.js deleted file mode 100644 index 1dc810a..0000000 --- a/test/quoted.test.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { snapshot, throws } = require('./fixtures/quoted'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - - root.clone(); - }); - - test(`${fixture} be should cloned`, (t) => { - const root = parse(fixture); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - const cloned = root.clone(); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(cloned.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} - -for (const fixture of throws) { - test(fixture, (t) => { - t.throws(() => parse(fixture)); - }); -} diff --git a/test/quoted.test.ts b/test/quoted.test.ts new file mode 100644 index 0000000..d8bb116 --- /dev/null +++ b/test/quoted.test.ts @@ -0,0 +1,48 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { describe, expect, it } from 'vitest'; + +import { nodeToString, parse } from '../src/index.js'; +import { snapshot } from './fixtures/quoted.json'; + +describe('quoted parsing', () => { + for (const fixture of snapshot) { + it(`should parse: ${fixture}`, () => { + const root = parse(fixture); + const nodes = root.nodes.map((node) => { + delete node.parent; // eslint-disable-line no-param-reassign + return node; + }); + const string = nodeToString(root); + + expect(root.first?.toString()).toMatchSnapshot(); + expect(string).toMatchSnapshot(); + expect(nodes).toMatchSnapshot(); + + root.clone(); + }); + + it(`${fixture} should be cloned`, () => { + const root = parse(fixture); + const nodes = root.nodes.map((node) => { + delete node.parent; // eslint-disable-line no-param-reassign + return node; + }); + const string = nodeToString(root); + + const cloned = root.clone(); + + expect(cloned.first?.toString()).toMatchSnapshot(); + expect(string).toMatchSnapshot(); + expect(nodes).toMatchSnapshot(); + }); + } +}); diff --git a/test/rewiremock.js b/test/rewiremock.js deleted file mode 100644 index 11e3ffb..0000000 --- a/test/rewiremock.js +++ /dev/null @@ -1,12 +0,0 @@ -const rewiremock = require('rewiremock/node'); - -// Configure and enable Rewiremock -rewiremock.overrideEntryPoint(module); -rewiremock.enable(); - -// Override the nanoid/non-secure module to produce a predictable nonrandom ID -// This is necessary because the Input module of PostCSS uses this to generate -// Random IDs and this breaks snapshots since these are different at each run. -rewiremock('nanoid/non-secure').with({ nanoid: () => 1 }); - -module.exports = rewiremock; diff --git a/test/setup.ts b/test/setup.ts new file mode 100644 index 0000000..57f4f1d --- /dev/null +++ b/test/setup.ts @@ -0,0 +1,105 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { expect } from 'vitest'; + +// Custom snapshot serializer to handle dynamic CSS input IDs and normalize CSS property +const replaceDynamicInputId = { + test(val: any): boolean { + if (!val || typeof val !== 'object') return false; + + // Check if this is an array containing objects with inputs array + if (Array.isArray(val)) { + return val.some( + (item) => + item && + typeof item === 'object' && + item.inputs && + Array.isArray(item.inputs) && + item.inputs.some( + (input: any) => + input && + typeof input === 'object' && + input.id && + typeof input.id === 'string' && + input.id.startsWith('') && + input.id !== '' + ) + ); + } + + // Check if this object has inputs array with dynamic ID + if ( + val.inputs && + Array.isArray(val.inputs) && + val.inputs.some( + (input: any) => + input && + typeof input === 'object' && + input.id && + typeof input.id === 'string' && + input.id.startsWith('') && + input.id !== '' + ) + ) { + return true; + } + + return false; + }, + serialize( + val: any, + config: any, + indentation: string, + depth: number, + refs: any, + printer: any + ): string { + const processValue = (obj: any): any => { + if (!obj || typeof obj !== 'object') return obj; + + if (Array.isArray(obj)) { + return obj.map(processValue); + } + + const result = { ...obj }; + + // Replace dynamic ID and normalize CSS in inputs array + if (result.inputs && Array.isArray(result.inputs)) { + result.inputs = result.inputs.map((input: any) => { + if ( + input && + typeof input === 'object' && + input.id && + typeof input.id === 'string' && + input.id.startsWith('') + ) { + return { + ...input, + id: '', + css: '' // Normalize the CSS property to match expected snapshots + }; + } + return input; + }); + } + + return result; + }; + + return printer(processValue(val), config, indentation, depth, refs); + } +}; + +// Add the snapshot serializer +expect.addSnapshotSerializer(replaceDynamicInputId); diff --git a/test/snapshots/atrule.test.js.md b/test/snapshots/atrule.test.js.md deleted file mode 100644 index 29d74d0..0000000 --- a/test/snapshots/atrule.test.js.md +++ /dev/null @@ -1,37 +0,0 @@ -# Snapshot report for `test/atrule.test.js` - -The actual snapshot is saved in `atrule.test.js.snap`. - -Generated by [AVA](https://ava.li). - -## @rule - -> Snapshot 1 - - ' @rule ' - -> Snapshot 2 - - [ - AtRule { - name: 'rule', - params: '', - raws: { - afterName: '', - before: ' ', - between: ' ', - }, - source: { - input: Input { - css: ' @rule ', - hasBOM: false, - id: '', - }, - start: { - column: 4, - line: 1, - }, - }, - type: 'atrule', - }, - ] diff --git a/test/snapshots/atrule.test.js.snap b/test/snapshots/atrule.test.js.snap deleted file mode 100644 index fdcd2ad..0000000 Binary files a/test/snapshots/atrule.test.js.snap and /dev/null differ diff --git a/test/snapshots/atword.test.js.md b/test/snapshots/atword.test.js.md deleted file mode 100644 index 581eedd..0000000 --- a/test/snapshots/atword.test.js.md +++ /dev/null @@ -1,46 +0,0 @@ -# Snapshot report for `test/atword.test.js` - -The actual snapshot is saved in `atword.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## @word - -> Snapshot 1 - - '@word ' - -> Snapshot 2 - - ' @word ' - -> Snapshot 3 - - [ - AtWord { - name: 'word', - params: '', - raws: { - afterName: '', - before: ' ', - between: ' ', - }, - source: { - input: Input { - css: ' @word ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 3, - line: 1, - offset: 2, - }, - }, - type: 'atword', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/atword.test.js.snap b/test/snapshots/atword.test.js.snap deleted file mode 100644 index 9759f8e..0000000 Binary files a/test/snapshots/atword.test.js.snap and /dev/null differ diff --git a/test/snapshots/comment.test.js.md b/test/snapshots/comment.test.js.md deleted file mode 100644 index 902a0ba..0000000 --- a/test/snapshots/comment.test.js.md +++ /dev/null @@ -1,773 +0,0 @@ -# Snapshot report for `test/comment.test.js` - -The actual snapshot is saved in `comment.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## /**/ - -> Snapshot 1 - - '/**/' - -> Snapshot 2 - - '/**/' - -> Snapshot 3 - - [ - Comment { - inline: false, - raws: { - before: '', - left: '', - right: '', - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: '/**/', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - text: '', - type: 'comment', - [Symbol(isClean)]: false, - }, - ] - -## /*before*/ -//between -/*after*/ - -> Snapshot 1 - - '/*before*/' - -> Snapshot 2 - - `/*before*/␊ - //between␊ - /*after*/` - -> Snapshot 3 - - [ - Comment { - inline: false, - raws: { - before: '', - left: '', - right: '', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: `/*before*/␊ - //between␊ - /*after*/`, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 11, - 21, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - text: 'before', - type: 'comment', - [Symbol(isClean)]: false, - }, - Comment { - inline: true, - raws: { - before: `␊ - `, - left: '', - right: '', - }, - source: { - end: { - column: 1, - line: 2, - offset: 11, - }, - input: Input { - css: `/*before*/␊ - //between␊ - /*after*/`, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 11, - 21, - ], - }, - start: { - column: 1, - line: 2, - offset: 11, - }, - }, - text: 'between', - type: 'comment', - [Symbol(isClean)]: false, - }, - Comment { - inline: false, - raws: { - before: `␊ - `, - left: '', - right: '', - }, - source: { - end: { - column: 9, - line: 3, - offset: 29, - }, - input: Input { - css: `/*before*/␊ - //between␊ - /*after*/`, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 11, - 21, - ], - }, - start: { - column: 1, - line: 3, - offset: 21, - }, - }, - text: 'after', - type: 'comment', - [Symbol(isClean)]: false, - }, - ] - -## /*before*/ 1px /*between*/ 1px /*after*/ - -> Snapshot 1 - - '/*before*/' - -> Snapshot 2 - - '/*before*/ 1px /*between*/ 1px /*after*/' - -> Snapshot 3 - - [ - Comment { - inline: false, - raws: { - before: '', - left: '', - right: '', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: '/*before*/ 1px /*between*/ 1px /*after*/', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - text: 'before', - type: 'comment', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 12, - line: 1, - offset: 11, - }, - input: Input { - css: '/*before*/ 1px /*between*/ 1px /*after*/', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 12, - line: 1, - offset: 11, - }, - }, - type: 'numeric', - unit: 'px', - value: '1', - [Symbol(isClean)]: false, - }, - Comment { - inline: false, - raws: { - before: ' ', - left: '', - right: '', - }, - source: { - end: { - column: 26, - line: 1, - offset: 25, - }, - input: Input { - css: '/*before*/ 1px /*between*/ 1px /*after*/', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 16, - line: 1, - offset: 15, - }, - }, - text: 'between', - type: 'comment', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 28, - line: 1, - offset: 27, - }, - input: Input { - css: '/*before*/ 1px /*between*/ 1px /*after*/', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 28, - line: 1, - offset: 27, - }, - }, - type: 'numeric', - unit: 'px', - value: '1', - [Symbol(isClean)]: false, - }, - Comment { - inline: false, - raws: { - before: ' ', - left: '', - right: '', - }, - source: { - end: { - column: 40, - line: 1, - offset: 39, - }, - input: Input { - css: '/*before*/ 1px /*between*/ 1px /*after*/', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 32, - line: 1, - offset: 31, - }, - }, - text: 'after', - type: 'comment', - [Symbol(isClean)]: false, - }, - ] - -## // - -> Snapshot 1 - - '//' - -> Snapshot 2 - - '//' - -> Snapshot 3 - - [ - Comment { - inline: true, - raws: { - before: '', - left: '', - right: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: '//', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - text: '', - type: 'comment', - [Symbol(isClean)]: false, - }, - ] - -## // - - -> Snapshot 1 - - '//' - -> Snapshot 2 - - `//␊ - ` - -> Snapshot 3 - - [ - Comment { - inline: true, - raws: { - before: '', - left: '', - right: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: `//␊ - `, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 3, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - text: '', - type: 'comment', - [Symbol(isClean)]: false, - }, - ] - -## //before - 1px //between - 1px //after - - -> Snapshot 1 - - '//before' - -> Snapshot 2 - - `//before␊ - 1px //between␊ - 1px //after␊ - ` - -> Snapshot 3 - - [ - Comment { - inline: true, - raws: { - before: '', - left: '', - right: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: `//before␊ - 1px //between␊ - 1px //after␊ - `, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 9, - 24, - 37, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - text: 'before', - type: 'comment', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: `␊ - `, - }, - source: { - end: { - column: 2, - line: 2, - offset: 10, - }, - input: Input { - css: `//before␊ - 1px //between␊ - 1px //after␊ - `, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 9, - 24, - 37, - ], - }, - start: { - column: 2, - line: 2, - offset: 10, - }, - }, - type: 'numeric', - unit: 'px', - value: '1', - [Symbol(isClean)]: false, - }, - Comment { - inline: true, - raws: { - before: ' ', - left: '', - right: '', - }, - source: { - end: { - column: 6, - line: 2, - offset: 14, - }, - input: Input { - css: `//before␊ - 1px //between␊ - 1px //after␊ - `, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 9, - 24, - 37, - ], - }, - start: { - column: 6, - line: 2, - offset: 14, - }, - }, - text: 'between', - type: 'comment', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: `␊ - `, - }, - source: { - end: { - column: 2, - line: 3, - offset: 25, - }, - input: Input { - css: `//before␊ - 1px //between␊ - 1px //after␊ - `, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 9, - 24, - 37, - ], - }, - start: { - column: 2, - line: 3, - offset: 25, - }, - }, - type: 'numeric', - unit: 'px', - value: '1', - [Symbol(isClean)]: false, - }, - Comment { - inline: true, - raws: { - before: ' ', - left: '', - right: '', - }, - source: { - end: { - column: 6, - line: 3, - offset: 29, - }, - input: Input { - css: `//before␊ - 1px //between␊ - 1px //after␊ - `, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 9, - 24, - 37, - ], - }, - start: { - column: 6, - line: 3, - offset: 29, - }, - }, - text: 'after', - type: 'comment', - [Symbol(isClean)]: false, - }, - ] - -## //before -/*between*/ -//after - -> Snapshot 1 - - '//before' - -> Snapshot 2 - - `//before␊ - /*between*/␊ - //after` - -> Snapshot 3 - - [ - Comment { - inline: true, - raws: { - before: '', - left: '', - right: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: `//before␊ - /*between*/␊ - //after`, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 9, - 21, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - text: 'before', - type: 'comment', - [Symbol(isClean)]: false, - }, - Comment { - inline: false, - raws: { - before: `␊ - `, - left: '', - right: '', - }, - source: { - end: { - column: 11, - line: 2, - offset: 19, - }, - input: Input { - css: `//before␊ - /*between*/␊ - //after`, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 9, - 21, - ], - }, - start: { - column: 1, - line: 2, - offset: 9, - }, - }, - text: 'between', - type: 'comment', - [Symbol(isClean)]: false, - }, - Comment { - inline: true, - raws: { - before: `␊ - `, - left: '', - right: '', - }, - source: { - end: { - column: 1, - line: 3, - offset: 21, - }, - input: Input { - css: `//before␊ - /*between*/␊ - //after`, - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - 9, - 21, - ], - }, - start: { - column: 1, - line: 3, - offset: 21, - }, - }, - text: 'after', - type: 'comment', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/comment.test.js.snap b/test/snapshots/comment.test.js.snap deleted file mode 100644 index 578e46a..0000000 Binary files a/test/snapshots/comment.test.js.snap and /dev/null differ diff --git a/test/snapshots/func.test.js.md b/test/snapshots/func.test.js.md deleted file mode 100644 index ec7a017..0000000 --- a/test/snapshots/func.test.js.md +++ /dev/null @@ -1,6485 +0,0 @@ -# Snapshot report for `test/func.test.js` - -The actual snapshot is saved in `func.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## -webkit-linear-gradient(0) - -> Snapshot 1 - - '-webkit-linear-gradient(0)' - -> Snapshot 2 - - '-webkit-linear-gradient(0)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: '-webkit-linear-gradient', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '0', - [Symbol(isClean)]: false, - }, - ], - params: '(0)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 24, - line: 1, - offset: 23, - }, - input: Input { - css: '-webkit-linear-gradient(0)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## 1em/var(--line-height) - -> Snapshot 1 - - '1em' - -> Snapshot 2 - - '1em/var(--line-height)' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1em/var(--line-height)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'em', - value: '1', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1em/var(--line-height)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--line-height', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--line-height', - [Symbol(isClean)]: false, - }, - ], - params: '(--line-height)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 8, - line: 1, - offset: 7, - }, - input: Input { - css: '1em/var(--line-height)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## Lab( 40% 56.6 39 ) - -> Snapshot 1 - - 'Lab( 40% 56.6 39 )' - -> Snapshot 2 - - 'Lab( 40% 56.6 39 )' - -> Snapshot 3 - - [ - Func { - isColor: true, - isVar: false, - name: 'Lab', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' 40% 56.6 39 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'numeric', - unit: '%', - value: '40', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: ' 40% 56.6 39 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'numeric', - unit: '', - value: '56.6', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 14, - line: 1, - offset: 13, - }, - input: Input { - css: ' 40% 56.6 39 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 14, - line: 1, - offset: 13, - }, - }, - type: 'numeric', - unit: '', - value: '39', - [Symbol(isClean)]: false, - }, - ], - params: '( 40% 56.6 39 )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'Lab( 40% 56.6 39 )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## RGBA( 29, 439 , 29 ) - -> Snapshot 1 - - 'RGBA( 29, 439 , 29 )' - -> Snapshot 2 - - 'RGBA( 29, 439 , 29 )' - -> Snapshot 3 - - [ - Func { - isColor: true, - isVar: false, - name: 'RGBA', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'numeric', - unit: '', - value: '29', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'numeric', - unit: '', - value: '439', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 10, - line: 1, - offset: 9, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 12, - line: 1, - offset: 11, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 12, - line: 1, - offset: 11, - }, - }, - type: 'numeric', - unit: '', - value: '29', - [Symbol(isClean)]: false, - }, - ], - params: '( 29, 439 , 29 )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: 'RGBA( 29, 439 , 29 )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## RgBa( 29, 439 , 29 ) - -> Snapshot 1 - - 'RgBa( 29, 439 , 29 )' - -> Snapshot 2 - - 'RgBa( 29, 439 , 29 )' - -> Snapshot 3 - - [ - Func { - isColor: true, - isVar: false, - name: 'RgBa', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'numeric', - unit: '', - value: '29', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'numeric', - unit: '', - value: '439', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 10, - line: 1, - offset: 9, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 12, - line: 1, - offset: 11, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 12, - line: 1, - offset: 11, - }, - }, - type: 'numeric', - unit: '', - value: '29', - [Symbol(isClean)]: false, - }, - ], - params: '( 29, 439 , 29 )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: 'RgBa( 29, 439 , 29 )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## bar(baz(black, 10%), 10%) - -> Snapshot 1 - - 'bar(baz(black, 10%), 10%)' - -> Snapshot 2 - - 'bar(baz(black, 10%), 10%)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'bar', - nodes: [ - Func { - isColor: false, - isVar: false, - name: 'baz', - nodes: [ - Word { - isColor: true, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'black, 10%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'black', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'black, 10%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 8, - line: 1, - offset: 7, - }, - input: Input { - css: 'black, 10%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 8, - line: 1, - offset: 7, - }, - }, - type: 'numeric', - unit: '%', - value: '10', - [Symbol(isClean)]: false, - }, - ], - params: '(black, 10%)', - parent: [Circular], - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'baz(black, 10%), 10%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 16, - line: 1, - offset: 15, - }, - input: Input { - css: 'baz(black, 10%), 10%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 16, - line: 1, - offset: 15, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 18, - line: 1, - offset: 17, - }, - input: Input { - css: 'baz(black, 10%), 10%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 18, - line: 1, - offset: 17, - }, - }, - type: 'numeric', - unit: '%', - value: '10', - [Symbol(isClean)]: false, - }, - ], - params: '(baz(black, 10%), 10%)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 25, - line: 1, - offset: 24, - }, - input: Input { - css: 'bar(baz(black, 10%), 10%)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## bat-man(#000) - -> Snapshot 1 - - 'bat-man(#000)' - -> Snapshot 2 - - 'bat-man(#000)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'bat-man', - nodes: [ - Word { - isColor: true, - isHex: true, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '#000', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '#000', - [Symbol(isClean)]: false, - }, - ], - params: '(#000)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 8, - line: 1, - offset: 7, - }, - input: Input { - css: 'bat-man(#000)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## calc(((768px - 100vw) / 2) - 15px) - -> Snapshot 1 - - 'calc(((768px - 100vw) / 2) - 15px)' - -> Snapshot 2 - - 'calc(((768px - 100vw) / 2) - 15px)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'calc', - nodes: [ - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'px', - value: '768', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'operator', - value: '-', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 9, - line: 1, - offset: 8, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 9, - line: 1, - offset: 8, - }, - }, - type: 'numeric', - unit: 'vw', - value: '100', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 18, - line: 1, - offset: 17, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 18, - line: 1, - offset: 17, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 20, - line: 1, - offset: 19, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 20, - line: 1, - offset: 19, - }, - }, - type: 'numeric', - unit: '', - value: '2', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 21, - line: 1, - offset: 20, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 21, - line: 1, - offset: 20, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 23, - line: 1, - offset: 22, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 23, - line: 1, - offset: 22, - }, - }, - type: 'operator', - value: '-', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 25, - line: 1, - offset: 24, - }, - input: Input { - css: '((768px - 100vw) / 2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 25, - line: 1, - offset: 24, - }, - }, - type: 'numeric', - unit: 'px', - value: '15', - [Symbol(isClean)]: false, - }, - ], - params: '(((768px - 100vw) / 2) - 15px)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 34, - line: 1, - offset: 33, - }, - input: Input { - css: 'calc(((768px - 100vw) / 2) - 15px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## calc(-0.5 * var(foo)) - -> Snapshot 1 - - 'calc(-0.5 * var(foo))' - -> Snapshot 2 - - 'calc(-0.5 * var(foo))' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'calc', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-0.5 * var(foo)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '-0.5', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: '-0.5 * var(foo)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'operator', - value: '*', - [Symbol(isClean)]: false, - }, - Func { - isColor: false, - isVar: false, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'foo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'foo', - [Symbol(isClean)]: false, - }, - ], - params: '(foo)', - parent: [Circular], - raws: { - after: '', - before: ' ', - semicolon: false, - }, - source: { - end: { - column: 11, - line: 1, - offset: 10, - }, - input: Input { - css: '-0.5 * var(foo)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 8, - line: 1, - offset: 7, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ], - params: '(-0.5 * var(foo))', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 21, - line: 1, - offset: 20, - }, - input: Input { - css: 'calc(-0.5 * var(foo))', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## calc(1px + -2vw - 4px) - -> Snapshot 1 - - 'calc(1px + -2vw - 4px)' - -> Snapshot 2 - - 'calc(1px + -2vw - 4px)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'calc', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1px + -2vw - 4px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'px', - value: '1', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: '1px + -2vw - 4px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 5, - line: 1, - offset: 4, - }, - }, - type: 'operator', - value: '+', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: '1px + -2vw - 4px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'numeric', - unit: 'vw', - value: '-2', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 12, - line: 1, - offset: 11, - }, - input: Input { - css: '1px + -2vw - 4px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 12, - line: 1, - offset: 11, - }, - }, - type: 'operator', - value: '-', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 14, - line: 1, - offset: 13, - }, - input: Input { - css: '1px + -2vw - 4px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 14, - line: 1, - offset: 13, - }, - }, - type: 'numeric', - unit: 'px', - value: '4', - [Symbol(isClean)]: false, - }, - ], - params: '(1px + -2vw - 4px)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: 'calc(1px + -2vw - 4px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## color.red(#6b717f) - -> Snapshot 1 - - 'color.red(#6b717f)' - -> Snapshot 2 - - 'color.red(#6b717f)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'color.red', - nodes: [ - Word { - isColor: true, - isHex: true, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '#6b717f', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '#6b717f', - [Symbol(isClean)]: false, - }, - ], - params: '(#6b717f)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: 'color.red(#6b717f)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## conic-gradient() - -> Snapshot 1 - - 'conic-gradient()' - -> Snapshot 2 - - 'conic-gradient()' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'conic-gradient', - nodes: [], - params: '()', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 15, - line: 1, - offset: 14, - }, - input: Input { - css: 'conic-gradient()', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## hwb(90deg 0% 0% / 0.5) - -> Snapshot 1 - - 'hwb(90deg 0% 0% / 0.5)' - -> Snapshot 2 - - 'hwb(90deg 0% 0% / 0.5)' - -> Snapshot 3 - - [ - Func { - isColor: true, - isVar: false, - name: 'hwb', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '90deg 0% 0% / 0.5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'deg', - value: '90', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: '90deg 0% 0% / 0.5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'numeric', - unit: '%', - value: '0', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: '90deg 0% 0% / 0.5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 10, - line: 1, - offset: 9, - }, - }, - type: 'numeric', - unit: '%', - value: '0', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 13, - line: 1, - offset: 12, - }, - input: Input { - css: '90deg 0% 0% / 0.5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 13, - line: 1, - offset: 12, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 15, - line: 1, - offset: 14, - }, - input: Input { - css: '90deg 0% 0% / 0.5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 15, - line: 1, - offset: 14, - }, - }, - type: 'numeric', - unit: '', - value: '0.5', - [Symbol(isClean)]: false, - }, - ], - params: '(90deg 0% 0% / 0.5)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 22, - line: 1, - offset: 21, - }, - input: Input { - css: 'hwb(90deg 0% 0% / 0.5)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## lCH(40% 68.8 34.5 / 50%) - -> Snapshot 1 - - 'lCH(40% 68.8 34.5 / 50%)' - -> Snapshot 2 - - 'lCH(40% 68.8 34.5 / 50%)' - -> Snapshot 3 - - [ - Func { - isColor: true, - isVar: false, - name: 'lCH', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '40% 68.8 34.5 / 50%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '%', - value: '40', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: '40% 68.8 34.5 / 50%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 5, - line: 1, - offset: 4, - }, - }, - type: 'numeric', - unit: '', - value: '68.8', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: '40% 68.8 34.5 / 50%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 10, - line: 1, - offset: 9, - }, - }, - type: 'numeric', - unit: '', - value: '34.5', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 15, - line: 1, - offset: 14, - }, - input: Input { - css: '40% 68.8 34.5 / 50%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 15, - line: 1, - offset: 14, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 17, - line: 1, - offset: 16, - }, - input: Input { - css: '40% 68.8 34.5 / 50%', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 17, - line: 1, - offset: 16, - }, - }, - type: 'numeric', - unit: '%', - value: '50', - [Symbol(isClean)]: false, - }, - ], - params: '(40% 68.8 34.5 / 50%)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 24, - line: 1, - offset: 23, - }, - input: Input { - css: 'lCH(40% 68.8 34.5 / 50%)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## local(foo),local(bar) - -> Snapshot 1 - - 'local(foo)' - -> Snapshot 2 - - 'local(foo),local(bar)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'local', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'foo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'foo', - [Symbol(isClean)]: false, - }, - ], - params: '(foo)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: 'local(foo),local(bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 11, - line: 1, - offset: 10, - }, - input: Input { - css: 'local(foo),local(bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 11, - line: 1, - offset: 10, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Func { - isColor: false, - isVar: false, - name: 'local', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'bar', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'bar', - [Symbol(isClean)]: false, - }, - ], - params: '(bar)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 17, - line: 1, - offset: 16, - }, - input: Input { - css: 'local(foo),local(bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 11, - line: 1, - offset: 10, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## rgba( 29, 439 , 29 ) - -> Snapshot 1 - - 'rgba( 29, 439 , 29 )' - -> Snapshot 2 - - 'rgba( 29, 439 , 29 )' - -> Snapshot 3 - - [ - Func { - isColor: true, - isVar: false, - name: 'rgba', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'numeric', - unit: '', - value: '29', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'numeric', - unit: '', - value: '439', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 10, - line: 1, - offset: 9, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 12, - line: 1, - offset: 11, - }, - input: Input { - css: ' 29, 439 , 29 ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 12, - line: 1, - offset: 11, - }, - }, - type: 'numeric', - unit: '', - value: '29', - [Symbol(isClean)]: false, - }, - ], - params: '( 29, 439 , 29 )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: 'rgba( 29, 439 , 29 )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## rotate(.5deg) - -> Snapshot 1 - - 'rotate(.5deg)' - -> Snapshot 2 - - 'rotate(.5deg)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'rotate', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '.5deg', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'deg', - value: '.5', - [Symbol(isClean)]: false, - }, - ], - params: '(.5deg)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: 'rotate(.5deg)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## rotate(0.5deg) - -> Snapshot 1 - - 'rotate(0.5deg)' - -> Snapshot 2 - - 'rotate(0.5deg)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'rotate', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0.5deg', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'deg', - value: '0.5', - [Symbol(isClean)]: false, - }, - ], - params: '(0.5deg)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: 'rotate(0.5deg)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## rotate(0.5grad) - -> Snapshot 1 - - 'rotate(0.5grad)' - -> Snapshot 2 - - 'rotate(0.5grad)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'rotate', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0.5grad', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'grad', - value: '0.5', - [Symbol(isClean)]: false, - }, - ], - params: '(0.5grad)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: 'rotate(0.5grad)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## rotate(0.5rad) - -> Snapshot 1 - - 'rotate(0.5rad)' - -> Snapshot 2 - - 'rotate(0.5rad)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'rotate', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0.5rad', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'rad', - value: '0.5', - [Symbol(isClean)]: false, - }, - ], - params: '(0.5rad)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: 'rotate(0.5rad)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## rotate(0.5turn) - -> Snapshot 1 - - 'rotate(0.5turn)' - -> Snapshot 2 - - 'rotate(0.5turn)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'rotate', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0.5turn', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'turn', - value: '0.5', - [Symbol(isClean)]: false, - }, - ], - params: '(0.5turn)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: 'rotate(0.5turn)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## rotate(72.3deg) - -> Snapshot 1 - - 'rotate(72.3deg)' - -> Snapshot 2 - - 'rotate(72.3deg)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'rotate', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '72.3deg', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'deg', - value: '72.3', - [Symbol(isClean)]: false, - }, - ], - params: '(72.3deg)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: 'rotate(72.3deg)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url( "/gfx/img/bg.jpg" ) - -> Snapshot 1 - - 'url( "/gfx/img/bg.jpg" )' - -> Snapshot 2 - - 'url( "/gfx/img/bg.jpg" )' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [ - Quoted { - contents: '/gfx/img/bg.jpg', - parent: [Circular], - quote: '"', - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' "/gfx/img/bg.jpg" ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'quoted', - value: '"/gfx/img/bg.jpg"', - [Symbol(isClean)]: false, - }, - ], - params: '( "/gfx/img/bg.jpg" )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 24, - line: 1, - offset: 23, - }, - input: Input { - css: 'url( "/gfx/img/bg.jpg" )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url( "http://domain.com/gfx/img/bg.jpg" ) - -> Snapshot 1 - - 'url( "http://domain.com/gfx/img/bg.jpg" )' - -> Snapshot 2 - - 'url( "http://domain.com/gfx/img/bg.jpg" )' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [ - Quoted { - contents: 'http://domain.com/gfx/img/bg.jpg', - parent: [Circular], - quote: '"', - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' "http://domain.com/gfx/img/bg.jpg" ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'quoted', - value: '"http://domain.com/gfx/img/bg.jpg"', - [Symbol(isClean)]: false, - }, - ], - params: '( "http://domain.com/gfx/img/bg.jpg" )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 41, - line: 1, - offset: 40, - }, - input: Input { - css: 'url( "http://domain.com/gfx/img/bg.jpg" )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url( '/gfx/img/bg.jpg' ) - -> Snapshot 1 - - 'url( \'/gfx/img/bg.jpg\' )' - -> Snapshot 2 - - 'url( \'/gfx/img/bg.jpg\' )' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [ - Quoted { - contents: '/gfx/img/bg.jpg', - parent: [Circular], - quote: '\'', - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' \'/gfx/img/bg.jpg\' ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'quoted', - value: '\'/gfx/img/bg.jpg\'', - [Symbol(isClean)]: false, - }, - ], - params: '( \'/gfx/img/bg.jpg\' )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 24, - line: 1, - offset: 23, - }, - input: Input { - css: 'url( \'/gfx/img/bg.jpg\' )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url( 'http://domain.com/gfx/img/bg.jpg' ) - -> Snapshot 1 - - 'url( \'http://domain.com/gfx/img/bg.jpg\' )' - -> Snapshot 2 - - 'url( \'http://domain.com/gfx/img/bg.jpg\' )' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [ - Quoted { - contents: 'http://domain.com/gfx/img/bg.jpg', - parent: [Circular], - quote: '\'', - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' \'http://domain.com/gfx/img/bg.jpg\' ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'quoted', - value: '\'http://domain.com/gfx/img/bg.jpg\'', - [Symbol(isClean)]: false, - }, - ], - params: '( \'http://domain.com/gfx/img/bg.jpg\' )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 41, - line: 1, - offset: 40, - }, - input: Input { - css: 'url( \'http://domain.com/gfx/img/bg.jpg\' )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url( /gfx/img/bg.jpg ) - -> Snapshot 1 - - 'url( /gfx/img/bg.jpg )' - -> Snapshot 2 - - 'url( /gfx/img/bg.jpg )' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [ - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' /gfx/img/bg.jpg ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' /gfx/img/bg.jpg ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'word', - value: 'gfx', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' /gfx/img/bg.jpg ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' /gfx/img/bg.jpg ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'word', - value: 'img', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' /gfx/img/bg.jpg ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: ' ', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' /gfx/img/bg.jpg ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'word', - value: 'bg.jpg', - [Symbol(isClean)]: false, - }, - ], - params: '( /gfx/img/bg.jpg )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 22, - line: 1, - offset: 21, - }, - input: Input { - css: 'url( /gfx/img/bg.jpg )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url("/gfx/img/bg.jpg" hello ) - -> Snapshot 1 - - 'url("/gfx/img/bg.jpg" hello )' - -> Snapshot 2 - - 'url("/gfx/img/bg.jpg" hello )' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [ - Quoted { - contents: '/gfx/img/bg.jpg', - parent: [Circular], - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"/gfx/img/bg.jpg" hello ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"/gfx/img/bg.jpg"', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 19, - line: 1, - offset: 18, - }, - input: Input { - css: '"/gfx/img/bg.jpg" hello ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 19, - line: 1, - offset: 18, - }, - }, - type: 'word', - value: 'hello', - [Symbol(isClean)]: false, - }, - ], - params: '("/gfx/img/bg.jpg" hello )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 29, - line: 1, - offset: 28, - }, - input: Input { - css: 'url("/gfx/img/bg.jpg" hello )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url("http://domain.com/gfx/img/bg.jpg" hello ) - -> Snapshot 1 - - 'url("http://domain.com/gfx/img/bg.jpg" hello )' - -> Snapshot 2 - - 'url("http://domain.com/gfx/img/bg.jpg" hello )' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [ - Quoted { - contents: 'http://domain.com/gfx/img/bg.jpg', - parent: [Circular], - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"http://domain.com/gfx/img/bg.jpg" hello ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"http://domain.com/gfx/img/bg.jpg"', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 36, - line: 1, - offset: 35, - }, - input: Input { - css: '"http://domain.com/gfx/img/bg.jpg" hello ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 36, - line: 1, - offset: 35, - }, - }, - type: 'word', - value: 'hello', - [Symbol(isClean)]: false, - }, - ], - params: '("http://domain.com/gfx/img/bg.jpg" hello )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 46, - line: 1, - offset: 45, - }, - input: Input { - css: 'url("http://domain.com/gfx/img/bg.jpg" hello )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url() - -> Snapshot 1 - - 'url()' - -> Snapshot 2 - - 'url()' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [], - params: '()', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'url()', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url() foo bar baz - -> Snapshot 1 - - 'url()' - -> Snapshot 2 - - 'url() foo bar baz' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [], - params: '()', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'url() foo bar baz', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: 'url() foo bar baz', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'word', - value: 'foo', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 11, - line: 1, - offset: 10, - }, - input: Input { - css: 'url() foo bar baz', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 11, - line: 1, - offset: 10, - }, - }, - type: 'word', - value: 'bar', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 15, - line: 1, - offset: 14, - }, - input: Input { - css: 'url() foo bar baz', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 15, - line: 1, - offset: 14, - }, - }, - type: 'word', - value: 'baz', - [Symbol(isClean)]: false, - }, - ] - -## url(//123.example.com) - -> Snapshot 1 - - 'url(//123.example.com)' - -> Snapshot 2 - - 'url(//123.example.com)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: true, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '//123.example.com', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '//123.example.com', - [Symbol(isClean)]: false, - }, - ], - params: '(//123.example.com)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'url(//123.example.com)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url(http://123.example.com) - -> Snapshot 1 - - 'url(http://123.example.com)' - -> Snapshot 2 - - 'url(http://123.example.com)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'http://123.example.com', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'http', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: 'http://123.example.com', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 5, - line: 1, - offset: 4, - }, - }, - type: 'punctuation', - value: ':', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: true, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: 'http://123.example.com', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'word', - value: '//123.example.com', - [Symbol(isClean)]: false, - }, - ], - params: '(http://123.example.com)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'url(http://123.example.com)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## url(var(foo)) - -> Snapshot 1 - - 'url(var(foo))' - -> Snapshot 2 - - 'url(var(foo))' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'url', - nodes: [ - Func { - isColor: false, - isVar: false, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'foo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'foo', - [Symbol(isClean)]: false, - }, - ], - params: '(foo)', - parent: [Circular], - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'var(foo)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ], - params: '(var(foo))', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 13, - line: 1, - offset: 12, - }, - input: Input { - css: 'url(var(foo))', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## var( --foo ) - -> Snapshot 1 - - 'var( --foo )' - -> Snapshot 2 - - 'var( --foo )' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: ' ', - before: ' ', - }, - source: { - end: { - column: 3, - line: 1, - offset: 2, - }, - input: Input { - css: ' --foo ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 3, - line: 1, - offset: 2, - }, - }, - type: 'word', - value: '--foo', - [Symbol(isClean)]: false, - }, - ], - params: '( --foo )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'var( --foo )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## var( --foo) - -> Snapshot 1 - - 'var( --foo)' - -> Snapshot 2 - - 'var( --foo)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' --foo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'word', - value: '--foo', - [Symbol(isClean)]: false, - }, - ], - params: '( --foo)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'var( --foo)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## var(--foo ) - -> Snapshot 1 - - 'var(--foo )' - -> Snapshot 2 - - 'var(--foo )' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: ' ', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--foo ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--foo', - [Symbol(isClean)]: false, - }, - ], - params: '(--foo )', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'var(--foo )', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## var(--foo) - -> Snapshot 1 - - 'var(--foo)' - -> Snapshot 2 - - 'var(--foo)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--foo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--foo', - [Symbol(isClean)]: false, - }, - ], - params: '(--foo)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'var(--foo)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## var(--foo, default-value) - -> Snapshot 1 - - 'var(--foo, default-value)' - -> Snapshot 2 - - 'var(--foo, default-value)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--foo, default-value', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--foo', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--foo, default-value', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 8, - line: 1, - offset: 7, - }, - input: Input { - css: '--foo, default-value', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 8, - line: 1, - offset: 7, - }, - }, - type: 'word', - value: 'default-value', - [Symbol(isClean)]: false, - }, - ], - params: '(--foo, default-value)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'var(--foo, default-value)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## calc(-0.5*var(foo)) - -> Snapshot 1 - - 'calc(-0.5*var(foo))' - -> Snapshot 2 - - 'calc(-0.5*var(foo))' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'calc', - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-0.5*var(foo)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '-0.5', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-0.5*var(foo)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'operator', - value: '*', - [Symbol(isClean)]: false, - }, - Func { - isColor: false, - isVar: false, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'foo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'foo', - [Symbol(isClean)]: false, - }, - ], - params: '(foo)', - parent: [Circular], - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 9, - line: 1, - offset: 8, - }, - input: Input { - css: '-0.5*var(foo)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ], - params: '(-0.5*var(foo))', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 19, - line: 1, - offset: 18, - }, - input: Input { - css: 'calc(-0.5*var(foo))', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## calc(var(--foo)) - -> Snapshot 1 - - 'calc(var(--foo))' - -> Snapshot 2 - - 'calc(var(--foo))' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'calc', - nodes: [ - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--foo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--foo', - [Symbol(isClean)]: false, - }, - ], - params: '(--foo)', - parent: [Circular], - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'var(--foo)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ], - params: '(var(--foo))', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 16, - line: 1, - offset: 15, - }, - input: Input { - css: 'calc(var(--foo))', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## calc(var(--foo) * var(--bar)) - -> Snapshot 1 - - 'calc(var(--foo) * var(--bar))' - -> Snapshot 2 - - 'calc(var(--foo) * var(--bar))' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'calc', - nodes: [ - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--foo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--foo', - [Symbol(isClean)]: false, - }, - ], - params: '(--foo)', - parent: [Circular], - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'var(--foo) * var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 12, - line: 1, - offset: 11, - }, - input: Input { - css: 'var(--foo) * var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 12, - line: 1, - offset: 11, - }, - }, - type: 'operator', - value: '*', - [Symbol(isClean)]: false, - }, - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--bar', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--bar', - [Symbol(isClean)]: false, - }, - ], - params: '(--bar)', - parent: [Circular], - raws: { - after: '', - before: ' ', - semicolon: false, - }, - source: { - end: { - column: 17, - line: 1, - offset: 16, - }, - input: Input { - css: 'var(--foo) * var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 14, - line: 1, - offset: 13, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ], - params: '(var(--foo) * var(--bar))', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 29, - line: 1, - offset: 28, - }, - input: Input { - css: 'calc(var(--foo) * var(--bar))', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## calc(var(--foo)* var(--bar)) - -> Snapshot 1 - - 'calc(var(--foo)* var(--bar))' - -> Snapshot 2 - - 'calc(var(--foo)* var(--bar))' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'calc', - nodes: [ - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--foo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--foo', - [Symbol(isClean)]: false, - }, - ], - params: '(--foo)', - parent: [Circular], - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'var(--foo)* var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 11, - line: 1, - offset: 10, - }, - input: Input { - css: 'var(--foo)* var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 11, - line: 1, - offset: 10, - }, - }, - type: 'operator', - value: '*', - [Symbol(isClean)]: false, - }, - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--bar', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--bar', - [Symbol(isClean)]: false, - }, - ], - params: '(--bar)', - parent: [Circular], - raws: { - after: '', - before: ' ', - semicolon: false, - }, - source: { - end: { - column: 16, - line: 1, - offset: 15, - }, - input: Input { - css: 'var(--foo)* var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 13, - line: 1, - offset: 12, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ], - params: '(var(--foo)* var(--bar))', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 28, - line: 1, - offset: 27, - }, - input: Input { - css: 'calc(var(--foo)* var(--bar))', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## calc(var(--foo)*var(--bar)) - -> Snapshot 1 - - 'calc(var(--foo)*var(--bar))' - -> Snapshot 2 - - 'calc(var(--foo)*var(--bar))' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'calc', - nodes: [ - Func { - isColor: false, - isVar: true, - name: 'var', - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--foo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--foo', - [Symbol(isClean)]: false, - }, - ], - params: '(--foo)', - parent: [Circular], - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: 'var(--foo)*var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 11, - line: 1, - offset: 10, - }, - input: Input { - css: 'var(--foo)*var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 11, - line: 1, - offset: 10, - }, - }, - type: 'operator', - value: '*var', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 15, - line: 1, - offset: 14, - }, - input: Input { - css: 'var(--foo)*var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 15, - line: 1, - offset: 14, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'var(--foo)*var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--bar', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 15, - line: 1, - offset: 14, - }, - input: Input { - css: 'var(--foo)*var(--bar)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 15, - line: 1, - offset: 14, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - ], - params: '(var(--foo)*var(--bar))', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 27, - line: 1, - offset: 26, - }, - input: Input { - css: 'calc(var(--foo)*var(--bar))', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] - -## calc(((768px - 100vw)/2) - 15px) - -> Snapshot 1 - - 'calc(((768px - 100vw)/2) - 15px)' - -> Snapshot 2 - - 'calc(((768px - 100vw)/2) - 15px)' - -> Snapshot 3 - - [ - Func { - isColor: false, - isVar: false, - name: 'calc', - nodes: [ - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'px', - value: '768', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'operator', - value: '-', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 9, - line: 1, - offset: 8, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 9, - line: 1, - offset: 8, - }, - }, - type: 'numeric', - unit: 'vw', - value: '100', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 17, - line: 1, - offset: 16, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 17, - line: 1, - offset: 16, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 17, - line: 1, - offset: 16, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 17, - line: 1, - offset: 16, - }, - }, - type: 'numeric', - unit: '', - value: '2', - [Symbol(isClean)]: false, - }, - Punctuation { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 19, - line: 1, - offset: 18, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 19, - line: 1, - offset: 18, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 21, - line: 1, - offset: 20, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 21, - line: 1, - offset: 20, - }, - }, - type: 'operator', - value: '-', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 23, - line: 1, - offset: 22, - }, - input: Input { - css: '((768px - 100vw)/2) - 15px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 23, - line: 1, - offset: 22, - }, - }, - type: 'numeric', - unit: 'px', - value: '15', - [Symbol(isClean)]: false, - }, - ], - params: '(((768px - 100vw)/2) - 15px)', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 32, - line: 1, - offset: 31, - }, - input: Input { - css: 'calc(((768px - 100vw)/2) - 15px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'func', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/func.test.js.snap b/test/snapshots/func.test.js.snap deleted file mode 100644 index 774c50b..0000000 Binary files a/test/snapshots/func.test.js.snap and /dev/null differ diff --git a/test/snapshots/func.test.ts.snap b/test/snapshots/func.test.ts.snap new file mode 100644 index 0000000..49f251d --- /dev/null +++ b/test/snapshots/func.test.ts.snap @@ -0,0 +1,4755 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`function parsing > should parse: -webkit-linear-gradient(0) 1`] = `"-webkit-linear-gradient(0)"`; + +exports[`function parsing > should parse: -webkit-linear-gradient(0) 2`] = `"-webkit-linear-gradient(0)"`; + +exports[`function parsing > should parse: -webkit-linear-gradient(0) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "-webkit-linear-gradient", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 26, + "line": 1, + "offset": 25, + }, + "inputId": 0, + "start": { + "column": 25, + "line": 1, + "offset": 24, + }, + }, + "type": "numeric", + "unit": "", + "value": "0", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 27, + "line": 1, + "offset": 26, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: 1em/var(--line-height) 1`] = `"1"`; + +exports[`function parsing > should parse: 1em/var(--line-height) 2`] = `"1/var(--line-height)"`; + +exports[`function parsing > should parse: 1em/var(--line-height) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 4, + "line": 1, + "offset": 3, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "em", + "value": "1", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 4, + "line": 1, + "offset": 3, + }, + }, + "type": "operator", + "value": "/", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 9, + "line": 1, + "offset": 8, + }, + }, + "type": "word", + "value": "--line-height", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 23, + "line": 1, + "offset": 22, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: Lab( 40% 56.6 39 ) 1`] = `"Lab(40% 56.6 39)"`; + +exports[`function parsing > should parse: Lab( 40% 56.6 39 ) 2`] = `"Lab(40% 56.6 39)"`; + +exports[`function parsing > should parse: Lab( 40% 56.6 39 ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isVar": false, + "name": "Lab", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 9, + "line": 1, + "offset": 8, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "numeric", + "unit": "%", + "value": "40%", + }, + { + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "numeric", + "unit": "", + "value": "56.6", + }, + { + "raws": {}, + "source": { + "end": { + "column": 20, + "line": 1, + "offset": 19, + }, + "inputId": 0, + "start": { + "column": 18, + "line": 1, + "offset": 17, + }, + }, + "type": "numeric", + "unit": "", + "value": "39", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: RGBA( 29, 439 , 29 ) 1`] = `"RGBA(29,439,29)"`; + +exports[`function parsing > should parse: RGBA( 29, 439 , 29 ) 2`] = `"RGBA(29,439,29)"`; + +exports[`function parsing > should parse: RGBA( 29, 439 , 29 ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isVar": false, + "name": "RGBA", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 9, + "line": 1, + "offset": 8, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "numeric", + "unit": "", + "value": "29", + }, + { + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 9, + "line": 1, + "offset": 8, + }, + }, + "type": "operator", + "value": ",", + }, + { + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "numeric", + "unit": "", + "value": "439", + }, + { + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 15, + "line": 1, + "offset": 14, + }, + }, + "type": "operator", + "value": ",", + }, + { + "raws": {}, + "source": { + "end": { + "column": 19, + "line": 1, + "offset": 18, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "numeric", + "unit": "", + "value": "29", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 21, + "line": 1, + "offset": 20, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: RgBa( 29, 439 , 29 ) 1`] = `"RgBa(29,439,29)"`; + +exports[`function parsing > should parse: RgBa( 29, 439 , 29 ) 2`] = `"RgBa(29,439,29)"`; + +exports[`function parsing > should parse: RgBa( 29, 439 , 29 ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isVar": false, + "name": "RgBa", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 9, + "line": 1, + "offset": 8, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "numeric", + "unit": "", + "value": "29", + }, + { + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 9, + "line": 1, + "offset": 8, + }, + }, + "type": "operator", + "value": ",", + }, + { + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "numeric", + "unit": "", + "value": "439", + }, + { + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 15, + "line": 1, + "offset": 14, + }, + }, + "type": "operator", + "value": ",", + }, + { + "raws": {}, + "source": { + "end": { + "column": 19, + "line": 1, + "offset": 18, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "numeric", + "unit": "", + "value": "29", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 21, + "line": 1, + "offset": 20, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: bar(baz(black, 10%), 10%) 1`] = `"bar(baz(black,10%),10%)"`; + +exports[`function parsing > should parse: bar(baz(black, 10%), 10%) 2`] = `"bar(baz(black,10%),10%)"`; + +exports[`function parsing > should parse: bar(baz(black, 10%), 10%) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "bar", + "nodes": [ + { + "isColor": false, + "isVar": false, + "name": "baz", + "nodes": [ + { + "isColor": true, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 9, + "line": 1, + "offset": 8, + }, + }, + "type": "word", + "value": "black", + }, + { + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 14, + "line": 1, + "offset": 13, + }, + }, + "type": "operator", + "value": ",", + }, + { + "raws": {}, + "source": { + "end": { + "column": 19, + "line": 1, + "offset": 18, + }, + "inputId": 0, + "start": { + "column": 16, + "line": 1, + "offset": 15, + }, + }, + "type": "numeric", + "unit": "%", + "value": "10%", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 20, + "line": 1, + "offset": 19, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "func", + "value": "", + }, + { + "raws": {}, + "source": { + "end": { + "column": 21, + "line": 1, + "offset": 20, + }, + "inputId": 0, + "start": { + "column": 20, + "line": 1, + "offset": 19, + }, + }, + "type": "operator", + "value": ",", + }, + { + "raws": {}, + "source": { + "end": { + "column": 25, + "line": 1, + "offset": 24, + }, + "inputId": 0, + "start": { + "column": 22, + "line": 1, + "offset": 21, + }, + }, + "type": "numeric", + "unit": "%", + "value": "10%", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 26, + "line": 1, + "offset": 25, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: bat-man(#000) 1`] = `"bat-man(#000)"`; + +exports[`function parsing > should parse: bat-man(#000) 2`] = `"bat-man(#000)"`; + +exports[`function parsing > should parse: bat-man(#000) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "bat-man", + "nodes": [ + { + "isColor": true, + "isHex": true, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 9, + "line": 1, + "offset": 8, + }, + }, + "type": "word", + "value": "#000", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: calc(((768px - 100vw) / 2) - 15px) 1`] = `"calc(((768 - 100)/2) - 15)"`; + +exports[`function parsing > should parse: calc(((768px - 100vw) / 2) - 15px) 2`] = `"calc(((768 - 100)/2) - 15)"`; + +exports[`function parsing > should parse: calc(((768px - 100vw) / 2) - 15px) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "calc", + "nodes": [ + { + "nodes": [ + { + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "px", + "value": "768", + }, + { + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 14, + "line": 1, + "offset": 13, + }, + }, + "type": "operator", + "value": " - ", + }, + { + "raws": {}, + "source": { + "end": { + "column": 21, + "line": 1, + "offset": 20, + }, + "inputId": 0, + "start": { + "column": 16, + "line": 1, + "offset": 15, + }, + }, + "type": "numeric", + "unit": "vw", + "value": "100", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "parentheses", + "value": "()", + }, + { + "raws": {}, + "source": { + "end": { + "column": 24, + "line": 1, + "offset": 23, + }, + "inputId": 0, + "start": { + "column": 23, + "line": 1, + "offset": 22, + }, + }, + "type": "operator", + "value": "/", + }, + { + "raws": {}, + "source": { + "end": { + "column": 26, + "line": 1, + "offset": 25, + }, + "inputId": 0, + "start": { + "column": 25, + "line": 1, + "offset": 24, + }, + }, + "type": "numeric", + "unit": "", + "value": "2", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 27, + "line": 1, + "offset": 26, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "parentheses", + "value": "()", + }, + { + "raws": {}, + "source": { + "end": { + "column": 29, + "line": 1, + "offset": 28, + }, + "inputId": 0, + "start": { + "column": 28, + "line": 1, + "offset": 27, + }, + }, + "type": "operator", + "value": " - ", + }, + { + "raws": {}, + "source": { + "end": { + "column": 34, + "line": 1, + "offset": 33, + }, + "inputId": 0, + "start": { + "column": 30, + "line": 1, + "offset": 29, + }, + }, + "type": "numeric", + "unit": "px", + "value": "15", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 35, + "line": 1, + "offset": 34, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: calc(((768px - 100vw)/2) - 15px) 1`] = `"calc(((768 - 100)/2) - 15)"`; + +exports[`function parsing > should parse: calc(((768px - 100vw)/2) - 15px) 2`] = `"calc(((768 - 100)/2) - 15)"`; + +exports[`function parsing > should parse: calc(((768px - 100vw)/2) - 15px) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "calc", + "nodes": [ + { + "nodes": [ + { + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "px", + "value": "768", + }, + { + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 14, + "line": 1, + "offset": 13, + }, + }, + "type": "operator", + "value": " - ", + }, + { + "raws": {}, + "source": { + "end": { + "column": 21, + "line": 1, + "offset": 20, + }, + "inputId": 0, + "start": { + "column": 16, + "line": 1, + "offset": 15, + }, + }, + "type": "numeric", + "unit": "vw", + "value": "100", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "parentheses", + "value": "()", + }, + { + "raws": {}, + "source": { + "end": { + "column": 23, + "line": 1, + "offset": 22, + }, + "inputId": 0, + "start": { + "column": 22, + "line": 1, + "offset": 21, + }, + }, + "type": "operator", + "value": "/", + }, + { + "raws": {}, + "source": { + "end": { + "column": 24, + "line": 1, + "offset": 23, + }, + "inputId": 0, + "start": { + "column": 23, + "line": 1, + "offset": 22, + }, + }, + "type": "numeric", + "unit": "", + "value": "2", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 25, + "line": 1, + "offset": 24, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "parentheses", + "value": "()", + }, + { + "raws": {}, + "source": { + "end": { + "column": 27, + "line": 1, + "offset": 26, + }, + "inputId": 0, + "start": { + "column": 26, + "line": 1, + "offset": 25, + }, + }, + "type": "operator", + "value": " - ", + }, + { + "raws": {}, + "source": { + "end": { + "column": 32, + "line": 1, + "offset": 31, + }, + "inputId": 0, + "start": { + "column": 28, + "line": 1, + "offset": 27, + }, + }, + "type": "numeric", + "unit": "px", + "value": "15", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 33, + "line": 1, + "offset": 32, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: calc(-0.5 * var(foo)) 1`] = `"calc(-0.5*var(foo))"`; + +exports[`function parsing > should parse: calc(-0.5 * var(foo)) 2`] = `"calc(-0.5*var(foo))"`; + +exports[`function parsing > should parse: calc(-0.5 * var(foo)) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "calc", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "numeric", + "unit": "", + "value": "-0.5", + }, + { + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "operator", + "value": "*", + }, + { + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 20, + "line": 1, + "offset": 19, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "word", + "value": "foo", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 21, + "line": 1, + "offset": 20, + }, + "inputId": 0, + "start": { + "column": 13, + "line": 1, + "offset": 12, + }, + }, + "type": "func", + "value": "", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: calc(1px + -2vw - 4px) 1`] = `"calc(1 + -2 - 4)"`; + +exports[`function parsing > should parse: calc(1px + -2vw - 4px) 2`] = `"calc(1 + -2 - 4)"`; + +exports[`function parsing > should parse: calc(1px + -2vw - 4px) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "calc", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 9, + "line": 1, + "offset": 8, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "numeric", + "unit": "px", + "value": "1", + }, + { + "raws": {}, + "source": { + "end": { + "column": 11, + "line": 1, + "offset": 10, + }, + "inputId": 0, + "start": { + "column": 10, + "line": 1, + "offset": 9, + }, + }, + "type": "operator", + "value": " + ", + }, + { + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 12, + "line": 1, + "offset": 11, + }, + }, + "type": "numeric", + "unit": "vw", + "value": "-2", + }, + { + "raws": {}, + "source": { + "end": { + "column": 18, + "line": 1, + "offset": 17, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "operator", + "value": " - ", + }, + { + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 19, + "line": 1, + "offset": 18, + }, + }, + "type": "numeric", + "unit": "px", + "value": "4", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 23, + "line": 1, + "offset": 22, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: calc(var(--foo)*var(--bar)) 1`] = `"calc(var(--foo)*var(--bar))"`; + +exports[`function parsing > should parse: calc(var(--foo)*var(--bar)) 2`] = `"calc(var(--foo)*var(--bar))"`; + +exports[`function parsing > should parse: calc(var(--foo)*var(--bar)) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "calc", + "nodes": [ + { + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 10, + "line": 1, + "offset": 9, + }, + }, + "type": "word", + "value": "--foo", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "func", + "value": "", + }, + { + "raws": {}, + "source": { + "end": { + "column": 17, + "line": 1, + "offset": 16, + }, + "inputId": 0, + "start": { + "column": 16, + "line": 1, + "offset": 15, + }, + }, + "type": "operator", + "value": "*", + }, + { + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 26, + "line": 1, + "offset": 25, + }, + "inputId": 0, + "start": { + "column": 21, + "line": 1, + "offset": 20, + }, + }, + "type": "word", + "value": "--bar", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 27, + "line": 1, + "offset": 26, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "func", + "value": "", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 28, + "line": 1, + "offset": 27, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: calc(var(--mdc-layout-grid-gutter-desktop, 24px)/2*-1) 1`] = `"calc(var(--mdc-layout-grid-gutter-desktop,)/2*-1)"`; + +exports[`function parsing > should parse: calc(var(--mdc-layout-grid-gutter-desktop, 24px)/2*-1) 2`] = `"calc(var(--mdc-layout-grid-gutter-desktop,)/2*-1)"`; + +exports[`function parsing > should parse: calc(var(--mdc-layout-grid-gutter-desktop, 24px)/2*-1) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "calc", + "nodes": [ + { + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 42, + "line": 1, + "offset": 41, + }, + "inputId": 0, + "start": { + "column": 10, + "line": 1, + "offset": 9, + }, + }, + "type": "word", + "value": "--mdc-layout-grid-gutter-desktop", + }, + { + "raws": {}, + "source": { + "end": { + "column": 43, + "line": 1, + "offset": 42, + }, + "inputId": 0, + "start": { + "column": 42, + "line": 1, + "offset": 41, + }, + }, + "type": "operator", + "value": ",", + }, + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 48, + "line": 1, + "offset": 47, + }, + "inputId": 0, + "start": { + "column": 43, + "line": 1, + "offset": 42, + }, + }, + "type": "word", + "value": "", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 49, + "line": 1, + "offset": 48, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "func", + "value": "", + }, + { + "raws": {}, + "source": { + "end": { + "column": 50, + "line": 1, + "offset": 49, + }, + "inputId": 0, + "start": { + "column": 49, + "line": 1, + "offset": 48, + }, + }, + "type": "operator", + "value": "/", + }, + { + "raws": {}, + "source": { + "end": { + "column": 51, + "line": 1, + "offset": 50, + }, + "inputId": 0, + "start": { + "column": 50, + "line": 1, + "offset": 49, + }, + }, + "type": "numeric", + "unit": "", + "value": "2", + }, + { + "raws": {}, + "source": { + "end": { + "column": 52, + "line": 1, + "offset": 51, + }, + "inputId": 0, + "start": { + "column": 51, + "line": 1, + "offset": 50, + }, + }, + "type": "operator", + "value": "*", + }, + { + "raws": {}, + "source": { + "end": { + "column": 54, + "line": 1, + "offset": 53, + }, + "inputId": 0, + "start": { + "column": 52, + "line": 1, + "offset": 51, + }, + }, + "type": "numeric", + "unit": "", + "value": "-1", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 55, + "line": 1, + "offset": 54, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: clamp(1.25rem, 0.9423rem + 1.5385vw, 1.75rem) 1`] = `"clamp(1.25,0.9423 + 1.5385,1.75)"`; + +exports[`function parsing > should parse: clamp(1.25rem, 0.9423rem + 1.5385vw, 1.75rem) 2`] = `"clamp(1.25,0.9423 + 1.5385,1.75)"`; + +exports[`function parsing > should parse: clamp(1.25rem, 0.9423rem + 1.5385vw, 1.75rem) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "clamp", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "numeric", + "unit": "rem", + "value": "1.25", + }, + { + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 14, + "line": 1, + "offset": 13, + }, + }, + "type": "operator", + "value": ",", + }, + { + "raws": {}, + "source": { + "end": { + "column": 25, + "line": 1, + "offset": 24, + }, + "inputId": 0, + "start": { + "column": 16, + "line": 1, + "offset": 15, + }, + }, + "type": "numeric", + "unit": "rem", + "value": "0.9423", + }, + { + "raws": {}, + "source": { + "end": { + "column": 27, + "line": 1, + "offset": 26, + }, + "inputId": 0, + "start": { + "column": 26, + "line": 1, + "offset": 25, + }, + }, + "type": "operator", + "value": " + ", + }, + { + "raws": {}, + "source": { + "end": { + "column": 36, + "line": 1, + "offset": 35, + }, + "inputId": 0, + "start": { + "column": 28, + "line": 1, + "offset": 27, + }, + }, + "type": "numeric", + "unit": "vw", + "value": "1.5385", + }, + { + "raws": {}, + "source": { + "end": { + "column": 37, + "line": 1, + "offset": 36, + }, + "inputId": 0, + "start": { + "column": 36, + "line": 1, + "offset": 35, + }, + }, + "type": "operator", + "value": ",", + }, + { + "raws": {}, + "source": { + "end": { + "column": 45, + "line": 1, + "offset": 44, + }, + "inputId": 0, + "start": { + "column": 38, + "line": 1, + "offset": 37, + }, + }, + "type": "numeric", + "unit": "rem", + "value": "1.75", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 46, + "line": 1, + "offset": 45, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: conic-gradient() 1`] = `"conic-gradient()"`; + +exports[`function parsing > should parse: conic-gradient() 2`] = `"conic-gradient()"`; + +exports[`function parsing > should parse: conic-gradient() 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "conic-gradient", + "nodes": [], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 17, + "line": 1, + "offset": 16, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: hwb(90deg 0% 0% / 0.5) 1`] = `"hwb(90 0% 0%/0.5)"`; + +exports[`function parsing > should parse: hwb(90deg 0% 0% / 0.5) 2`] = `"hwb(90 0% 0%/0.5)"`; + +exports[`function parsing > should parse: hwb(90deg 0% 0% / 0.5) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isVar": false, + "name": "hwb", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "numeric", + "unit": "deg", + "value": "90", + }, + { + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "numeric", + "unit": "%", + "value": "0%", + }, + { + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 14, + "line": 1, + "offset": 13, + }, + }, + "type": "numeric", + "unit": "%", + "value": "0%", + }, + { + "raws": {}, + "source": { + "end": { + "column": 18, + "line": 1, + "offset": 17, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "operator", + "value": "/", + }, + { + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 19, + "line": 1, + "offset": 18, + }, + }, + "type": "numeric", + "unit": "", + "value": "0.5", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 23, + "line": 1, + "offset": 22, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: lCH(40% 68.8 34.5 / 50%) 1`] = `"lCH(40% 68.8 34.5/50%)"`; + +exports[`function parsing > should parse: lCH(40% 68.8 34.5 / 50%) 2`] = `"lCH(40% 68.8 34.5/50%)"`; + +exports[`function parsing > should parse: lCH(40% 68.8 34.5 / 50%) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isVar": false, + "name": "lCH", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 8, + "line": 1, + "offset": 7, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "numeric", + "unit": "%", + "value": "40%", + }, + { + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 9, + "line": 1, + "offset": 8, + }, + }, + "type": "numeric", + "unit": "", + "value": "68.8", + }, + { + "raws": {}, + "source": { + "end": { + "column": 18, + "line": 1, + "offset": 17, + }, + "inputId": 0, + "start": { + "column": 14, + "line": 1, + "offset": 13, + }, + }, + "type": "numeric", + "unit": "", + "value": "34.5", + }, + { + "raws": {}, + "source": { + "end": { + "column": 20, + "line": 1, + "offset": 19, + }, + "inputId": 0, + "start": { + "column": 19, + "line": 1, + "offset": 18, + }, + }, + "type": "operator", + "value": "/", + }, + { + "raws": {}, + "source": { + "end": { + "column": 24, + "line": 1, + "offset": 23, + }, + "inputId": 0, + "start": { + "column": 21, + "line": 1, + "offset": 20, + }, + }, + "type": "numeric", + "unit": "%", + "value": "50%", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 25, + "line": 1, + "offset": 24, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: local(foo),local(bar) 1`] = `"local(foo)"`; + +exports[`function parsing > should parse: local(foo),local(bar) 2`] = `"local(foo),local(bar)"`; + +exports[`function parsing > should parse: local(foo),local(bar) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "local", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "word", + "value": "foo", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 11, + "line": 1, + "offset": 10, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "operator", + "value": ",", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "local", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 21, + "line": 1, + "offset": 20, + }, + "inputId": 0, + "start": { + "column": 18, + "line": 1, + "offset": 17, + }, + }, + "type": "word", + "value": "bar", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 12, + "line": 1, + "offset": 11, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: okLab( 40% 56.6 39 ) 1`] = `"okLab(40% 56.6 39)"`; + +exports[`function parsing > should parse: okLab( 40% 56.6 39 ) 2`] = `"okLab(40% 56.6 39)"`; + +exports[`function parsing > should parse: okLab( 40% 56.6 39 ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isVar": false, + "name": "okLab", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 11, + "line": 1, + "offset": 10, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "%", + "value": "40%", + }, + { + "raws": {}, + "source": { + "end": { + "column": 17, + "line": 1, + "offset": 16, + }, + "inputId": 0, + "start": { + "column": 13, + "line": 1, + "offset": 12, + }, + }, + "type": "numeric", + "unit": "", + "value": "56.6", + }, + { + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 20, + "line": 1, + "offset": 19, + }, + }, + "type": "numeric", + "unit": "", + "value": "39", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 24, + "line": 1, + "offset": 23, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: oklCH(40% 68.8 34.5 / 50%) 1`] = `"oklCH(40% 68.8 34.5/50%)"`; + +exports[`function parsing > should parse: oklCH(40% 68.8 34.5 / 50%) 2`] = `"oklCH(40% 68.8 34.5/50%)"`; + +exports[`function parsing > should parse: oklCH(40% 68.8 34.5 / 50%) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isVar": false, + "name": "oklCH", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "numeric", + "unit": "%", + "value": "40%", + }, + { + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "numeric", + "unit": "", + "value": "68.8", + }, + { + "raws": {}, + "source": { + "end": { + "column": 20, + "line": 1, + "offset": 19, + }, + "inputId": 0, + "start": { + "column": 16, + "line": 1, + "offset": 15, + }, + }, + "type": "numeric", + "unit": "", + "value": "34.5", + }, + { + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 21, + "line": 1, + "offset": 20, + }, + }, + "type": "operator", + "value": "/", + }, + { + "raws": {}, + "source": { + "end": { + "column": 26, + "line": 1, + "offset": 25, + }, + "inputId": 0, + "start": { + "column": 23, + "line": 1, + "offset": 22, + }, + }, + "type": "numeric", + "unit": "%", + "value": "50%", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 27, + "line": 1, + "offset": 26, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: rgba( 29, 439 , 29 ) 1`] = `"rgba(29,439,29)"`; + +exports[`function parsing > should parse: rgba( 29, 439 , 29 ) 2`] = `"rgba(29,439,29)"`; + +exports[`function parsing > should parse: rgba( 29, 439 , 29 ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isVar": false, + "name": "rgba", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 9, + "line": 1, + "offset": 8, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "numeric", + "unit": "", + "value": "29", + }, + { + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 9, + "line": 1, + "offset": 8, + }, + }, + "type": "operator", + "value": ",", + }, + { + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "numeric", + "unit": "", + "value": "439", + }, + { + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 15, + "line": 1, + "offset": 14, + }, + }, + "type": "operator", + "value": ",", + }, + { + "raws": {}, + "source": { + "end": { + "column": 19, + "line": 1, + "offset": 18, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "numeric", + "unit": "", + "value": "29", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 21, + "line": 1, + "offset": 20, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: rotate(.5deg) 1`] = `"rotate(.5)"`; + +exports[`function parsing > should parse: rotate(.5deg) 2`] = `"rotate(.5)"`; + +exports[`function parsing > should parse: rotate(.5deg) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "rotate", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "deg", + "value": ".5", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: rotate(0.5deg) 1`] = `"rotate(0.5)"`; + +exports[`function parsing > should parse: rotate(0.5deg) 2`] = `"rotate(0.5)"`; + +exports[`function parsing > should parse: rotate(0.5deg) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "rotate", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "deg", + "value": "0.5", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: rotate(0.5grad) 1`] = `"rotate(0.5)"`; + +exports[`function parsing > should parse: rotate(0.5grad) 2`] = `"rotate(0.5)"`; + +exports[`function parsing > should parse: rotate(0.5grad) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "rotate", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "grad", + "value": "0.5", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: rotate(0.5rad) 1`] = `"rotate(0.5)"`; + +exports[`function parsing > should parse: rotate(0.5rad) 2`] = `"rotate(0.5)"`; + +exports[`function parsing > should parse: rotate(0.5rad) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "rotate", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "rad", + "value": "0.5", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: rotate(0.5turn) 1`] = `"rotate(0.5)"`; + +exports[`function parsing > should parse: rotate(0.5turn) 2`] = `"rotate(0.5)"`; + +exports[`function parsing > should parse: rotate(0.5turn) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "rotate", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "turn", + "value": "0.5", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: rotate(72.3deg) 1`] = `"rotate(72.3)"`; + +exports[`function parsing > should parse: rotate(72.3deg) 2`] = `"rotate(72.3)"`; + +exports[`function parsing > should parse: rotate(72.3deg) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "rotate", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "deg", + "value": "72.3", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: src(var(--foo)) 1`] = `"src(var(--foo))"`; + +exports[`function parsing > should parse: src(var(--foo)) 2`] = `"src(var(--foo))"`; + +exports[`function parsing > should parse: src(var(--foo)) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "src", + "nodes": [ + { + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 9, + "line": 1, + "offset": 8, + }, + }, + "type": "word", + "value": "--foo", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "func", + "value": "", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: url( "/gfx/img/bg.jpg" ) 1`] = `"/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( "/gfx/img/bg.jpg" ) 2`] = `"/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( "/gfx/img/bg.jpg" ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 25, + "line": 1, + "offset": 24, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "/gfx/img/bg.jpg", + }, +] +`; + +exports[`function parsing > should parse: url( "http://domain.com/gfx/img/bg.jpg" ) 1`] = `"http://domain.com/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( "http://domain.com/gfx/img/bg.jpg" ) 2`] = `"http://domain.com/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( "http://domain.com/gfx/img/bg.jpg" ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": true, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 42, + "line": 1, + "offset": 41, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "http://domain.com/gfx/img/bg.jpg", + }, +] +`; + +exports[`function parsing > should parse: url( '/gfx/img/bg.jpg' ) 1`] = `"/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( '/gfx/img/bg.jpg' ) 2`] = `"/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( '/gfx/img/bg.jpg' ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 25, + "line": 1, + "offset": 24, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "/gfx/img/bg.jpg", + }, +] +`; + +exports[`function parsing > should parse: url( 'http://domain.com/gfx/img/bg.jpg' ) 1`] = `"http://domain.com/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( 'http://domain.com/gfx/img/bg.jpg' ) 2`] = `"http://domain.com/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( 'http://domain.com/gfx/img/bg.jpg' ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": true, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 42, + "line": 1, + "offset": 41, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "http://domain.com/gfx/img/bg.jpg", + }, +] +`; + +exports[`function parsing > should parse: url( /gfx/img/bg.jpg 1`] = `"/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( /gfx/img/bg.jpg 2`] = `"/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( /gfx/img/bg.jpg 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "/gfx/img/bg.jpg", + }, +] +`; + +exports[`function parsing > should parse: url( /gfx/img/bg.jpg ) 1`] = `"/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( /gfx/img/bg.jpg ) 2`] = `"/gfx/img/bg.jpg"`; + +exports[`function parsing > should parse: url( /gfx/img/bg.jpg ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 23, + "line": 1, + "offset": 22, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "/gfx/img/bg.jpg", + }, +] +`; + +exports[`function parsing > should parse: url() 1`] = `""`; + +exports[`function parsing > should parse: url() 2`] = `""`; + +exports[`function parsing > should parse: url() 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: url() foo bar baz 1`] = `""`; + +exports[`function parsing > should parse: url() foo bar baz 2`] = `" foo bar baz"`; + +exports[`function parsing > should parse: url() foo bar baz 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "word", + "value": "foo", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "word", + "value": "bar", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 18, + "line": 1, + "offset": 17, + }, + "inputId": 0, + "start": { + "column": 15, + "line": 1, + "offset": 14, + }, + }, + "type": "word", + "value": "baz", + }, +] +`; + +exports[`function parsing > should parse: url(//123.example.com) 1`] = `"//123.example.com"`; + +exports[`function parsing > should parse: url(//123.example.com) 2`] = `"//123.example.com"`; + +exports[`function parsing > should parse: url(//123.example.com) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 23, + "line": 1, + "offset": 22, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "//123.example.com", + }, +] +`; + +exports[`function parsing > should parse: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1`] = `"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII="`; + +exports[`function parsing > should parse: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 2`] = `"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII="`; + +exports[`function parsing > should parse: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": true, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 168, + "line": 1, + "offset": 167, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=", + }, +] +`; + +exports[`function parsing > should parse: url(http://123.example.com) 1`] = `"http://123.example.com"`; + +exports[`function parsing > should parse: url(http://123.example.com) 2`] = `"http://123.example.com"`; + +exports[`function parsing > should parse: url(http://123.example.com) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": true, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 28, + "line": 1, + "offset": 27, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "http://123.example.com", + }, +] +`; + +exports[`function parsing > should parse: var( --foo ) 1`] = `"var(--foo)"`; + +exports[`function parsing > should parse: var( --foo ) 2`] = `"var(--foo)"`; + +exports[`function parsing > should parse: var( --foo ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "word", + "value": "--foo", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: var( --foo) 1`] = `"var(--foo)"`; + +exports[`function parsing > should parse: var( --foo) 2`] = `"var(--foo)"`; + +exports[`function parsing > should parse: var( --foo) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 11, + "line": 1, + "offset": 10, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "word", + "value": "--foo", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: var(--font-size)/var(--line-height) 1`] = `"var(--font-size)"`; + +exports[`function parsing > should parse: var(--font-size)/var(--line-height) 2`] = `"var(--font-size)/var(--line-height)"`; + +exports[`function parsing > should parse: var(--font-size)/var(--line-height) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "word", + "value": "--font-size", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 17, + "line": 1, + "offset": 16, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 18, + "line": 1, + "offset": 17, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "operator", + "value": "/", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 35, + "line": 1, + "offset": 34, + }, + "inputId": 0, + "start": { + "column": 22, + "line": 1, + "offset": 21, + }, + }, + "type": "word", + "value": "--line-height", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 36, + "line": 1, + "offset": 35, + }, + "inputId": 0, + "start": { + "column": 18, + "line": 1, + "offset": 17, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: var(--foo ) 1`] = `"var(--foo)"`; + +exports[`function parsing > should parse: var(--foo ) 2`] = `"var(--foo)"`; + +exports[`function parsing > should parse: var(--foo ) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "word", + "value": "--foo", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: var(--foo) 1`] = `"var(--foo)"`; + +exports[`function parsing > should parse: var(--foo) 2`] = `"var(--foo)"`; + +exports[`function parsing > should parse: var(--foo) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "word", + "value": "--foo", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 11, + "line": 1, + "offset": 10, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`function parsing > should parse: var(--foo, default-value) 1`] = `"var(--foo,)"`; + +exports[`function parsing > should parse: var(--foo, default-value) 2`] = `"var(--foo,)"`; + +exports[`function parsing > should parse: var(--foo, default-value) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": true, + "name": "var", + "nodes": [ + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "word", + "value": "--foo", + }, + { + "raws": {}, + "source": { + "end": { + "column": 11, + "line": 1, + "offset": 10, + }, + "inputId": 0, + "start": { + "column": 10, + "line": 1, + "offset": 9, + }, + }, + "type": "operator", + "value": ",", + }, + { + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 25, + "line": 1, + "offset": 24, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "word", + "value": "", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 26, + "line": 1, + "offset": 25, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, +] +`; diff --git a/test/snapshots/integration.test.js.md b/test/snapshots/integration.test.js.md deleted file mode 100644 index 7afaddc..0000000 --- a/test/snapshots/integration.test.js.md +++ /dev/null @@ -1,11 +0,0 @@ -# Snapshot report for `test/integration.test.js` - -The actual snapshot is saved in `integration.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## manipulation - -> Snapshot 1 - - 'rgb(100%, 100%, 100%)' diff --git a/test/snapshots/integration.test.js.snap b/test/snapshots/integration.test.js.snap deleted file mode 100644 index 45b9db6..0000000 Binary files a/test/snapshots/integration.test.js.snap and /dev/null differ diff --git a/test/snapshots/integration.test.ts.snap b/test/snapshots/integration.test.ts.snap new file mode 100644 index 0000000..63e243f --- /dev/null +++ b/test/snapshots/integration.test.ts.snap @@ -0,0 +1,3 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`integration tests > should handle manipulation 1`] = `"rgb(100%,100%,100%)"`; diff --git a/test/snapshots/interpolation.test.js.md b/test/snapshots/interpolation.test.js.md deleted file mode 100644 index 5f1de81..0000000 --- a/test/snapshots/interpolation.test.js.md +++ /dev/null @@ -1,306 +0,0 @@ -# Snapshot report for `test/interpolation.test.js` - -The actual snapshot is saved in `interpolation.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## #{2 * 2px} - -> Snapshot 1 - - '#{2 * 2px}' - -> Snapshot 2 - - '#{2 * 2px}' - -> Snapshot 3 - - [ - Interpolation { - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '2 * 2px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '2', - [Symbol(isClean)]: false, - }, - Operator { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 3, - line: 1, - offset: 2, - }, - input: Input { - css: '2 * 2px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 3, - line: 1, - offset: 2, - }, - }, - type: 'operator', - value: '*', - [Symbol(isClean)]: false, - }, - Numeric { - parent: [Circular], - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: '2 * 2px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 5, - line: 1, - offset: 4, - }, - }, - type: 'numeric', - unit: 'px', - value: '2', - [Symbol(isClean)]: false, - }, - ], - params: '{2 * 2px}', - prefix: '#', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: '#{2 * 2px}', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'interpolation', - [Symbol(isClean)]: false, - }, - ] - -## #{2px} - -> Snapshot 1 - - '#{2px}' - -> Snapshot 2 - - '#{2px}' - -> Snapshot 3 - - [ - Interpolation { - nodes: [ - Numeric { - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '2px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'px', - value: '2', - [Symbol(isClean)]: false, - }, - ], - params: '{2px}', - prefix: '#', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: '#{2px}', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'interpolation', - [Symbol(isClean)]: false, - }, - ] - -## #{batman} - -> Snapshot 1 - - '#{batman}' - -> Snapshot 2 - - '#{batman}' - -> Snapshot 3 - - [ - Interpolation { - nodes: [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - parent: [Circular], - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'batman', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'batman', - [Symbol(isClean)]: false, - }, - ], - params: '{batman}', - prefix: '#', - raws: { - after: '', - before: '', - semicolon: false, - }, - source: { - end: { - column: 9, - line: 1, - offset: 8, - }, - input: Input { - css: '#{batman}', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'interpolation', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/interpolation.test.js.snap b/test/snapshots/interpolation.test.js.snap deleted file mode 100644 index d9cd758..0000000 Binary files a/test/snapshots/interpolation.test.js.snap and /dev/null differ diff --git a/test/snapshots/numeric.test.js.md b/test/snapshots/numeric.test.js.md deleted file mode 100644 index 926016c..0000000 --- a/test/snapshots/numeric.test.js.md +++ /dev/null @@ -1,1936 +0,0 @@ -# Snapshot report for `test/numeric.test.js` - -The actual snapshot is saved in `numeric.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## +2 - -> Snapshot 1 - - '+2' - -> Snapshot 2 - - '+2' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '+2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '+2', - [Symbol(isClean)]: false, - }, - ] - -## -.3s - -> Snapshot 1 - - '-.3s' - -> Snapshot 2 - - '-.3s' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-.3s', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 's', - value: '-.3', - [Symbol(isClean)]: false, - }, - ] - -## -.3s + 0.5s - -> Snapshot 1 - - '-.3s' - -> Snapshot 2 - - '-.3s + 0.5s' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-.3s + 0.5s', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 's', - value: '-.3', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: '-.3s + 0.5s', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'operator', - value: '+', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 8, - line: 1, - offset: 7, - }, - input: Input { - css: '-.3s + 0.5s', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 8, - line: 1, - offset: 7, - }, - }, - type: 'numeric', - unit: 's', - value: '0.5', - [Symbol(isClean)]: false, - }, - ] - -## -.567800E-0012780em - -> Snapshot 1 - - '-.567800E-0012780em' - -> Snapshot 2 - - '-.567800E-0012780em' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-.567800E-0012780em', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'em', - value: '-.567800E-0012780', - [Symbol(isClean)]: false, - }, - ] - -## -0.5 - -> Snapshot 1 - - '-0.5' - -> Snapshot 2 - - '-0.5' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-0.5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '-0.5', - [Symbol(isClean)]: false, - }, - ] - -## -16px - -> Snapshot 1 - - '-16px' - -> Snapshot 2 - - '-16px' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-16px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'px', - value: '-16', - [Symbol(isClean)]: false, - }, - ] - -## -16px -1px -1px -16px - -> Snapshot 1 - - '-16px' - -> Snapshot 2 - - '-16px -1px -1px -16px' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-16px -1px -1px -16px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'px', - value: '-16', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: '-16px -1px -1px -16px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'numeric', - unit: 'px', - value: '-1', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 12, - line: 1, - offset: 11, - }, - input: Input { - css: '-16px -1px -1px -16px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 12, - line: 1, - offset: 11, - }, - }, - type: 'numeric', - unit: 'px', - value: '-1', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 17, - line: 1, - offset: 16, - }, - input: Input { - css: '-16px -1px -1px -16px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 17, - line: 1, - offset: 16, - }, - }, - type: 'numeric', - unit: 'px', - value: '-16', - [Symbol(isClean)]: false, - }, - ] - -## -2 - -> Snapshot 1 - - '-2' - -> Snapshot 2 - - '-2' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '-2', - [Symbol(isClean)]: false, - }, - ] - -## -2px - -> Snapshot 1 - - '-2px' - -> Snapshot 2 - - '-2px' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-2px', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'px', - value: '-2', - [Symbol(isClean)]: false, - }, - ] - -## .1E+10 - -> Snapshot 1 - - '.1E+10' - -> Snapshot 2 - - '.1E+10' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '.1E+10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '.1E+10', - [Symbol(isClean)]: false, - }, - ] - -## .1E-10 - -> Snapshot 1 - - '.1E-10' - -> Snapshot 2 - - '.1E-10' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '.1E-10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '.1E-10', - [Symbol(isClean)]: false, - }, - ] - -## .23rem - -> Snapshot 1 - - '.23rem' - -> Snapshot 2 - - '.23rem' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '.23rem', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'rem', - value: '.23', - [Symbol(isClean)]: false, - }, - ] - -## .5deg - -> Snapshot 1 - - '.5deg' - -> Snapshot 2 - - '.5deg' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '.5deg', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'deg', - value: '.5', - [Symbol(isClean)]: false, - }, - ] - -## 0.5 - -> Snapshot 1 - - '0.5' - -> Snapshot 2 - - '0.5' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0.5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '0.5', - [Symbol(isClean)]: false, - }, - ] - -## 0.5deg - -> Snapshot 1 - - '0.5deg' - -> Snapshot 2 - - '0.5deg' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0.5deg', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'deg', - value: '0.5', - [Symbol(isClean)]: false, - }, - ] - -## 0.5grad - -> Snapshot 1 - - '0.5grad' - -> Snapshot 2 - - '0.5grad' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0.5grad', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'grad', - value: '0.5', - [Symbol(isClean)]: false, - }, - ] - -## 0.5rad - -> Snapshot 1 - - '0.5rad' - -> Snapshot 2 - - '0.5rad' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0.5rad', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'rad', - value: '0.5', - [Symbol(isClean)]: false, - }, - ] - -## 0.5s - -> Snapshot 1 - - '0.5s' - -> Snapshot 2 - - '0.5s' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0.5s', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 's', - value: '0.5', - [Symbol(isClean)]: false, - }, - ] - -## 0.5s + 0.5s - -> Snapshot 1 - - '0.5s' - -> Snapshot 2 - - '0.5s + 0.5s' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '0.5s + 0.5s', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 's', - value: '0.5', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: '0.5s + 0.5s', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'operator', - value: '+', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 8, - line: 1, - offset: 7, - }, - input: Input { - css: '0.5s + 0.5s', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 8, - line: 1, - offset: 7, - }, - }, - type: 'numeric', - unit: 's', - value: '0.5', - [Symbol(isClean)]: false, - }, - ] - -## 1.5dppx - -> Snapshot 1 - - '1.5dppx' - -> Snapshot 2 - - '1.5dppx' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1.5dppx', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'dppx', - value: '1.5', - [Symbol(isClean)]: false, - }, - ] - -## 10q - -> Snapshot 1 - - '10q' - -> Snapshot 2 - - '10q' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '10q', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'q', - value: '10', - [Symbol(isClean)]: false, - }, - ] - -## 1138--thx - -> Snapshot 1 - - '1138--thx' - -> Snapshot 2 - - '1138--thx' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1138--thx', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '--thx', - value: '1138', - [Symbol(isClean)]: false, - }, - ] - -## 1E+10 - -> Snapshot 1 - - '1E+10' - -> Snapshot 2 - - '1E+10' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1E+10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '1E+10', - [Symbol(isClean)]: false, - }, - ] - -## 1E-10 - -> Snapshot 1 - - '1E-10' - -> Snapshot 2 - - '1E-10' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1E-10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '1E-10', - [Symbol(isClean)]: false, - }, - ] - -## 1E10 - -> Snapshot 1 - - '1E10' - -> Snapshot 2 - - '1E10' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1E10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '1E10', - [Symbol(isClean)]: false, - }, - ] - -## 1e+10 - -> Snapshot 1 - - '1e+10' - -> Snapshot 2 - - '1e+10' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1e+10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '1e+10', - [Symbol(isClean)]: false, - }, - ] - -## 1e-10 - -> Snapshot 1 - - '1e-10' - -> Snapshot 2 - - '1e-10' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1e-10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '1e-10', - [Symbol(isClean)]: false, - }, - ] - -## 1e10 - -> Snapshot 1 - - '1e10' - -> Snapshot 2 - - '1e10' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '1e10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '1e10', - [Symbol(isClean)]: false, - }, - ] - -## 2. - -> Snapshot 1 - - '2.' - -> Snapshot 2 - - '2.' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '2.', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '2.', - [Symbol(isClean)]: false, - }, - ] - -## 32deg - -> Snapshot 1 - - '32deg' - -> Snapshot 2 - - '32deg' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '32deg', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'deg', - value: '32', - [Symbol(isClean)]: false, - }, - ] - -## 5 + 5 - -> Snapshot 1 - - '5' - -> Snapshot 2 - - '5 + 5' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5 + 5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '5', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 3, - line: 1, - offset: 2, - }, - input: Input { - css: '5 + 5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 3, - line: 1, - offset: 2, - }, - }, - type: 'operator', - value: '+', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: '5 + 5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 5, - line: 1, - offset: 4, - }, - }, - type: 'numeric', - unit: '', - value: '5', - [Symbol(isClean)]: false, - }, - ] - -## 5 +5 - -> Snapshot 1 - - '5' - -> Snapshot 2 - - '5 +5' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5 +5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '5', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 3, - line: 1, - offset: 2, - }, - input: Input { - css: '5 +5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 3, - line: 1, - offset: 2, - }, - }, - type: 'numeric', - unit: '', - value: '+5', - [Symbol(isClean)]: false, - }, - ] - -## 5/5 - -> Snapshot 1 - - '5' - -> Snapshot 2 - - '5/5' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5/5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '5', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5/5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5/5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '5', - [Symbol(isClean)]: false, - }, - ] - -## 500ms - -> Snapshot 1 - - '500ms' - -> Snapshot 2 - - '500ms' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '500ms', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'ms', - value: '500', - [Symbol(isClean)]: false, - }, - ] - -## 72.3deg - -> Snapshot 1 - - '72.3deg' - -> Snapshot 2 - - '72.3deg' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '72.3deg', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: 'deg', - value: '72.3', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/numeric.test.js.snap b/test/snapshots/numeric.test.js.snap deleted file mode 100644 index d2e5ab8..0000000 Binary files a/test/snapshots/numeric.test.js.snap and /dev/null differ diff --git a/test/snapshots/numeric.test.ts.snap b/test/snapshots/numeric.test.ts.snap new file mode 100644 index 0000000..b478731 --- /dev/null +++ b/test/snapshots/numeric.test.ts.snap @@ -0,0 +1,1656 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`numeric parsing > should parse: +2 1`] = `"+2"`; + +exports[`numeric parsing > should parse: +2 2`] = `"+2"`; + +exports[`numeric parsing > should parse: +2 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "+2", + }, +] +`; + +exports[`numeric parsing > should parse: .1E+10 1`] = `".1E+10"`; + +exports[`numeric parsing > should parse: .1E+10 2`] = `".1E+10"`; + +exports[`numeric parsing > should parse: .1E+10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": ".1E+10", + }, +] +`; + +exports[`numeric parsing > should parse: .1E-10 1`] = `".1E-10"`; + +exports[`numeric parsing > should parse: .1E-10 2`] = `".1E-10"`; + +exports[`numeric parsing > should parse: .1E-10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": ".1E-10", + }, +] +`; + +exports[`numeric parsing > should parse: .2.3rem 1`] = `".2"`; + +exports[`numeric parsing > should parse: .2.3rem 2`] = `".2 .3"`; + +exports[`numeric parsing > should parse: .2.3rem 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": ".2", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 8, + "line": 1, + "offset": 7, + }, + "inputId": 0, + "start": { + "column": 3, + "line": 1, + "offset": 2, + }, + }, + "type": "numeric", + "unit": "rem", + "value": ".3", + }, +] +`; + +exports[`numeric parsing > should parse: .5deg 1`] = `".5"`; + +exports[`numeric parsing > should parse: .5deg 2`] = `".5"`; + +exports[`numeric parsing > should parse: .5deg 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "deg", + "value": ".5", + }, +] +`; + +exports[`numeric parsing > should parse: .23rem 1`] = `".23"`; + +exports[`numeric parsing > should parse: .23rem 2`] = `".23"`; + +exports[`numeric parsing > should parse: .23rem 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "rem", + "value": ".23", + }, +] +`; + +exports[`numeric parsing > should parse: -.3s + 0.5s 1`] = `"-.3"`; + +exports[`numeric parsing > should parse: -.3s + 0.5s 2`] = `"-.3 + 0.5"`; + +exports[`numeric parsing > should parse: -.3s + 0.5s 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "s", + "value": "-.3", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "operator", + "value": " + ", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "s", + "value": "0.5", + }, +] +`; + +exports[`numeric parsing > should parse: -.3s 1`] = `"-.3"`; + +exports[`numeric parsing > should parse: -.3s 2`] = `"-.3"`; + +exports[`numeric parsing > should parse: -.3s 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "s", + "value": "-.3", + }, +] +`; + +exports[`numeric parsing > should parse: -.567800E-0012780em 1`] = `"-.567800E-0012780"`; + +exports[`numeric parsing > should parse: -.567800E-0012780em 2`] = `"-.567800E-0012780"`; + +exports[`numeric parsing > should parse: -.567800E-0012780em 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 20, + "line": 1, + "offset": 19, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "em", + "value": "-.567800E-0012780", + }, +] +`; + +exports[`numeric parsing > should parse: -0.5 1`] = `"-0.5"`; + +exports[`numeric parsing > should parse: -0.5 2`] = `"-0.5"`; + +exports[`numeric parsing > should parse: -0.5 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "-0.5", + }, +] +`; + +exports[`numeric parsing > should parse: -2 1`] = `"-2"`; + +exports[`numeric parsing > should parse: -2 2`] = `"-2"`; + +exports[`numeric parsing > should parse: -2 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "-2", + }, +] +`; + +exports[`numeric parsing > should parse: -2px 1`] = `"-2"`; + +exports[`numeric parsing > should parse: -2px 2`] = `"-2"`; + +exports[`numeric parsing > should parse: -2px 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "px", + "value": "-2", + }, +] +`; + +exports[`numeric parsing > should parse: -16px -1px -1px -16px 1`] = `"-16"`; + +exports[`numeric parsing > should parse: -16px -1px -1px -16px 2`] = `"-16 -1 -1 -16"`; + +exports[`numeric parsing > should parse: -16px -1px -1px -16px 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "px", + "value": "-16", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 11, + "line": 1, + "offset": 10, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "numeric", + "unit": "px", + "value": "-1", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 12, + "line": 1, + "offset": 11, + }, + }, + "type": "numeric", + "unit": "px", + "value": "-1", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "numeric", + "unit": "px", + "value": "-16", + }, +] +`; + +exports[`numeric parsing > should parse: -16px 1`] = `"-16"`; + +exports[`numeric parsing > should parse: -16px 2`] = `"-16"`; + +exports[`numeric parsing > should parse: -16px 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "px", + "value": "-16", + }, +] +`; + +exports[`numeric parsing > should parse: 0.5 1`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5 2`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 4, + "line": 1, + "offset": 3, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "0.5", + }, +] +`; + +exports[`numeric parsing > should parse: 0.5deg 1`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5deg 2`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5deg 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "deg", + "value": "0.5", + }, +] +`; + +exports[`numeric parsing > should parse: 0.5grad 1`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5grad 2`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5grad 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 8, + "line": 1, + "offset": 7, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "grad", + "value": "0.5", + }, +] +`; + +exports[`numeric parsing > should parse: 0.5rad 1`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5rad 2`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5rad 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "rad", + "value": "0.5", + }, +] +`; + +exports[`numeric parsing > should parse: 0.5s + 0.5s 1`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5s + 0.5s 2`] = `"0.5 + 0.5"`; + +exports[`numeric parsing > should parse: 0.5s + 0.5s 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "s", + "value": "0.5", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "operator", + "value": " + ", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 8, + "line": 1, + "offset": 7, + }, + }, + "type": "numeric", + "unit": "s", + "value": "0.5", + }, +] +`; + +exports[`numeric parsing > should parse: 0.5s 1`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5s 2`] = `"0.5"`; + +exports[`numeric parsing > should parse: 0.5s 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "s", + "value": "0.5", + }, +] +`; + +exports[`numeric parsing > should parse: 1.5dppx 1`] = `"1.5"`; + +exports[`numeric parsing > should parse: 1.5dppx 2`] = `"1.5"`; + +exports[`numeric parsing > should parse: 1.5dppx 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 8, + "line": 1, + "offset": 7, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "dppx", + "value": "1.5", + }, +] +`; + +exports[`numeric parsing > should parse: 1E+10 1`] = `"1E+10"`; + +exports[`numeric parsing > should parse: 1E+10 2`] = `"1E+10"`; + +exports[`numeric parsing > should parse: 1E+10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "1E+10", + }, +] +`; + +exports[`numeric parsing > should parse: 1E-10 1`] = `"1E-10"`; + +exports[`numeric parsing > should parse: 1E-10 2`] = `"1E-10"`; + +exports[`numeric parsing > should parse: 1E-10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "1E-10", + }, +] +`; + +exports[`numeric parsing > should parse: 1E10 1`] = `"1E10"`; + +exports[`numeric parsing > should parse: 1E10 2`] = `"1E10"`; + +exports[`numeric parsing > should parse: 1E10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "1E10", + }, +] +`; + +exports[`numeric parsing > should parse: 1e -10 1`] = `"1"`; + +exports[`numeric parsing > should parse: 1e -10 2`] = `"1 -10"`; + +exports[`numeric parsing > should parse: 1e -10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "e", + "value": "1", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 4, + "line": 1, + "offset": 3, + }, + }, + "type": "numeric", + "unit": "", + "value": "-10", + }, +] +`; + +exports[`numeric parsing > should parse: 1e 1`] = `"1"`; + +exports[`numeric parsing > should parse: 1e 2`] = `"1"`; + +exports[`numeric parsing > should parse: 1e 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "e", + "value": "1", + }, +] +`; + +exports[`numeric parsing > should parse: 1e+10 1`] = `"1e+10"`; + +exports[`numeric parsing > should parse: 1e+10 2`] = `"1e+10"`; + +exports[`numeric parsing > should parse: 1e+10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "1e+10", + }, +] +`; + +exports[`numeric parsing > should parse: 1e-10 1`] = `"1e-10"`; + +exports[`numeric parsing > should parse: 1e-10 2`] = `"1e-10"`; + +exports[`numeric parsing > should parse: 1e-10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "1e-10", + }, +] +`; + +exports[`numeric parsing > should parse: 1e10 1`] = `"1e10"`; + +exports[`numeric parsing > should parse: 1e10 2`] = `"1e10"`; + +exports[`numeric parsing > should parse: 1e10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "1e10", + }, +] +`; + +exports[`numeric parsing > should parse: 5 + 5 1`] = `"5"`; + +exports[`numeric parsing > should parse: 5 + 5 2`] = `"5 + 5"`; + +exports[`numeric parsing > should parse: 5 + 5 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 2, + "line": 1, + "offset": 1, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "5", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 4, + "line": 1, + "offset": 3, + }, + "inputId": 0, + "start": { + "column": 3, + "line": 1, + "offset": 2, + }, + }, + "type": "operator", + "value": " + ", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "numeric", + "unit": "", + "value": "5", + }, +] +`; + +exports[`numeric parsing > should parse: 5 +5 1`] = `"5"`; + +exports[`numeric parsing > should parse: 5 +5 2`] = `"5 +5"`; + +exports[`numeric parsing > should parse: 5 +5 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 2, + "line": 1, + "offset": 1, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "5", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 3, + "line": 1, + "offset": 2, + }, + }, + "type": "numeric", + "unit": "", + "value": "+5", + }, +] +`; + +exports[`numeric parsing > should parse: 5/5 1`] = `"5"`; + +exports[`numeric parsing > should parse: 5/5 2`] = `"5/5"`; + +exports[`numeric parsing > should parse: 5/5 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 2, + "line": 1, + "offset": 1, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "5", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, + "type": "operator", + "value": "/", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 4, + "line": 1, + "offset": 3, + }, + "inputId": 0, + "start": { + "column": 3, + "line": 1, + "offset": 2, + }, + }, + "type": "numeric", + "unit": "", + "value": "5", + }, +] +`; + +exports[`numeric parsing > should parse: 10q 1`] = `"10"`; + +exports[`numeric parsing > should parse: 10q 2`] = `"10"`; + +exports[`numeric parsing > should parse: 10q 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 4, + "line": 1, + "offset": 3, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "q", + "value": "10", + }, +] +`; + +exports[`numeric parsing > should parse: 32deg 1`] = `"32"`; + +exports[`numeric parsing > should parse: 32deg 2`] = `"32"`; + +exports[`numeric parsing > should parse: 32deg 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "deg", + "value": "32", + }, +] +`; + +exports[`numeric parsing > should parse: 72.3deg 1`] = `"72.3"`; + +exports[`numeric parsing > should parse: 72.3deg 2`] = `"72.3"`; + +exports[`numeric parsing > should parse: 72.3deg 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 8, + "line": 1, + "offset": 7, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "deg", + "value": "72.3", + }, +] +`; + +exports[`numeric parsing > should parse: 500ms 1`] = `"500"`; + +exports[`numeric parsing > should parse: 500ms 2`] = `"500"`; + +exports[`numeric parsing > should parse: 500ms 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "ms", + "value": "500", + }, +] +`; + +exports[`numeric parsing > should parse: 1138--thx 1`] = `"1138"`; + +exports[`numeric parsing > should parse: 1138--thx 2`] = `"1138"`; + +exports[`numeric parsing > should parse: 1138--thx 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "--thx", + "value": "1138", + }, +] +`; diff --git a/test/snapshots/operator.test.js.md b/test/snapshots/operator.test.js.md deleted file mode 100644 index db29505..0000000 --- a/test/snapshots/operator.test.js.md +++ /dev/null @@ -1,320 +0,0 @@ -# Snapshot report for `test/operator.test.js` - -The actual snapshot is saved in `operator.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## 10 % modulo - -> Snapshot 1 - - '10' - -> Snapshot 2 - - '10 % modulo' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '10 % modulo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '10', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: '10 % modulo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 4, - line: 1, - offset: 3, - }, - }, - type: 'operator', - value: '%', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: '10 % modulo', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'word', - value: 'modulo', - [Symbol(isClean)]: false, - }, - ] - -## 2 * 10 - -> Snapshot 1 - - '2' - -> Snapshot 2 - - '2 * 10' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '2 * 10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '2', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 3, - line: 1, - offset: 2, - }, - input: Input { - css: '2 * 10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 3, - line: 1, - offset: 2, - }, - }, - type: 'operator', - value: '*', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: '2 * 10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 5, - line: 1, - offset: 4, - }, - }, - type: 'numeric', - unit: '', - value: '10', - [Symbol(isClean)]: false, - }, - ] - -## 2 / 10 - -> Snapshot 1 - - '2' - -> Snapshot 2 - - '2 / 10' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '2 / 10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '2', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 3, - line: 1, - offset: 2, - }, - input: Input { - css: '2 / 10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 3, - line: 1, - offset: 2, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: '2 / 10', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 5, - line: 1, - offset: 4, - }, - }, - type: 'numeric', - unit: '', - value: '10', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/operator.test.js.snap b/test/snapshots/operator.test.js.snap deleted file mode 100644 index 85a5a8c..0000000 Binary files a/test/snapshots/operator.test.js.snap and /dev/null differ diff --git a/test/snapshots/operator.test.ts.snap b/test/snapshots/operator.test.ts.snap new file mode 100644 index 0000000..8be6485 --- /dev/null +++ b/test/snapshots/operator.test.ts.snap @@ -0,0 +1,430 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`operator parsing > should parse: ++(1) 1`] = `"+"`; + +exports[`operator parsing > should parse: ++(1) 2`] = `"++(1)"`; + +exports[`operator parsing > should parse: ++(1) 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 2, + "line": 1, + "offset": 1, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "operator", + "value": "+", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, + "type": "operator", + "value": "+", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 4, + "line": 1, + "offset": 3, + }, + }, + "type": "numeric", + "unit": "", + "value": "1", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 3, + "line": 1, + "offset": 2, + }, + }, + "type": "parentheses", + "value": "()", + }, +] +`; + +exports[`operator parsing > should parse: 2 * 10 1`] = `"2"`; + +exports[`operator parsing > should parse: 2 * 10 2`] = `"2*10"`; + +exports[`operator parsing > should parse: 2 * 10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 2, + "line": 1, + "offset": 1, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "2", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 4, + "line": 1, + "offset": 3, + }, + "inputId": 0, + "start": { + "column": 3, + "line": 1, + "offset": 2, + }, + }, + "type": "operator", + "value": "*", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "numeric", + "unit": "", + "value": "10", + }, +] +`; + +exports[`operator parsing > should parse: 2 / 10 1`] = `"2"`; + +exports[`operator parsing > should parse: 2 / 10 2`] = `"2/10"`; + +exports[`operator parsing > should parse: 2 / 10 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 2, + "line": 1, + "offset": 1, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "2", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 4, + "line": 1, + "offset": 3, + }, + "inputId": 0, + "start": { + "column": 3, + "line": 1, + "offset": 2, + }, + }, + "type": "operator", + "value": "/", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 5, + "line": 1, + "offset": 4, + }, + }, + "type": "numeric", + "unit": "", + "value": "10", + }, +] +`; + +exports[`operator parsing > should parse: 5+ 5 1`] = `"5"`; + +exports[`operator parsing > should parse: 5+ 5 2`] = `"5+ 5"`; + +exports[`operator parsing > should parse: 5+ 5 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 2, + "line": 1, + "offset": 1, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "", + "value": "5", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, + "type": "operator", + "value": "+ ", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 4, + "line": 1, + "offset": 3, + }, + }, + "type": "numeric", + "unit": "", + "value": "5", + }, +] +`; + +exports[`operator parsing > should parse: 5px+5px 1`] = `"5"`; + +exports[`operator parsing > should parse: 5px+5px 2`] = `"5 +5"`; + +exports[`operator parsing > should parse: 5px+5px 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 4, + "line": 1, + "offset": 3, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "numeric", + "unit": "px", + "value": "5", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 8, + "line": 1, + "offset": 7, + }, + "inputId": 0, + "start": { + "column": 4, + "line": 1, + "offset": 3, + }, + }, + "type": "numeric", + "unit": "px", + "value": "+5", + }, +] +`; diff --git a/test/snapshots/punctuation.test.js.md b/test/snapshots/punctuation.test.js.md deleted file mode 100644 index 80a4ac6..0000000 --- a/test/snapshots/punctuation.test.js.md +++ /dev/null @@ -1,900 +0,0 @@ -# Snapshot report for `test/punctuation.test.js` - -The actual snapshot is saved in `punctuation.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## (1,2) - -> Snapshot 1 - - '(' - -> Snapshot 2 - - '(1,2)' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(1,2)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(1,2)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '1', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(1,2)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(1,2)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '2', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(1,2)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - ] - -## ) - -> Snapshot 1 - - ')' - -> Snapshot 2 - - ')' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: ')', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - ] - -## , - -> Snapshot 1 - - ',' - -> Snapshot 2 - - ',' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: ',', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - ] - -## , : ( ) { } [ ] - -> Snapshot 1 - - ',' - -> Snapshot 2 - - ', : ( ) { } [ ]' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: ', : ( ) { } [ ]', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 3, - line: 1, - offset: 2, - }, - input: Input { - css: ', : ( ) { } [ ]', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 3, - line: 1, - offset: 2, - }, - }, - type: 'punctuation', - value: ':', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: ', : ( ) { } [ ]', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 5, - line: 1, - offset: 4, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 5, - line: 1, - offset: 4, - }, - input: Input { - css: ', : ( ) { } [ ]', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 5, - line: 1, - offset: 4, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 9, - line: 1, - offset: 8, - }, - input: Input { - css: ', : ( ) { } [ ]', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 9, - line: 1, - offset: 8, - }, - }, - type: 'punctuation', - value: '{', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 11, - line: 1, - offset: 10, - }, - input: Input { - css: ', : ( ) { } [ ]', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 11, - line: 1, - offset: 10, - }, - }, - type: 'punctuation', - value: '}', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 13, - line: 1, - offset: 12, - }, - input: Input { - css: ', : ( ) { } [ ]', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 13, - line: 1, - offset: 12, - }, - }, - type: 'punctuation', - value: '[', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 15, - line: 1, - offset: 14, - }, - input: Input { - css: ', : ( ) { } [ ]', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 15, - line: 1, - offset: 14, - }, - }, - type: 'punctuation', - value: ']', - [Symbol(isClean)]: false, - }, - ] - -## 5,6,7,8 - -> Snapshot 1 - - '5' - -> Snapshot 2 - - '5,6,7,8' - -> Snapshot 3 - - [ - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5,6,7,8', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '5', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5,6,7,8', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5,6,7,8', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '6', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5,6,7,8', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5,6,7,8', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '7', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5,6,7,8', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '5,6,7,8', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'numeric', - unit: '', - value: '8', - [Symbol(isClean)]: false, - }, - ] - -## : - -> Snapshot 1 - - ':' - -> Snapshot 2 - - ':' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: ':', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ':', - [Symbol(isClean)]: false, - }, - ] - -## ] - -> Snapshot 1 - - ']' - -> Snapshot 2 - - ']' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: ']', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ']', - [Symbol(isClean)]: false, - }, - ] - -## { - -> Snapshot 1 - - '{' - -> Snapshot 2 - - '{' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '{', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: '{', - [Symbol(isClean)]: false, - }, - ] - -## } - -> Snapshot 1 - - '}' - -> Snapshot 2 - - '}' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '}', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: '}', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/punctuation.test.js.snap b/test/snapshots/punctuation.test.js.snap deleted file mode 100644 index 4be5efa..0000000 Binary files a/test/snapshots/punctuation.test.js.snap and /dev/null differ diff --git a/test/snapshots/quoted.test.js.md b/test/snapshots/quoted.test.js.md deleted file mode 100644 index 4b3f561..0000000 --- a/test/snapshots/quoted.test.js.md +++ /dev/null @@ -1,1445 +0,0 @@ -# Snapshot report for `test/quoted.test.js` - -The actual snapshot is saved in `quoted.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## "string" - -> Snapshot 1 - - '"string"' - -> Snapshot 2 - - ' "string" ' - -> Snapshot 3 - - [ - Quoted { - contents: 'string', - quote: '"', - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' "string" ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'quoted', - value: '"string"', - [Symbol(isClean)]: false, - }, - ] - -## "" - -> Snapshot 1 - - '""' - -> Snapshot 2 - - '""' - -> Snapshot 3 - - [ - Quoted { - contents: '', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '""', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '""', - [Symbol(isClean)]: false, - }, - ] - -## "string" - -> Snapshot 1 - - '"string"' - -> Snapshot 2 - - '"string"' - -> Snapshot 3 - - [ - Quoted { - contents: 'string', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"string"', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"string"', - [Symbol(isClean)]: false, - }, - ] - -## "word'word" - -> Snapshot 1 - - '"word\'word"' - -> Snapshot 2 - - '"word\'word"' - -> Snapshot 3 - - [ - Quoted { - contents: 'word\'word', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"word\'word"', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"word\'word"', - [Symbol(isClean)]: false, - }, - ] - -## "word\"word" - -> Snapshot 1 - - '"word\\"word"' - -> Snapshot 2 - - '"word\\"word"' - -> Snapshot 3 - - [ - Quoted { - contents: 'word"word', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"word\\"word"', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"word\\"word"', - [Symbol(isClean)]: false, - }, - ] - -## '' - -> Snapshot 1 - - '\'\'' - -> Snapshot 2 - - '\'\'' - -> Snapshot 3 - - [ - Quoted { - contents: '', - quote: '\'', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '\'\'', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '\'\'', - [Symbol(isClean)]: false, - }, - ] - -## 'word"word' - -> Snapshot 1 - - '\'word"word\'' - -> Snapshot 2 - - '\'word"word\'' - -> Snapshot 3 - - [ - Quoted { - contents: 'word"word', - quote: '\'', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '\'word"word\'', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '\'word"word\'', - [Symbol(isClean)]: false, - }, - ] - -## 'word\'word' - -> Snapshot 1 - - '\'word\\\'word\'' - -> Snapshot 2 - - '\'word\\\'word\'' - -> Snapshot 3 - - [ - Quoted { - contents: 'word\'word', - quote: '\'', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '\'word\\\'word\'', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '\'word\\\'word\'', - [Symbol(isClean)]: false, - }, - ] - -## word1"string"word2 - -> Snapshot 1 - - 'word1' - -> Snapshot 2 - - 'word1"string"word2' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'word1"string"word2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'word1', - [Symbol(isClean)]: false, - }, - Quoted { - contents: 'string', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: 'word1"string"word2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'quoted', - value: '"string"', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 14, - line: 1, - offset: 13, - }, - input: Input { - css: 'word1"string"word2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 14, - line: 1, - offset: 13, - }, - }, - type: 'word', - value: 'word2', - [Symbol(isClean)]: false, - }, - ] - -## should clone "string" - -> Snapshot 1 - - '"string"' - -> Snapshot 2 - - ' "string" ' - -> Snapshot 3 - - [ - Quoted { - contents: 'string', - quote: '"', - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' "string" ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'quoted', - value: '"string"', - [Symbol(isClean)]: false, - }, - ] - -## should clone "" - -> Snapshot 1 - - '""' - -> Snapshot 2 - - '""' - -> Snapshot 3 - - [ - Quoted { - contents: '', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '""', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '""', - [Symbol(isClean)]: false, - }, - ] - -## should clone "string" - -> Snapshot 1 - - '"string"' - -> Snapshot 2 - - '"string"' - -> Snapshot 3 - - [ - Quoted { - contents: 'string', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"string"', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"string"', - [Symbol(isClean)]: false, - }, - ] - -## should clone "word'word" - -> Snapshot 1 - - '"word\'word"' - -> Snapshot 2 - - '"word\'word"' - -> Snapshot 3 - - [ - Quoted { - contents: 'word\'word', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"word\'word"', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"word\'word"', - [Symbol(isClean)]: false, - }, - ] - -## should clone "word\"word" - -> Snapshot 1 - - '"word\\"word"' - -> Snapshot 2 - - '"word\\"word"' - -> Snapshot 3 - - [ - Quoted { - contents: 'word"word', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"word\\"word"', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"word\\"word"', - [Symbol(isClean)]: false, - }, - ] - -## should clone '' - -> Snapshot 1 - - '\'\'' - -> Snapshot 2 - - '\'\'' - -> Snapshot 3 - - [ - Quoted { - contents: '', - quote: '\'', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '\'\'', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '\'\'', - [Symbol(isClean)]: false, - }, - ] - -## should clone 'word"word' - -> Snapshot 1 - - '\'word"word\'' - -> Snapshot 2 - - '\'word"word\'' - -> Snapshot 3 - - [ - Quoted { - contents: 'word"word', - quote: '\'', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '\'word"word\'', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '\'word"word\'', - [Symbol(isClean)]: false, - }, - ] - -## should clone 'word\'word' - -> Snapshot 1 - - '\'word\\\'word\'' - -> Snapshot 2 - - '\'word\\\'word\'' - -> Snapshot 3 - - [ - Quoted { - contents: 'word\'word', - quote: '\'', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '\'word\\\'word\'', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '\'word\\\'word\'', - [Symbol(isClean)]: false, - }, - ] - -## should clone word1"string"word2 - -> Snapshot 1 - - 'word1' - -> Snapshot 2 - - 'word1"string"word2' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'word1"string"word2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'word1', - [Symbol(isClean)]: false, - }, - Quoted { - contents: 'string', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: 'word1"string"word2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'quoted', - value: '"string"', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 14, - line: 1, - offset: 13, - }, - input: Input { - css: 'word1"string"word2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 14, - line: 1, - offset: 13, - }, - }, - type: 'word', - value: 'word2', - [Symbol(isClean)]: false, - }, - ] - -## "string" be should cloned - -> Snapshot 1 - - '"string"' - -> Snapshot 2 - - ' "string" ' - -> Snapshot 3 - - [ - Quoted { - contents: 'string', - quote: '"', - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' "string" ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'quoted', - value: '"string"', - [Symbol(isClean)]: false, - }, - ] - -## "" be should cloned - -> Snapshot 1 - - '""' - -> Snapshot 2 - - '""' - -> Snapshot 3 - - [ - Quoted { - contents: '', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '""', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '""', - [Symbol(isClean)]: false, - }, - ] - -## "string" be should cloned - -> Snapshot 1 - - '"string"' - -> Snapshot 2 - - '"string"' - -> Snapshot 3 - - [ - Quoted { - contents: 'string', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"string"', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"string"', - [Symbol(isClean)]: false, - }, - ] - -## "word'word" be should cloned - -> Snapshot 1 - - '"word\'word"' - -> Snapshot 2 - - '"word\'word"' - -> Snapshot 3 - - [ - Quoted { - contents: 'word\'word', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"word\'word"', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"word\'word"', - [Symbol(isClean)]: false, - }, - ] - -## "word\"word" be should cloned - -> Snapshot 1 - - '"word\\"word"' - -> Snapshot 2 - - '"word\\"word"' - -> Snapshot 3 - - [ - Quoted { - contents: 'word"word', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '"word\\"word"', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '"word\\"word"', - [Symbol(isClean)]: false, - }, - ] - -## '' be should cloned - -> Snapshot 1 - - '\'\'' - -> Snapshot 2 - - '\'\'' - -> Snapshot 3 - - [ - Quoted { - contents: '', - quote: '\'', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '\'\'', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '\'\'', - [Symbol(isClean)]: false, - }, - ] - -## 'word"word' be should cloned - -> Snapshot 1 - - '\'word"word\'' - -> Snapshot 2 - - '\'word"word\'' - -> Snapshot 3 - - [ - Quoted { - contents: 'word"word', - quote: '\'', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '\'word"word\'', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '\'word"word\'', - [Symbol(isClean)]: false, - }, - ] - -## 'word\'word' be should cloned - -> Snapshot 1 - - '\'word\\\'word\'' - -> Snapshot 2 - - '\'word\\\'word\'' - -> Snapshot 3 - - [ - Quoted { - contents: 'word\'word', - quote: '\'', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '\'word\\\'word\'', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'quoted', - value: '\'word\\\'word\'', - [Symbol(isClean)]: false, - }, - ] - -## word1"string"word2 be should cloned - -> Snapshot 1 - - 'word1' - -> Snapshot 2 - - 'word1"string"word2' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'word1"string"word2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'word1', - [Symbol(isClean)]: false, - }, - Quoted { - contents: 'string', - quote: '"', - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: 'word1"string"word2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'quoted', - value: '"string"', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 14, - line: 1, - offset: 13, - }, - input: Input { - css: 'word1"string"word2', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 14, - line: 1, - offset: 13, - }, - }, - type: 'word', - value: 'word2', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/quoted.test.js.snap b/test/snapshots/quoted.test.js.snap deleted file mode 100644 index 0fa3324..0000000 Binary files a/test/snapshots/quoted.test.js.snap and /dev/null differ diff --git a/test/snapshots/quoted.test.ts.snap b/test/snapshots/quoted.test.ts.snap new file mode 100644 index 0000000..497e70b --- /dev/null +++ b/test/snapshots/quoted.test.ts.snap @@ -0,0 +1,1097 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`quoted parsing > "foo" should be cloned 1`] = `""foo""`; + +exports[`quoted parsing > "foo" should be cloned 2`] = `""foo""`; + +exports[`quoted parsing > "foo" should be cloned 3`] = ` +[ + { + "contents": "foo", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, + "type": "quoted", + "value": ""foo"", + }, +] +`; + +exports[`quoted parsing > \\"word\\'\\ \\ should be cloned 1`] = `"\\"word\\'\\ \\ "`; + +exports[`quoted parsing > \\"word\\'\\ \\ should be cloned 2`] = `"\\"word\\'\\ \\ "`; + +exports[`quoted parsing > \\"word\\'\\ \\ should be cloned 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, + "type": "word", + "value": "\\"word\\'\\ \\ ", + }, +] +`; + +exports[`quoted parsing > "" should be cloned 1`] = `""""`; + +exports[`quoted parsing > "" should be cloned 2`] = `""""`; + +exports[`quoted parsing > "" should be cloned 3`] = ` +[ + { + "contents": "", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": """", + }, +] +`; + +exports[`quoted parsing > "string" should be cloned 1`] = `""string""`; + +exports[`quoted parsing > "string" should be cloned 2`] = `""string""`; + +exports[`quoted parsing > "string" should be cloned 3`] = ` +[ + { + "contents": "string", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 9, + "line": 1, + "offset": 8, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": ""string"", + }, +] +`; + +exports[`quoted parsing > "word should be cloned 1`] = `""word"`; + +exports[`quoted parsing > "word should be cloned 2`] = `""word"`; + +exports[`quoted parsing > "word should be cloned 3`] = ` +[ + { + "contents": "word", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": ""word", + }, +] +`; + +exports[`quoted parsing > "word\\ should be cloned 1`] = `""word\\"`; + +exports[`quoted parsing > "word\\ should be cloned 2`] = `""word\\"`; + +exports[`quoted parsing > "word\\ should be cloned 3`] = ` +[ + { + "contents": "word", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": ""word\\", + }, +] +`; + +exports[`quoted parsing > "word\\'word" should be cloned 1`] = `""word\\'word""`; + +exports[`quoted parsing > "word\\'word" should be cloned 2`] = `""word\\'word""`; + +exports[`quoted parsing > "word\\'word" should be cloned 3`] = ` +[ + { + "contents": "word'word", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": ""word\\'word"", + }, +] +`; + +exports[`quoted parsing > "word\\\\"word" should be cloned 1`] = `""word\\\\""`; + +exports[`quoted parsing > "word\\\\"word" should be cloned 2`] = `""word\\\\" word ""`; + +exports[`quoted parsing > "word\\\\"word" should be cloned 3`] = ` +[ + { + "contents": "word\\", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 9, + "line": 1, + "offset": 8, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": ""word\\\\"", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 9, + "line": 1, + "offset": 8, + }, + }, + "type": "word", + "value": "word", + }, + { + "contents": "", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 13, + "line": 1, + "offset": 12, + }, + }, + "type": "quoted", + "value": """, + }, +] +`; + +exports[`quoted parsing > '' should be cloned 1`] = `"''"`; + +exports[`quoted parsing > '' should be cloned 2`] = `"''"`; + +exports[`quoted parsing > '' should be cloned 3`] = ` +[ + { + "contents": "", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": "'", + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": "''", + }, +] +`; + +exports[`quoted parsing > 'word"word' should be cloned 1`] = `"'word"word'"`; + +exports[`quoted parsing > 'word"word' should be cloned 2`] = `"'word"word'"`; + +exports[`quoted parsing > 'word"word' should be cloned 3`] = ` +[ + { + "contents": "word"word", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": "'", + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": "'word"word'", + }, +] +`; + +exports[`quoted parsing > 'word\\'word' should be cloned 1`] = `"'word\\'word'"`; + +exports[`quoted parsing > 'word\\'word' should be cloned 2`] = `"'word\\'word'"`; + +exports[`quoted parsing > 'word\\'word' should be cloned 3`] = ` +[ + { + "contents": "word'word", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": "'", + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": "'word\\'word'", + }, +] +`; + +exports[`quoted parsing > should parse: "foo" 1`] = `""foo""`; + +exports[`quoted parsing > should parse: "foo" 2`] = `""foo""`; + +exports[`quoted parsing > should parse: "foo" 3`] = ` +[ + { + "contents": "foo", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, + "type": "quoted", + "value": ""foo"", + }, +] +`; + +exports[`quoted parsing > should parse: \\"word\\'\\ \\ 1`] = `"\\"word\\'\\ \\ "`; + +exports[`quoted parsing > should parse: \\"word\\'\\ \\ 2`] = `"\\"word\\'\\ \\ "`; + +exports[`quoted parsing > should parse: \\"word\\'\\ \\ 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, + "type": "word", + "value": "\\"word\\'\\ \\ ", + }, +] +`; + +exports[`quoted parsing > should parse: "" 1`] = `""""`; + +exports[`quoted parsing > should parse: "" 2`] = `""""`; + +exports[`quoted parsing > should parse: "" 3`] = ` +[ + { + "contents": "", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": """", + }, +] +`; + +exports[`quoted parsing > should parse: "string" 1`] = `""string""`; + +exports[`quoted parsing > should parse: "string" 2`] = `""string""`; + +exports[`quoted parsing > should parse: "string" 3`] = ` +[ + { + "contents": "string", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 9, + "line": 1, + "offset": 8, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": ""string"", + }, +] +`; + +exports[`quoted parsing > should parse: "word 1`] = `""word"`; + +exports[`quoted parsing > should parse: "word 2`] = `""word"`; + +exports[`quoted parsing > should parse: "word 3`] = ` +[ + { + "contents": "word", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": ""word", + }, +] +`; + +exports[`quoted parsing > should parse: "word\\ 1`] = `""word\\"`; + +exports[`quoted parsing > should parse: "word\\ 2`] = `""word\\"`; + +exports[`quoted parsing > should parse: "word\\ 3`] = ` +[ + { + "contents": "word", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": ""word\\", + }, +] +`; + +exports[`quoted parsing > should parse: "word\\'word" 1`] = `""word\\'word""`; + +exports[`quoted parsing > should parse: "word\\'word" 2`] = `""word\\'word""`; + +exports[`quoted parsing > should parse: "word\\'word" 3`] = ` +[ + { + "contents": "word'word", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": ""word\\'word"", + }, +] +`; + +exports[`quoted parsing > should parse: "word\\\\"word" 1`] = `""word\\\\""`; + +exports[`quoted parsing > should parse: "word\\\\"word" 2`] = `""word\\\\" word ""`; + +exports[`quoted parsing > should parse: "word\\\\"word" 3`] = ` +[ + { + "contents": "word\\", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 9, + "line": 1, + "offset": 8, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": ""word\\\\"", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 9, + "line": 1, + "offset": 8, + }, + }, + "type": "word", + "value": "word", + }, + { + "contents": "", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 13, + "line": 1, + "offset": 12, + }, + }, + "type": "quoted", + "value": """, + }, +] +`; + +exports[`quoted parsing > should parse: '' 1`] = `"''"`; + +exports[`quoted parsing > should parse: '' 2`] = `"''"`; + +exports[`quoted parsing > should parse: '' 3`] = ` +[ + { + "contents": "", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": "'", + "raws": {}, + "source": { + "end": { + "column": 3, + "line": 1, + "offset": 2, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": "''", + }, +] +`; + +exports[`quoted parsing > should parse: 'word"word' 1`] = `"'word"word'"`; + +exports[`quoted parsing > should parse: 'word"word' 2`] = `"'word"word'"`; + +exports[`quoted parsing > should parse: 'word"word' 3`] = ` +[ + { + "contents": "word"word", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": "'", + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": "'word"word'", + }, +] +`; + +exports[`quoted parsing > should parse: 'word\\'word' 1`] = `"'word\\'word'"`; + +exports[`quoted parsing > should parse: 'word\\'word' 2`] = `"'word\\'word'"`; + +exports[`quoted parsing > should parse: 'word\\'word' 3`] = ` +[ + { + "contents": "word'word", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": "'", + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "quoted", + "value": "'word\\'word'", + }, +] +`; + +exports[`quoted parsing > should parse: word1"string"word2 1`] = `"word1"`; + +exports[`quoted parsing > should parse: word1"string"word2 2`] = `"word1 "string" word2"`; + +exports[`quoted parsing > should parse: word1"string"word2 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "word1", + }, + { + "contents": "string", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "quoted", + "value": ""string"", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 19, + "line": 1, + "offset": 18, + }, + "inputId": 0, + "start": { + "column": 14, + "line": 1, + "offset": 13, + }, + }, + "type": "word", + "value": "word2", + }, +] +`; + +exports[`quoted parsing > word1"string"word2 should be cloned 1`] = `"word1"`; + +exports[`quoted parsing > word1"string"word2 should be cloned 2`] = `"word1 "string" word2"`; + +exports[`quoted parsing > word1"string"word2 should be cloned 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "word1", + }, + { + "contents": "string", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 14, + "line": 1, + "offset": 13, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "quoted", + "value": ""string"", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 19, + "line": 1, + "offset": 18, + }, + "inputId": 0, + "start": { + "column": 14, + "line": 1, + "offset": 13, + }, + }, + "type": "word", + "value": "word2", + }, +] +`; diff --git a/test/snapshots/unicode-range.test.js.md b/test/snapshots/unicode-range.test.js.md deleted file mode 100644 index 273a4d0..0000000 --- a/test/snapshots/unicode-range.test.js.md +++ /dev/null @@ -1,283 +0,0 @@ -# Snapshot report for `test/unicode-range.test.js` - -The actual snapshot is saved in `unicode-range.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## U+0-7F - -> Snapshot 1 - - 'U+0-7F' - -> Snapshot 2 - - 'U+0-7F' - -> Snapshot 3 - - [ - UnicodeRange { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'U+0-7F', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'unicodeRange', - value: 'U+0-7F', - [Symbol(isClean)]: false, - }, - ] - -## U+0025-00FF - -> Snapshot 1 - - 'U+0025-00FF' - -> Snapshot 2 - - 'U+0025-00FF' - -> Snapshot 3 - - [ - UnicodeRange { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'U+0025-00FF', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'unicodeRange', - value: 'U+0025-00FF', - [Symbol(isClean)]: false, - }, - ] - -## U+0025-00FF, U+4?? - -> Snapshot 1 - - 'U+0025-00FF' - -> Snapshot 2 - - 'U+0025-00FF, U+4??' - -> Snapshot 3 - - [ - UnicodeRange { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'U+0025-00FF, U+4??', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'unicodeRange', - value: 'U+0025-00FF', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'U+0025-00FF, U+4??', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - UnicodeRange { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 14, - line: 1, - offset: 13, - }, - input: Input { - css: 'U+0025-00FF, U+4??', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 14, - line: 1, - offset: 13, - }, - }, - type: 'unicodeRange', - value: 'U+4??', - [Symbol(isClean)]: false, - }, - ] - -## U+26 - -> Snapshot 1 - - 'U+26' - -> Snapshot 2 - - 'U+26' - -> Snapshot 3 - - [ - UnicodeRange { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'U+26', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'unicodeRange', - value: 'U+26', - [Symbol(isClean)]: false, - }, - ] - -## U+4?? - -> Snapshot 1 - - 'U+4??' - -> Snapshot 2 - - 'U+4??' - -> Snapshot 3 - - [ - UnicodeRange { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'U+4??', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'unicodeRange', - value: 'U+4??', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/unicode-range.test.js.snap b/test/snapshots/unicode-range.test.js.snap deleted file mode 100644 index 37c0827..0000000 Binary files a/test/snapshots/unicode-range.test.js.snap and /dev/null differ diff --git a/test/snapshots/unicode-range.test.ts.snap b/test/snapshots/unicode-range.test.ts.snap new file mode 100644 index 0000000..365db81 --- /dev/null +++ b/test/snapshots/unicode-range.test.ts.snap @@ -0,0 +1,227 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`unicode-range parsing > should parse: U+0-7F 1`] = `"U+0-7F"`; + +exports[`unicode-range parsing > should parse: U+0-7F 2`] = `"U+0-7F"`; + +exports[`unicode-range parsing > should parse: U+0-7F 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "name": "U+0-7F", + "raws": {}, + "source": { + "end": { + "column": 7, + "line": 1, + "offset": 6, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "unicodeRange", + "value": "U+0-7F", + }, +] +`; + +exports[`unicode-range parsing > should parse: U+0025-00FF 1`] = `"U+0025-00FF"`; + +exports[`unicode-range parsing > should parse: U+0025-00FF 2`] = `"U+0025-00FF"`; + +exports[`unicode-range parsing > should parse: U+0025-00FF 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "name": "U+0025-00FF", + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "unicodeRange", + "value": "U+0025-00FF", + }, +] +`; + +exports[`unicode-range parsing > should parse: U+0025-00FF, U+4?? 1`] = `"U+0025-00FF"`; + +exports[`unicode-range parsing > should parse: U+0025-00FF, U+4?? 2`] = `"U+0025-00FF,U+4??"`; + +exports[`unicode-range parsing > should parse: U+0025-00FF, U+4?? 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "name": "U+0025-00FF", + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "unicodeRange", + "value": "U+0025-00FF", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 12, + "line": 1, + "offset": 11, + }, + }, + "type": "operator", + "value": ",", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "name": "U+4??", + "raws": {}, + "source": { + "end": { + "column": 19, + "line": 1, + "offset": 18, + }, + "inputId": 0, + "start": { + "column": 14, + "line": 1, + "offset": 13, + }, + }, + "type": "unicodeRange", + "value": "U+4??", + }, +] +`; + +exports[`unicode-range parsing > should parse: U+4?? 1`] = `"U+4??"`; + +exports[`unicode-range parsing > should parse: U+4?? 2`] = `"U+4??"`; + +exports[`unicode-range parsing > should parse: U+4?? 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "name": "U+4??", + "raws": {}, + "source": { + "end": { + "column": 6, + "line": 1, + "offset": 5, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "unicodeRange", + "value": "U+4??", + }, +] +`; + +exports[`unicode-range parsing > should parse: U+26 1`] = `"U+26"`; + +exports[`unicode-range parsing > should parse: U+26 2`] = `"U+26"`; + +exports[`unicode-range parsing > should parse: U+26 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "name": "U+26", + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "unicodeRange", + "value": "U+26", + }, +] +`; diff --git a/test/snapshots/variable.test.js.md b/test/snapshots/variable.test.js.md deleted file mode 100644 index 42d26b9..0000000 --- a/test/snapshots/variable.test.js.md +++ /dev/null @@ -1,197 +0,0 @@ -# Snapshot report for `test/variable.test.js` - -The actual snapshot is saved in `variable.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## $batman - -> Snapshot 1 - - '$batman' - -> Snapshot 2 - - '$batman' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '$batman', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '$batman', - [Symbol(isClean)]: false, - }, - ] - -## $main-bg-color - -> Snapshot 1 - - '$main-bg-color' - -> Snapshot 2 - - '$main-bg-color' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '$main-bg-color', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '$main-bg-color', - [Symbol(isClean)]: false, - }, - ] - -## --batman - -> Snapshot 1 - - '--batman' - -> Snapshot 2 - - '--batman' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--batman', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--batman', - [Symbol(isClean)]: false, - }, - ] - -## --main-bg-color - -> Snapshot 1 - - '--main-bg-color' - -> Snapshot 2 - - '--main-bg-color' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--main-bg-color', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--main-bg-color', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/variable.test.js.snap b/test/snapshots/variable.test.js.snap deleted file mode 100644 index 5bfdc84..0000000 Binary files a/test/snapshots/variable.test.js.snap and /dev/null differ diff --git a/test/snapshots/variable.test.ts.snap b/test/snapshots/variable.test.ts.snap new file mode 100644 index 0000000..68d15f7 --- /dev/null +++ b/test/snapshots/variable.test.ts.snap @@ -0,0 +1,77 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`variable parsing > should parse: --batman 1`] = `"--batman"`; + +exports[`variable parsing > should parse: --batman 2`] = `"--batman"`; + +exports[`variable parsing > should parse: --batman 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 9, + "line": 1, + "offset": 8, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "--batman", + }, +] +`; + +exports[`variable parsing > should parse: --main-bg-color 1`] = `"--main-bg-color"`; + +exports[`variable parsing > should parse: --main-bg-color 2`] = `"--main-bg-color"`; + +exports[`variable parsing > should parse: --main-bg-color 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "--main-bg-color", + }, +] +`; diff --git a/test/snapshots/walker.test.ts.snap b/test/snapshots/walker.test.ts.snap new file mode 100644 index 0000000..913767a --- /dev/null +++ b/test/snapshots/walker.test.ts.snap @@ -0,0 +1,533 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`walker functionality > should walk Funcs in: calc((foo(768px - 100vw) / 2) - 15px) // batman +//joker 1`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "calc", + "nodes": [ + { + "nodes": [ + { + "isColor": false, + "isVar": false, + "name": "foo", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "numeric", + "unit": "px", + "value": "768", + }, + { + "raws": {}, + "source": { + "end": { + "column": 18, + "line": 1, + "offset": 17, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "operator", + "value": " - ", + }, + { + "raws": {}, + "source": { + "end": { + "column": 24, + "line": 1, + "offset": 23, + }, + "inputId": 0, + "start": { + "column": 19, + "line": 1, + "offset": 18, + }, + }, + "type": "numeric", + "unit": "vw", + "value": "100", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 25, + "line": 1, + "offset": 24, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "func", + "value": "", + }, + { + "raws": {}, + "source": { + "end": { + "column": 27, + "line": 1, + "offset": 26, + }, + "inputId": 0, + "start": { + "column": 26, + "line": 1, + "offset": 25, + }, + }, + "type": "operator", + "value": "/", + }, + { + "raws": {}, + "source": { + "end": { + "column": 29, + "line": 1, + "offset": 28, + }, + "inputId": 0, + "start": { + "column": 28, + "line": 1, + "offset": 27, + }, + }, + "type": "numeric", + "unit": "", + "value": "2", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 30, + "line": 1, + "offset": 29, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "parentheses", + "value": "()", + }, + { + "raws": {}, + "source": { + "end": { + "column": 32, + "line": 1, + "offset": 31, + }, + "inputId": 0, + "start": { + "column": 31, + "line": 1, + "offset": 30, + }, + }, + "type": "operator", + "value": " - ", + }, + { + "raws": {}, + "source": { + "end": { + "column": 37, + "line": 1, + "offset": 36, + }, + "inputId": 0, + "start": { + "column": 33, + "line": 1, + "offset": 32, + }, + }, + "type": "numeric", + "unit": "px", + "value": "15", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 38, + "line": 1, + "offset": 37, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "func", + "value": "", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isVar": false, + "name": "foo", + "nodes": [ + { + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "numeric", + "unit": "px", + "value": "768", + }, + { + "raws": {}, + "source": { + "end": { + "column": 18, + "line": 1, + "offset": 17, + }, + "inputId": 0, + "start": { + "column": 17, + "line": 1, + "offset": 16, + }, + }, + "type": "operator", + "value": " - ", + }, + { + "raws": {}, + "source": { + "end": { + "column": 24, + "line": 1, + "offset": 23, + }, + "inputId": 0, + "start": { + "column": 19, + "line": 1, + "offset": 18, + }, + }, + "type": "numeric", + "unit": "vw", + "value": "100", + }, + ], + "params": "", + "raws": {}, + "source": { + "end": { + "column": 25, + "line": 1, + "offset": 24, + }, + "inputId": 0, + "start": { + "column": 7, + "line": 1, + "offset": 6, + }, + }, + "type": "func", + "value": "", + }, +] +`; + +exports[`walker functionality > should walk Numerics in: calc((foo(768px - 100vw) / 2) - 15px) // batman +//joker 1`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 16, + "line": 1, + "offset": 15, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "numeric", + "unit": "px", + "value": "768", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 24, + "line": 1, + "offset": 23, + }, + "inputId": 0, + "start": { + "column": 19, + "line": 1, + "offset": 18, + }, + }, + "type": "numeric", + "unit": "vw", + "value": "100", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 29, + "line": 1, + "offset": 28, + }, + "inputId": 0, + "start": { + "column": 28, + "line": 1, + "offset": 27, + }, + }, + "type": "numeric", + "unit": "", + "value": "2", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 37, + "line": 1, + "offset": 36, + }, + "inputId": 0, + "start": { + "column": 33, + "line": 1, + "offset": 32, + }, + }, + "type": "numeric", + "unit": "px", + "value": "15", + }, +] +`; + +exports[`walker functionality > should walk Words in: calc((foo(768px - 100vw) / 2) - 15px) // batman +//joker 1`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 48, + "line": 1, + "offset": 47, + }, + "inputId": 0, + "start": { + "column": 42, + "line": 1, + "offset": 41, + }, + }, + "type": "word", + "value": "batman", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 8, + "line": 2, + "offset": 55, + }, + "inputId": 0, + "start": { + "column": 3, + "line": 2, + "offset": 50, + }, + }, + "type": "word", + "value": "joker", + }, +] +`; diff --git a/test/snapshots/word.test.js.md b/test/snapshots/word.test.js.md deleted file mode 100644 index ab07545..0000000 --- a/test/snapshots/word.test.js.md +++ /dev/null @@ -1,2034 +0,0 @@ -# Snapshot report for `test/word.test.js` - -The actual snapshot is saved in `word.test.js.snap`. - -Generated by [AVA](https://avajs.dev). - -## \"word\" \s - -> Snapshot 1 - - '\\"' - -> Snapshot 2 - - ' \\"word\\" \\s ' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 2, - line: 1, - offset: 1, - }, - input: Input { - css: ' \\"word\\" \\s ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 2, - line: 1, - offset: 1, - }, - }, - type: 'word', - value: '\\"', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 4, - line: 1, - offset: 3, - }, - input: Input { - css: ' \\"word\\" \\s ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 4, - line: 1, - offset: 3, - }, - }, - type: 'word', - value: 'word', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 8, - line: 1, - offset: 7, - }, - input: Input { - css: ' \\"word\\" \\s ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 8, - line: 1, - offset: 7, - }, - }, - type: 'word', - value: '\\"', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 11, - line: 1, - offset: 10, - }, - input: Input { - css: ' \\"word\\" \\s ', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 11, - line: 1, - offset: 10, - }, - }, - type: 'word', - value: '\\s', - [Symbol(isClean)]: false, - }, - ] - -## #123 #f09f #abcdef #a2b3c4d5 - -> Snapshot 1 - - '#123' - -> Snapshot 2 - - '#123 #f09f #abcdef #a2b3c4d5' - -> Snapshot 3 - - [ - Word { - isColor: true, - isHex: true, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '#123 #f09f #abcdef #a2b3c4d5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '#123', - [Symbol(isClean)]: false, - }, - Word { - isColor: true, - isHex: true, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: '#123 #f09f #abcdef #a2b3c4d5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'word', - value: '#f09f', - [Symbol(isClean)]: false, - }, - Word { - isColor: true, - isHex: true, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 12, - line: 1, - offset: 11, - }, - input: Input { - css: '#123 #f09f #abcdef #a2b3c4d5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 12, - line: 1, - offset: 11, - }, - }, - type: 'word', - value: '#abcdef', - [Symbol(isClean)]: false, - }, - Word { - isColor: true, - isHex: true, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 20, - line: 1, - offset: 19, - }, - input: Input { - css: '#123 #f09f #abcdef #a2b3c4d5', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 20, - line: 1, - offset: 19, - }, - }, - type: 'word', - value: '#a2b3c4d5', - [Symbol(isClean)]: false, - }, - ] - -## #fff - -> Snapshot 1 - - '#fff' - -> Snapshot 2 - - '#fff' - -> Snapshot 3 - - [ - Word { - isColor: true, - isHex: true, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '#fff', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '#fff', - [Symbol(isClean)]: false, - }, - ] - -## (min-width: 700px) and (orientation: \$landscape) - -> Snapshot 1 - - '(' - -> Snapshot 2 - - '(min-width: 700px) and (orientation: \\$landscape)' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'min-width', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 10, - line: 1, - offset: 9, - }, - }, - type: 'punctuation', - value: ':', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 12, - line: 1, - offset: 11, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 12, - line: 1, - offset: 11, - }, - }, - type: 'numeric', - unit: 'px', - value: '700', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 20, - line: 1, - offset: 19, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 20, - line: 1, - offset: 19, - }, - }, - type: 'word', - value: 'and', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 24, - line: 1, - offset: 23, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 24, - line: 1, - offset: 23, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 25, - line: 1, - offset: 24, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 25, - line: 1, - offset: 24, - }, - }, - type: 'word', - value: 'orientation', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 36, - line: 1, - offset: 35, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 36, - line: 1, - offset: 35, - }, - }, - type: 'punctuation', - value: ':', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 38, - line: 1, - offset: 37, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 38, - line: 1, - offset: 37, - }, - }, - type: 'word', - value: '\\$', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 40, - line: 1, - offset: 39, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 40, - line: 1, - offset: 39, - }, - }, - type: 'word', - value: 'landscape', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 49, - line: 1, - offset: 48, - }, - input: Input { - css: '(min-width: 700px) and (orientation: \\$landscape)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 49, - line: 1, - offset: 48, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - ] - -## --color - -> Snapshot 1 - - '--color' - -> Snapshot 2 - - '--color' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: true, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '--color', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '--color', - [Symbol(isClean)]: false, - }, - ] - -## -webkit-transition - -> Snapshot 1 - - '-webkit-transition' - -> Snapshot 2 - - '-webkit-transition' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '-webkit-transition', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: '-webkit-transition', - [Symbol(isClean)]: false, - }, - ] - -## BLANCHEDALMOND - -> Snapshot 1 - - 'BLANCHEDALMOND' - -> Snapshot 2 - - 'BLANCHEDALMOND' - -> Snapshot 3 - - [ - Word { - isColor: true, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'BLANCHEDALMOND', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'BLANCHEDALMOND', - [Symbol(isClean)]: false, - }, - ] - -## blAncHedaLmoNd - -> Snapshot 1 - - 'blAncHedaLmoNd' - -> Snapshot 2 - - 'blAncHedaLmoNd' - -> Snapshot 3 - - [ - Word { - isColor: true, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'blAncHedaLmoNd', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'blAncHedaLmoNd', - [Symbol(isClean)]: false, - }, - ] - -## blanchedalmond - -> Snapshot 1 - - 'blanchedalmond' - -> Snapshot 2 - - 'blanchedalmond' - -> Snapshot 3 - - [ - Word { - isColor: true, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'blanchedalmond', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'blanchedalmond', - [Symbol(isClean)]: false, - }, - ] - -## bold italic 12px /3 'Open Sans', Arial, "Helvetica Neue", sans-serif - -> Snapshot 1 - - 'bold' - -> Snapshot 2 - - 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif' - -> Snapshot 3 - - [ - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'bold', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 6, - line: 1, - offset: 5, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 6, - line: 1, - offset: 5, - }, - }, - type: 'word', - value: 'italic', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 13, - line: 1, - offset: 12, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 13, - line: 1, - offset: 12, - }, - }, - type: 'numeric', - unit: 'px', - value: '12', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 20, - line: 1, - offset: 19, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 20, - line: 1, - offset: 19, - }, - }, - type: 'operator', - value: '/', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 20, - line: 1, - offset: 19, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 20, - line: 1, - offset: 19, - }, - }, - type: 'numeric', - unit: '', - value: '3', - [Symbol(isClean)]: false, - }, - Quoted { - contents: 'Open Sans', - quote: '\'', - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 23, - line: 1, - offset: 22, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 23, - line: 1, - offset: 22, - }, - }, - type: 'quoted', - value: '\'Open Sans\'', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 34, - line: 1, - offset: 33, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 34, - line: 1, - offset: 33, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 36, - line: 1, - offset: 35, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 36, - line: 1, - offset: 35, - }, - }, - type: 'word', - value: 'Arial', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 36, - line: 1, - offset: 35, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 36, - line: 1, - offset: 35, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Quoted { - contents: 'Helvetica Neue', - quote: '"', - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 43, - line: 1, - offset: 42, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 43, - line: 1, - offset: 42, - }, - }, - type: 'quoted', - value: '"Helvetica Neue"', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 59, - line: 1, - offset: 58, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 59, - line: 1, - offset: 58, - }, - }, - type: 'punctuation', - value: ',', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 61, - line: 1, - offset: 60, - }, - input: Input { - css: 'bold italic 12px /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 61, - line: 1, - offset: 60, - }, - }, - type: 'word', - value: 'sans-serif', - [Symbol(isClean)]: false, - }, - ] - -## (width < 700px) - -> Snapshot 1 - - '(' - -> Snapshot 2 - - '(width < 700px)' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(width < 700px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(width < 700px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'width', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: '(width < 700px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'operator', - value: '<', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 9, - line: 1, - offset: 8, - }, - input: Input { - css: '(width < 700px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 9, - line: 1, - offset: 8, - }, - }, - type: 'numeric', - unit: 'px', - value: '700', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(width < 700px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - ] - -## (width <= 700px) - -> Snapshot 1 - - '(' - -> Snapshot 2 - - '(width <= 700px)' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(width <= 700px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(width <= 700px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'width', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: '(width <= 700px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'operator', - value: '<=', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: '(width <= 700px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 10, - line: 1, - offset: 9, - }, - }, - type: 'numeric', - unit: 'px', - value: '700', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(width <= 700px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - ] - -## (width >= 500px) and (width <= 1200px) - -> Snapshot 1 - - '(' - -> Snapshot 2 - - '(width >= 500px) and (width <= 1200px)' - -> Snapshot 3 - - [ - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'width', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'operator', - value: '>=', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 10, - line: 1, - offset: 9, - }, - }, - type: 'numeric', - unit: 'px', - value: '500', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 18, - line: 1, - offset: 17, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 18, - line: 1, - offset: 17, - }, - }, - type: 'word', - value: 'and', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 22, - line: 1, - offset: 21, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 22, - line: 1, - offset: 21, - }, - }, - type: 'punctuation', - value: '(', - [Symbol(isClean)]: false, - }, - Word { - isColor: false, - isHex: false, - isUrl: false, - isVariable: false, - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 1, - line: 1, - offset: 0, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 1, - line: 1, - offset: 0, - }, - }, - type: 'word', - value: 'width', - [Symbol(isClean)]: false, - }, - Operator { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 7, - line: 1, - offset: 6, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 7, - line: 1, - offset: 6, - }, - }, - type: 'operator', - value: '<=', - [Symbol(isClean)]: false, - }, - Numeric { - raws: { - after: '', - before: ' ', - }, - source: { - end: { - column: 10, - line: 1, - offset: 9, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 10, - line: 1, - offset: 9, - }, - }, - type: 'numeric', - unit: 'px', - value: '1200', - [Symbol(isClean)]: false, - }, - Punctuation { - raws: { - after: '', - before: '', - }, - source: { - end: { - column: 22, - line: 1, - offset: 21, - }, - input: Input { - css: '(width >= 500px) and (width <= 1200px)', - hasBOM: false, - id: '', - [Symbol(fromOffset cache)]: [ - 0, - ], - }, - start: { - column: 22, - line: 1, - offset: 21, - }, - }, - type: 'punctuation', - value: ')', - [Symbol(isClean)]: false, - }, - ] diff --git a/test/snapshots/word.test.js.snap b/test/snapshots/word.test.js.snap deleted file mode 100644 index a9cbabf..0000000 Binary files a/test/snapshots/word.test.js.snap and /dev/null differ diff --git a/test/snapshots/word.test.ts.snap b/test/snapshots/word.test.ts.snap new file mode 100644 index 0000000..b8d09f5 --- /dev/null +++ b/test/snapshots/word.test.ts.snap @@ -0,0 +1,752 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`word parsing > should parse: \\"word\\" \\s 1`] = `"\\"word\\""`; + +exports[`word parsing > should parse: \\"word\\" \\s 2`] = `"\\"word\\" \\s"`; + +exports[`word parsing > should parse: \\"word\\" \\s 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 10, + "line": 1, + "offset": 9, + }, + "inputId": 0, + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, + "type": "word", + "value": "\\"word\\"", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 13, + "line": 1, + "offset": 12, + }, + "inputId": 0, + "start": { + "column": 11, + "line": 1, + "offset": 10, + }, + }, + "type": "word", + "value": "\\s", + }, +] +`; + +exports[`word parsing > should parse: #123 #f09f #abcdef #a2b3c4d5 1`] = `"#123"`; + +exports[`word parsing > should parse: #123 #f09f #abcdef #a2b3c4d5 2`] = `"#123 #f09f #abcdef #a2b3c4d5"`; + +exports[`word parsing > should parse: #123 #f09f #abcdef #a2b3c4d5 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isHex": true, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "#123", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isHex": true, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 11, + "line": 1, + "offset": 10, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "word", + "value": "#f09f", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isHex": true, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 19, + "line": 1, + "offset": 18, + }, + "inputId": 0, + "start": { + "column": 12, + "line": 1, + "offset": 11, + }, + }, + "type": "word", + "value": "#abcdef", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isHex": true, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 29, + "line": 1, + "offset": 28, + }, + "inputId": 0, + "start": { + "column": 20, + "line": 1, + "offset": 19, + }, + }, + "type": "word", + "value": "#a2b3c4d5", + }, +] +`; + +exports[`word parsing > should parse: #fff 1`] = `"#fff"`; + +exports[`word parsing > should parse: #fff 2`] = `"#fff"`; + +exports[`word parsing > should parse: #fff 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isHex": true, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "#fff", + }, +] +`; + +exports[`word parsing > should parse: --color 1`] = `"--color"`; + +exports[`word parsing > should parse: --color 2`] = `"--color"`; + +exports[`word parsing > should parse: --color 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": true, + "raws": {}, + "source": { + "end": { + "column": 8, + "line": 1, + "offset": 7, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "--color", + }, +] +`; + +exports[`word parsing > should parse: -webkit-transition 1`] = `"-webkit-transition"`; + +exports[`word parsing > should parse: -webkit-transition 2`] = `"-webkit-transition"`; + +exports[`word parsing > should parse: -webkit-transition 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 19, + "line": 1, + "offset": 18, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "-webkit-transition", + }, +] +`; + +exports[`word parsing > should parse: BLANCHEDALMOND 1`] = `"BLANCHEDALMOND"`; + +exports[`word parsing > should parse: BLANCHEDALMOND 2`] = `"BLANCHEDALMOND"`; + +exports[`word parsing > should parse: BLANCHEDALMOND 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "BLANCHEDALMOND", + }, +] +`; + +exports[`word parsing > should parse: blAncHedaLmoNd 1`] = `"blAncHedaLmoNd"`; + +exports[`word parsing > should parse: blAncHedaLmoNd 2`] = `"blAncHedaLmoNd"`; + +exports[`word parsing > should parse: blAncHedaLmoNd 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "blAncHedaLmoNd", + }, +] +`; + +exports[`word parsing > should parse: blanchedalmond 1`] = `"blanchedalmond"`; + +exports[`word parsing > should parse: blanchedalmond 2`] = `"blanchedalmond"`; + +exports[`word parsing > should parse: blanchedalmond 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": true, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 15, + "line": 1, + "offset": 14, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "blanchedalmond", + }, +] +`; + +exports[`word parsing > should parse: bold italic 12px /3 'Open Sans', Arial, "Helvetica Neue", sans-serif 1`] = `"bold"`; + +exports[`word parsing > should parse: bold italic 12px /3 'Open Sans', Arial, "Helvetica Neue", sans-serif 2`] = `"bold italic 12/3 'Open Sans',Arial,"Helvetica Neue",sans-serif"`; + +exports[`word parsing > should parse: bold italic 12px /3 'Open Sans', Arial, "Helvetica Neue", sans-serif 3`] = ` +[ + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "inputId": 0, + "start": { + "column": 1, + "line": 1, + "offset": 0, + }, + }, + "type": "word", + "value": "bold", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 12, + "line": 1, + "offset": 11, + }, + "inputId": 0, + "start": { + "column": 6, + "line": 1, + "offset": 5, + }, + }, + "type": "word", + "value": "italic", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 17, + "line": 1, + "offset": 16, + }, + "inputId": 0, + "start": { + "column": 13, + "line": 1, + "offset": 12, + }, + }, + "type": "numeric", + "unit": "px", + "value": "12", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 21, + "line": 1, + "offset": 20, + }, + "inputId": 0, + "start": { + "column": 20, + "line": 1, + "offset": 19, + }, + }, + "type": "operator", + "value": "/", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 22, + "line": 1, + "offset": 21, + }, + "inputId": 0, + "start": { + "column": 21, + "line": 1, + "offset": 20, + }, + }, + "type": "numeric", + "unit": "", + "value": "3", + }, + { + "contents": "Open Sans", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": "'", + "raws": {}, + "source": { + "end": { + "column": 34, + "line": 1, + "offset": 33, + }, + "inputId": 0, + "start": { + "column": 23, + "line": 1, + "offset": 22, + }, + }, + "type": "quoted", + "value": "'Open Sans'", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 35, + "line": 1, + "offset": 34, + }, + "inputId": 0, + "start": { + "column": 34, + "line": 1, + "offset": 33, + }, + }, + "type": "operator", + "value": ",", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 41, + "line": 1, + "offset": 40, + }, + "inputId": 0, + "start": { + "column": 36, + "line": 1, + "offset": 35, + }, + }, + "type": "word", + "value": "Arial", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 42, + "line": 1, + "offset": 41, + }, + "inputId": 0, + "start": { + "column": 41, + "line": 1, + "offset": 40, + }, + }, + "type": "operator", + "value": ",", + }, + { + "contents": "Helvetica Neue", + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "quote": """, + "raws": {}, + "source": { + "end": { + "column": 59, + "line": 1, + "offset": 58, + }, + "inputId": 0, + "start": { + "column": 43, + "line": 1, + "offset": 42, + }, + }, + "type": "quoted", + "value": ""Helvetica Neue"", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "raws": {}, + "source": { + "end": { + "column": 60, + "line": 1, + "offset": 59, + }, + "inputId": 0, + "start": { + "column": 59, + "line": 1, + "offset": 58, + }, + }, + "type": "operator", + "value": ",", + }, + { + "inputs": [ + { + "css": "", + "hasBOM": false, + "id": "", + }, + ], + "isColor": false, + "isHex": false, + "isUrl": false, + "isVariable": false, + "raws": {}, + "source": { + "end": { + "column": 71, + "line": 1, + "offset": 70, + }, + "inputId": 0, + "start": { + "column": 61, + "line": 1, + "offset": 60, + }, + }, + "type": "word", + "value": "sans-serif", + }, +] +`; diff --git a/test/unicode-range.test.js b/test/unicode-range.test.js deleted file mode 100644 index aea2edd..0000000 --- a/test/unicode-range.test.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { snapshot } = require('./fixtures/unicode-range'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} diff --git a/test/unicode-range.test.ts b/test/unicode-range.test.ts new file mode 100644 index 0000000..d7b04ee --- /dev/null +++ b/test/unicode-range.test.ts @@ -0,0 +1,39 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { describe, expect, it } from 'vitest'; + +import { nodeToString, parse } from '../src/index.js'; +import { snapshot, throws } from './fixtures/unicode-range.json'; + +describe('unicode-range parsing', () => { + for (const fixture of snapshot) { + it(`should parse: ${fixture}`, () => { + const root = parse(fixture); + const nodes = root.nodes.map((node) => { + delete node.parent; // eslint-disable-line no-param-reassign + return node; + }); + const string = nodeToString(root); + + expect(root.first?.toString()).toMatchSnapshot(); + expect(string).toMatchSnapshot(); + expect(nodes).toMatchSnapshot(); + }); + } + + if (throws) { + for (const fixture of throws) { + it(`should throw for: ${fixture}`, () => { + expect(() => parse(fixture)).toThrow(); + }); + } + } +}); diff --git a/test/unknown.test.js b/test/unknown.test.js deleted file mode 100644 index ef4642f..0000000 --- a/test/unknown.test.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { parse } = require('../lib'); - -test('unknown', (t) => { - t.throws(() => parse('🙃')); -}); diff --git a/test/variable.test.js b/test/variable.test.js deleted file mode 100644 index 7d04c97..0000000 --- a/test/variable.test.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { options, snapshot } = require('./fixtures/variable'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture, options); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} diff --git a/test/variable.test.ts b/test/variable.test.ts new file mode 100644 index 0000000..dfdf4a3 --- /dev/null +++ b/test/variable.test.ts @@ -0,0 +1,39 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { describe, expect, it } from 'vitest'; + +import { nodeToString, parse } from '../src/index.js'; +import { snapshot, throws } from './fixtures/variable.json'; + +describe('variable parsing', () => { + for (const fixture of snapshot) { + it(`should parse: ${fixture}`, () => { + const root = parse(fixture); + const nodes = root.nodes.map((node) => { + delete node.parent; // eslint-disable-line no-param-reassign + return node; + }); + const string = nodeToString(root); + + expect(root.first?.toString()).toMatchSnapshot(); + expect(string).toMatchSnapshot(); + expect(nodes).toMatchSnapshot(); + }); + } + + if (throws) { + for (const fixture of throws) { + it(`should throw for: ${fixture}`, () => { + expect(() => parse(fixture)).toThrow(); + }); + } + } +}); diff --git a/test/walker.test.js b/test/walker.test.js deleted file mode 100644 index 139969f..0000000 --- a/test/walker.test.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { parse } = require('../lib'); - -const { values } = require('./fixtures/walker'); - -for (const { value, walkers } of values) { - const root = parse(value); - - for (const { length, type } of walkers) { - test(type, (t) => { - const nodes = []; - - root[`walk${type}`]((node) => { - nodes.push(node); - }); - - t.is(length, nodes.length, type); - }); - } -} diff --git a/test/walker.test.ts b/test/walker.test.ts new file mode 100644 index 0000000..6242323 --- /dev/null +++ b/test/walker.test.ts @@ -0,0 +1,36 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { Container } from 'postcss'; +import { describe, expect, it } from 'vitest'; + +import { parse, registerWalkers } from '../src/index.js'; +import { values } from './fixtures/walker.json'; + +registerWalkers(Container); + +describe('walker functionality', () => { + for (const { value, walkers } of values) { + const root = parse(value); + + for (const { length, type } of walkers) { + it(`should walk ${type} in: ${value}`, () => { + const nodes: any[] = []; + + (root as any)[`walk${type}`]((node: any) => { + nodes.push(node); + }); + + expect(nodes.length).toBe(length); + expect(nodes).toMatchSnapshot(); + }); + } + } +}); diff --git a/test/word.test.js b/test/word.test.js deleted file mode 100644 index bd24ce4..0000000 --- a/test/word.test.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - Copyright © 2018 Andrew Powell - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of this Source Code Form. -*/ -const test = require('ava'); - -const { nodeToString, parse } = require('../lib'); - -const { snapshot } = require('./fixtures/word'); - -for (const fixture of snapshot) { - test(fixture, (t) => { - const root = parse(fixture); - const nodes = root.nodes.map((node) => { - delete node.parent; // eslint-disable-line no-param-reassign - return node; - }); - const string = nodeToString(root); - - t.is(string, fixture); - t.is(fixture, root.toString()); - t.snapshot(root.first.toString()); - t.snapshot(string); - t.snapshot(nodes); - }); -} diff --git a/test/word.test.ts b/test/word.test.ts new file mode 100644 index 0000000..3b9456f --- /dev/null +++ b/test/word.test.ts @@ -0,0 +1,31 @@ +/* + Copyright © 2025 Andrew Powell + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of this Source Code Form. +*/ +import { describe, expect, it } from 'vitest'; + +import { nodeToString, parse } from '../src/index.js'; +import { snapshot } from './fixtures/word.json'; + +describe('word parsing', () => { + for (const fixture of snapshot) { + it(`should parse: ${fixture}`, () => { + const root = parse(fixture); + const nodes = root.nodes.map((node) => { + delete node.parent; // eslint-disable-line no-param-reassign + return node; + }); + const string = nodeToString(root); + + expect(root.first?.toString()).toMatchSnapshot(); + expect(string).toMatchSnapshot(); + expect(nodes).toMatchSnapshot(); + }); + } +}); diff --git a/tsconfig.json b/tsconfig.json index 0967ef4..f994e78 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1 +1,25 @@ -{} +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "declaration": true, + "emitDecoratorMetadata": true, + "esModuleInterop": true, + "experimentalDecorators": true, + "lib": ["ES2024"], + "module": "nodenext", + "moduleResolution": "nodenext", + "noEmitOnError": false, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "dist", + "pretty": true, + "removeComments": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true, + "target": "es2018" + }, + "include": ["src"], + "exclude": ["dist", "node_modules"] +} diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..e1df237 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + globals: true, + environment: 'node', + include: ['test/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], + exclude: ['node_modules', 'dist', 'prev', 'failed'], + setupFiles: ['test/setup.ts'], + resolveSnapshotPath: (testPath, snapExtension) => { + return testPath.replace('/test/', '/test/snapshots/') + snapExtension; + } + } +});