@paypal/sdk-client
Advanced tools
Comparing version
{ | ||
"name": "@paypal/sdk-client", | ||
"version": "4.0.170", | ||
"version": "4.0.171-pwv", | ||
"description": "Shared config between PayPal/Braintree.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -65,3 +65,3 @@ /* @flow */ | ||
// eslint-disable-next-line security/detect-unsafe-regex | ||
return /\.paypal\.(com|cn)(:\d+)?$/; | ||
return /((\.paypal\.(com|cn))|(^([\w]*\.)*(venmo\.com)))(:\d+)?$/; | ||
} | ||
@@ -68,0 +68,0 @@ |
@@ -21,3 +21,3 @@ /* @flow */ | ||
import { getEnv, getVersion, getCorrelationID } from "./global"; | ||
import { getEnv, getVersion, getCorrelationID, getComponents } from "./global"; | ||
import { | ||
@@ -129,5 +129,8 @@ getPartnerAttributionID, | ||
.info(cache, { sdkLoadTime }) | ||
// $FlowFixMe beaver-logger types need to be updated | ||
.metric({ | ||
name: "pp.app.sdk.paypal_js_v5.sdk_load_time", | ||
dimensions: { ms: sdkLoadTime }, | ||
metricNamespace: "pp.app.sdk.paypal_js_v5.sdk_load_time.gauge", | ||
metricEventName: "unused", | ||
metricValue: sdkLoadTime, | ||
dimensions: { cacheType: cache, components: getComponents().join(",") }, | ||
}) | ||
@@ -134,0 +137,0 @@ .track({ |
@@ -5,2 +5,3 @@ /* @flow */ | ||
[string]: string | number | (() => string | (() => number)), | ||
__COMPONENTS__: $ReadOnlyArray<string>, | ||
|}; | ||
@@ -21,2 +22,3 @@ | ||
__PAYPAL_API_DOMAIN__: "mock://msmaster.qa.paypal.com", | ||
__COMPONENTS__: ["buttons"], | ||
}; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
80627
0.38%1920
0.26%2
100%1
Infinity%