@vepler/http-sdk
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -8,4 +8,4 @@ interface SDKConfig { | ||
} | ||
export declare const initializeSDK: (config: SDKConfig, env?: 'production' | 'development') => void; | ||
export declare const initializeSDK: (config?: SDKConfig, env?: 'production' | 'development') => void; | ||
export declare const getApiInstance: (service: string) => any; | ||
export {}; |
@@ -42,2 +42,3 @@ "use strict"; | ||
var initializeSDK = function (config, env) { | ||
if (config === void 0) { config = defaultConfig.production; } | ||
if (env === void 0) { env = 'production'; } | ||
@@ -44,0 +45,0 @@ var environmentConfig = defaultConfig[env]; |
{ | ||
"name": "@vepler/http-sdk", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "The Official Propbar HTTP SDK.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -36,3 +36,3 @@ // config.ts | ||
export const initializeSDK = (config: SDKConfig, env: 'production' | 'development' = 'production') => { | ||
export const initializeSDK = (config: SDKConfig = defaultConfig.production, env: 'production' | 'development' = 'production') => { | ||
const environmentConfig = defaultConfig[env]; | ||
@@ -39,0 +39,0 @@ |
Sorry, the diff of this file is not supported yet
36686
683