@sqb/mssql-dialect 4.9.1 → 4.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/ms-sql-serializer.js
CHANGED
|
@@ -4,7 +4,9 @@ exports.MSSqlSerializer = void 0;
|
|
|
4
4
|
const builder_1 = require("@sqb/builder");
|
|
5
5
|
const reservedWords = ['comment'];
|
|
6
6
|
class MSSqlSerializer {
|
|
7
|
-
|
|
7
|
+
constructor() {
|
|
8
|
+
this.dialect = 'mssql';
|
|
9
|
+
}
|
|
8
10
|
isReservedWord(ctx, s) {
|
|
9
11
|
return s && typeof s === 'string' &&
|
|
10
12
|
reservedWords.includes(s.toLowerCase());
|
package/esm/ms-sql-serializer.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { SerializationType } from '@sqb/builder';
|
|
2
2
|
const reservedWords = ['comment'];
|
|
3
3
|
export class MSSqlSerializer {
|
|
4
|
-
|
|
4
|
+
constructor() {
|
|
5
|
+
this.dialect = 'mssql';
|
|
6
|
+
}
|
|
5
7
|
isReservedWord(ctx, s) {
|
|
6
8
|
return s && typeof s === 'string' &&
|
|
7
9
|
reservedWords.includes(s.toLowerCase());
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/mssql-dialect",
|
|
3
3
|
"description": "SQB serialization extension for MS-SQL database",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.10.1",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Eray Hanoglu <e.hanoglu@panates.com>",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"url": "https://github.com/sqbjs/sqb.git",
|
|
14
14
|
"directory": "packages/mssql-dialect"
|
|
15
15
|
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"module": "./esm/index.js",
|
|
18
|
+
"main": "./cjs/index.js",
|
|
19
|
+
"types": "./types/index.d.ts",
|
|
16
20
|
"scripts": {
|
|
17
21
|
"compile": "tsc",
|
|
18
22
|
"prebuild": "npm run lint && npm run clean",
|
|
@@ -29,17 +33,7 @@
|
|
|
29
33
|
"clean:cover": "rimraf ../../coverage/mssql-dialect"
|
|
30
34
|
},
|
|
31
35
|
"peerDependencies": {
|
|
32
|
-
"@sqb/builder": "^4.
|
|
33
|
-
},
|
|
34
|
-
"type": "module",
|
|
35
|
-
"types": "esm/index.d.ts",
|
|
36
|
-
"exports": {
|
|
37
|
-
".": {
|
|
38
|
-
"require": "./cjs/index.js",
|
|
39
|
-
"default": "./esm/index.js"
|
|
40
|
-
},
|
|
41
|
-
"./cjs": "./cjs/index.js",
|
|
42
|
-
"./esm": "./esm/index.js"
|
|
36
|
+
"@sqb/builder": "^4.10.1"
|
|
43
37
|
},
|
|
44
38
|
"engines": {
|
|
45
39
|
"node": ">=16.0",
|
|
@@ -49,6 +43,7 @@
|
|
|
49
43
|
"bin/",
|
|
50
44
|
"cjs/",
|
|
51
45
|
"esm/",
|
|
46
|
+
"types/",
|
|
52
47
|
"LICENSE",
|
|
53
48
|
"README.md"
|
|
54
49
|
],
|
|
File without changes
|
|
File without changes
|