datagrok-tools 4.12.16 → 4.12.18
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/bin/commands/check.js
CHANGED
|
@@ -479,7 +479,7 @@ function checkChangelog(packagePath, json) {
|
|
|
479
479
|
try {
|
|
480
480
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
481
481
|
var h = _step9.value;
|
|
482
|
-
if (!regex.test(h)) warnings.push("CHANGELOG: '".concat(h, "' does not match the h2 format, expected: ## <version> (<
|
|
482
|
+
if (!regex.test(h)) warnings.push("CHANGELOG: '".concat(h, "' does not match the h2 format, expected: ## <version> (<yyyy-mm-dd> | WIP)\n"));
|
|
483
483
|
}
|
|
484
484
|
} catch (err) {
|
|
485
485
|
_iterator9.e(err);
|
package/bin/commands/test.js
CHANGED
|
@@ -22,7 +22,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
22
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
23
|
function test(args) {
|
|
24
24
|
var options = Object.keys(args).slice(1);
|
|
25
|
-
var commandOptions = ['host', 'csv', 'gui', 'catchUnhandled', 'report', 'skip-build', 'skip-publish', 'category', 'record', 'verbose'];
|
|
25
|
+
var commandOptions = ['host', 'csv', 'gui', 'catchUnhandled', 'report', 'skip-build', 'skip-publish', 'category', 'record', 'verbose', 'benchmark'];
|
|
26
26
|
var nArgs = args['_'].length;
|
|
27
27
|
var curDir = process.cwd();
|
|
28
28
|
var grokDir = _path["default"].join(_os["default"].homedir(), '.grok');
|
|
@@ -161,6 +161,7 @@ function test(args) {
|
|
|
161
161
|
console.log("Testing ".concat(targetPackage, " package...\n"));
|
|
162
162
|
_context2.next = 11;
|
|
163
163
|
return page.evaluate(function (targetPackage, options, testContext) {
|
|
164
|
+
if (options.benchmark) window.DG.Test.isInBenchmark = true;
|
|
164
165
|
return new Promise(function (resolve, reject) {
|
|
165
166
|
window.grok.functions.call("".concat(targetPackage, ":test"), {
|
|
166
167
|
'category': options.category,
|
|
@@ -206,8 +207,9 @@ function test(args) {
|
|
|
206
207
|
failReport += "Test result : Failed : ".concat(cTime.get(i), " : ").concat(targetPackage, ".").concat(cCat.get(i), ".").concat(cName.get(i), " : ").concat(cMessage.get(i), "\n");
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
if (!options.verbose) df.rows.removeWhere(function (r) {
|
|
211
|
+
return r.get('success');
|
|
212
|
+
});
|
|
211
213
|
var csv = df.toCsv();
|
|
212
214
|
resolve({
|
|
213
215
|
failReport: failReport,
|
|
@@ -278,7 +280,8 @@ function test(args) {
|
|
|
278
280
|
verbose: args.verbose,
|
|
279
281
|
catchUnhandled: args.catchUnhandled,
|
|
280
282
|
report: args.report,
|
|
281
|
-
record: args.record
|
|
283
|
+
record: args.record,
|
|
284
|
+
benchmark: args.benchmark
|
|
282
285
|
});
|
|
283
286
|
case 12:
|
|
284
287
|
r = _context3.sent;
|
package/bin/utils/utils.js
CHANGED
|
@@ -225,7 +225,7 @@ var dgToTsTypeMap = {
|
|
|
225
225
|
file: 'DG.FileInfo'
|
|
226
226
|
};
|
|
227
227
|
exports.dgToTsTypeMap = dgToTsTypeMap;
|
|
228
|
-
var propertyTypes = ['int', '
|
|
228
|
+
var propertyTypes = ['bool', 'int', 'float', 'string', 'datetime', 'object', 'column', 'dataframe', 'bitset', 'cell', 'string_list', 'map'];
|
|
229
229
|
exports.propertyTypes = propertyTypes;
|
|
230
230
|
var headerTags = ['name', 'description', 'help-url', 'input', 'output', 'tags', 'sample', 'language', 'returns', 'test', 'sidebar', 'condition', 'top-menu', 'environment', 'require', 'editor-for', 'schedule', 'reference', 'editor', 'meta'];
|
|
231
231
|
exports.headerTags = headerTags;
|
package/package.json
CHANGED