kinvey-node-sdk
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -6,2 +6,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var network_1 = require("kinvey-js-sdk/lib/errors/network"); | ||
var timeout_1 = require("kinvey-js-sdk/lib/errors/timeout"); | ||
var package_json_1 = require("../package.json"); | ||
@@ -61,3 +62,9 @@ function deviceInformation() { | ||
error_1 = _a.sent(); | ||
if (!error_1.response) { | ||
if (error_1.code === 'ESOCKETTIMEDOUT' | ||
|| error_1.code === 'ETIMEDOUT' | ||
|| error_1.code === 'ECONNABORTED') { | ||
throw new timeout_1.TimeoutError('The network request timed out.'); | ||
} | ||
if (error_1.code === 'ENOENT' | ||
|| !error_1.response) { | ||
throw new network_1.NetworkError(); | ||
@@ -64,0 +71,0 @@ } |
{ | ||
"name": "kinvey-node-sdk", | ||
"description": "Kinvey JavaScript SDK for NodeJS applications.", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"license": "Apache-2.0", | ||
@@ -32,3 +32,3 @@ "homepage": "https://github.com/Kinvey/js-sdk/tree/master/packages/node-sdk", | ||
"events": "3.0.0", | ||
"kinvey-js-sdk": "^4.1.0", | ||
"kinvey-js-sdk": "^4.2.0", | ||
"lodash": "4.17.11", | ||
@@ -35,0 +35,0 @@ "pubnub": "4.23.0", |
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
32472
356
Updatedkinvey-js-sdk@^4.2.0