Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions packages/cubejs-schema-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
"lint:fix": "eslint --fix src/* test/* --ext .ts,.js"
},
"dependencies": {
"@babel/code-frame": "^7.12.11",
"@babel/core": "^7.12.10",
"@babel/generator": "^7.12.10",
"@babel/parser": "^7.12.10",
"@babel/preset-env": "^7.12.10",
"@babel/standalone": "^7.12.10",
"@babel/traverse": "^7.12.10",
"@babel/types": "^7.12.12",
"@babel/code-frame": "^7.24",
"@babel/core": "^7.24",
"@babel/generator": "^7.24",
"@babel/parser": "^7.24",
"@babel/preset-env": "^7.24",
"@babel/standalone": "^7.24",
"@babel/traverse": "^7.24",
"@babel/types": "^7.24",
"@cubejs-backend/native": "^0.35.4",
"@cubejs-backend/shared": "^0.35.2",
"antlr4ts": "0.5.0-alpha.4",
Expand All @@ -61,10 +61,9 @@
"@cubejs-backend/apla-clickhouse": "^1.7.0",
"@cubejs-backend/linter": "^0.35.0",
"@cubejs-backend/query-orchestrator": "^0.35.4",
"@types/babel__code-frame": "^7.0.2",
"@types/babel__generator": "^7.6.2",
"@types/babel__parser": "^7.1.1",
"@types/babel__traverse": "^7.11.0",
"@types/babel__code-frame": "^7.0.6",
"@types/babel__generator": "^7.6.8",
"@types/babel__traverse": "^7.20.5",
"@types/inflection": "^1.5.28",
"@types/jest": "^27",
"@types/lru-cache": "^5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface CompilerErrorInterface {
export interface SyntaxErrorInterface {
message: string;
plainMessage?: string
loc: SourceLocation | null,
loc: SourceLocation | null | undefined,
}

interface File {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class CubeCheckDuplicatePropTranspiler implements TranspilerInterface {
};
}

protected compileExpression(expr: t.Expression) {
protected compileExpression(expr: t.Expression | t.PrivateName) {
if (expr.type === 'Identifier') {
return expr.name;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as t from '@babel/types';
import R from 'ramda';
import { NodePath } from '@babel/traverse';

import { TranspilerInterface, TraverseObject } from './transpiler.interface';
import type { NodePath } from '@babel/traverse';
import type { TranspilerInterface, TraverseObject } from './transpiler.interface';
import type { CubeSymbols } from '../CubeSymbols';
import type { CubeDictionary } from '../CubeDictionary';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
import t from '@babel/types';
import { NodePath } from '@babel/traverse';
import { TraverseOptions } from '@babel/traverse';
import { ErrorReporter } from '../ErrorReporter';

export interface TraverseObject {
ImportDeclaration?: (path: NodePath<t.ImportDeclaration>) => void,
ExportNamedDeclaration?: (path: NodePath<t.ExportNamedDeclaration>) => void,
ExportDefaultDeclaration?: (path: NodePath<t.ExportDefaultDeclaration>) => void,
CallExpression?: (path: NodePath<t.CallExpression>) => void,
Identifier?: (path: NodePath<t.Identifier>) => void,
ObjectProperty?: (path: NodePath<t.ObjectProperty>) => void,
}
export type TraverseObject = TraverseOptions;

export interface TranspilerInterface {
traverseObject(reporter: ErrorReporter): TraverseObject;
Expand Down
Loading