mindsdb-js-sdk
Advanced tools
Comparing version 0.3.3 to 0.3.4
{ | ||
"name": "mindsdb-js-sdk", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/mindsdb/mindsdb_js_sdk#readme", |
# <a href='https://www.mindsdb.com/'><img src='https://assets.website-files.com/5c7e77a16fbaf30ffda0de72/5cc69a9fd9da3369c3848e5b_logo.png' height='40' alt='MindsDB' aria-label='mindsdb.com/' /></a> | ||
[![npm version](https://img.shields.io/badge/npm-v6.13.7-orange)](https://www.npmjs.com/package/mindsdb-js-sdk) | ||
[![build status](https://img.shields.io/badge/build-passing-green)](https://www.npmjs.com/package/mindsdb-js-sdk) | ||
[![axios](https://img.shields.io/badge/axios-v0.18.1-orange)](https://www.npmjs.com/package/mindsdb-js-sdk) | ||
@@ -6,0 +5,0 @@ [![install size](https://img.shields.io/badge/install%20size-202%20KB-green)](https://www.npmjs.com/package/mindsdb-js-sdk) |
@@ -125,3 +125,9 @@ /* eslint-disable */ | ||
const request = setQueryParams(mergeParams, `/predictors/${this.name}`); | ||
let url_path = `/predictors` | ||
if( this.name !== undefined && this.name !== "") { | ||
url_path +=`/${this.name}`; | ||
} | ||
const request = setQueryParams(mergeParams, url_path); | ||
const response = await connection.api.get(request); | ||
@@ -276,3 +282,9 @@ | ||
const request = setQueryParams(mergeParams, `/datasources/${this.name}`); | ||
let url_path = `/datasources` | ||
if( this.name !== undefined && this.name !== "") { | ||
url_path +=`/${this.name}`; | ||
} | ||
const request = setQueryParams(mergeParams, url_path); | ||
const response = await connection.api.get(request); | ||
@@ -279,0 +291,0 @@ Object.assign(this, response.data); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
204885
4407
281