Skip to content

Commit

Permalink
Update version to 2.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cdottori-stark committed Nov 5, 2021
1 parent 020f0be commit a410d1c
Show file tree
Hide file tree
Showing 5 changed files with 1,261 additions and 534 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Given a version number MAJOR.MINOR.PATCH, increment:


## [Unreleased]

## [2.9.1] - 2021-11-04
### Changed
- starkbank-ecdsa library version to 1.1.3

Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1666,16 +1666,15 @@ the event.
const starkbank = require('starkbank');
const express = require('express')
const app = express()
const bodyParser = require('body-parser')
app.use(bodyParser.text({type: '*/*'}));

app.use(express.json())
app.use(express.raw({type: "*/*"}));

const port = 3000
app.post('/', async (req, res) => {
try {
let event = await starkbank.event.parse({
content: req.body,
signature: req.headers['Digital-Signature']
content: req.body.toString(),
signature: req.headers['digital-signature']
});
if (event.subscription === 'transfer') {
console.log(event.log.transfer);
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
exports.version = '2.9.0';
exports.version = '2.9.1';

exports.cache = {};
exports.user = null
Expand Down
Loading

0 comments on commit a410d1c

Please sign in to comment.