Comparing version 0.0.1 to 0.0.2
@@ -6,8 +6,6 @@ export { specRewrite } from './src/spec_rewrite'; | ||
import * as vega from 'vega'; | ||
import VegaTransformPostgres from "vega-transform-db"; | ||
export function parse(spec, httpOptions) { | ||
vega.transforms['dbtransform'] = VegaTransformPostgres; | ||
VegaTransformPostgres.setHttpOptions(httpOptions); | ||
export function parse(spec, transform_type, transform, config, option) { | ||
vega.transforms[transform_type] = transform; | ||
const newSpec = specRewrite(spec); | ||
const runtime = vega.parse(newSpec); | ||
const runtime = vega.parse(newSpec, config, option); | ||
console.log(runtime); | ||
@@ -14,0 +12,0 @@ return runtimeRewrite(runtime); |
10
index.ts
@@ -7,14 +7,10 @@ export { specRewrite } from './src/spec_rewrite'; | ||
import * as vega from 'vega'; | ||
import VegaTransformPostgres from "vega-transform-db" | ||
export function parse(spec: vega.Spec, transform_type: string, transform:vega.Transform, config?:object, option?:object) { | ||
export function parse(spec: vega.Spec, httpOptions) { | ||
(vega as any).transforms['dbtransform'] = VegaTransformPostgres; | ||
VegaTransformPostgres.setHttpOptions(httpOptions); | ||
(vega as any).transforms[transform_type] = transform | ||
const newSpec = specRewrite(spec) | ||
const runtime = vega.parse(newSpec) | ||
const runtime = vega.parse(newSpec, config, option) | ||
console.log(runtime) | ||
return runtimeRewrite(runtime) | ||
} |
{ | ||
"name": "vega-plus", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"source": "index.ts", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
61243
30
1
76
961