@drzl/analyzer 1.4.0 → 1.5.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/dist/index.cjs CHANGED
@@ -386,7 +386,7 @@ var SchemaAnalyzer = class {
386
386
  const ev = col?.enumValues;
387
387
  const nullable = !col?.notNull && !col?.config?.notNull;
388
388
  const isGenerated = !!(col?.autoIncrement || col?.isGenerated);
389
- const hasDefault = col?.default !== void 0 || col?.config?.default !== void 0 || isGenerated;
389
+ const hasDefault = col?.hasDefault === true || col?.default !== void 0 || col?.config?.default !== void 0 || col?.defaultFn !== void 0 || isGenerated;
390
390
  const references = void 0;
391
391
  const isUnique = !!(col?.isUnique || col?.config?.isUnique);
392
392
  const isPk = !!(col?.primary || col?.config?.primaryKey);
@@ -503,7 +503,7 @@ var SchemaAnalyzer = class {
503
503
  let mod;
504
504
  try {
505
505
  const { default: jiti } = await import("jiti");
506
- const jit = jiti(import_meta.url);
506
+ const jit = jiti(import_meta.url, { moduleCache: false });
507
507
  mod = jit(full);
508
508
  } catch (e) {
509
509
  issues.push({
package/dist/index.js CHANGED
@@ -350,7 +350,7 @@ var SchemaAnalyzer = class {
350
350
  const ev = col?.enumValues;
351
351
  const nullable = !col?.notNull && !col?.config?.notNull;
352
352
  const isGenerated = !!(col?.autoIncrement || col?.isGenerated);
353
- const hasDefault = col?.default !== void 0 || col?.config?.default !== void 0 || isGenerated;
353
+ const hasDefault = col?.hasDefault === true || col?.default !== void 0 || col?.config?.default !== void 0 || col?.defaultFn !== void 0 || isGenerated;
354
354
  const references = void 0;
355
355
  const isUnique = !!(col?.isUnique || col?.config?.isUnique);
356
356
  const isPk = !!(col?.primary || col?.config?.primaryKey);
@@ -467,7 +467,7 @@ var SchemaAnalyzer = class {
467
467
  let mod;
468
468
  try {
469
469
  const { default: jiti } = await import("jiti");
470
- const jit = jiti(import.meta.url);
470
+ const jit = jiti(import.meta.url, { moduleCache: false });
471
471
  mod = jit(full);
472
472
  } catch (e) {
473
473
  issues.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drzl/analyzer",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",