@statoscope/cli
Advanced tools
Comparing version 5.7.3 to 5.8.0-alpha.0
@@ -9,3 +9,2 @@ "use strict"; | ||
const path_1 = __importDefault(require("path")); | ||
// @ts-ignore | ||
const json_ext_1 = require("@discoveryjs/json-ext"); | ||
@@ -12,0 +11,0 @@ const webpack_model_1 = require("@statoscope/webpack-model"); |
@@ -9,6 +9,15 @@ "use strict"; | ||
const os_1 = __importDefault(require("os")); | ||
const fs_1 = __importDefault(require("fs")); | ||
const utils_1 = require("@statoscope/report-writer/dist/utils"); | ||
const json_ext_1 = require("@discoveryjs/json-ext"); | ||
const normalizeCompilation_1 = __importDefault(require("@statoscope/webpack-model/dist/normalizeCompilation")); | ||
async function transform(from, to) { | ||
const id = path_1.default.basename(from[0], '.json'); | ||
const reportPath = to || path_1.default.join(os_1.default.tmpdir(), `statoscope-report-${id}-${Date.now()}.html`); | ||
const normalizedFrom = []; | ||
for (const item of from) { | ||
const parsed = await json_ext_1.parseChunked(fs_1.default.createReadStream(item)); | ||
normalizeCompilation_1.default(parsed); | ||
normalizedFrom.push({ type: 'data', filename: item, data: parsed }); | ||
} | ||
return utils_1.transform({ | ||
@@ -21,5 +30,5 @@ writer: { | ||
}, | ||
}, from, reportPath); | ||
}, normalizedFrom, reportPath); | ||
} | ||
exports.transform = transform; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@statoscope/cli", | ||
"version": "5.7.3", | ||
"version": "5.8.0-alpha.0", | ||
"description": "Statoscope CLI tools", | ||
@@ -23,12 +23,12 @@ "scripts": { | ||
"dependencies": { | ||
"@discoveryjs/json-ext": "^0.5.3", | ||
"@discoveryjs/json-ext": "^0.5.5", | ||
"@statoscope/config": "5.7.2", | ||
"@statoscope/helpers": "5.7.1", | ||
"@statoscope/report-writer": "5.7.1", | ||
"@statoscope/stats-validator": "5.7.2", | ||
"@statoscope/report-writer": "5.8.0-alpha.0", | ||
"@statoscope/stats-validator": "5.8.0-alpha.0", | ||
"@statoscope/stats-validator-reporter-console": "5.7.1", | ||
"@statoscope/stats-validator-reporter-stats-report": "5.7.3", | ||
"@statoscope/stats-validator-reporter-stats-report": "5.8.0-alpha.0", | ||
"@statoscope/types": "5.7.1", | ||
"@statoscope/webpack-model": "5.7.3", | ||
"@statoscope/webpack-ui": "5.7.3", | ||
"@statoscope/webpack-model": "5.8.0-alpha.0", | ||
"@statoscope/webpack-ui": "5.8.0-alpha.0", | ||
"@types/yargs": "^17.0.0", | ||
@@ -38,3 +38,3 @@ "open": "^8.0.4", | ||
}, | ||
"gitHead": "369a5bb0c86ca3efe2373921ebac6ad71c3ac7ab" | ||
"gitHead": "8b9b91ff4d9f79a05141bbe5002c22f3648e6857" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
20325
403
1
6
+ Added@discoveryjs/json-ext@0.5.5(transitive)
+ Added@statoscope/report-writer@5.8.0-alpha.0(transitive)
+ Added@statoscope/stats-validator@5.8.0-alpha.0(transitive)
+ Added@statoscope/stats-validator-reporter-stats-report@5.8.0-alpha.0(transitive)
+ Added@statoscope/webpack-model@5.8.0-alpha.0(transitive)
+ Added@statoscope/webpack-ui@5.8.0-alpha.0(transitive)
- Removed@discoveryjs/json-ext@0.5.3(transitive)
- Removed@statoscope/report-writer@5.7.1(transitive)
- Removed@statoscope/stats-validator@5.7.2(transitive)
- Removed@statoscope/stats-validator-reporter-stats-report@5.7.3(transitive)
- Removed@statoscope/webpack-model@5.7.3(transitive)
- Removed@statoscope/webpack-ui@5.7.3(transitive)
Updated@discoveryjs/json-ext@^0.5.5
Updated@statoscope/stats-validator-reporter-stats-report@5.8.0-alpha.0