@bagelink/sdk 0.0.1244 → 0.0.1248

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
@@ -78,6 +78,8 @@ function formatVarType({
78
78
  if (defaultValue) {
79
79
  if (typeof defaultValue === "string") {
80
80
  defaultStr = ` = '${defaultValue}'`;
81
+ } else if (typeof defaultValue === "object") {
82
+ defaultStr = ` = ${JSON.stringify(defaultValue)}`;
81
83
  } else {
82
84
  defaultStr = ` = ${defaultValue}`;
83
85
  }
package/dist/index.mjs CHANGED
@@ -72,6 +72,8 @@ function formatVarType({
72
72
  if (defaultValue) {
73
73
  if (typeof defaultValue === "string") {
74
74
  defaultStr = ` = '${defaultValue}'`;
75
+ } else if (typeof defaultValue === "object") {
76
+ defaultStr = ` = ${JSON.stringify(defaultValue)}`;
75
77
  } else {
76
78
  defaultStr = ` = ${defaultValue}`;
77
79
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/sdk",
3
3
  "type": "module",
4
- "version": "0.0.1244",
4
+ "version": "0.0.1248",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -106,6 +106,8 @@ export function formatVarType({
106
106
  if (defaultValue) {
107
107
  if (typeof defaultValue === 'string') {
108
108
  defaultStr = ` = '${defaultValue}'`
109
+ } else if (typeof defaultValue === 'object') {
110
+ defaultStr = ` = ${JSON.stringify(defaultValue)}`
109
111
  } else {
110
112
  defaultStr = ` = ${defaultValue}`
111
113
  }