@graphcommerce/next-config 9.0.3 → 9.0.4-canary.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.
@@ -499,7 +499,7 @@ export class Visitor {
499
499
  return this.visitExpressionStatement(stmt)
500
500
 
501
501
  default:
502
- throw new Error(`Unknown statement type: ${(stmt as any).type}`)
502
+ throw new Error(`Unknown statement type: ${(stmt as { type: string }).type}`)
503
503
  }
504
504
  }
505
505
 
@@ -1,5 +1,5 @@
1
- import type { ExportAllDeclaration } from '@swc/core'
2
1
  import path from 'path'
2
+ import type { ExportAllDeclaration } from '@swc/core'
3
3
  import type { ResolveDependency, ResolveDependencyReturn } from '../utils/resolveDependency'
4
4
  import type { PluginConfig } from './generateInterceptor'
5
5
  import { parseSync } from './swc'
@@ -1,7 +1,7 @@
1
1
  // eslint-disable-next-line import/no-extraneous-dependencies
2
- import { sync as globSync } from 'glob'
3
2
  import fs from 'node:fs/promises'
4
3
  import path from 'path'
4
+ import { sync as globSync } from 'glob'
5
5
  import { resolveDependenciesSync } from '../utils/resolveDependenciesSync'
6
6
  import type { GenerateInterceptorsReturn } from './generateInterceptors'
7
7
 
@@ -2,7 +2,7 @@ import fs from 'node:fs'
2
2
  import path from 'node:path'
3
3
  import type { PackageJson } from 'type-fest'
4
4
  import { PackagesSort } from './PackagesSort'
5
- import { g, sig } from './sig'
5
+ import { sig } from './sig'
6
6
 
7
7
  type PackageNames = Map<string, string>
8
8
  type DependencyStructure = Record<string, { dirName: string; dependencies: string[] }>
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const promises_1 = __importDefault(require("fs/promises"));
7
- // ... earlier code remains the same ...
8
- try {
9
- targetContent = await promises_1.default.readFile(targetPath);
10
- }
11
- catch (err) {
12
- if (err.code !== 'ENOENT')
13
- throw err;
14
- // File doesn't exist, log that we're creating it
15
- console.log(`Creating new file: ${file}`);
16
- }
17
- // Skip if content is identical
18
- if (targetContent && Buffer.compare(sourceContent, targetContent) === 0)
19
- return;
20
- // ... rest of the code remains the same ...