Skip to content

Commit 69bdc39

Browse files
author
Sylvestre Gug
committed
.mjs
1 parent 2e93ada commit 69bdc39

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/mssql.js renamed to lib/mssql.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import Ajv from "ajv";
22
import JSONStream from "JSONStream";
33
import {json} from "micro";
4-
import mssql, {TYPES} from "mssql";
4+
import mssql from "mssql";
55
import {notFound, failedCheck, badRequest} from "./errors.js";
66

77
const pools = new Map();
8+
const TYPES = mssql.TYPES;
89

910
// TODO: Confirm these are the right SQL verbs.
1011
const READ_ONLY = new Set(["SELECT", "SHOW DATABASES", "SHOW VIEW", "USAGE"]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"./postgres.js": "./lib/postgres.js",
1010
"./mysql.js": "./lib/mysql.js",
1111
"./snowflake.js": "./lib/snowflake.js",
12-
"./mssql.js": "./lib/mssql.js"
12+
"./mssql.mjs": "./lib/mssql.mjs"
1313
},
1414
"bin": {
1515
"observable-database-proxy": "./bin/observable-database-proxy"

0 commit comments

Comments
 (0)