@bagelink/sdk 0.0.1246 → 0.0.1252
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/bin/authClientCode.ts +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
- package/src/openAPITools/utils.ts +2 -0
package/bin/authClientCode.ts
CHANGED
|
@@ -18,7 +18,7 @@ ax.interceptors.request.use((config) => {
|
|
|
18
18
|
const resetToken = urlParams.get('token')
|
|
19
19
|
|
|
20
20
|
if (resetToken !== null && config.headers) {
|
|
21
|
-
config.headers.Authorization = `Bearer ${resetToken}
|
|
21
|
+
config.headers.Authorization = `Bearer ${resetToken}`
|
|
22
22
|
}
|
|
23
23
|
return config
|
|
24
24
|
})
|
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
|
@@ -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
|
}
|