@graphcommerce/next-config 11.0.0-canary.72 → 11.0.0-canary.73
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/CHANGELOG.md +2 -0
- package/dist/config/loadConfig.js +1 -1
- package/dist/index.js +5 -5
- package/dist/{loadConfig-CGJPuSxu.js → loadConfig-2Xv78Xly.js} +1 -1
- package/package.json +2 -2
- package/src/config/utils/mergeEnvIntoConfig.ts +1 -1
- package/src/utils/resolveDependenciesSync.ts +2 -2
- package/src/utils/sig.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ import 'node:module';
|
|
|
5
5
|
import 'node:path';
|
|
6
6
|
import 'node:worker_threads';
|
|
7
7
|
import '../generated/config.js';
|
|
8
|
-
export { l as loadConfig, r as replaceConfigInString } from '../loadConfig-
|
|
8
|
+
export { l as loadConfig, r as replaceConfigInString } from '../loadConfig-2Xv78Xly.js';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@apollo/client/utilities/internal';
|
|
11
11
|
import 'chalk';
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import path from 'path';
|
|
|
4
4
|
import { glob, sync } from 'glob';
|
|
5
5
|
import { findParentPath } from './utils/findParentPath.js';
|
|
6
6
|
import { spawn } from 'child_process';
|
|
7
|
-
import { l as loadConfig, t as toEnvStr } from './loadConfig-
|
|
8
|
-
export { r as replaceConfigInString } from './loadConfig-
|
|
7
|
+
import { l as loadConfig, t as toEnvStr } from './loadConfig-2Xv78Xly.js';
|
|
8
|
+
export { r as replaceConfigInString } from './loadConfig-2Xv78Xly.js';
|
|
9
9
|
import { parseFileSync, parseSync as parseSync$1, transformFileSync } from '@swc/core';
|
|
10
10
|
import fs$1, { readFileSync, writeFileSync, rmSync, mkdirSync, existsSync } from 'fs';
|
|
11
11
|
import { resolve as resolve$2 } from 'import-meta-resolve';
|
|
@@ -249,7 +249,7 @@ function sig() {
|
|
|
249
249
|
let decrypted = decipher.update(l.split(":")[1], "hex", "utf-8");
|
|
250
250
|
decrypted += decipher.final("utf-8");
|
|
251
251
|
globalThis.gcl = JSON.parse(decrypted);
|
|
252
|
-
} catch
|
|
252
|
+
} catch {
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
|
|
@@ -291,7 +291,7 @@ function resolveRecursivePackageJson(dependencyPath, dependencyStructure, root,
|
|
|
291
291
|
)
|
|
292
292
|
)
|
|
293
293
|
];
|
|
294
|
-
const optionalPeerDependencies = Object.entries(packageJson.peerDependenciesMeta ?? {}).filter(([
|
|
294
|
+
const optionalPeerDependencies = Object.entries(packageJson.peerDependenciesMeta ?? {}).filter(([, v]) => v?.optional).map(([key]) => key);
|
|
295
295
|
const optionalDependencies = Object.keys(packageJson.optionalDependencies ?? {});
|
|
296
296
|
const optional = /* @__PURE__ */ new Set([...optionalPeerDependencies, ...optionalDependencies]);
|
|
297
297
|
const availableDependencies = dependencies.filter((dep) => {
|
|
@@ -299,7 +299,7 @@ function resolveRecursivePackageJson(dependencyPath, dependencyStructure, root,
|
|
|
299
299
|
try {
|
|
300
300
|
resolveRecursivePackageJson(dep, dependencyStructure, root);
|
|
301
301
|
return true;
|
|
302
|
-
} catch
|
|
302
|
+
} catch {
|
|
303
303
|
return false;
|
|
304
304
|
}
|
|
305
305
|
} else {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/next-config",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "11.0.0-canary.
|
|
5
|
+
"version": "11.0.0-canary.73",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@apollo/client": "*",
|
|
67
|
-
"@graphcommerce/prettier-config-pwa": "^11.0.0-canary.
|
|
67
|
+
"@graphcommerce/prettier-config-pwa": "^11.0.0-canary.73",
|
|
68
68
|
"@lingui/loader": "*",
|
|
69
69
|
"@lingui/react": "*",
|
|
70
70
|
"dotenv": "^18",
|
|
@@ -67,7 +67,7 @@ function resolveRecursivePackageJson(
|
|
|
67
67
|
]
|
|
68
68
|
|
|
69
69
|
const optionalPeerDependencies = Object.entries(packageJson.peerDependenciesMeta ?? {})
|
|
70
|
-
.filter(([
|
|
70
|
+
.filter(([, v]) => v?.optional)
|
|
71
71
|
.map(([key]) => key)
|
|
72
72
|
|
|
73
73
|
const optionalDependencies = Object.keys(packageJson.optionalDependencies ?? {})
|
|
@@ -78,7 +78,7 @@ function resolveRecursivePackageJson(
|
|
|
78
78
|
try {
|
|
79
79
|
resolveRecursivePackageJson(dep, dependencyStructure, root)
|
|
80
80
|
return true
|
|
81
|
-
} catch
|
|
81
|
+
} catch {
|
|
82
82
|
// Dependency is optional, so we don't care if it is not found.
|
|
83
83
|
return false
|
|
84
84
|
}
|
package/src/utils/sig.ts
CHANGED
|
@@ -31,7 +31,7 @@ export function sig() {
|
|
|
31
31
|
let decrypted = decipher.update(l.split(':')[1], 'hex', 'utf-8')
|
|
32
32
|
decrypted += decipher.final('utf-8')
|
|
33
33
|
globalThis.gcl = JSON.parse(decrypted) // Parse and return the decoded data
|
|
34
|
-
} catch
|
|
34
|
+
} catch {
|
|
35
35
|
// Silent
|
|
36
36
|
}
|
|
37
37
|
}
|