зеркало из https://github.com/microsoft/SandDance.git
set type=module (#667)
This commit is contained in:
Родитель
943692dcc9
Коммит
52025abd5c
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@msrvida/data-inference",
|
||||
"version": "1.0.1",
|
||||
"version": "1.1.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@msrvida/data-inference",
|
||||
"version": "1.0.1",
|
||||
"version": "1.1.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"d3-color": "^3.1.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@msrvida/data-inference",
|
||||
"version": "1.0.1",
|
||||
"version": "1.1.0",
|
||||
"description": "Infer column types in tabular data.",
|
||||
"main": "dist/es6/index.js",
|
||||
"repository": {
|
||||
|
@ -8,6 +8,7 @@
|
|||
"url": "https://github.com/microsoft/SandDance.git",
|
||||
"directory": "packages/data-inference"
|
||||
},
|
||||
"type": "module",
|
||||
"types": "dist/es6/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
const fs = require('fs');
|
||||
fs.copyFileSync('./dist/umd/data-inference.js', '../../docs/tests/data-inference/v1/js/data-inference.js');
|
||||
import { copyFileSync } from 'fs';
|
||||
copyFileSync('./dist/umd/data-inference.js', '../../docs/tests/data-inference/v1/js/data-inference.js');
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
export * from './color';
|
||||
export * from './inference';
|
||||
export * from './numeric';
|
||||
export * from './stats';
|
||||
export * from './color.js';
|
||||
export * from './inference.js';
|
||||
export * from './numeric.js';
|
||||
export * from './stats.js';
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
|
||||
import { Column, ColumnTypeMap } from '@msrvida/chart-types';
|
||||
import { inferTypes } from 'vega-typings';
|
||||
import { checkIsColorData } from './color';
|
||||
import { isQuantitative } from './numeric';
|
||||
import { getStats } from './stats';
|
||||
import { checkIsColorData } from './color.js';
|
||||
import { isQuantitative } from './numeric.js';
|
||||
import { getStats } from './stats.js';
|
||||
|
||||
/**
|
||||
* Derive column metadata from the data array.
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
import { Column, ColumnStats } from '@msrvida/chart-types';
|
||||
import { TypeInference } from 'vega-typings';
|
||||
import { isColor } from './color';
|
||||
import { detectNegative, detectSequentialColumn } from './numeric';
|
||||
import { isColor } from './color.js';
|
||||
import { detectNegative, detectSequentialColumn } from './numeric.js';
|
||||
|
||||
export function getStats(data: object[] | Float64Array, columnName: string | number, columnType: TypeInference, columnQuantitative: boolean, distinctValuesCallback?: (distinctValues: string[]) => void): ColumnStats;
|
||||
export function getStats(data: object[], column: Column, distinctValuesCallback?: (distinctValues: string[]) => void): ColumnStats;
|
||||
|
|
Загрузка…
Ссылка в новой задаче