paypal-isomorphic-functions
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -7,2 +7,3 @@ import "./polyfills"; | ||
import * as Webhooks from './webhooks'; | ||
export { Orders, Oauth, BillingAgreements, Payments, Webhooks }; | ||
import * as Middleware from './middleware'; | ||
export { Orders, Oauth, BillingAgreements, Payments, Webhooks, Middleware, }; |
@@ -21,2 +21,4 @@ "use strict"; | ||
exports.Webhooks = Webhooks; | ||
const Middleware = __importStar(require("./middleware")); | ||
exports.Middleware = Middleware; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "paypal-isomorphic-functions", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Library of helpful paypal functions that can be run in a browser or server", | ||
@@ -17,2 +17,3 @@ "main": "./dist/index.js", | ||
"@types/btoa": "^1.2.3", | ||
"@types/express": "^4.17.2", | ||
"@types/node": "^13.1.7", | ||
@@ -19,0 +20,0 @@ "ts-loader": "^6.2.1", |
@@ -11,4 +11,15 @@ ## Intro | ||
### Usage | ||
``` | ||
import { Oauth, Orders } from 'paypal-isomorphic-functions'; | ||
let accessToken; | ||
Oauth.createAccessToken() | ||
.then(token => accessToken = token) | ||
.then(token => Orders.createOrder(accessToken)) | ||
.then(res => res.json()) | ||
.then(data => Orders.updateOrder(accessToken, data.id)) | ||
.then(data => document.getElementById('result').innerHTML = JSON.stringify(data)); | ||
# Client | ||
@@ -15,0 +26,0 @@ |
@@ -8,2 +8,3 @@ import "./polyfills"; | ||
import * as Webhooks from './webhooks'; | ||
import * as Middleware from './middleware'; | ||
@@ -15,3 +16,4 @@ export { | ||
Payments, | ||
Webhooks | ||
Webhooks, | ||
Middleware, | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
356943
60
1266
46
8