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

@paypal/paypal-js

Package Overview
Dependencies
Maintainers
23
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paypal/paypal-js - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/paypal.browser.js
/*!
* paypal-js v1.0.0 (2020-08-17T22:06:44.749Z)
* paypal-js v1.0.0 (2020-09-01T19:29:55.825Z)
* Copyright 2020-present, PayPal, Inc. All rights reserved.

@@ -4,0 +4,0 @@ *

/*!
* paypal-js v1.0.0 (2020-08-17T22:06:44.749Z)
* paypal-js v1.0.0 (2020-09-01T19:29:55.825Z)
* Copyright 2020-present, PayPal, Inc. All rights reserved.

@@ -4,0 +4,0 @@ *

/*!
* paypal-js v1.0.0 (2020-08-17T22:06:44.749Z)
* paypal-js v1.0.0 (2020-09-01T19:29:55.825Z)
* Copyright 2020-present, PayPal, Inc. All rights reserved.

@@ -4,0 +4,0 @@ *

/*!
* paypal-js v1.0.0 (2020-08-17T22:06:44.749Z)
* paypal-js v1.0.0 (2020-09-01T19:29:55.825Z)
* Copyright 2020-present, PayPal, Inc. All rights reserved.

@@ -4,0 +4,0 @@ *

{
"name": "@paypal/paypal-js",
"version": "1.0.0",
"description": "Async loader for the JS SDK",
"version": "1.0.1",
"description": "Async loader for the PayPal JS SDK",
"main": "dist/paypal.node.js",

@@ -10,3 +10,6 @@ "module": "dist/paypal.esm.js",

"lint": "eslint .",
"prepublishOnly2": "npm run lint && npm test && npm run build && npm run test:bundle && npm run test:e2e",
"release": "node ./scripts/publish",
"release:patch": "node ./scripts/publish patch",
"release:minor": "node ./scripts/publish minor",
"release:major": "node ./scripts/publish major",
"test": "jest --env=jsdom src",

@@ -20,2 +23,8 @@ "test:bundle": "jest --env=jsdom e2e-tests/bundle/**",

],
"keywords": [
"paypal",
"async",
"script",
"loader"
],
"license": "Apache-2.0",

@@ -43,3 +52,4 @@ "repository": {

"rollup-plugin-filesize": "^9.0.2",
"rollup-plugin-terser": "^7.0.0"
"rollup-plugin-terser": "^7.0.0",
"shelljs": "^0.8.4"
},

@@ -46,0 +56,0 @@ "dependencies": {

# PayPal JS
An async loader for the PayPal JS SDK.
An async loader for the [PayPal JS SDK](https://developer.paypal.com/docs/checkout/).
<a href="https://www.npmjs.com/package/@paypal/paypal-js"><img src="https://img.shields.io/npm/v/@paypal/paypal-js?style=flat-square" alt="npm version"></a>
<a href="https://github.com/paypal/paypal-js/blob/main/LICENSE.txt"><img src="https://img.shields.io/npm/l/@paypal/paypal-js?style=flat-square" alt="github license"></a>
<a href="https://travis-ci.com/github/paypal/paypal-js"><img src="https://img.shields.io/travis/com/paypal/paypal-js/main.svg?style=flat-square" alt="travis build"></a>
<a href="https://david-dm.org/paypal/paypal-js"><img src="https://img.shields.io/david/paypal/paypal-js?style=flat-square" alt="dependencies"></a>
<a href="https://david-dm.org/paypal/paypal-js?type=dev"><img src="https://img.shields.io/david/dev/paypal/paypal-js?style=flat-square" alt="dev dependencies"></a>
## Installation

@@ -64,1 +70,44 @@

View the [full list of supported script parameters](https://developer.paypal.com/docs/checkout/reference/customize-sdk/#script-parameters).
### Using a CDN
The paypal-js script is also available on the [unpkg CDN](https://unpkg.com/). The paypal.browser.js build assigns the `loadScript` function to the window object as `window.paypalLoadScript`. Here's an example:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://unpkg.com/@paypal/paypal-js/dist/paypal.browser.min.js"></script>
</head>
<body>
<div id="paypal-buttons"></div>
<script>
window.paypalLoadScript({ 'client-id': 'sb' })
.then(paypal => {
paypal.Buttons().render('#paypal-buttons');
});
</script>
</body>
</html>
```
Note that the above CDN location points to the latest release of paypal-js. It is advised that when you deploy your site, you import the specific version you have developed and tested with (ex: https://unpkg.com/@paypal/paypal-js@1.0.0/dist/paypal.browser.min.js).
### Browser Support
This library supports all popular browsers, including IE 11. It provides the same browser support as the JS SDK. Here's the [full list of supported browsers](https://developer.paypal.com/docs/checkout/troubleshoot/support/#supported-browsers).
## Releasing
Run one of the following commands to publish a new version to npm:
```bash
# bug fixes
npm run release:patch
# new functionality that's backwards compatible
npm run release:minor
# breaking changes
npm run release:major
```
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