@samet-it/be-couchbase-common 1.0.13 → 1.0.14
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.
|
@@ -122,14 +122,14 @@ let CbAdapterService = class CbAdapterService {
|
|
|
122
122
|
var _a;
|
|
123
123
|
switch (typeof value) {
|
|
124
124
|
case "string":
|
|
125
|
-
return `"${value}"`;
|
|
125
|
+
return `"${JSON.stringify(value)}"`;
|
|
126
126
|
case "number":
|
|
127
127
|
return `${value}`;
|
|
128
128
|
case "boolean":
|
|
129
129
|
return value ? `true` : 'false';
|
|
130
130
|
case "object":
|
|
131
131
|
if (value) {
|
|
132
|
-
return common_2.$dev.secureJson(value);
|
|
132
|
+
return common_2.$dev.secureJson(value, true);
|
|
133
133
|
}
|
|
134
134
|
else {
|
|
135
135
|
return 'null';
|
|
@@ -137,9 +137,9 @@ let CbAdapterService = class CbAdapterService {
|
|
|
137
137
|
case "bigint":
|
|
138
138
|
return `"${value.toString(10)}"`;
|
|
139
139
|
case "symbol":
|
|
140
|
-
return `"${value.description}"`;
|
|
140
|
+
return `"${JSON.stringify(value.description)}"`;
|
|
141
141
|
case "function":
|
|
142
|
-
return `"${(_a = value.name) !== null && _a !== void 0 ? _a : '~fn~'}[${value.length}]()"`;
|
|
142
|
+
return `"${JSON.stringify((_a = value.name) !== null && _a !== void 0 ? _a : '~fn~')}[${value.length}]()"`;
|
|
143
143
|
}
|
|
144
144
|
return 'null';
|
|
145
145
|
}
|