Comparing version 7.0.0 to 8.0.0
@@ -8,2 +8,6 @@ Change Log | ||
## [8.0.0](https://github.com/AndrewBarba/apns2/releases/tag/7.0.0) | ||
1. Require Node.js v10 or higher | ||
## [7.0.0](https://github.com/AndrewBarba/apns2/releases/tag/7.0.0) | ||
@@ -10,0 +14,0 @@ |
@@ -12,3 +12,4 @@ const { URL } = require('url') | ||
HTTP2_HEADER_PATH, | ||
HTTP2_HEADER_STATUS | ||
HTTP2_HEADER_STATUS, | ||
NGHTTP2_CANCEL | ||
} = http2.constants | ||
@@ -125,3 +126,3 @@ | ||
// Cancel request after timeout | ||
req.setTimeout(this._timeout, () => req.rstWithCancel()) | ||
req.setTimeout(this._timeout, () => req.close(NGHTTP2_CANCEL)) | ||
@@ -128,0 +129,0 @@ // Response handling |
{ | ||
"name": "apns2", | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"description": "Node client for connecting to Apple's Push Notification Service using the new HTTP/2 protocol with JSON web tokens.", | ||
@@ -10,3 +10,3 @@ "author": "Andrew Barba <abarba.77@gmail.com>", | ||
"engines": { | ||
"node": ">=8.10.0" | ||
"node": ">=10.16.0" | ||
}, | ||
@@ -13,0 +13,0 @@ "repository": { |
@@ -10,3 +10,3 @@ APNS2 | ||
> Now uses the native `http2` module in Node.js v8.10 or later | ||
> Now uses the native `http2` module in Node.js v10.16 or later | ||
@@ -13,0 +13,0 @@ --- |
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
29923
817