Comparing version 0.0.17 to 0.0.18
@@ -141,3 +141,3 @@ "use strict"; | ||
description | ||
readme | ||
card | ||
media | ||
@@ -144,0 +144,0 @@ acceleration |
@@ -138,3 +138,13 @@ "use strict"; | ||
function isFunctionValue(value) { | ||
return value && value.type && value.data !== undefined; // `data` can be `null` but must exist | ||
// Check null | ||
if (value == null) | ||
return false; | ||
// Check type | ||
if (!value.type) | ||
return false; | ||
// Check data // Can be `null` but must always exist | ||
if (value.data === undefined) | ||
return false; | ||
// Return | ||
return true; | ||
} | ||
@@ -141,0 +151,0 @@ exports.isFunctionValue = isFunctionValue; |
@@ -109,5 +109,5 @@ import { Dtype } from "./dtype"; | ||
/** | ||
* Predictor readme. | ||
* Predictor card. | ||
*/ | ||
readme?: string; | ||
card?: string; | ||
/** | ||
@@ -114,0 +114,0 @@ * Predictor media URL. |
{ | ||
"name": "fxnjs", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Run AI prediction functions in your JavaScript and Node.js apps.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
623825
54209