c8osdkangular
Advanced tools
Comparing version 2.1.19 to 2.1.20
{ | ||
"name": "c8osdkangular", | ||
"version": "2.1.19", | ||
"version": "2.1.20", | ||
"description": "convertigo's service", | ||
@@ -5,0 +5,0 @@ "main": "bundle/index.umd.js", |
@@ -143,3 +143,11 @@ "use strict"; | ||
rep.cancel(); | ||
reject(err); | ||
if (err.code === "ETIMEDOUT" && err.status === 0) { | ||
reject("TIMEOUT"); | ||
} | ||
else if (err.name === "unknown" && err.status === 0 && err.message === "getCheckpoint rejected with ") { | ||
reject("NO_NETWORK"); | ||
} | ||
else { | ||
reject(err); | ||
} | ||
} | ||
@@ -156,2 +164,8 @@ }); | ||
} | ||
else if (err.code === "ETIMEDOUT" && err.status === 0) { | ||
reject("TIMEOUT"); | ||
} | ||
else if (err.name === "unknown" && err.status === 0 && err.message === "getCheckpoint rejected with ") { | ||
reject("NO_NETWORK"); | ||
} | ||
else { | ||
@@ -240,3 +254,11 @@ reject(err); | ||
rep.cancel(); | ||
reject(err); | ||
if (err.code === "ETIMEDOUT" && err.status === 0) { | ||
reject("TIMEOUT"); | ||
} | ||
else if (err.name === "unknown" && err.status === 0 && err.message === "getCheckpoint rejected with ") { | ||
reject("NO_NETWORK"); | ||
} | ||
else { | ||
reject(err); | ||
} | ||
} | ||
@@ -253,2 +275,8 @@ }); | ||
} | ||
else if (err.code === "ETIMEDOUT" && err.status === 0) { | ||
reject("TIMEOUT"); | ||
} | ||
else if (err.name === "unknown" && err.status === 0 && err.message === "getCheckpoint rejected with ") { | ||
reject("NO_NETWORK"); | ||
} | ||
else { | ||
@@ -255,0 +283,0 @@ reject(err); |
@@ -199,3 +199,11 @@ import {C8oResponseProgressListener, C8oResponseListener} from "./c8oResponse.service"; | ||
rep.cancel(); | ||
reject(err); | ||
if(err.code === "ETIMEDOUT" && err.status === 0){ | ||
reject("TIMEOUT"); | ||
} | ||
else if(err.name === "unknown" && err.status === 0 && err.message === "getCheckpoint rejected with "){ | ||
reject("NO_NETWORK"); | ||
} | ||
else{ | ||
reject(err); | ||
} | ||
} | ||
@@ -213,5 +221,12 @@ }); | ||
} else { | ||
reject(err); | ||
} | ||
else if(err.code === "ETIMEDOUT" && err.status === 0){ | ||
reject("TIMEOUT"); | ||
} | ||
else if(err.name === "unknown" && err.status === 0 && err.message === "getCheckpoint rejected with "){ | ||
reject("NO_NETWORK"); | ||
} | ||
else{ | ||
reject(err); | ||
} | ||
}); | ||
@@ -313,3 +328,11 @@ | ||
rep.cancel(); | ||
reject(err); | ||
if(err.code === "ETIMEDOUT" && err.status === 0){ | ||
reject("TIMEOUT"); | ||
} | ||
else if(err.name === "unknown" && err.status === 0 && err.message === "getCheckpoint rejected with "){ | ||
reject("NO_NETWORK"); | ||
} | ||
else{ | ||
reject(err); | ||
} | ||
} | ||
@@ -325,3 +348,10 @@ }); | ||
rep.cancel(); | ||
} else { | ||
} | ||
else if(err.code === "ETIMEDOUT" && err.status === 0){ | ||
reject("TIMEOUT"); | ||
} | ||
else if(err.name === "unknown" && err.status === 0 && err.message === "getCheckpoint rejected with "){ | ||
reject("NO_NETWORK"); | ||
} | ||
else{ | ||
reject(err); | ||
@@ -328,0 +358,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
683097
8483