@octokit/webhooks
Advanced tools
Comparing version 11.0.0-beta.5 to 11.0.0-beta.6
@@ -196,3 +196,4 @@ 'use strict'; | ||
try { | ||
JSON.parse(data); // check if data is valid JSON | ||
// Call JSON.parse() only to check if the payload is valid JSON | ||
JSON.parse(data); | ||
resolve(data); | ||
@@ -199,0 +200,0 @@ } catch (error) { |
@@ -16,3 +16,4 @@ // @ts-ignore to address #245 | ||
try { | ||
JSON.parse(data); // check if data is valid JSON | ||
// Call JSON.parse() only to check if the payload is valid JSON | ||
JSON.parse(data); | ||
resolve(data); | ||
@@ -19,0 +20,0 @@ } |
@@ -448,3 +448,4 @@ import AggregateError from 'aggregate-error'; | ||
try { | ||
JSON.parse(data); // check if data is valid JSON | ||
// Call JSON.parse() only to check if the payload is valid JSON | ||
JSON.parse(data); | ||
resolve(data); | ||
@@ -451,0 +452,0 @@ } |
{ | ||
"name": "@octokit/webhooks", | ||
"description": "GitHub webhook events toolset for Node.js", | ||
"version": "11.0.0-beta.5", | ||
"version": "11.0.0-beta.6", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -702,2 +702,4 @@ # @octokit/webhooks | ||
**⚠️ Caution ⚠️**: Webhooks Types are expected to be used with the [`strictNullChecks` option](https://www.typescriptlang.org/tsconfig#strictNullChecks) enabled in your `tsconfig`. If you don't have this option enabled, there's the possibility that you get `never` as the inferred type in some use cases. See [octokit/webhooks#395](https://github.com/octokit/webhooks/issues/395) for details. | ||
### `EmitterWebhookEventName` | ||
@@ -704,0 +706,0 @@ |
Sorry, the diff of this file is not supported yet
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
193758
1660
716