@paypal/sdk-client
Advanced tools
Comparing version
{ | ||
"name": "@paypal/sdk-client", | ||
"version": "4.0.89", | ||
"version": "4.0.90", | ||
"description": "Shared config between PayPal/Braintree.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -51,3 +51,3 @@ /* @flow */ | ||
export function getNamespace() : string { | ||
export function getDefaultNamespace() : string { | ||
return __NAMESPACE__; | ||
@@ -54,0 +54,0 @@ } |
@@ -7,3 +7,3 @@ /* @flow */ | ||
import { getHost, getPath, getDefaultStageHost, getDefaultAPIStageHost, getEnv } from './globals'; | ||
import { getHost, getPath, getDefaultStageHost, getDefaultAPIStageHost, getEnv, getDefaultNamespace } from './globals'; | ||
@@ -131,2 +131,6 @@ export const CLIENT_ID_ALIAS = { | ||
export function getNamespace() : string { | ||
return getSDKAttribute(SDK_SETTINGS.NAMESPACE) || getDefaultNamespace(); | ||
} | ||
export function getClientToken() : ?string { | ||
@@ -133,0 +137,0 @@ return getSDKAttribute(SDK_SETTINGS.CLIENT_TOKEN); |
@@ -5,3 +5,3 @@ /* @flow */ | ||
import { getNamespace } from './globals'; | ||
import { getNamespace } from './script'; | ||
@@ -8,0 +8,0 @@ function getSDKStorage() : Storage { |
@@ -5,4 +5,4 @@ /* @flow */ | ||
import { getNamespace, getVersion } from './globals'; | ||
import { getSDKScript } from './script'; | ||
import { getVersion } from './globals'; | ||
import { getSDKScript, getNamespace } from './script'; | ||
@@ -9,0 +9,0 @@ export type SetupComponent<T> = {| |
61267
0.24%1138
0.26%