Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@visactor/calculator

Package Overview
Dependencies
Maintainers
15
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visactor/calculator - npm Package Compare versions

Comparing version 1.2.9 to 1.2.10-alpha.0

2

es/astParser/astPipes.js
import { isArray } from 'lodash';
import { checkIsColumnNode, replaceString, toFirstUpperCase } from './utils';
import { FilterNodeType, FilterOperator, OrderType } from 'src/types';
import { FilterNodeType, FilterOperator, OrderType } from '../types';
export const from = (query, context) => {

@@ -5,0 +5,0 @@ const { dataSource, fieldInfo } = context;

import { SimpleFieldInfo } from './type';
import { TableData } from 'src/types';
import { TableData } from '../types';
export declare const queryDataset: (sql: string, fieldInfo: SimpleFieldInfo[], sourceDataset: TableData) => Promise<{

@@ -4,0 +4,0 @@ dataset: TableData;

import NodeSQLParser from 'node-sql-parser';
import { query } from 'src/query';
import { query } from '../query';
import { parseRespondField, preprocessSQL } from './utils';

@@ -4,0 +4,0 @@ import { parseSqlAST } from './parseSqlAST';

@@ -1,3 +0,3 @@

import { TableData } from 'src/types';
import { TableData } from '../types';
import { SQLAst, SimpleFieldInfo } from './type';
export declare const parseSqlAST: (ast: SQLAst, dataSource: TableData, fieldInfo: SimpleFieldInfo[], replaceMap: Map<string, string>) => Partial<import("src/types").Query>;
export declare const parseSqlAST: (ast: SQLAst, dataSource: TableData, fieldInfo: SimpleFieldInfo[], replaceMap: Map<string, string>) => Partial<import("../types").Query>;
import { Select } from 'node-sql-parser';
import { Query, TableData } from 'src/types';
import { Query, TableData } from '../types';
export type SQLAst = Select;

@@ -4,0 +4,0 @@ export type ASTParserPipe = (query: Partial<Query>, context: ASTParserContext) => Partial<Query>;

import { ASTParserContext, ASTParserPipe, DataType, ROLE, SimpleFieldInfo } from './type';
import { Query, TableData } from 'src/types';
import { Query, TableData } from '../types';
export declare const execPipeline: (src: Partial<Query>, pipes: ASTParserPipe[], context: ASTParserContext) => Partial<Query>;

@@ -4,0 +4,0 @@ export declare const toFirstUpperCase: (name?: string) => string;

@@ -6,3 +6,3 @@ "use strict";

const utils_1 = require("./utils");
const types_1 = require("src/types");
const types_1 = require("../types");
const from = (query, context) => {

@@ -9,0 +9,0 @@ const { dataSource, fieldInfo } = context;

import { SimpleFieldInfo } from './type';
import { TableData } from 'src/types';
import { TableData } from '../types';
export declare const queryDataset: (sql: string, fieldInfo: SimpleFieldInfo[], sourceDataset: TableData) => Promise<{

@@ -4,0 +4,0 @@ dataset: TableData;

@@ -8,3 +8,3 @@ "use strict";

const node_sql_parser_1 = __importDefault(require("node-sql-parser"));
const query_1 = require("src/query");
const query_1 = require("../query");
const utils_1 = require("./utils");

@@ -11,0 +11,0 @@ const parseSqlAST_1 = require("./parseSqlAST");

@@ -1,3 +0,3 @@

import { TableData } from 'src/types';
import { TableData } from '../types';
import { SQLAst, SimpleFieldInfo } from './type';
export declare const parseSqlAST: (ast: SQLAst, dataSource: TableData, fieldInfo: SimpleFieldInfo[], replaceMap: Map<string, string>) => Partial<import("src/types").Query>;
export declare const parseSqlAST: (ast: SQLAst, dataSource: TableData, fieldInfo: SimpleFieldInfo[], replaceMap: Map<string, string>) => Partial<import("../types").Query>;
import { Select } from 'node-sql-parser';
import { Query, TableData } from 'src/types';
import { Query, TableData } from '../types';
export type SQLAst = Select;

@@ -4,0 +4,0 @@ export type ASTParserPipe = (query: Partial<Query>, context: ASTParserContext) => Partial<Query>;

import { ASTParserContext, ASTParserPipe, DataType, ROLE, SimpleFieldInfo } from './type';
import { Query, TableData } from 'src/types';
import { Query, TableData } from '../types';
export declare const execPipeline: (src: Partial<Query>, pipes: ASTParserPipe[], context: ASTParserContext) => Partial<Query>;

@@ -4,0 +4,0 @@ export declare const toFirstUpperCase: (name?: string) => string;

{
"name": "@visactor/calculator",
"version": "1.2.9",
"version": "1.2.10-alpha.0",
"description": "SQL-like query executor with DSL",

@@ -39,4 +39,4 @@ "main": "lib",

"@internal/ts-config": "0.0.1",
"@internal/eslint-config": "0.0.1",
"@internal/bundler": "0.0.1"
"@internal/bundler": "0.0.1",
"@internal/eslint-config": "0.0.1"
},

@@ -43,0 +43,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc