-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
361d6b4
commit 02a043a
Showing
7 changed files
with
92 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ | |
"airbnb-base", | ||
"strict" | ||
], | ||
"globals": { | ||
"PARSER_NAME": true | ||
}, | ||
"rules": { | ||
"comma-dangle": [ | ||
2, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import Parser from './src/parser'; | ||
import * as util from './src/util'; | ||
import Parser from './src/parser' | ||
import * as util from './src/util' | ||
|
||
export { | ||
Parser, | ||
util, | ||
}; | ||
} | ||
|
||
if (global && global.window) { | ||
global.window.NodeSQLParser = { | ||
Parser, | ||
util, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"start": "webpack --config webpack.config.js", | ||
"build": "webpack --config webpack.config.js --prod", | ||
"test": "mochapack \"test/**/*.spec.js\"", | ||
"prepublishOnly": "npm run build", | ||
"prepublishOnly": "npm run lint && npm run build", | ||
"lint": "eslint src", | ||
"coverLocal": "cross-env NODE_ENV=coverage nyc --reporter=lcov --reporter=text npm run test", | ||
"cover:run": "cross-env NODE_ENV=coverage nyc --reporter=text-lcov npm run test", | ||
|
@@ -33,6 +33,7 @@ | |
], | ||
"author": "taozhi8833998 <[email protected]>", | ||
"files": [ | ||
"ast/", | ||
"index.js", | ||
"lib/", | ||
"index.d.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ export default { | |
mariadb, | ||
postgresql, | ||
transactsql, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { parse } from '../pegjs/mysql.pegjs' | ||
|
||
export default { | ||
[PARSER_NAME]: parse, | ||
[PARSER_NAME] : parse, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters