@speedy-js/speedy-utils
Advanced tools
Comparing version 0.11.2-alpha.4 to 0.11.2-alpha.5
@@ -355,2 +355,6 @@ /// <reference types="node" /> | ||
declare interface CacheValue extends Source { | ||
originCode: string; | ||
} | ||
declare type Callback<E, T> = (error: E | null, result?: T) => void; | ||
@@ -910,2 +914,8 @@ | ||
declare interface ISourcemapContext { | ||
addSourceMap(map?: SourceMap, pluginId?: number): void; | ||
getInlineSourceMap(): Promise<string>; | ||
getSourceMap(): Promise<SourceMap | undefined>; | ||
} | ||
declare interface ISpeedyBundler { | ||
@@ -934,2 +944,4 @@ name?: string; | ||
error(message: string, opts: SpeedyErrorOptions): void; | ||
getTransformContext(path: string): ITransformContext; | ||
getSourcemapContext(path: string): ISourcemapContext; | ||
} | ||
@@ -1017,2 +1029,7 @@ | ||
declare interface ITransformContext extends ISourcemapContext { | ||
addTransformResult(pluginId: number, result: CacheValue): void; | ||
getValidCache(pluginId: number, code: string): undefined | CacheValue; | ||
} | ||
declare type JsChunk = { | ||
@@ -1686,3 +1703,3 @@ type: 'chunk'; | ||
*/ | ||
declare type SourceMap_2 = boolean | 'inline' | 'external' | 'both'; | ||
declare type SourceMap_2 = boolean | 'inline' | 'external'; | ||
@@ -1689,0 +1706,0 @@ declare interface SourceMapOptions { |
@@ -355,2 +355,6 @@ /// <reference types="node" /> | ||
declare interface CacheValue extends Source { | ||
originCode: string; | ||
} | ||
declare type Callback<E, T> = (error: E | null, result?: T) => void; | ||
@@ -910,2 +914,8 @@ | ||
declare interface ISourcemapContext { | ||
addSourceMap(map?: SourceMap, pluginId?: number): void; | ||
getInlineSourceMap(): Promise<string>; | ||
getSourceMap(): Promise<SourceMap | undefined>; | ||
} | ||
declare interface ISpeedyBundler { | ||
@@ -934,2 +944,4 @@ name?: string; | ||
error(message: string, opts: SpeedyErrorOptions): void; | ||
getTransformContext(path: string): ITransformContext; | ||
getSourcemapContext(path: string): ISourcemapContext; | ||
} | ||
@@ -1017,2 +1029,7 @@ | ||
declare interface ITransformContext extends ISourcemapContext { | ||
addTransformResult(pluginId: number, result: CacheValue): void; | ||
getValidCache(pluginId: number, code: string): undefined | CacheValue; | ||
} | ||
declare type JsChunk = { | ||
@@ -1686,3 +1703,3 @@ type: 'chunk'; | ||
*/ | ||
declare type SourceMap_2 = boolean | 'inline' | 'external' | 'both'; | ||
declare type SourceMap_2 = boolean | 'inline' | 'external'; | ||
@@ -1689,0 +1706,0 @@ declare interface SourceMapOptions { |
{ | ||
"name": "@speedy-js/speedy-utils", | ||
"version": "0.11.2-alpha.4", | ||
"version": "0.11.2-alpha.5", | ||
"description": "", | ||
@@ -28,3 +28,3 @@ "keywords": [], | ||
"@speedy-js/config": "0.8.0-3", | ||
"@speedy-js/speedy-types": "0.11.2-alpha.4", | ||
"@speedy-js/speedy-types": "0.11.2-alpha.5", | ||
"@speedy-js/eslint-config": "0.0.1", | ||
@@ -31,0 +31,0 @@ "chai": "4.3.4", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
6286846
85893