Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@paypal/connect-loader-component
Advanced tools
Provides a static asset loader to fetch the latest PayPal Accelerated-Checkout components.
This version (1.x.x) loads AXO SDK v0.6 (boba).
npm install -S @paypal/connect-loader-component
The minified
accelerated-checkout-loader is available for most uses; in addition, an unminified
accelerated-checkout-loader is available for development or testing.
Minified
Serves the minified version of the AXO script.
import { loadAxo } from "@paypal/connect-loader-component";
loadAxo({ minified: true })
.then(() => {
console.log("minified script loaded");
return;
})
.catch((err) => {
console.log("There was an error: ", err);
});
If no options are passed, the minified script is served by default
import { loadAxo } from "@paypal/connect-loader-component";
loadAxo()
.then(() => {
console.log("minified script loaded");
return;
})
.catch((err) => {
console.log("There was an error: ", err);
});
Unminified
Serves the unminified version of the AXO script.
import { loadAxo } from "@paypal/connect-loader-component";
loadAxo({ minified: false })
.then(() => {
console.log("script loaded");
return;
})
.catch((err) => {
console.log("There was an error: ", err);
});
In order to test our accelerated checkout loader, we'll need to install braintree.js repo locally, which creates the final connect.js build for us to be consumed by accelerated checkout.
Run npm link
in the accelerated-checkout-loader
folder, then in the braintree repo, install node_modules and then npm run build
. This should create a connect.js
file under dist/hosted/web/{VERSION}
, which should include your loader changes.
Now you can either stage it using web stage or just store it locally to be replaced whereever you were originally calling the connect file.
FAQs
Loads AXO script
The npm package @paypal/connect-loader-component receives a total of 22 weekly downloads. As such, @paypal/connect-loader-component popularity was classified as not popular.
We found that @paypal/connect-loader-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 23 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.