reveal-sdk-node
Advanced tools
Comparing version 1.7.1-rc.1 to 1.7.1-rc.2
@@ -57,5 +57,2 @@ import { RVDashboardDataSource } from "./sdk-model/AbstractClasses/RVDashboardDataSource"; | ||
export declare interface IDataConnector { // tagging interface only | ||
} | ||
export declare type RevealOptions = { | ||
@@ -78,3 +75,3 @@ basePath?: string, | ||
maxFilterSize?: Number, | ||
connectors?: Array<IDataConnector> | ||
dataSources?: Array<string> | ||
} | ||
@@ -81,0 +78,0 @@ |
@@ -299,7 +299,16 @@ const http = require('http'); | ||
var registry = []; | ||
var connectors = this.options.connectors; | ||
if (connectors) { | ||
connectors.forEach(conn => { | ||
dsHelper.registerDataSource(conn.identifier, conn.dataSourceClass, conn.dataSourceItemClass); // TODO this registers globally, not just for this server instance. | ||
registry.push(conn.assemblyInfo); | ||
var dataSourcesModules = this.options.dataSources; | ||
if (dataSourcesModules) { | ||
dataSourcesModules.forEach(moduleName => { | ||
const module = moduleName.startsWith('.') // this is something for internal testing. | ||
? require(moduleName) | ||
: require(`@revealbi/data-${moduleName}`); | ||
for (const expKey in module) { | ||
const exp = module[expKey]; | ||
if (exp.hasOwnProperty('assemblyInfo')) { | ||
dsHelper.registerDataSource(exp.identifier, exp.dataSourceClass, exp.dataSourceItemClass); // TODO this registers globally, not just for this server instance. | ||
registry.push(exp.assemblyInfo); | ||
} | ||
} | ||
}); | ||
@@ -306,0 +315,0 @@ } |
{ | ||
"name": "reveal-sdk-node", | ||
"description": "RevealBI Node.js SDK", | ||
"version": "1.7.1-rc.1", | ||
"version": "1.7.1-rc.2", | ||
"author": "Infragistics Inc.", | ||
@@ -6,0 +6,0 @@ "private": false, |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
375296
8782
8