@slack/interactive-messages
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -28,2 +28,6 @@ 'use strict'; | ||
var _tsscmp = require('tsscmp'); | ||
var _tsscmp2 = _interopRequireDefault(_tsscmp); | ||
var _util = require('./util'); | ||
@@ -116,3 +120,3 @@ | ||
if (hash !== hmac.digest('hex')) { | ||
if (!(0, _tsscmp2.default)(hash, hmac.digest('hex'))) { | ||
debug('request signature is not valid'); | ||
@@ -175,3 +179,3 @@ var _error = new Error('Slack request signing verification failed'); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9odHRwLWhhbmRsZXIuanMiXSwibmFtZXMiOlsiY3JlYXRlSFRUUEhhbmRsZXIiLCJkZWJ1ZyIsImVycm9yQ29kZXMiLCJTSUdOQVRVUkVfVkVSSUZJQ0FUSU9OX0ZBSUxVUkUiLCJSRVFVRVNUX1RJTUVfRkFJTFVSRSIsImFkYXB0ZXIiLCJwb3dlcmVkQnkiLCJzZW5kUmVzcG9uc2UiLCJyZXMiLCJfc2VuZFJlc3BvbnNlIiwiZGlzcGF0Y2hSZXN1bHQiLCJzdGF0dXMiLCJjb250ZW50Iiwic3RhdHVzQ29kZSIsInNldEhlYWRlciIsImVuZCIsIkpTT04iLCJzdHJpbmdpZnkiLCJwYXJzZUJvZHkiLCJib2R5IiwicGFyc2VkQm9keSIsInF1ZXJ5c3RyaW5nIiwicGFyc2UiLCJwYXlsb2FkIiwidmVyaWZ5UmVxdWVzdFNpZ25hdHVyZSIsInNpZ25pbmdTZWNyZXQiLCJyZXF1ZXN0SGVhZGVycyIsInNpZ25hdHVyZSIsInRzIiwiZml2ZU1pbnV0ZXNBZ28iLCJNYXRoIiwiZmxvb3IiLCJEYXRlIiwibm93IiwiZXJyb3IiLCJFcnJvciIsImNvZGUiLCJobWFjIiwiY3J5cHRvIiwiY3JlYXRlSG1hYyIsInNwbGl0IiwidmVyc2lvbiIsImhh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1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGNvbnN0IGRpc3BhdGNoUmVzdWx0ID0gYWRhcHRlci5kaXNwYXRjaChib2R5KTtcblxuICAgICAgICAgIGlmIChkaXNwYXRjaFJlc3VsdCkge1xuICAgICAgICAgICAgZGlzcGF0Y2hSZXN1bHQudGhlbihyZXNwb25kKTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgLy8gTm8gY2FsbGJhY2sgd2FzIG1hdGNoZWRcbiAgICAgICAgICAgIGRlYnVnKCdubyBjYWxsYmFjayB3YXMgbWF0Y2hlZCcpO1xuICAgICAgICAgICAgcmVzcG9uZCh7IHN0YXR1czogNDA0IH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfSkuY2F0Y2goKGVycm9yKSA9PiB7XG4gICAgICAgIGlmIChlcnJvci5jb2RlID09PSBlcnJvckNvZGVzLlNJR05BVFVSRV9WRVJJRklDQVRJT05fRkFJTFVSRSB8fFxuICAgICAgICAgIGVycm9yLmNvZGUgPT09IGVycm9yQ29kZXMuUkVRVUVTVF9USU1FX0ZBSUxVUkUpIHtcbiAgICAgICAgICByZXNwb25kKHsgc3RhdHVzOiA0MDQgfSk7XG4gICAgICAgIH0gZWxzZSBpZiAocHJvY2Vzcy5lbnYuTk9ERV9FTlYgPT09ICdkZXZlbG9wbWVudCcpIHtcbiAgICAgICAgICByZXNwb25kKHsgc3RhdHVzOiA1MDAsIGNvbnRlbnQ6IGVycm9yLm1lc3NhZ2UgfSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgcmVzcG9uZCh7IHN0YXR1czogNTAwIH0pO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgfTtcbn1cbiJdfQ== | ||
//# sourceMappingURL=http-handler.js.map |
{ | ||
"name": "@slack/interactive-messages", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Slack Interactive Messages module", | ||
@@ -32,3 +32,4 @@ "main": "dist/index.js", | ||
"lodash.isstring": "^4.0.1", | ||
"raw-body": "^2.3.3" | ||
"raw-body": "^2.3.3", | ||
"tsscmp": "^1.0.6" | ||
}, | ||
@@ -35,0 +36,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
174308
1079
8
+ Addedtsscmp@^1.0.6
+ Addedtsscmp@1.0.6(transitive)