@paypal/common-components
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@paypal/common-components", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "PayPal common components, for integrating checkout products.", | ||
@@ -12,4 +12,3 @@ "main": "index.js", | ||
"test": "npm run lint && npm run flow-typed && npm run flow && npm run karma", | ||
"webpack": "babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack --progress", | ||
"build": "npm run test && npm run webpack", | ||
"build": "npm run test", | ||
"release": "./scripts/publish.sh", | ||
@@ -16,0 +15,0 @@ "release:patch": "./scripts/publish.sh patch", |
@@ -7,3 +7,3 @@ /* @flow */ | ||
import { create, type ZoidComponent } from 'zoid/src'; | ||
import { inlineMemoize } from 'belter/src'; | ||
import { inlineMemoize, noop } from 'belter/src'; | ||
import { getSDKMeta, getClientID } from '@paypal/sdk-client/src'; | ||
@@ -35,3 +35,3 @@ import { ZalgoPromise } from 'zalgo-promise/src'; | ||
return inlineMemoize(getThreeDomainSecureComponent, () => { | ||
return create({ | ||
const component = create({ | ||
tag: 'three-domain-secure', | ||
@@ -113,3 +113,12 @@ url: getThreeDomainSecureUrl, | ||
}); | ||
if (component.isChild()) { | ||
window.xchild = { | ||
props: component.xprops, | ||
close: noop | ||
}; | ||
} | ||
return component; | ||
}); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
717
38986
16