mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 08:46:00 +00:00
renamed dbgate packages, because of npmjs policy
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"name": "@dbgate/filterparser",
|
||||
"name": "dbgate-filterparser",
|
||||
"main": "lib/index.js",
|
||||
"typings": "lib/index.d.ts",
|
||||
"scripts": {
|
||||
@@ -13,7 +13,7 @@
|
||||
"lib"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@dbgate/types": "^1.0.0",
|
||||
"dbgate-types": "^1.0.0",
|
||||
"@types/jest": "^25.1.4",
|
||||
"@types/node": "^13.7.0",
|
||||
"jest": "^24.9.0",
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/parsimmon": "^1.10.1",
|
||||
"@dbgate/tools": "^1.0.0",
|
||||
"dbgate-tools": "^1.0.0",
|
||||
"lodash": "^4.17.15",
|
||||
"moment": "^2.24.0",
|
||||
"parsimmon": "^1.13.0"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { parseFilter } from './parseFilter';
|
||||
import { FilterType } from './types';
|
||||
import engines from '@dbgate/engines';
|
||||
import { dumpSqlCondition, treeToSql } from '@dbgate/sqltree';
|
||||
import engines from 'dbgate-engines';
|
||||
import { dumpSqlCondition, treeToSql } from 'dbgate-sqltree';
|
||||
|
||||
const ast = parseFilter(process.argv[2], process.argv[3] as FilterType);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isTypeDateTime } from '@dbgate/tools';
|
||||
import { isTypeDateTime } from 'dbgate-tools';
|
||||
|
||||
export type FilterMultipleValuesMode = 'is' | 'is_not' | 'contains' | 'begins' | 'ends';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isTypeNumber, isTypeString, isTypeLogical, isTypeDateTime } from '@dbgate/tools';
|
||||
import { isTypeNumber, isTypeString, isTypeLogical, isTypeDateTime } from 'dbgate-tools';
|
||||
import { FilterType } from './types';
|
||||
|
||||
export function getFilterType(dataType: string): FilterType {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import P from 'parsimmon';
|
||||
import { FilterType } from './types';
|
||||
import { Condition } from '@dbgate/sqltree';
|
||||
import { TransformType } from '@dbgate/types';
|
||||
import { Condition } from 'dbgate-sqltree';
|
||||
import { TransformType } from 'dbgate-types';
|
||||
|
||||
const whitespace = P.regexp(/\s*/m);
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// import types from '@dbgate/types';
|
||||
// import types from 'dbgate-types';
|
||||
|
||||
export type FilterType = 'number' | 'string' | 'datetime' | 'logical';
|
||||
|
||||
Reference in New Issue
Block a user