@graphcommerce/next-config 6.2.0-canary.18 → 6.2.0-canary.20
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.2.0-canary.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1928](https://github.com/graphcommerce-org/graphcommerce/pull/1928) [`09d6a7abd`](https://github.com/graphcommerce-org/graphcommerce/commit/09d6a7abdf44c04a37f59432e9fc0c0722e6df76) - Added number to config value formatter, so Graphcommerce config accepts number values. ([@mikekeehnen](https://github.com/mikekeehnen))
|
|
8
|
+
|
|
9
|
+
## 6.2.0-canary.19
|
|
10
|
+
|
|
3
11
|
## 6.2.0-canary.18
|
|
4
12
|
|
|
5
13
|
## 6.2.0-canary.17
|
|
@@ -10,6 +10,9 @@ const fmt = (value) => {
|
|
|
10
10
|
if (typeof formattedValue === 'object') {
|
|
11
11
|
formattedValue = JSON.stringify(formattedValue);
|
|
12
12
|
}
|
|
13
|
+
if (typeof formattedValue === 'number') {
|
|
14
|
+
formattedValue = String(formattedValue);
|
|
15
|
+
}
|
|
13
16
|
return formattedValue;
|
|
14
17
|
};
|
|
15
18
|
function exportConfigToEnv(config) {
|
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": "6.2.0-canary.
|
|
5
|
+
"version": "6.2.0-canary.20",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "src/index.ts",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GraphCommerceConfig } from '../../generated/config'
|
|
2
2
|
import { toEnvStr } from './mergeEnvIntoConfig'
|
|
3
3
|
|
|
4
|
-
const fmt = (value: string | boolean | object | null) => {
|
|
4
|
+
const fmt = (value: string | number | boolean | object | null) => {
|
|
5
5
|
let formattedValue = value
|
|
6
6
|
|
|
7
7
|
if (typeof formattedValue === 'boolean') {
|
|
@@ -11,6 +11,10 @@ const fmt = (value: string | boolean | object | null) => {
|
|
|
11
11
|
formattedValue = JSON.stringify(formattedValue)
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
if (typeof formattedValue === 'number') {
|
|
15
|
+
formattedValue = String(formattedValue)
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
return formattedValue
|
|
15
19
|
}
|
|
16
20
|
|