Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/istanbul-lib-source-maps

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/istanbul-lib-source-maps

TypeScript definitions for istanbul-lib-source-maps

  • 4.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
37K
increased by4.62%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/istanbul-lib-source-maps

Summary

This package contains type definitions for istanbul-lib-source-maps (https://istanbul.js.org).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-lib-source-maps.

index.d.ts

// Type definitions for istanbul-lib-source-maps 4.0
// Project: https://istanbul.js.org, https://github.com/istanbuljs/istanbuljs
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
//                 Sridhar Mallela <https://github.com/sridharmallela>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

import { CoverageMap } from "istanbul-lib-coverage";
import { RawSourceMap } from "source-map";

export function createSourceMapStore(options?: Partial<MapStoreOptions>): MapStore;

export interface MapStoreOptions {
    verbose: boolean;
    baseDir: string;
    sourceStore: "memory" | "file";
    tmpdir: string;
}

export interface MapStore {
    baseDir: string | null;
    verbose: boolean;
    sourceStore: SourceStore;
    data: {
        [filepath: string]: {
            type: string;
            data: any;
        };
    };

    registerURL(transformedFilePath: string, sourceMapUrl: string): void;
    registerMap(filename: string, sourceMap: RawSourceMap): void;
    getSourceMapSync(filePath: string): any;
    addInputSourceMapsSync(coverageData: any): void;
    sourceFinder(filePath: string): string;
    transformCoverage(coverageMap: CoverageMap): Promise<CoverageMap>;
    dispose(): void;
}

export class SourceStore {
    getSource(filepath: string): string | null;
    registerSource(filepath: string, sourceText: string): void;
}

Additional Details

Credits

These definitions were written by Jason Cheatham, and Sridhar Mallela.

FAQs

Package last updated on 26 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc