@hpcc-js/common
Advanced tools
Comparing version 0.0.48 to 0.0.50
@@ -90,3 +90,3 @@ import { PropertyExt } from "./PropertyExt"; | ||
jsonObj(_?: any): any | Grid; | ||
json(_?: any): string | Grid; | ||
json(_?: string | object): string | Grid; | ||
csv(_?: any): string | Grid; | ||
@@ -93,0 +93,0 @@ tsv(_?: any): string | Grid; |
@@ -559,3 +559,6 @@ import * as tslib_1 from "tslib"; | ||
return JSON.stringify(this.jsonObj(), null, " "); | ||
this.jsonObj(JSON.parse(_)); | ||
if (typeof (_) === "string") { | ||
_ = JSON.parse(_); | ||
} | ||
this.jsonObj(_); | ||
return this; | ||
@@ -562,0 +565,0 @@ }; |
@@ -38,3 +38,4 @@ import { Selection as d3Selection } from "d3-selection"; | ||
constructor(); | ||
export(_: any): string | Grid; | ||
importJSON(_: string | object): this; | ||
export(_?: "JSON" | "CSV" | "TSV"): string | Grid; | ||
leakCheck(newNode: any): void; | ||
@@ -41,0 +42,0 @@ on(eventID: any, func: any, stopPropagation?: boolean): this; |
@@ -43,10 +43,17 @@ import * as tslib_1 from "tslib"; | ||
} | ||
Widget.prototype.importJSON = function (_) { | ||
this._db.json(_); | ||
return this; | ||
}; | ||
Widget.prototype.export = function (_) { | ||
if (_ === void 0) { _ = "JSON"; } | ||
switch (_) { | ||
case "CSV": | ||
return this._db.csv(); | ||
case "TSV": | ||
return this._db.tsv(); | ||
case "JSON": | ||
default: | ||
return this._db.json(); | ||
} | ||
return this._db.csv(); | ||
}; | ||
@@ -53,0 +60,0 @@ Widget.prototype.leakCheck = function (newNode) { |
{ | ||
"name": "@hpcc-js/common", | ||
"version": "0.0.48", | ||
"version": "0.0.50", | ||
"description": "hpcc-js - Viz Common", | ||
@@ -12,6 +12,8 @@ "main": "build/common.js", | ||
"lib/*", | ||
"src/*.css" | ||
"src/*.css", | ||
"font-awesome/**/*" | ||
], | ||
"scripts": { | ||
"clean": "rimraf lib* && rimraf build", | ||
"copy-resources": "cpx \"../../node_modules/font-awesome/fonts/*\" \"./font-awesome/fonts\" && cpx \"../../node_modules/font-awesome/css/*\" \"./font-awesome/css\"", | ||
"compile": "tsc --module esnext --outDir ./lib", | ||
@@ -22,4 +24,4 @@ "compile-watch": "npm run compile -- -w", | ||
"bundle-watch": "npm run bundle -- -w", | ||
"minimize": "uglifyjs build/common.js -c -m -o build/common.min.js", | ||
"build": "npm run compile && npm run bundle", | ||
"minimize": "uglifyjs build/common.js -c -m --source-map -o build/common.min.js", | ||
"build": "npm run compile && npm run copy-resources && npm run bundle", | ||
"watch": "concurrently --kill-others \"npm run compile-watch\" \"npm run bundle-watch\"", | ||
@@ -30,3 +32,3 @@ "lint": "tslint --project . src/**/*.ts", | ||
"dependencies": { | ||
"@hpcc-js/util": "^0.0.46", | ||
"@hpcc-js/util": "^0.0.48", | ||
"colorbrewer": "1.0.0", | ||
@@ -52,4 +54,5 @@ "d3-array": "1.2.1", | ||
"concurrently": "3.5.0", | ||
"cpx": "1.5.0", | ||
"rimraf": "2.6.1", | ||
"rollup": "0.51.3", | ||
"rollup": "0.51.7", | ||
"rollup-plugin-alias": "1.4.0", | ||
@@ -62,3 +65,3 @@ "rollup-plugin-commonjs": "8.2.6", | ||
"typescript": "2.6.1", | ||
"uglify-js": "3.1.8" | ||
"uglify-es": "3.2.0" | ||
}, | ||
@@ -65,0 +68,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 5 instances 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
3395730
103
18715
12
7
+ Added@hpcc-js/util@0.0.48(transitive)
- Removed@hpcc-js/util@0.0.46(transitive)
Updated@hpcc-js/util@^0.0.48