@bagelink/sdk 0.0.1016 → 0.0.1020

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
@@ -208,14 +208,7 @@ function fileTemplate(tsString, typeForImport, baseURL) {
208
208
  import type { AxiosResponse } from 'axios';
209
209
  import type {${typeForImport.join(", ")}} from './types.d';
210
210
 
211
- function paramsSerializer(params: { [key: string]: any }) {
212
- return Object.entries(params)
213
- .flatMap(([key, value]) => [value]
214
- .flat()
215
- .map(v => \`\${encodeURIComponent(key)}=\${encodeURIComponent(v)}\`))
216
- .join('&')
217
- }
218
- export const axios = ax.create({baseURL:${baseURL}, paramsSerializer});
211
+ export const axios = ax.create({baseURL:${baseURL}});
219
212
  ${tsString}`;
220
213
  const doubleQuoteRegex = /"([^"]+)":/g;
221
214
  return templateCode.replace(doubleQuoteRegex, "$1:");
package/dist/index.mjs CHANGED
@@ -202,14 +202,7 @@ function fileTemplate(tsString, typeForImport, baseURL) {
202
202
  import type { AxiosResponse } from 'axios';
203
203
  import type {${typeForImport.join(", ")}} from './types.d';
204
204
 
205
- function paramsSerializer(params: { [key: string]: any }) {
206
- return Object.entries(params)
207
- .flatMap(([key, value]) => [value]
208
- .flat()
209
- .map(v => \`\${encodeURIComponent(key)}=\${encodeURIComponent(v)}\`))
210
- .join('&')
211
- }
212
- export const axios = ax.create({baseURL:${baseURL}, paramsSerializer});
205
+ export const axios = ax.create({baseURL:${baseURL}});
213
206
  ${tsString}`;
214
207
  const doubleQuoteRegex = /"([^"]+)":/g;
215
208
  return templateCode.replace(doubleQuoteRegex, "$1:");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/sdk",
3
3
  "type": "module",
4
- "version": "0.0.1016",
4
+ "version": "0.0.1020",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -179,14 +179,7 @@ function fileTemplate(tsString: string, typeForImport: string[], baseURL: string
179
179
  import type { AxiosResponse } from 'axios';
180
180
  import type {${typeForImport.join(', ')}} from './types.d';
181
181
 
182
- function paramsSerializer(params: { [key: string]: any }) {
183
- return Object.entries(params)
184
- .flatMap(([key, value]) => [value]
185
- .flat()
186
- .map(v => \`\${encodeURIComponent(key)}=\${encodeURIComponent(v)}\`))
187
- .join('&')
188
- }
189
- export const axios = ax.create({baseURL:${baseURL}, paramsSerializer});
182
+ export const axios = ax.create({baseURL:${baseURL}});
190
183
  ${tsString}`
191
184
  )
192
185
  const doubleQuoteRegex = /"([^"]+)":/g