@statoscope/webpack-model
Advanced tools
Comparing version 5.3.1 to 5.4.0
@@ -12,4 +12,4 @@ import joraHelpers from './jora-helpers'; | ||
compilations: NormalizedCompilation[]; | ||
query: (query: string, data?: unknown) => unknown; | ||
query: (query: string, data?: unknown, context?: unknown) => unknown; | ||
}; | ||
export declare function prepareWithJora(stats: RawStatsFileDescriptor | RawStatsFileDescriptor[], options?: Options): Prepared; |
@@ -41,7 +41,7 @@ "use strict"; | ||
}); | ||
const context = {}; | ||
const rootContext = {}; | ||
return { | ||
files, | ||
compilations: compilations.map((c) => c.data), | ||
query: (query, data) => j(query)(data || files, context), | ||
query: (query, data, context = rootContext) => j(query)(data || files, context), | ||
}; | ||
@@ -48,0 +48,0 @@ } |
{ | ||
"name": "@statoscope/webpack-model", | ||
"version": "5.3.1", | ||
"version": "5.4.0", | ||
"description": "This package contains helpers to process webpack stats", | ||
@@ -25,7 +25,7 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@statoscope/extensions": "5.3.0", | ||
"@statoscope/helpers": "5.3.0", | ||
"@statoscope/stats": "5.3.0", | ||
"@statoscope/stats-extension-compressed": "^5.3.1", | ||
"@statoscope/stats-extension-package-info": "^5.3.1", | ||
"@statoscope/extensions": "^5.3.0", | ||
"@statoscope/helpers": "^5.4.0", | ||
"@statoscope/stats": "^5.3.0", | ||
"@statoscope/stats-extension-compressed": "^5.4.0", | ||
"@statoscope/stats-extension-package-info": "^5.4.0", | ||
"ajv": "^8.5.0", | ||
@@ -38,4 +38,3 @@ "jora": "^1.0.0-beta.5", | ||
"flatted": "^3.1.1" | ||
}, | ||
"gitHead": "a6c4b35ab9ed303afc42c054fe56d678a655cf72" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
75670
26
1253
- Removed@statoscope/extensions@5.3.0(transitive)
- Removed@statoscope/helpers@5.3.0(transitive)
- Removed@statoscope/stats@5.3.0(transitive)
Updated@statoscope/helpers@^5.4.0
Updated@statoscope/stats@^5.3.0