Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

Location:
imaps-frontend/node_modules/postcss
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/postcss/lib/at-rule.d.ts

    rd565449 r0c6b92a  
    8181declare class AtRule_ extends Container {
    8282  /**
    83    * The at-rule’s name immediately follows the `@`.
    84    *
    85    * ```js
    86    * const root  = postcss.parse('@media print {}')
    87    * const media = root.first
    88    * media.name //=> 'media'
    89    * ```
    90    */
    91   get name(): string
    92   set name(value: string)
    93 
    94   /**
    9583   * An array containing the layer’s children.
    9684   *
     
    11199   */
    112100  nodes: Container['nodes']
     101  parent: ContainerWithChildren | undefined
     102
     103  raws: AtRule.AtRuleRaws
     104  type: 'atrule'
     105  constructor(defaults?: AtRule.AtRuleProps)
     106  assign(overrides: AtRule.AtRuleProps | object): this
     107
     108  clone(overrides?: Partial<AtRule.AtRuleProps>): this
     109
     110  cloneAfter(overrides?: Partial<AtRule.AtRuleProps>): this
     111
     112  cloneBefore(overrides?: Partial<AtRule.AtRuleProps>): this
     113  /**
     114   * The at-rule’s name immediately follows the `@`.
     115   *
     116   * ```js
     117   * const root  = postcss.parse('@media print {}')
     118   * const media = root.first
     119   * media.name //=> 'media'
     120   * ```
     121   */
     122  get name(): string
     123  set name(value: string)
    113124  /**
    114125   * The at-rule’s parameters, the values that follow the at-rule’s name
     
    123134  get params(): string
    124135  set params(value: string)
    125   parent: ContainerWithChildren | undefined
    126 
    127   raws: AtRule.AtRuleRaws
    128 
    129   type: 'atrule'
    130 
    131   constructor(defaults?: AtRule.AtRuleProps)
    132   assign(overrides: AtRule.AtRuleProps | object): this
    133   clone(overrides?: Partial<AtRule.AtRuleProps>): AtRule
    134   cloneAfter(overrides?: Partial<AtRule.AtRuleProps>): AtRule
    135   cloneBefore(overrides?: Partial<AtRule.AtRuleProps>): AtRule
    136136}
    137137
  • imaps-frontend/node_modules/postcss/lib/comment.d.ts

    rd565449 r0c6b92a  
    4949  parent: Container | undefined
    5050  raws: Comment.CommentRaws
     51  type: 'comment'
     52  constructor(defaults?: Comment.CommentProps)
     53
     54  assign(overrides: Comment.CommentProps | object): this
     55
     56  clone(overrides?: Partial<Comment.CommentProps>): this
     57  cloneAfter(overrides?: Partial<Comment.CommentProps>): this
     58  cloneBefore(overrides?: Partial<Comment.CommentProps>): this
    5159  /**
    5260   * The comment's text.
     
    5462  get text(): string
    5563  set text(value: string)
    56 
    57   type: 'comment'
    58 
    59   constructor(defaults?: Comment.CommentProps)
    60   assign(overrides: Comment.CommentProps | object): this
    61   clone(overrides?: Partial<Comment.CommentProps>): Comment
    62   cloneAfter(overrides?: Partial<Comment.CommentProps>): Comment
    63   cloneBefore(overrides?: Partial<Comment.CommentProps>): Comment
    6464}
    6565
  • imaps-frontend/node_modules/postcss/lib/container.d.ts

    rd565449 r0c6b92a  
    2121     * An array of property names.
    2222     */
    23     props?: string[]
     23    props?: readonly string[]
    2424  }
    2525
    2626  export interface ContainerProps extends NodeProps {
    27     nodes?: (ChildNode | ChildProps)[]
     27    nodes?: readonly (ChildProps | Node)[]
    2828  }
     29
     30  /**
     31   * All types that can be passed into container methods to create or add a new
     32   * child node.
     33   */
     34  export type NewChild =
     35    | ChildProps
     36    | Node
     37    | readonly ChildProps[]
     38    | readonly Node[]
     39    | readonly string[]
     40    | string
     41    | undefined
    2942
    3043  // eslint-disable-next-line @typescript-eslint/no-use-before-define
     
    5366
    5467  /**
     68   * An internal method that converts a {@link NewChild} into a list of actual
     69   * child nodes that can then be added to this container.
     70   *
     71   * This ensures that the nodes' parent is set to this container, that they use
     72   * the correct prototype chain, and that they're marked as dirty.
     73   *
     74   * @param mnodes The new node or nodes to add.
     75   * @param sample A node from whose raws the new node's `before` raw should be
     76   *               taken.
     77   * @param type   This should be set to `'prepend'` if the new nodes will be
     78   *               inserted at the beginning of the container.
     79   * @hidden
     80   */
     81  protected normalize(
     82    nodes: Container.NewChild,
     83    sample: Node | undefined,
     84    type?: 'prepend' | false
     85  ): Child[]
     86
     87  /**
    5588   * Inserts new nodes to the end of the container.
    5689   *
     
    72105   * @return This node for methods chain.
    73106   */
    74   append(
    75     ...nodes: (
    76       | ChildProps
    77       | ChildProps[]
    78       | Node
    79       | Node[]
    80       | string
    81       | string[]
    82       | undefined
    83     )[]
    84   ): this
    85 
     107  append(...nodes: Container.NewChild[]): this
    86108  assign(overrides: Container.ContainerProps | object): this
    87   clone(overrides?: Partial<Container.ContainerProps>): Container<Child>
    88   cloneAfter(overrides?: Partial<Container.ContainerProps>): Container<Child>
    89   cloneBefore(overrides?: Partial<Container.ContainerProps>): Container<Child>
     109  clone(overrides?: Partial<Container.ContainerProps>): this
     110  cloneAfter(overrides?: Partial<Container.ContainerProps>): this
     111
     112  cloneBefore(overrides?: Partial<Container.ContainerProps>): this
    90113
    91114  /**
     
    125148    callback: (node: Child, index: number) => false | void
    126149  ): false | undefined
    127 
    128150  /**
    129151   * Returns `true` if callback returns `true`
     
    140162    condition: (node: Child, index: number, nodes: Child[]) => boolean
    141163  ): boolean
     164
    142165  /**
    143166   * Returns a `child`’s index within the `Container#nodes` array.
     
    151174   */
    152175  index(child: Child | number): number
    153 
    154176  /**
    155177   * Insert new node after old node within the container.
     
    159181   * @return This node for methods chain.
    160182   */
    161   insertAfter(
    162     oldNode: Child | number,
    163     newNode:
    164       | Child
    165       | Child[]
    166       | ChildProps
    167       | ChildProps[]
    168       | string
    169       | string[]
    170       | undefined
    171   ): this
     183  insertAfter(oldNode: Child | number, newNode: Container.NewChild): this
     184
    172185  /**
    173186   * Insert new node before old node within the container.
     
    181194   * @return This node for methods chain.
    182195   */
    183   insertBefore(
    184     oldNode: Child | number,
    185     newNode:
    186       | Child
    187       | Child[]
    188       | ChildProps
    189       | ChildProps[]
    190       | string
    191       | string[]
    192       | undefined
    193   ): this
     196  insertBefore(oldNode: Child | number, newNode: Container.NewChild): this
    194197
    195198  /**
     
    230233   * @return This node for methods chain.
    231234   */
    232   prepend(
    233     ...nodes: (
    234       | ChildProps
    235       | ChildProps[]
    236       | Node
    237       | Node[]
    238       | string
    239       | string[]
    240       | undefined
    241     )[]
    242   ): this
     235  prepend(...nodes: Container.NewChild[]): this
    243236  /**
    244237   * Add child to the end of the node.
     
    302295   *
    303296   * @param pattern      Replace pattern.
    304    * @param {object} opts                Options to speed up the search.
    305    * @param callback   String to replace pattern or callback
     297   * @param {object} options             Options to speed up the search.
     298   * @param replaced   String to replace pattern or callback
    306299   *                                     that returns a new value. The callback
    307300   *                                     will receive the same arguments
  • imaps-frontend/node_modules/postcss/lib/container.js

    rd565449 r0c6b92a  
    11'use strict'
    22
     3let Comment = require('./comment')
     4let Declaration = require('./declaration')
     5let Node = require('./node')
    36let { isClean, my } = require('./symbols')
    4 let Declaration = require('./declaration')
    5 let Comment = require('./comment')
    6 let Node = require('./node')
    7 
    8 let parse, Rule, AtRule, Root
     7
     8let AtRule, parse, Root, Rule
    99
    1010function cleanSource(nodes) {
     
    199199      }
    200200      nodes = [new Declaration(nodes)]
    201     } else if (nodes.selector) {
     201    } else if (nodes.selector || nodes.selectors) {
    202202      nodes = [new Rule(nodes)]
    203203    } else if (nodes.name) {
     
    215215      if (i.parent) i.parent.removeChild(i)
    216216      if (i[isClean]) markTreeDirty(i)
     217
     218      if (!i.raws) i.raws = {}
    217219      if (typeof i.raws.before === 'undefined') {
    218220        if (sample && typeof sample.raws.before !== 'undefined') {
  • imaps-frontend/node_modules/postcss/lib/css-syntax-error.js

    rd565449 r0c6b92a  
    5353    let css = this.source
    5454    if (color == null) color = pico.isColorSupported
    55     if (terminalHighlight) {
    56       if (color) css = terminalHighlight(css)
     55
     56    let aside = text => text
     57    let mark = text => text
     58    let highlight = text => text
     59    if (color) {
     60      let { bold, gray, red } = pico.createColors(true)
     61      mark = text => bold(red(text))
     62      aside = text => gray(text)
     63      if (terminalHighlight) {
     64        highlight = text => terminalHighlight(text)
     65      }
    5766    }
    5867
     
    6069    let start = Math.max(this.line - 3, 0)
    6170    let end = Math.min(this.line + 2, lines.length)
    62 
    6371    let maxWidth = String(end).length
    64 
    65     let mark, aside
    66     if (color) {
    67       let { bold, gray, red } = pico.createColors(true)
    68       mark = text => bold(red(text))
    69       aside = text => gray(text)
    70     } else {
    71       mark = aside = str => str
    72     }
    7372
    7473    return lines
     
    7877        let gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '
    7978        if (number === this.line) {
     79          if (line.length > 160) {
     80            let padding = 20
     81            let subLineStart = Math.max(0, this.column - padding)
     82            let subLineEnd = Math.max(
     83              this.column + padding,
     84              this.endColumn + padding
     85            )
     86            let subLine = line.slice(subLineStart, subLineEnd)
     87
     88            let spacing =
     89              aside(gutter.replace(/\d/g, ' ')) +
     90              line
     91                .slice(0, Math.min(this.column - 1, padding - 1))
     92                .replace(/[^\t]/g, ' ')
     93
     94            return (
     95              mark('>') +
     96              aside(gutter) +
     97              highlight(subLine) +
     98              '\n ' +
     99              spacing +
     100              mark('^')
     101            )
     102          }
     103
    80104          let spacing =
    81105            aside(gutter.replace(/\d/g, ' ')) +
    82106            line.slice(0, this.column - 1).replace(/[^\t]/g, ' ')
    83           return mark('>') + aside(gutter) + line + '\n ' + spacing + mark('^')
     107
     108          return (
     109            mark('>') +
     110            aside(gutter) +
     111            highlight(line) +
     112            '\n ' +
     113            spacing +
     114            mark('^')
     115          )
    84116        }
    85         return ' ' + aside(gutter) + line
     117
     118        return ' ' + aside(gutter) + highlight(line)
    86119      })
    87120      .join('\n')
  • imaps-frontend/node_modules/postcss/lib/declaration.d.ts

    rd565449 r0c6b92a  
    6464 */
    6565declare class Declaration_ extends Node {
     66  parent: ContainerWithChildren | undefined
     67  raws: Declaration.DeclarationRaws
     68
     69  type: 'decl'
     70
     71  constructor(defaults?: Declaration.DeclarationProps)
     72  assign(overrides: Declaration.DeclarationProps | object): this
     73
     74  clone(overrides?: Partial<Declaration.DeclarationProps>): this
     75
     76  cloneAfter(overrides?: Partial<Declaration.DeclarationProps>): this
     77
     78  cloneBefore(overrides?: Partial<Declaration.DeclarationProps>): this
    6679  /**
    6780   * It represents a specificity of the declaration.
     
    7992   */
    8093  get important(): boolean
     94
    8195  set important(value: boolean)
    82 
    83   parent: ContainerWithChildren | undefined
    84 
    8596  /**
    8697   * The property name for a CSS declaration.
     
    94105   */
    95106  get prop(): string
     107
    96108  set prop(value: string)
    97 
    98   raws: Declaration.DeclarationRaws
    99 
    100   type: 'decl'
    101 
    102109  /**
    103110   * The property value for a CSS declaration.
     
    119126  get value(): string
    120127  set value(value: string)
    121 
    122128  /**
    123129   * It represents a getter that returns `true` if a declaration starts with
     
    139145   */
    140146  get variable(): boolean
    141   set varaible(value: string)
    142 
    143   constructor(defaults?: Declaration.DeclarationProps)
    144   assign(overrides: Declaration.DeclarationProps | object): this
    145   clone(overrides?: Partial<Declaration.DeclarationProps>): Declaration
    146   cloneAfter(overrides?: Partial<Declaration.DeclarationProps>): Declaration
    147   cloneBefore(overrides?: Partial<Declaration.DeclarationProps>): Declaration
    148147}
    149148
  • imaps-frontend/node_modules/postcss/lib/document.d.ts

    rd565449 r0c6b92a  
    66declare namespace Document {
    77  export interface DocumentProps extends ContainerProps {
    8     nodes?: Root[]
     8    nodes?: readonly Root[]
    99
    1010    /**
     
    4343
    4444  assign(overrides: Document.DocumentProps | object): this
    45   clone(overrides?: Partial<Document.DocumentProps>): Document
    46   cloneAfter(overrides?: Partial<Document.DocumentProps>): Document
    47   cloneBefore(overrides?: Partial<Document.DocumentProps>): Document
     45  clone(overrides?: Partial<Document.DocumentProps>): this
     46  cloneAfter(overrides?: Partial<Document.DocumentProps>): this
     47  cloneBefore(overrides?: Partial<Document.DocumentProps>): this
    4848
    4949  /**
  • imaps-frontend/node_modules/postcss/lib/fromJSON.js

    rd565449 r0c6b92a  
    11'use strict'
    22
     3let AtRule = require('./at-rule')
     4let Comment = require('./comment')
    35let Declaration = require('./declaration')
     6let Input = require('./input')
    47let PreviousMap = require('./previous-map')
    5 let Comment = require('./comment')
    6 let AtRule = require('./at-rule')
    7 let Input = require('./input')
    88let Root = require('./root')
    99let Rule = require('./rule')
  • imaps-frontend/node_modules/postcss/lib/input.d.ts

    rd565449 r0c6b92a  
    175175    endColumn?: number
    176176  ): false | Input.FilePosition
     177  /** Converts this to a JSON-friendly object representation. */
     178  toJSON(): object
     179
    177180  /**
    178181   * The CSS source identifier. Contains `Input#file` if the user
  • imaps-frontend/node_modules/postcss/lib/input.js

    rd565449 r0c6b92a  
    11'use strict'
    22
     3let { nanoid } = require('nanoid/non-secure')
     4let { isAbsolute, resolve } = require('path')
    35let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
    46let { fileURLToPath, pathToFileURL } = require('url')
    5 let { isAbsolute, resolve } = require('path')
    6 let { nanoid } = require('nanoid/non-secure')
    7 
    8 let terminalHighlight = require('./terminal-highlight')
     7
    98let CssSyntaxError = require('./css-syntax-error')
    109let PreviousMap = require('./previous-map')
     10let terminalHighlight = require('./terminal-highlight')
    1111
    1212let fromOffsetCache = Symbol('fromOffsetCache')
     
    6262
    6363  error(message, line, column, opts = {}) {
    64     let result, endLine, endColumn
     64    let endColumn, endLine, result
    6565
    6666    if (line && typeof line === 'object') {
  • imaps-frontend/node_modules/postcss/lib/lazy-result.js

    rd565449 r0c6b92a  
    11'use strict'
    22
    3 let { isClean, my } = require('./symbols')
    4 let MapGenerator = require('./map-generator')
    5 let stringify = require('./stringify')
    63let Container = require('./container')
    74let Document = require('./document')
     5let MapGenerator = require('./map-generator')
     6let parse = require('./parse')
     7let Result = require('./result')
     8let Root = require('./root')
     9let stringify = require('./stringify')
     10let { isClean, my } = require('./symbols')
    811let warnOnce = require('./warn-once')
    9 let Result = require('./result')
    10 let parse = require('./parse')
    11 let Root = require('./root')
    1212
    1313const TYPE_TO_CLASS_NAME = {
  • imaps-frontend/node_modules/postcss/lib/list.d.ts

    rd565449 r0c6b92a  
    4848     * @return Split values.
    4949     */
    50     split(string: string, separators: string[], last: boolean): string[]
     50    split(
     51      string: string,
     52      separators: readonly string[],
     53      last: boolean
     54    ): string[]
    5155  }
    5256}
    5357
    54 // eslint-disable-next-line @typescript-eslint/no-redeclare
    5558declare const list: list.List
    5659
  • imaps-frontend/node_modules/postcss/lib/map-generator.js

    rd565449 r0c6b92a  
    11'use strict'
    22
     3let { dirname, relative, resolve, sep } = require('path')
    34let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
    4 let { dirname, relative, resolve, sep } = require('path')
    55let { pathToFileURL } = require('url')
    66
     
    7171        node = this.root.nodes[i]
    7272        if (node.type !== 'comment') continue
    73         if (node.text.indexOf('# sourceMappingURL=') === 0) {
     73        if (node.text.startsWith('# sourceMappingURL=')) {
    7474          this.root.removeChild(i)
    7575        }
    7676      }
    7777    } else if (this.css) {
    78       this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, '')
     78      this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, '')
    7979    }
    8080  }
     
    144144    }
    145145
    146     let lines, last
     146    let last, lines
    147147    this.stringify(this.root, (str, node, type) => {
    148148      this.css += str
  • imaps-frontend/node_modules/postcss/lib/no-work-result.js

    rd565449 r0c6b92a  
    22
    33let MapGenerator = require('./map-generator')
     4let parse = require('./parse')
     5const Result = require('./result')
    46let stringify = require('./stringify')
    57let warnOnce = require('./warn-once')
    6 let parse = require('./parse')
    7 const Result = require('./result')
    88
    99class NoWorkResult {
  • imaps-frontend/node_modules/postcss/lib/node.d.ts

    rd565449 r0c6b92a  
    33import { AtRuleProps } from './at-rule.js'
    44import Comment, { CommentProps } from './comment.js'
    5 import Container from './container.js'
     5import Container, { NewChild } from './container.js'
    66import CssSyntaxError from './css-syntax-error.js'
    77import Declaration, { DeclarationProps } from './declaration.js'
     
    236236
    237237  /**
     238   * If this node isn't already dirty, marks it and its ancestors as such. This
     239   * indicates to the LazyResult processor that the {@link Root} has been
     240   * modified by the current plugin and may need to be processed again by other
     241   * plugins.
     242   */
     243  protected markDirty(): void
     244
     245  /**
    238246   * Insert new node after current node to current node’s parent.
    239247   *
     
    247255   * @return This node for methods chain.
    248256   */
    249   after(newNode: Node | Node.ChildProps | Node[] | string | undefined): this
     257  after(
     258    newNode: Node | Node.ChildProps | readonly Node[] | string | undefined
     259  ): this
    250260
    251261  /**
     
    274284   * @return This node for methods chain.
    275285   */
    276   before(newNode: Node | Node.ChildProps | Node[] | string | undefined): this
     286  before(
     287    newNode: Node | Node.ChildProps | readonly Node[] | string | undefined
     288  ): this
    277289
    278290  /**
     
    304316   * @return Duplicate of the node instance.
    305317   */
    306   clone(overrides?: object): Node
     318  clone(overrides?: object): this
    307319
    308320  /**
     
    313325   * @return New node.
    314326   */
    315   cloneAfter(overrides?: object): Node
     327  cloneAfter(overrides?: object): this
    316328
    317329  /**
     
    327339   * @return New node
    328340   */
    329   cloneBefore(overrides?: object): Node
     341  cloneBefore(overrides?: object): this
    330342
    331343  /**
     
    471483   * @return Current node to methods chain.
    472484   */
    473   replaceWith(
    474     ...nodes: (
    475       | Node.ChildNode
    476       | Node.ChildNode[]
    477       | Node.ChildProps
    478       | Node.ChildProps[]
    479     )[]
    480   ): this
     485  replaceWith(...nodes: NewChild[]): this
    481486
    482487  /**
  • imaps-frontend/node_modules/postcss/lib/node.js

    rd565449 r0c6b92a  
    11'use strict'
    22
    3 let { isClean, my } = require('./symbols')
    43let CssSyntaxError = require('./css-syntax-error')
    54let Stringifier = require('./stringifier')
    65let stringify = require('./stringify')
     6let { isClean, my } = require('./symbols')
    77
    88function cloneNode(obj, parent) {
     
    3131
    3232  return cloned
     33}
     34
     35function sourceOffset(inputCSS, position) {
     36  // Not all custom syntaxes support `offset` in `source.start` and `source.end`
     37  if (
     38    position &&
     39    typeof position.offset !== 'undefined'
     40  ) {
     41    return position.offset;
     42  }
     43
     44  let column = 1
     45  let line = 1
     46  let offset = 0
     47
     48  for (let i = 0; i < inputCSS.length; i++) {
     49    if (line === position.line && column === position.column) {
     50      offset = i
     51      break
     52    }
     53
     54    if (inputCSS[i] === '\n') {
     55      column = 1
     56      line += 1
     57    } else {
     58      column += 1
     59    }
     60  }
     61
     62  return offset
    3363}
    3464
     
    154184  }
    155185
     186  /* c8 ignore next 3 */
     187  markClean() {
     188    this[isClean] = true
     189  }
     190
    156191  markDirty() {
    157192    if (this[isClean]) {
     
    170205  }
    171206
    172   positionBy(opts, stringRepresentation) {
     207  positionBy(opts) {
    173208    let pos = this.source.start
    174209    if (opts.index) {
    175       pos = this.positionInside(opts.index, stringRepresentation)
     210      pos = this.positionInside(opts.index)
    176211    } else if (opts.word) {
    177       stringRepresentation = this.toString()
     212      let stringRepresentation = this.source.input.css.slice(
     213        sourceOffset(this.source.input.css, this.source.start),
     214        sourceOffset(this.source.input.css, this.source.end)
     215      )
    178216      let index = stringRepresentation.indexOf(opts.word)
    179       if (index !== -1) pos = this.positionInside(index, stringRepresentation)
     217      if (index !== -1) pos = this.positionInside(index)
    180218    }
    181219    return pos
    182220  }
    183221
    184   positionInside(index, stringRepresentation) {
    185     let string = stringRepresentation || this.toString()
     222  positionInside(index) {
    186223    let column = this.source.start.column
    187224    let line = this.source.start.line
    188 
    189     for (let i = 0; i < index; i++) {
    190       if (string[i] === '\n') {
     225    let offset = sourceOffset(this.source.input.css, this.source.start)
     226    let end = offset + index
     227
     228    for (let i = offset; i < end; i++) {
     229      if (this.source.input.css[i] === '\n') {
    191230        column = 1
    192231        line += 1
     
    212251    let end = this.source.end
    213252      ? {
    214         column: this.source.end.column + 1,
    215         line: this.source.end.line
    216       }
     253          column: this.source.end.column + 1,
     254          line: this.source.end.line
     255        }
    217256      : {
    218         column: start.column + 1,
    219         line: start.line
    220       }
     257          column: start.column + 1,
     258          line: start.line
     259        }
    221260
    222261    if (opts.word) {
    223       let stringRepresentation = this.toString()
     262      let stringRepresentation = this.source.input.css.slice(
     263        sourceOffset(this.source.input.css, this.source.start),
     264        sourceOffset(this.source.input.css, this.source.end)
     265      )
    224266      let index = stringRepresentation.indexOf(opts.word)
    225267      if (index !== -1) {
    226         start = this.positionInside(index, stringRepresentation)
    227         end = this.positionInside(index + opts.word.length, stringRepresentation)
     268        start = this.positionInside(index)
     269        end = this.positionInside(
     270          index + opts.word.length,
     271        )
    228272      }
    229273    } else {
  • imaps-frontend/node_modules/postcss/lib/parse.js

    rd565449 r0c6b92a  
    22
    33let Container = require('./container')
     4let Input = require('./input')
    45let Parser = require('./parser')
    5 let Input = require('./input')
    66
    77function parse(css, opts) {
  • imaps-frontend/node_modules/postcss/lib/parser.js

    rd565449 r0c6b92a  
    11'use strict'
    22
     3let AtRule = require('./at-rule')
     4let Comment = require('./comment')
    35let Declaration = require('./declaration')
    4 let tokenizer = require('./tokenize')
    5 let Comment = require('./comment')
    6 let AtRule = require('./at-rule')
    76let Root = require('./root')
    87let Rule = require('./rule')
     8let tokenizer = require('./tokenize')
    99
    1010const SAFE_COMMENT_NEIGHBOR = {
     
    144144  colon(tokens) {
    145145    let brackets = 0
    146     let token, type, prev
     146    let prev, token, type
    147147    for (let [i, element] of tokens.entries()) {
    148148      token = element
     
    268268        for (let j = i; j > 0; j--) {
    269269          let type = cache[j][0]
    270           if (str.trim().indexOf('!') === 0 && type !== 'space') {
     270          if (str.trim().startsWith('!') && type !== 'space') {
    271271            break
    272272          }
    273273          str = cache.pop()[1] + str
    274274        }
    275         if (str.trim().indexOf('!') === 0) {
     275        if (str.trim().startsWith('!')) {
    276276          node.important = true
    277277          node.raws.important = str
  • imaps-frontend/node_modules/postcss/lib/postcss.d.mts

    rd565449 r0c6b92a  
    1010  parse,
    1111  list,
    12 
    1312  document,
    1413  comment,
     
    1716  decl,
    1817  root,
    19 
    2018  CssSyntaxError,
    2119  Declaration,
     
    6866
    6967  // This is a class, but it’s not re-exported. That’s why it’s exported as type-only here.
    70   type LazyResult,
    71 
     68  type LazyResult
    7269} from './postcss.js'
  • imaps-frontend/node_modules/postcss/lib/postcss.d.ts

    rd565449 r0c6b92a  
    33import AtRule, { AtRuleProps } from './at-rule.js'
    44import Comment, { CommentProps } from './comment.js'
    5 import Container, { ContainerProps } from './container.js'
     5import Container, { ContainerProps, NewChild } from './container.js'
    66import CssSyntaxError from './css-syntax-error.js'
    77import Declaration, { DeclarationProps } from './declaration.js'
     
    2929  helper: postcss.Helpers
    3030) => Promise<void> | void
    31 type RootProcessor = (root: Root, helper: postcss.Helpers) => Promise<void> | void
     31type RootProcessor = (
     32  root: Root,
     33  helper: postcss.Helpers
     34) => Promise<void> | void
    3235type DeclarationProcessor = (
    3336  decl: Declaration,
    3437  helper: postcss.Helpers
    3538) => Promise<void> | void
    36 type RuleProcessor = (rule: Rule, helper: postcss.Helpers) => Promise<void> | void
    37 type AtRuleProcessor = (atRule: AtRule, helper: postcss.Helpers) => Promise<void> | void
     39type RuleProcessor = (
     40  rule: Rule,
     41  helper: postcss.Helpers
     42) => Promise<void> | void
     43type AtRuleProcessor = (
     44  atRule: AtRule,
     45  helper: postcss.Helpers
     46) => Promise<void> | void
    3847type CommentProcessor = (
    3948  comment: Comment,
     
    162171    list,
    163172    Message,
     173    NewChild,
    164174    Node,
    165175    NodeErrorOptions,
     
    177187  }
    178188
    179   export type SourceMap = SourceMapGenerator & {
     189  export type SourceMap = {
    180190    toJSON(): RawSourceMap
    181   }
     191  } & SourceMapGenerator
    182192
    183193  export type Helpers = { postcss: Postcss; result: Result } & Postcss
     
    436446 * @return Processor to process multiple CSS.
    437447 */
    438 declare function postcss(plugins?: postcss.AcceptedPlugin[]): Processor
     448declare function postcss(
     449  plugins?: readonly postcss.AcceptedPlugin[]
     450): Processor
    439451declare function postcss(...plugins: postcss.AcceptedPlugin[]): Processor
    440452
  • imaps-frontend/node_modules/postcss/lib/postcss.js

    rd565449 r0c6b92a  
    11'use strict'
    22
     3let AtRule = require('./at-rule')
     4let Comment = require('./comment')
     5let Container = require('./container')
    36let CssSyntaxError = require('./css-syntax-error')
    47let Declaration = require('./declaration')
     8let Document = require('./document')
     9let fromJSON = require('./fromJSON')
     10let Input = require('./input')
    511let LazyResult = require('./lazy-result')
    6 let Container = require('./container')
     12let list = require('./list')
     13let Node = require('./node')
     14let parse = require('./parse')
    715let Processor = require('./processor')
     16let Result = require('./result.js')
     17let Root = require('./root')
     18let Rule = require('./rule')
    819let stringify = require('./stringify')
    9 let fromJSON = require('./fromJSON')
    10 let Document = require('./document')
    1120let Warning = require('./warning')
    12 let Comment = require('./comment')
    13 let AtRule = require('./at-rule')
    14 let Result = require('./result.js')
    15 let Input = require('./input')
    16 let parse = require('./parse')
    17 let list = require('./list')
    18 let Rule = require('./rule')
    19 let Root = require('./root')
    20 let Node = require('./node')
    2121
    2222function postcss(...plugins) {
  • imaps-frontend/node_modules/postcss/lib/previous-map.js

    rd565449 r0c6b92a  
    11'use strict'
    22
    3 let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
    43let { existsSync, readFileSync } = require('fs')
    54let { dirname, join } = require('path')
     5let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
    66
    77function fromBase64(str) {
     
    4242    let uri = /^data:application\/json,/
    4343
    44     if (charsetUri.test(text) || uri.test(text)) {
    45       return decodeURIComponent(text.substr(RegExp.lastMatch.length))
     44    let uriMatch = text.match(charsetUri) || text.match(uri)
     45    if (uriMatch) {
     46      return decodeURIComponent(text.substr(uriMatch[0].length))
    4647    }
    4748
    48     if (baseCharsetUri.test(text) || baseUri.test(text)) {
    49       return fromBase64(text.substr(RegExp.lastMatch.length))
     49    let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri)
     50    if (baseUriMatch) {
     51      return fromBase64(text.substr(baseUriMatch[0].length))
    5052    }
    5153
     
    6870
    6971  loadAnnotation(css) {
    70     let comments = css.match(/\/\*\s*# sourceMappingURL=/gm)
     72    let comments = css.match(/\/\*\s*# sourceMappingURL=/g)
    7173    if (!comments) return
    7274
  • imaps-frontend/node_modules/postcss/lib/processor.d.ts

    rd565449 r0c6b92a  
    5252   * @param plugins PostCSS plugins
    5353   */
    54   constructor(plugins?: AcceptedPlugin[])
     54  constructor(plugins?: readonly AcceptedPlugin[])
    5555
    5656  /**
  • imaps-frontend/node_modules/postcss/lib/processor.js

    rd565449 r0c6b92a  
    11'use strict'
    22
     3let Document = require('./document')
     4let LazyResult = require('./lazy-result')
    35let NoWorkResult = require('./no-work-result')
    4 let LazyResult = require('./lazy-result')
    5 let Document = require('./document')
    66let Root = require('./root')
    77
    88class Processor {
    99  constructor(plugins = []) {
    10     this.version = '8.4.40'
     10    this.version = '8.4.49'
    1111    this.plugins = this.normalize(plugins)
    1212  }
  • imaps-frontend/node_modules/postcss/lib/result.d.ts

    rd565449 r0c6b92a  
    3939    plugin?: string
    4040  }
    41 
    4241
    4342  // eslint-disable-next-line @typescript-eslint/no-use-before-define
  • imaps-frontend/node_modules/postcss/lib/root.d.ts

    rd565449 r0c6b92a  
    6363
    6464  assign(overrides: object | Root.RootProps): this
    65   clone(overrides?: Partial<Root.RootProps>): Root
    66   cloneAfter(overrides?: Partial<Root.RootProps>): Root
    67   cloneBefore(overrides?: Partial<Root.RootProps>): Root
     65  clone(overrides?: Partial<Root.RootProps>): this
     66  cloneAfter(overrides?: Partial<Root.RootProps>): this
     67  cloneBefore(overrides?: Partial<Root.RootProps>): this
    6868
    6969  /**
     
    7777   * ```
    7878   *
    79    * @param opts Options.
     79   * @param options Options.
    8080   * @return Result with current root’s CSS.
    8181   */
  • imaps-frontend/node_modules/postcss/lib/rule.d.ts

    rd565449 r0c6b92a  
    4141  }
    4242
    43   export interface RuleProps extends ContainerProps {
     43  export type RuleProps = {
    4444    /** Information used to generate byte-to-byte equal node string as it was in the origin input. */
    4545    raws?: RuleRaws
    46     /** Selector or selectors of the rule. */
    47     selector?: string
    48     /** Selectors of the rule represented as an array of strings. */
    49     selectors?: string[]
    50   }
     46  } & (
     47      | {
     48          /** Selector or selectors of the rule. */
     49          selector: string
     50          selectors?: never
     51        }
     52      | {
     53          selector?: never
     54          /** Selectors of the rule represented as an array of strings. */
     55          selectors: readonly string[]
     56        }
     57    ) & ContainerProps
    5158
    5259  // eslint-disable-next-line @typescript-eslint/no-use-before-define
     
    7683  parent: ContainerWithChildren | undefined
    7784  raws: Rule.RuleRaws
     85  type: 'rule'
     86  constructor(defaults?: Rule.RuleProps)
     87
     88  assign(overrides: object | Rule.RuleProps): this
     89  clone(overrides?: Partial<Rule.RuleProps>): this
     90
     91  cloneAfter(overrides?: Partial<Rule.RuleProps>): this
     92
     93  cloneBefore(overrides?: Partial<Rule.RuleProps>): this
    7894  /**
    7995   * The rule’s full selector represented as a string.
     
    86102   */
    87103  get selector(): string
    88   set selector(value: string);
    89 
     104  set selector(value: string)
    90105  /**
    91106   * An array containing the rule’s individual selectors.
     
    104119   */
    105120  get selectors(): string[]
    106   set selectors(values: string[]);
    107 
    108   type: 'rule'
    109 
    110   constructor(defaults?: Rule.RuleProps)
    111   assign(overrides: object | Rule.RuleProps): this
    112   clone(overrides?: Partial<Rule.RuleProps>): Rule
    113   cloneAfter(overrides?: Partial<Rule.RuleProps>): Rule
    114   cloneBefore(overrides?: Partial<Rule.RuleProps>): Rule
     121  set selectors(values: string[])
    115122}
    116123
  • imaps-frontend/node_modules/postcss/lib/tokenize.js

    rd565449 r0c6b92a  
    3030  let ignore = options.ignoreErrors
    3131
    32   let code, next, quote, content, escape
    33   let escaped, escapePos, prev, n, currentToken
     32  let code, content, escape, next, quote
     33  let currentToken, escaped, escapePos, n, prev
    3434
    3535  let length = css.length
  • imaps-frontend/node_modules/postcss/package.json

    rd565449 r0c6b92a  
    11{
    22  "name": "postcss",
    3   "version": "8.4.40",
     3  "version": "8.4.49",
    44  "description": "Tool for transforming styles with JS plugins",
    55  "engines": {
     
    7676  "dependencies": {
    7777    "nanoid": "^3.3.7",
    78     "picocolors": "^1.0.1",
    79     "source-map-js": "^1.2.0"
     78    "picocolors": "^1.1.1",
     79    "source-map-js": "^1.2.1"
    8080  },
    8181  "browser": {
Note: See TracChangeset for help on using the changeset viewer.