@dbml/core 3.8.0 → 3.9.0
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.
|
@@ -44,8 +44,7 @@ var DbmlExporter = /*#__PURE__*/function () {
|
|
|
44
44
|
// Only safe chars, no simple quotes nor CR/LF
|
|
45
45
|
return "'".concat(newStr, "'");
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
newStr = newStr.replaceAll("'''", "\\'''");
|
|
47
|
+
newStr = newStr.replaceAll("'", "\\'");
|
|
49
48
|
newStr = newStr.replaceAll('\r\n', '\n'); // turn all CRLF to LF
|
|
50
49
|
return "'''".concat(newStr, "'''");
|
|
51
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbml/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Holistics <dev@holistics.io>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"prepublish": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@dbml/parse": "^3.
|
|
35
|
+
"@dbml/parse": "^3.9.0",
|
|
36
36
|
"antlr4": "^4.13.1",
|
|
37
37
|
"lodash": "^4.17.15",
|
|
38
38
|
"parsimmon": "^1.13.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"\\.(?!json$)[^.]*$": "@glen/jest-raw-loader"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "d40aaa3827853d17fa385aa27ae1e099c9234e4b",
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=16"
|
|
65
65
|
}
|
package/types/parse/Parser.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ declare class Parser {
|
|
|
13
13
|
* Should use parse() instance method instead of this static method whenever possible
|
|
14
14
|
*/
|
|
15
15
|
static parse(str: string, format: 'mysql' | 'postgres' | 'dbml' | 'dbmlv2' | 'schemarb' | 'mssql' | 'json'): Database;
|
|
16
|
+
static parse(str: RawDatabase, format: 'json'): Database;
|
|
16
17
|
parse(str: string, format: 'mysql' | 'postgres' | 'dbml' | 'dbmlv2' | 'schemarb' | 'mssql' | 'json'): Database;
|
|
18
|
+
parse(str: RawDatabase, format: 'json'): Database;
|
|
17
19
|
}
|
|
18
20
|
export default Parser;
|