@hpcc-js/common
Advanced tools
Comparing version 0.0.25 to 0.0.27
@@ -8,3 +8,3 @@ export declare function SelectionBag(): void; | ||
export declare function urlParams(): {}; | ||
export declare function endsWith(str: any, searchStr: any, pos: any): boolean; | ||
export declare function endsWith(str: string, searchStr: string, pos?: number): boolean; | ||
export declare function d3ArrayAdapter(array: any): { | ||
@@ -11,0 +11,0 @@ ownerDocument: { |
@@ -367,9 +367,11 @@ import { ascending as d3Ascending, descending as d3Descending } from "d3-array"; | ||
var parsedClassID = parseClassID(classID); | ||
require([parsedClassID.package], function (Package) { | ||
var Widget = null; | ||
if (Package && Package[parsedClassID.widgetID]) { | ||
Widget = Package[parsedClassID.widgetID]; | ||
} | ||
resolve(parsedClassID.memberWidgetID ? (Widget.prototype ? Widget.prototype[parsedClassID.memberWidgetID] : Widget[parsedClassID.memberWidgetID]) : Widget); | ||
}); | ||
if (require) { | ||
require([parsedClassID.package], function (Package) { | ||
var Widget = null; | ||
if (Package && Package[parsedClassID.widgetID]) { | ||
Widget = Package[parsedClassID.widgetID]; | ||
} | ||
resolve(parsedClassID.memberWidgetID ? (Widget.prototype ? Widget.prototype[parsedClassID.memberWidgetID] : Widget[parsedClassID.memberWidgetID]) : Widget); | ||
}); | ||
} | ||
}); | ||
@@ -376,0 +378,0 @@ } |
@@ -8,3 +8,3 @@ export declare function SelectionBag(): void; | ||
export declare function urlParams(): {}; | ||
export declare function endsWith(str: any, searchStr: any, pos: any): boolean; | ||
export declare function endsWith(str: string, searchStr: string, pos?: number): boolean; | ||
export declare function d3ArrayAdapter(array: any): { | ||
@@ -11,0 +11,0 @@ ownerDocument: { |
@@ -389,9 +389,11 @@ (function (factory) { | ||
var parsedClassID = parseClassID(classID); | ||
require([parsedClassID.package], function (Package) { | ||
var Widget = null; | ||
if (Package && Package[parsedClassID.widgetID]) { | ||
Widget = Package[parsedClassID.widgetID]; | ||
} | ||
resolve(parsedClassID.memberWidgetID ? (Widget.prototype ? Widget.prototype[parsedClassID.memberWidgetID] : Widget[parsedClassID.memberWidgetID]) : Widget); | ||
}); | ||
if (require) { | ||
require([parsedClassID.package], function (Package) { | ||
var Widget = null; | ||
if (Package && Package[parsedClassID.widgetID]) { | ||
Widget = Package[parsedClassID.widgetID]; | ||
} | ||
resolve(parsedClassID.memberWidgetID ? (Widget.prototype ? Widget.prototype[parsedClassID.memberWidgetID] : Widget[parsedClassID.memberWidgetID]) : Widget); | ||
}); | ||
} | ||
}); | ||
@@ -398,0 +400,0 @@ } |
{ | ||
"name": "@hpcc-js/common", | ||
"version": "0.0.25", | ||
"version": "0.0.27", | ||
"description": "hpcc-js - Viz Common", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
3686232
26484
10