aws-api-gateway-client
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -20,3 +20,5 @@ /* | ||
var axios = require('axios'); | ||
var CryptoJS = require('crypto-js'); | ||
var SHA256 = require('crypto-js/sha256'); | ||
var encHex = require('crypto-js/enc-hex'); | ||
var HmacSHA256 = require('crypto-js/hmac-sha256'); | ||
var urlParser = require('url'); | ||
@@ -35,11 +37,11 @@ | ||
function hash(value) { | ||
return CryptoJS.SHA256(value); | ||
return SHA256(value); | ||
} | ||
function hexEncode(value) { | ||
return value.toString(CryptoJS.enc.Hex); | ||
return value.toString(encHex); | ||
} | ||
function hmac(secret, value) { | ||
return CryptoJS.HmacSHA256(value, secret, {asBytes: true}); | ||
return HmacSHA256(value, secret, {asBytes: true}); | ||
} | ||
@@ -46,0 +48,0 @@ |
{ | ||
"name": "aws-api-gateway-client", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "A node.js moduel for AWS API Gateway client", | ||
@@ -5,0 +5,0 @@ "main": "apigClient.js", |
@@ -0,1 +1,3 @@ | ||
[![dependencies Status](https://david-dm.org/kndt84/aws-api-gateway-client/status.svg)](https://david-dm.org/kndt84/aws-api-gateway-client) | ||
# Overview | ||
@@ -2,0 +4,0 @@ Node.js module for AWS API gateway client based on auto-generated JavaScript SDK for browsers. In addition, this module generalizes endpoint specific methods. |
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
24544
482
83