@dintero/checkout-web-sdk
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -0,4 +1,11 @@ | ||
## [0.0.16] | ||
### Changed | ||
- Changed build tool from microbundle to preconstruct, should fix exported types, updated/fixed documentation | ||
## [0.0.15] | ||
### Changed | ||
- Added `lockSession` and `refreshSession` functions | ||
@@ -10,5 +17,5 @@ | ||
- Added `onSessionLocked` and `onSessionLockFailed` callbacks | ||
- Bumped dev dependencies to fix security issues with some of the | ||
dev dependencies | ||
- Added `onSessionLocked` and `onSessionLockFailed` callbacks | ||
- Bumped dev dependencies to fix security issues with some of the | ||
dev dependencies | ||
@@ -15,0 +22,0 @@ ## [0.0.13] |
{ | ||
"name": "@dintero/checkout-web-sdk", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Dintero Checkout SDK for web frontends", | ||
"source": "src/dintero-checkout-web-sdk.ts", | ||
"browser": "dist/checkout-web-sdk.js", | ||
"module": "dist/checkout-web-sdk.js.mjs", | ||
"unpkg": "dist/checkout-web-sdk.umd.js", | ||
"types": "dist/src/dintero-checkout-web-sdk.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "dist/dintero-checkout-web-sdk.cjs.js", | ||
"module": "dist/dintero-checkout-web-sdk.esm.js", | ||
"umd:main": "dist/dintero-checkout-web-sdk.umd.min.js", | ||
"unpkg": "dist/dintero-checkout-web-sdk.umd.min.js", | ||
"types": "dist/dintero-checkout-web-sdk.cjs.d.ts", | ||
"preconstruct": { | ||
"umdName": "dintero" | ||
}, | ||
"scripts": { | ||
"build": "microbundle --name dintero --external-native-promise-only --tsconfig tsconfig.json", | ||
"dev": "microbundle watch --tsconfig tsconfig.json", | ||
"build": "preconstruct build", | ||
"test": "karma start" | ||
@@ -30,2 +29,5 @@ }, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.14.1", | ||
"@babel/preset-typescript": "^7.13.0", | ||
"@preconstruct/cli": "^2.1.0", | ||
"chai": "^4.2.0", | ||
@@ -37,5 +39,3 @@ "karma": "^5.1.1", | ||
"karma-typescript": "^5.0.3", | ||
"microbundle": "^0.12.3", | ||
"mocha": "^8.1.1", | ||
"native-promise-only": "^0.8.1", | ||
"prettier": "^1.19.1", | ||
@@ -45,4 +45,7 @@ "puppeteer": "^2.1.0", | ||
"sinon": "^8.1.1", | ||
"typescript": "^3.7.5" | ||
"typescript": "^4.2.4" | ||
}, | ||
"dependencies": { | ||
"native-promise-only": "^0.8.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# Dintero Checkout JavaScript SDK for frontend applications | ||
# Dintero Checkout JavaScript SDK for frontend applications [![Actions Status](https://github.com/Dintero/Dintero.Checkout.Web.SDK/workflows/CI/badge.svg?branch=master)](https://github.com/Dintero/Dintero.Checkout.Web.SDK/actions?query=branch%3Amaster+workflow%3ACI+) | ||
@@ -33,3 +33,3 @@ Use this SDK in your frontend application to | ||
``` | ||
<script src="https://unpkg.com/@dintero/checkout-web-sdk@0.0.15/dist/checkout-web-sdk.umd.js" integrity="sha384-gK00EjapsB3XDSBcfZCytvn/3dISQtNuPAnHQliWpgjmgz+o7jQzhHDlVYWt3don"></script> | ||
<script src="https://unpkg.com/@dintero/checkout-web-sdk@0.0.16/dist/dintero-checkout-web-sdk.umd.min.js" integrity="sha384-wSx8c2gSK0ipbhUEBTagUYLolGfrRERsuoyLDq92oWvrhFqnujApIeJ7+z6nvOfl"></script> | ||
``` | ||
@@ -102,3 +102,3 @@ | ||
import { | ||
dintero, | ||
embed, | ||
SessionLoaded, | ||
@@ -113,3 +113,3 @@ SessionUpdated, | ||
const checkout = await dintero.embed({ | ||
const checkout = await embed({ | ||
container, | ||
@@ -153,3 +153,3 @@ sid: "T11223344.<short-uuid>", | ||
Call lockSession on the checkout object: | ||
Call lockSession on the checkout object: | ||
@@ -171,3 +171,3 @@ ```js | ||
After updating the session, call refreshSession on the checkout object: | ||
After updating the session, call refreshSession on the checkout object: | ||
@@ -180,3 +180,2 @@ ```js | ||
## Using the SDK for a redirect checkout | ||
@@ -187,5 +186,5 @@ | ||
```ts | ||
import { dintero } from "dintero-checkout-web-sdk"; | ||
import { redirect } from "dintero-checkout-web-sdk"; | ||
const checkout = dintero.redirect({ | ||
const checkout = redirect({ | ||
sid: "T11223344.<short-uuid>", | ||
@@ -221,3 +220,3 @@ }); | ||
1. Bump the package version in `package.json`. | ||
2. Regenerate integrity hash and update the unpgk install instructions in this file `shasum -b -a 384 dist/checkout-web-sdk.umd.js | awk '{ print $1 }' | xxd -r -p | base64 | sed "s/^/sha384-/g"` | ||
2. Regenerate integrity hash and update the unpgk install instructions in this file `shasum -b -a 384 dist/dintero-checkout-web-sdk.umd.min.js | awk '{ print $1 }' | xxd -r -p | base64 | sed "s/^/sha384-/g"` | ||
3. Update README.md with new version/sha | ||
@@ -224,0 +223,0 @@ 4. Publish new version to npm with `npm publish --access=public`. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
320259
36
2783
1
15
218
2
1
+ Addednative-promise-only@^0.8.1
+ Addednative-promise-only@0.8.1(transitive)