Gathering detailed insights and metrics for @types/source-list-map
Gathering detailed insights and metrics for @types/source-list-map
The repository for high quality TypeScript type definitions.
npm install @types/source-list-map
Typescript
Module System
100
Supply Chain
99.4
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,440,846,340
Last Day
569,016
Last Week
3,747,517
Last Month
15,818,016
Last Year
191,234,574
NOASSERTION License
49,197 Stars
88,722 Commits
30,314 Forks
640 Watchers
5 Branches
9,958 Contributors
Updated on Feb 15, 2025
Latest Version
0.1.6
Package Id
@types/source-list-map@0.1.6
Unpacked Size
6.66 kB
Size
1.95 kB
File Count
5
Published on
Nov 21, 2023
Cumulative downloads
Total Downloads
Last Day
-14.8%
569,016
Compared to previous day
Last Week
-10.1%
3,747,517
Compared to previous week
Last Month
39.1%
15,818,016
Compared to previous month
Last Year
-33.6%
191,234,574
Compared to previous year
npm install --save @types/source-list-map
This package contains type definitions for source-list-map (https://github.com/webpack/source-list-map.git).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/source-list-map.
1export class CodeNode { 2 generatedCode: string; 3 4 constructor(generatedCode: string); 5 6 clone(): CodeNode; 7 8 getGeneratedCode(): string; 9 10 getMappings(mappingsContext?: MappingsContext): string; 11 12 addGeneratedCode(generatedCode: string): void; 13 14 mapGeneratedCode(fn: (code: string) => string): void; 15} 16 17export class MappingsContext { 18 sources: string[]; 19 sourcesContent: string[]; 20 hasSourceContent: boolean; 21 currentOriginalLine: number; 22 currentSource: number; 23 24 constructor(); 25 26 ensureSource(source: string, originalSource: string): number; 27} 28 29export class SourceNode { 30 generatedCode: string; 31 source: string; 32 originalSource: string; 33 startingLine: number; 34 35 constructor(generatedCode: string, source: string, originalSource: string, startingLine?: number); 36 37 clone(): SourceNode; 38 39 getGeneratedCode(): string; 40 41 getMappings(mappingsContext: MappingsContext): string; 42 43 mapGeneratedCode(fn: (code: string) => string): void; 44} 45 46export class SourceListMap { 47 children: Array<SourceNode | CodeNode>; 48 49 constructor(generatedCode: Array<SourceNode | CodeNode>); 50 constructor( 51 generatedCode?: string | SourceNode | CodeNode | SourceListMap, 52 source?: string, 53 originalSource?: string, 54 ); 55 56 add( 57 generatedCode: string | CodeNode | SourceNode | SourceListMap, 58 source?: string, 59 originalSource?: string, 60 ): void; 61 62 prepend(generatedCode: SourceListMap | SourceNode | CodeNode, source?: string, originalSource?: string): void; 63 64 mapGeneratedCode(fn: (code: string) => string): void; 65 66 toString(): string; 67 68 toStringWithSourceMap(options: { file: any }): { 69 source: string; 70 map: { 71 version: number; 72 file: any; 73 sources: string[]; 74 sourcesContent: string[]; 75 mappings: string; 76 }; 77 }; 78} 79 80export function fromStringWithSourceMap( 81 code: string, 82 map: { 83 sources: Array<string | SourceNode | CodeNode>; 84 sourcesContent: string[]; 85 mappings: string; 86 }, 87): SourceListMap; 88
These definitions were written by e-cloud.
No vulnerabilities found.
Reason
30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More