rado 0.1.20 → 0.1.22

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.
@@ -170,7 +170,7 @@ var Formatter = class {
170
170
  column.defaultValue,
171
171
  () => raw("DEFAULT").addParenthesis(
172
172
  this.formatExpr(column.defaultValue, {
173
- formatAsJson: false,
173
+ formatAsJson: true,
174
174
  forceInline: true
175
175
  })
176
176
  )
@@ -213,7 +213,7 @@ var Formatter = class {
213
213
  const isOptional = column.nullable || column.autoIncrement || column.primaryKey;
214
214
  if (isNull) {
215
215
  if (column.defaultValue !== void 0)
216
- return this.formatExpr(column.defaultValue, {});
216
+ return this.formatExpr(column.defaultValue, { formatAsJson: true });
217
217
  if (!isOptional)
218
218
  throw new TypeError(`Expected value for column ${column.name}`);
219
219
  return raw("NULL");
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "rado",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./dist/index.js",
8
- "./sqlite": "./dist/sqlite/index.js",
9
8
  "./*": "./dist/*.js"
10
9
  },
11
10
  "files": [