@dbml/core 3.7.2 → 3.7.3

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/README.md CHANGED
@@ -1,11 +1,12 @@
1
1
  # @dbml/core
2
2
 
3
- See our website [@dbml/core](https://dbml.dbdiagram.io/js-module/#core) for more information
3
+ See our website [@dbml/core](https://dbml.dbdiagram.io/js-module/core) for more information
4
4
 
5
5
  ## Installation
6
- ```shell
6
+
7
+ ```bash
7
8
  npm install @dbml/core
8
9
 
9
10
  # or if you're using yarn
10
11
  yarn add @dbml/core
11
- ```
12
+ ```
@@ -50,7 +50,7 @@ var Parser = /*#__PURE__*/function () {
50
50
  rawDatabase = Parser.parseDBMLToJSON(str);
51
51
  break;
52
52
  case 'dbmlv2':
53
- rawDatabase = Parser.parseDBMLToJSONv2(str, this.dbmlCompiler);
53
+ rawDatabase = Parser.parseDBMLToJSONv2(str, this.DBMLCompiler);
54
54
  break;
55
55
  case 'schemarb':
56
56
  rawDatabase = Parser.parseSchemaRbToJSON(str);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbml/core",
3
- "version": "3.7.2",
3
+ "version": "3.7.3",
4
4
  "description": "> TODO: description",
5
5
  "author": "Holistics <dev@holistics.io>",
6
6
  "license": "Apache-2.0",
@@ -32,8 +32,7 @@
32
32
  "prepublish": "npm run build"
33
33
  },
34
34
  "dependencies": {
35
- "@dbml/parse": "^3.7.2",
36
- "@tediousjs/connection-string": "^0.5.0",
35
+ "@dbml/parse": "^3.7.3",
37
36
  "antlr4": "^4.13.1",
38
37
  "lodash": "^4.17.15",
39
38
  "parsimmon": "^1.13.0",
@@ -60,7 +59,7 @@
60
59
  "\\.(?!json$)[^.]*$": "@glen/jest-raw-loader"
61
60
  }
62
61
  },
63
- "gitHead": "b616bcee47dbf0ffc924d10daa0b5836de002fc1",
62
+ "gitHead": "b9e7ed2421f83872b3319510155225a228d3e75e",
64
63
  "engines": {
65
64
  "node": ">=16"
66
65
  }
@@ -1,5 +1,11 @@
1
1
  declare function _import(str: string, format: 'dbml' | 'mysql' | 'postgres' | 'json' | 'mssql' | 'postgresLegacy'): string;
2
- declare function generateDbml(schemaJson: string): string;
2
+
3
+ /**
4
+ * @param {any} schemaJson
5
+ * @description Type of schemaJson is `DatabaseSchema`.
6
+ * The type definition of `DatabaseSchema` object can be found [here](https://github.com/holistics/dbml/blob/a4dcb110f1d79f5d95b0d3db4b919914439e039d/packages/dbml-connector/src/connectors/types.ts#L89)
7
+ */
8
+ declare function generateDbml(schemaJson: any): string;
3
9
  declare const _default: {
4
10
  import: typeof _import;
5
11
  generateDbml: typeof generateDbml;