@kitsy/cnos-next 1.5.1 → 1.6.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 +7 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -57,8 +57,14 @@ function withCnosNext(config = {}, options = {}) {
|
|
|
57
57
|
...baseConfig,
|
|
58
58
|
env: {
|
|
59
59
|
...baseConfig.env ?? {},
|
|
60
|
-
__CNOS_BROWSER_DATA__: JSON.stringify(browserData),
|
|
61
60
|
...publicEnv
|
|
61
|
+
},
|
|
62
|
+
compiler: {
|
|
63
|
+
...baseConfig.compiler ?? {},
|
|
64
|
+
define: {
|
|
65
|
+
...baseConfig.compiler?.define ?? {},
|
|
66
|
+
"globalThis.__CNOS_BROWSER_DATA__": JSON.stringify(browserData)
|
|
67
|
+
}
|
|
62
68
|
}
|
|
63
69
|
};
|
|
64
70
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,10 @@ import { CnosCreateOptions } from '@kitsy/cnos/configure';
|
|
|
2
2
|
|
|
3
3
|
interface NextConfigLike {
|
|
4
4
|
env?: Record<string, string>;
|
|
5
|
+
compiler?: {
|
|
6
|
+
define?: Record<string, string>;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
};
|
|
5
9
|
[key: string]: unknown;
|
|
6
10
|
}
|
|
7
11
|
interface NextConfigContextLike {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ import { CnosCreateOptions } from '@kitsy/cnos/configure';
|
|
|
2
2
|
|
|
3
3
|
interface NextConfigLike {
|
|
4
4
|
env?: Record<string, string>;
|
|
5
|
+
compiler?: {
|
|
6
|
+
define?: Record<string, string>;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
};
|
|
5
9
|
[key: string]: unknown;
|
|
6
10
|
}
|
|
7
11
|
interface NextConfigContextLike {
|
package/dist/index.js
CHANGED
|
@@ -32,8 +32,14 @@ function withCnosNext(config = {}, options = {}) {
|
|
|
32
32
|
...baseConfig,
|
|
33
33
|
env: {
|
|
34
34
|
...baseConfig.env ?? {},
|
|
35
|
-
__CNOS_BROWSER_DATA__: JSON.stringify(browserData),
|
|
36
35
|
...publicEnv
|
|
36
|
+
},
|
|
37
|
+
compiler: {
|
|
38
|
+
...baseConfig.compiler ?? {},
|
|
39
|
+
define: {
|
|
40
|
+
...baseConfig.compiler?.define ?? {},
|
|
41
|
+
"globalThis.__CNOS_BROWSER_DATA__": JSON.stringify(browserData)
|
|
42
|
+
}
|
|
37
43
|
}
|
|
38
44
|
};
|
|
39
45
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitsy/cnos-next",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Next.js integration for CNOS public config injection.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@kitsy/cnos": "1.
|
|
38
|
+
"@kitsy/cnos": "1.6.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"next": ">=14"
|