@types/source-map
Advanced tools
Comparing version 0.1.28 to 0.1.29
@@ -13,10 +13,13 @@ // Type definitions for source-map v0.1.38 | ||
sourceRoot?: string; | ||
skipValidation?: boolean; | ||
} | ||
interface RawSourceMap extends StartOfSourceMap { | ||
version: string; | ||
sources: Array<string>; | ||
names: Array<string>; | ||
interface RawSourceMap { | ||
version: number; | ||
sources: string[]; | ||
names: string[]; | ||
sourceRoot?: string; | ||
sourcesContent?: string[]; | ||
mappings: string; | ||
file: string; | ||
} | ||
@@ -60,5 +63,15 @@ | ||
constructor(rawSourceMap: RawSourceMap); | ||
public computeColumnSpans(): void; | ||
public originalPositionFor(generatedPosition: Position): MappedPosition; | ||
public generatedPositionFor(originalPosition: MappedPosition): Position; | ||
public sourceContentFor(source: string): string; | ||
public allGeneratedPositionsFor(originalPosition: MappedPosition): Position[]; | ||
public hasContentsOfAllSources(): boolean; | ||
public sourceContentFor(source: string, returnNullOnMissing?: boolean): string; | ||
public eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void; | ||
@@ -69,7 +82,13 @@ } | ||
constructor(startOfSourceMap?: StartOfSourceMap); | ||
public static fromSourceMap(sourceMapConsumer: SourceMapConsumer): SourceMapGenerator; | ||
public addMapping(mapping: Mapping): void; | ||
public setSourceContent(sourceFile: string, sourceContent: string): void; | ||
public applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void; | ||
public toString(): string; | ||
public toJSON(): RawSourceMap; | ||
@@ -79,16 +98,43 @@ } | ||
class SourceNode { | ||
children: SourceNode []; | ||
sourceContents: any; | ||
line: number; | ||
column: number; | ||
source: string; | ||
name: string; | ||
constructor(); | ||
constructor(line: number, column: number, source: string); | ||
constructor(line: number, column: number, source: string, chunk?: string, name?: string); | ||
public static fromStringWithSourceMap(code: string, sourceMapConsumer: SourceMapConsumer, relativePath?: string): SourceNode; | ||
constructor( | ||
line: number, | ||
column: number, | ||
source: string, | ||
chunks?: (string | SourceNode)[] | SourceNode | string, | ||
name?: string | ||
); | ||
public static fromStringWithSourceMap( | ||
code: string, | ||
sourceMapConsumer: SourceMapConsumer, | ||
relativePath?: string | ||
): SourceNode; | ||
public add(chunk: any): SourceNode; | ||
public prepend(chunk: any): SourceNode; | ||
public setSourceContent(sourceFile: string, sourceContent: string): void; | ||
public walk(fn: (chunk: string, mapping: MappedPosition) => void): void; | ||
public walkSourceContents(fn: (file: string, content: string) => void): void; | ||
public join(sep: string): SourceNode; | ||
public replaceRight(pattern: string, replacement: string): SourceNode; | ||
public toString(): string; | ||
public toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap; | ||
} | ||
} |
{ | ||
"name": "@types/source-map", | ||
"version": "0.1.28", | ||
"version": "0.1.29", | ||
"description": "TypeScript definitions for source-map v0.1.38", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "a082f03bfc03c736ffa1243f36b5a5883f38624b27f0cc0d8126cbda0a09c9ee" | ||
"typesPublisherContentHash": "1a54d4ba10a3288dfdbabd10f9fb6463d11b8f629ea60f571bf12d20c4524a4f" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 05 Oct 2016 20:53:40 GMT | ||
* Last updated: Tue, 01 Nov 2016 13:31:15 GMT | ||
* File structure: UMD | ||
@@ -14,0 +14,0 @@ * Library Dependencies: none |
@@ -23,3 +23,3 @@ { | ||
"hasPackageJson": false, | ||
"contentHash": "a082f03bfc03c736ffa1243f36b5a5883f38624b27f0cc0d8126cbda0a09c9ee" | ||
"contentHash": "1a54d4ba10a3288dfdbabd10f9fb6463d11b8f629ea60f571bf12d20c4524a4f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5921
123