datagrok-tools 4.7.9 → 4.7.10
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 +28 -7
- package/package.json +1 -1
package/bin/commands/check.js
CHANGED
|
@@ -221,10 +221,31 @@ function checkFuncSignatures(packagePath, files) {
|
|
|
221
221
|
message: message
|
|
222
222
|
};
|
|
223
223
|
},
|
|
224
|
-
|
|
224
|
+
viewer: function viewer(_ref3) {
|
|
225
225
|
var inputs = _ref3.inputs,
|
|
226
|
-
outputs = _ref3.outputs
|
|
227
|
-
|
|
226
|
+
outputs = _ref3.outputs;
|
|
227
|
+
var value = true;
|
|
228
|
+
var message = '';
|
|
229
|
+
|
|
230
|
+
if (inputs.length !== 0) {
|
|
231
|
+
value = false;
|
|
232
|
+
message += 'Viewer functions should take no arguments\n';
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (outputs.length > 1 || outputs.length === 1 && outputs[0].type !== 'viewer') {
|
|
236
|
+
value = false;
|
|
237
|
+
message += 'Viewers must have one output of type "viewer"\n';
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
return {
|
|
241
|
+
value: value,
|
|
242
|
+
message: message
|
|
243
|
+
};
|
|
244
|
+
},
|
|
245
|
+
fileViewer: function fileViewer(_ref4) {
|
|
246
|
+
var inputs = _ref4.inputs,
|
|
247
|
+
outputs = _ref4.outputs,
|
|
248
|
+
tags = _ref4.tags;
|
|
228
249
|
var value = true;
|
|
229
250
|
var message = '';
|
|
230
251
|
|
|
@@ -250,8 +271,8 @@ function checkFuncSignatures(packagePath, files) {
|
|
|
250
271
|
message: message
|
|
251
272
|
};
|
|
252
273
|
},
|
|
253
|
-
fileExporter: function fileExporter(
|
|
254
|
-
var description =
|
|
274
|
+
fileExporter: function fileExporter(_ref5) {
|
|
275
|
+
var description = _ref5.description;
|
|
255
276
|
var value = true;
|
|
256
277
|
var message = '';
|
|
257
278
|
|
|
@@ -265,8 +286,8 @@ function checkFuncSignatures(packagePath, files) {
|
|
|
265
286
|
message: message
|
|
266
287
|
};
|
|
267
288
|
},
|
|
268
|
-
packageSettingsEditor: function packageSettingsEditor(
|
|
269
|
-
var outputs =
|
|
289
|
+
packageSettingsEditor: function packageSettingsEditor(_ref6) {
|
|
290
|
+
var outputs = _ref6.outputs;
|
|
270
291
|
var value = true;
|
|
271
292
|
var message = '';
|
|
272
293
|
|
package/package.json
CHANGED