@dbml/core 3.4.2 → 3.4.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.
@@ -192,9 +192,9 @@ var DbmlExporter = /*#__PURE__*/function () {
192
192
  var tableSettingStr = _this.getTableSettings(table);
193
193
  var indexStr = '';
194
194
  if (!_lodash["default"].isEmpty(tableContent.indexContents)) {
195
- indexStr = "\nIndexes {\n".concat(tableContent.indexContents.map(function (indexLine) {
196
- return " ".concat(indexLine);
197
- }).join('\n'), "\n}");
195
+ indexStr = "\n Indexes {\n".concat(tableContent.indexContents.map(function (indexLine) {
196
+ return " ".concat(indexLine);
197
+ }).join('\n'), "\n }");
198
198
  }
199
199
  var tableNote = table.note ? " Note: ".concat(DbmlExporter.escapeNote(table.note), "\n") : '';
200
200
  var tableStr = "Table ".concat((0, _utils.shouldPrintSchema)(schema, model) ? "\"".concat(schema.name, "\".") : '', "\"").concat(table.name, "\"").concat(tableSettingStr, " {\n").concat(tableContent.fieldContents.map(function (line) {
@@ -29,12 +29,14 @@ var IndexColumn = /*#__PURE__*/function (_Element) {
29
29
  var _this;
30
30
  var type = _ref.type,
31
31
  value = _ref.value,
32
- index = _ref.index;
32
+ index = _ref.index,
33
+ token = _ref.token;
33
34
  _classCallCheck(this, IndexColumn);
34
35
  _this = _super.call(this);
35
36
  _this.type = type;
36
37
  _this.value = value;
37
38
  _this.index = index;
39
+ _this.token = token;
38
40
  _this.dbState = _this.index.dbState;
39
41
  _this.generateId();
40
42
  return _this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbml/core",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
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.4.2",
35
+ "@dbml/parse": "^3.4.3",
36
36
  "antlr4": "^4.13.1",
37
37
  "lodash": "^4.17.15",
38
38
  "parsimmon": "^1.13.0",
@@ -59,5 +59,5 @@
59
59
  "\\.(?!json$)[^.]*$": "@glen/jest-raw-loader"
60
60
  }
61
61
  },
62
- "gitHead": "69c7433c7460b9840f504bc0b1364acd48a066a9"
62
+ "gitHead": "57885a9d08f8b5bc33aa629432a6ecf8e839d71a"
63
63
  }