Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paypal/sdk-client

Package Overview
Dependencies
Maintainers
4
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paypal/sdk-client - npm Package Compare versions

Comparing version 4.0.43 to 4.0.44

2

__sdk__.js

@@ -6,3 +6,3 @@ /* @flow */

'__paypal-braintree-client__': {
'__paypal-sdk-client__': {
entry: './src/interface',

@@ -9,0 +9,0 @@ setupHandler: 'setupClient',

{
"name": "@paypal/sdk-client",
"version": "4.0.43",
"version": "4.0.44",
"description": "Shared config between PayPal/Braintree.",

@@ -43,3 +43,3 @@ "main": "index.js",

"type": "git",
"url": "git://github.com/paypal-paypal-braintree-sdk-client.git"
"url": "git://github.com/paypal/paypal-sdk-client.git"
},

@@ -57,2 +57,3 @@ "keywords": [

"dependencies": {
"@paypal/sdk-constants": "^1.0.12",
"beaver-logger": "^4.0.0",

@@ -62,3 +63,2 @@ "belter": "^1.0.16",

"jsx-pragmatic": "^1.0.11",
"paypal-sdk-constants": "^1.0.12",
"zalgo-promise": "^1.0.22"

@@ -65,0 +65,0 @@ },

@@ -104,3 +104,3 @@ PayPal SDK Client

```bash
npm install --save paypal-braintree-sdk-client
npm install --save @paypal/sdk-client
```

@@ -107,0 +107,0 @@

@@ -8,3 +8,3 @@ "use strict";

var _paypalSdkConstants = require("paypal-sdk-constants");
var _sdkConstants = require("@paypal/sdk-constants");

@@ -38,3 +38,3 @@ var _jsxPragmatic = require("jsx-pragmatic");

if (pathname !== _paypalSdkConstants.SDK_PATH) {
if (pathname !== _sdkConstants.SDK_PATH) {
throw new Error(`Invalid path for sdk url: ${pathname || 'undefined'}`);

@@ -46,3 +46,3 @@ } // $FlowFixMe

// $FlowFixMe
if (!(0, _util.constHas)(_paypalSdkConstants.SDK_QUERY_KEYS, key)) {
if (!(0, _util.constHas)(_sdkConstants.SDK_QUERY_KEYS, key)) {
throw new Error(`Unexpected query key for sdk url: ${key}`);

@@ -172,7 +172,7 @@ }

if (stageHost) {
attrs[_paypalSdkConstants.SDK_SETTINGS.STAGE_HOST] = stageHost;
attrs[_sdkConstants.SDK_SETTINGS.STAGE_HOST] = stageHost;
}
if (apiStageHost) {
attrs[_paypalSdkConstants.SDK_SETTINGS.API_STAGE_HOST] = apiStageHost;
attrs[_sdkConstants.SDK_SETTINGS.API_STAGE_HOST] = apiStageHost;
}

@@ -179,0 +179,0 @@

@@ -7,3 +7,3 @@ /* @flow */

import { SDK_PATH, SDK_QUERY_KEYS, SDK_SETTINGS } from 'paypal-sdk-constants';
import { SDK_PATH, SDK_QUERY_KEYS, SDK_SETTINGS } from '@paypal/sdk-constants';
import { node, html } from 'jsx-pragmatic';

@@ -10,0 +10,0 @@

@@ -5,3 +5,3 @@ /* @flow */

import { inlineMemoize, request, base64encode } from 'belter/src';
import { FPTI_KEY, SDK_QUERY_KEYS } from 'paypal-sdk-constants/src';
import { FPTI_KEY, SDK_QUERY_KEYS } from '@paypal/sdk-constants/src';

@@ -8,0 +8,0 @@ import { getOrderAPIUrl, getAuthAPIUrl } from './config';

/* @flow */
import { ENV } from 'paypal-sdk-constants/src';
import { ENV } from '@paypal/sdk-constants/src';

@@ -5,0 +5,0 @@ declare var __HOST__ : string;

@@ -5,3 +5,3 @@ /* @flow */

import { experiment, type Experiment } from 'belter/src';
import { FPTI_KEY } from 'paypal-sdk-constants/src';
import { FPTI_KEY } from '@paypal/sdk-constants/src';

@@ -8,0 +8,0 @@ import { FPTI_STATE, FPTI_TRANSITION } from './constants';

/* @flow */
import { ENV } from 'paypal-sdk-constants/src';
import { ENV } from '@paypal/sdk-constants/src';

@@ -5,0 +5,0 @@ export function getHost() : string {

@@ -6,3 +6,3 @@ /* @flow */

import { ZalgoPromise } from 'zalgo-promise/src';
import { FPTI_KEY, FPTI_FEED, FPTI_DATA_SOURCE, FPTI_SDK_NAME, FPTI_USER_ACTION } from 'paypal-sdk-constants/src';
import { FPTI_KEY, FPTI_FEED, FPTI_DATA_SOURCE, FPTI_SDK_NAME, FPTI_USER_ACTION } from '@paypal/sdk-constants/src';

@@ -9,0 +9,0 @@ import { getPayPalLoggerUrl } from './config';

@@ -5,3 +5,3 @@ /* @flow */

import { COUNTRY, SDK_SETTINGS, SDK_QUERY_KEYS, INTENT, COMMIT, VAULT, CURRENCY, COUNTRY_LANGS,
DEFAULT_INTENT, DEFAULT_COMMIT, DEFAULT_CURRENCY, DEFAULT_VAULT, QUERY_BOOL, LANG, type LocaleType } from 'paypal-sdk-constants/src';
DEFAULT_INTENT, DEFAULT_COMMIT, DEFAULT_CURRENCY, DEFAULT_VAULT, QUERY_BOOL, LANG, type LocaleType } from '@paypal/sdk-constants/src';

@@ -8,0 +8,0 @@ import { getHost, getPath, getDefaultStageHost, getDefaultAPIStageHost } from './globals';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc