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

@3846masa/linebot

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@3846masa/linebot - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

8

lib/LineBot/index.js

@@ -128,6 +128,6 @@ 'use strict';

const hmac = (0, _crypto.createHmac)('sha256', this.config.channelSecret);
hmac.update(body);
const calcResult = hmac.digest('base64');
return calcResult === signature;
const hmac = (0, _crypto.createHmac)('sha256', this.config.channelSecret).update(body).digest('base64');
const hmacHashed = (0, _crypto.createHash)('sha1').update(hmac).digest();
const signatureHashed = (0, _crypto.createHash)('sha1').update(signature).digest();
return hmacHashed.equals(signatureHashed);
}

@@ -134,0 +134,0 @@ /**

{
"name": "@3846masa/linebot",
"description": "LINE BOT API wrapper for Node.js",
"version": "0.2.0",
"version": "0.2.1",
"author": "3846masa <3846masahiro+git@gmail.com>",

@@ -6,0 +6,0 @@ "bugs": {

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