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/source-map-js
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/source-map-js/lib/source-map-consumer.js

    rd565449 r0c6b92a  
    152152      var mapping = mappings[i];
    153153      var source = mapping.source === null ? null : sources.at(mapping.source);
    154       source = util.computeSourceURL(sourceRoot, source, sourceMapURL);
     154      if(source !== null) {
     155        source = util.computeSourceURL(sourceRoot, source, sourceMapURL);
     156      }
    155157      boundCallback({
    156158        source: source,
     
    11431145
    11441146        var source = section.consumer._sources.at(mapping.source);
    1145         source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
     1147        if(source !== null) {
     1148          source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
     1149        }
    11461150        this._sources.add(source);
    11471151        source = this._sources.indexOf(source);
  • imaps-frontend/node_modules/source-map-js/package.json

    rd565449 r0c6b92a  
    22  "name": "source-map-js",
    33  "description": "Generates and consumes source maps",
    4   "version": "1.2.0",
     4  "version": "1.2.1",
    55  "homepage": "https://github.com/7rulnik/source-map-js",
    66  "author": "Valentin 7rulnik Semirulnik <v7rulnik@gmail.com>",
  • imaps-frontend/node_modules/source-map-js/source-map.d.ts

    rd565449 r0c6b92a  
    1 declare module 'source-map-js' {
    2     export interface StartOfSourceMap {
    3         file?: string;
    4         sourceRoot?: string;
    5     }
    6 
    7     export interface RawSourceMap extends StartOfSourceMap {
    8         version: string;
    9         sources: string[];
    10         names: string[];
    11         sourcesContent?: string[];
    12         mappings: string;
    13     }
    14 
    15     export interface Position {
    16         line: number;
    17         column: number;
    18     }
    19 
    20     export interface LineRange extends Position {
    21         lastColumn: number;
    22     }
    23 
    24     export interface FindPosition extends Position {
    25         // SourceMapConsumer.GREATEST_LOWER_BOUND or SourceMapConsumer.LEAST_UPPER_BOUND
    26         bias?: number;
    27     }
    28 
    29     export interface SourceFindPosition extends FindPosition {
    30         source: string;
    31     }
    32 
    33     export interface MappedPosition extends Position {
    34         source: string;
    35         name?: string;
    36     }
    37 
    38     export interface MappingItem {
    39         source: string;
    40         generatedLine: number;
    41         generatedColumn: number;
    42         originalLine: number;
    43         originalColumn: number;
    44         name: string;
    45     }
    46 
    47     export class SourceMapConsumer {
    48         static GENERATED_ORDER: number;
    49         static ORIGINAL_ORDER: number;
    50 
    51         static GREATEST_LOWER_BOUND: number;
    52         static LEAST_UPPER_BOUND: number;
    53 
    54         constructor(rawSourceMap: RawSourceMap);
    55         computeColumnSpans(): void;
    56         originalPositionFor(generatedPosition: FindPosition): MappedPosition;
    57         generatedPositionFor(originalPosition: SourceFindPosition): LineRange;
    58         allGeneratedPositionsFor(originalPosition: MappedPosition): Position[];
    59         hasContentsOfAllSources(): boolean;
    60         sourceContentFor(source: string, returnNullOnMissing?: boolean): string;
    61         eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void;
    62     }
    63 
    64     export interface Mapping {
    65         generated: Position;
    66         original: Position;
    67         source: string;
    68         name?: string;
    69     }
    70 
    71     export class SourceMapGenerator {
    72         constructor(startOfSourceMap?: StartOfSourceMap);
    73         static fromSourceMap(sourceMapConsumer: SourceMapConsumer): SourceMapGenerator;
    74         addMapping(mapping: Mapping): void;
    75         setSourceContent(sourceFile: string, sourceContent: string): void;
    76         applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void;
    77         toString(): string;
    78     }
    79 
    80     export interface CodeWithSourceMap {
    81         code: string;
    82         map: SourceMapGenerator;
    83     }
    84 
    85     export class SourceNode {
    86         constructor();
    87         constructor(line: number, column: number, source: string);
    88         constructor(line: number, column: number, source: string, chunk?: string, name?: string);
    89         static fromStringWithSourceMap(code: string, sourceMapConsumer: SourceMapConsumer, relativePath?: string): SourceNode;
    90         add(chunk: string): void;
    91         prepend(chunk: string): void;
    92         setSourceContent(sourceFile: string, sourceContent: string): void;
    93         walk(fn: (chunk: string, mapping: MappedPosition) => void): void;
    94         walkSourceContents(fn: (file: string, content: string) => void): void;
    95         join(sep: string): SourceNode;
    96         replaceRight(pattern: string, replacement: string): SourceNode;
    97         toString(): string;
    98         toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap;
    99     }
     1export interface StartOfSourceMap {
     2    file?: string;
     3    sourceRoot?: string;
    1004}
    1015
    102 declare module 'source-map-js/lib/source-map-generator' {
    103     import { SourceMapGenerator } from 'source-map-js'
    104     export { SourceMapGenerator }
     6export interface RawSourceMap extends StartOfSourceMap {
     7    version: string;
     8    sources: string[];
     9    names: string[];
     10    sourcesContent?: string[];
     11    mappings: string;
    10512}
    10613
    107 declare module 'source-map-js/lib/source-map-consumer' {
    108     import { SourceMapConsumer } from 'source-map-js'
    109     export { SourceMapConsumer }
     14export interface Position {
     15    line: number;
     16    column: number;
    11017}
    11118
    112 declare module 'source-map-js/lib/source-node' {
    113     import { SourceNode } from 'source-map-js'
    114     export { SourceNode }
     19export interface LineRange extends Position {
     20    lastColumn: number;
    11521}
     22
     23export interface FindPosition extends Position {
     24    // SourceMapConsumer.GREATEST_LOWER_BOUND or SourceMapConsumer.LEAST_UPPER_BOUND
     25    bias?: number;
     26}
     27
     28export interface SourceFindPosition extends FindPosition {
     29    source: string;
     30}
     31
     32export interface MappedPosition extends Position {
     33    source: string;
     34    name?: string;
     35}
     36
     37export interface MappingItem {
     38    source: string | null;
     39    generatedLine: number;
     40    generatedColumn: number;
     41    originalLine: number | null;
     42    originalColumn: number | null;
     43    name: string | null;
     44}
     45
     46export class SourceMapConsumer {
     47    static GENERATED_ORDER: number;
     48    static ORIGINAL_ORDER: number;
     49
     50    static GREATEST_LOWER_BOUND: number;
     51    static LEAST_UPPER_BOUND: number;
     52
     53    constructor(rawSourceMap: RawSourceMap);
     54    readonly file: string | undefined | null;
     55    readonly sourceRoot: string | undefined | null;
     56    readonly sourcesContent: readonly string[] | null | undefined;
     57    readonly sources: readonly string[]
     58
     59    computeColumnSpans(): void;
     60    originalPositionFor(generatedPosition: FindPosition): MappedPosition;
     61    generatedPositionFor(originalPosition: SourceFindPosition): LineRange;
     62    allGeneratedPositionsFor(originalPosition: MappedPosition): Position[];
     63    hasContentsOfAllSources(): boolean;
     64    sourceContentFor(source: string, returnNullOnMissing?: boolean): string | null;
     65    eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void;
     66}
     67
     68export interface Mapping {
     69    generated: Position;
     70    original?: Position | null;
     71    source?: string | null;
     72    name?: string | null;
     73}
     74
     75export class SourceMapGenerator {
     76    constructor(startOfSourceMap?: StartOfSourceMap);
     77    static fromSourceMap(sourceMapConsumer: SourceMapConsumer, startOfSourceMap?: StartOfSourceMap): SourceMapGenerator;
     78    addMapping(mapping: Mapping): void;
     79    setSourceContent(sourceFile: string, sourceContent: string | null | undefined): void;
     80    applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void;
     81    toString(): string;
     82    toJSON(): RawSourceMap;
     83}
     84
     85export interface CodeWithSourceMap {
     86    code: string;
     87    map: SourceMapGenerator;
     88}
     89
     90export class SourceNode {
     91    constructor();
     92    constructor(line: number, column: number, source: string);
     93    constructor(line: number, column: number, source: string, chunk?: string, name?: string);
     94    static fromStringWithSourceMap(code: string, sourceMapConsumer: SourceMapConsumer, relativePath?: string): SourceNode;
     95    add(chunk: string): void;
     96    prepend(chunk: string): void;
     97    setSourceContent(sourceFile: string, sourceContent: string): void;
     98    walk(fn: (chunk: string, mapping: MappedPosition) => void): void;
     99    walkSourceContents(fn: (file: string, content: string) => void): void;
     100    join(sep: string): SourceNode;
     101    replaceRight(pattern: string, replacement: string): SourceNode;
     102    toString(): string;
     103    toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap;
     104}
Note: See TracChangeset for help on using the changeset viewer.