datagrok-tools 4.12.12 → 4.12.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/bin/commands/check.js +3 -2
- package/bin/commands/test.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/bin/commands/check.js
CHANGED
|
@@ -69,7 +69,7 @@ function runChecks(packagePath) {
|
|
|
69
69
|
isWebpack: isWebpack,
|
|
70
70
|
externals: externals
|
|
71
71
|
})));
|
|
72
|
-
|
|
72
|
+
warnings.push.apply(warnings, (0, _toConsumableArray2["default"])(checkChangelog(packagePath, json)));
|
|
73
73
|
if (warnings.length) {
|
|
74
74
|
console.log("Checking package ".concat(_path["default"].basename(packagePath), "..."));
|
|
75
75
|
warn(warnings);
|
|
@@ -374,7 +374,7 @@ function checkPackageFile(packagePath, json, options) {
|
|
|
374
374
|
if (json.version.includes('beta') && isPublicPackage) warnings.push('File "package.json": public package cannot be beta version.');
|
|
375
375
|
var api = (_json$dependencies = json.dependencies) === null || _json$dependencies === void 0 ? void 0 : _json$dependencies['datagrok-api'];
|
|
376
376
|
if (api) {
|
|
377
|
-
if (api === '../../js-api') {} else if (api === 'latest') warnings.push('File "package.json": you should specify Datagrok API version constraint.');else if (
|
|
377
|
+
if (api === '../../js-api') {} else if (api === 'latest') warnings.push('File "package.json": you should specify Datagrok API version constraint (for example ^1.16.0, >=1.16.0).');else if (!/^(\^|>|<|~).+/.test(api)) warnings.push('File "package.json": Datagrok API version should starts with > | >= | ~ | ^ | < | <=');
|
|
378
378
|
}
|
|
379
379
|
var dt = (_json$devDependencies = (_json$devDependencies2 = json.devDependencies) === null || _json$devDependencies2 === void 0 ? void 0 : _json$devDependencies2['datagrok-tools']) !== null && _json$devDependencies !== void 0 ? _json$devDependencies : (_json$dependencies2 = json.dependencies) === null || _json$dependencies2 === void 0 ? void 0 : _json$dependencies2['datagrok-tools'];
|
|
380
380
|
if (dt && dt !== 'latest') warnings.push('File "package.json": "datagrok-tools" dependency must be "latest" version.');
|
|
@@ -418,6 +418,7 @@ function checkPackageFile(packagePath, json, options) {
|
|
|
418
418
|
}
|
|
419
419
|
function checkChangelog(packagePath, json) {
|
|
420
420
|
var _h2$0$match, _h2$, _h2$$match;
|
|
421
|
+
if (json.servicePackage) return [];
|
|
421
422
|
var warnings = [];
|
|
422
423
|
var clf;
|
|
423
424
|
try {
|
package/bin/commands/test.js
CHANGED
|
@@ -205,6 +205,9 @@ function test(args) {
|
|
|
205
205
|
failReport += "Test result : Failed : ".concat(cTime.get(i), " : ").concat(targetPackage, ".").concat(cCat.get(i), ".").concat(cName.get(i), " : ").concat(cMessage.get(i), "\n");
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
+
if (!options.verbose) df.rows.removeWhere(function (r) {
|
|
209
|
+
return r.get('success');
|
|
210
|
+
});
|
|
208
211
|
var csv = df.toCsv();
|
|
209
212
|
resolve({
|
|
210
213
|
failReport: failReport,
|
|
@@ -261,6 +264,7 @@ function test(args) {
|
|
|
261
264
|
_context3.next = 12;
|
|
262
265
|
return runTest(7200000, {
|
|
263
266
|
category: args.category,
|
|
267
|
+
verbose: args.verbose,
|
|
264
268
|
catchUnhandled: args.catchUnhandled,
|
|
265
269
|
report: args.report,
|
|
266
270
|
record: args.record
|
package/package.json
CHANGED