c8osdkjscore
Advanced tools
Comparing version 1.0.3 to 1.0.4-beta1
{ | ||
"name": "c8osdkjscore", | ||
"version": "1.0.3", | ||
"version": "1.0.4-beta1", | ||
"description": "convertigo's sdk js core", | ||
@@ -5,0 +5,0 @@ "main": "bundle/index.umd.js", |
@@ -229,3 +229,3 @@ "use strict"; | ||
var regex = C8oCore.RE_REQUESTABLE.exec(requestable); | ||
if (regex[0] === null || regex === undefined) { | ||
if (regex === null || regex === undefined) { | ||
throw new c8oException_1.C8oException(c8oExceptionMessage_1.C8oExceptionMessage.InvalidArgumentInvalidEndpoint(this._endpoint)); | ||
@@ -232,0 +232,0 @@ } |
@@ -369,3 +369,3 @@ import {C8oBase} from "./c8oBase"; | ||
const regex = C8oCore.RE_REQUESTABLE.exec(requestable); | ||
if (regex[0] === null || regex === undefined) { | ||
if (regex === null || regex === undefined) { | ||
//noinspection ExceptionCaughtLocallyJS | ||
@@ -372,0 +372,0 @@ throw new C8oException(C8oExceptionMessage.InvalidArgumentInvalidEndpoint(this._endpoint)); |
@@ -8,2 +8,4 @@ export declare class C8oException extends Error { | ||
readonly cause: Error; | ||
toJSON(): {}; | ||
toString(): {}; | ||
} |
@@ -39,2 +39,16 @@ "use strict"; | ||
}); | ||
C8oException.prototype.toJSON = function () { | ||
var alt = {}; | ||
Object.getOwnPropertyNames(this).forEach(function (key) { | ||
alt[key] = this[key]; | ||
}, this); | ||
return alt; | ||
}; | ||
C8oException.prototype.toString = function () { | ||
var alt = {}; | ||
Object.getOwnPropertyNames(this).forEach(function (key) { | ||
alt[key] = this[key]; | ||
}, this); | ||
return alt; | ||
}; | ||
return C8oException; | ||
@@ -41,0 +55,0 @@ }(Error)); |
@@ -31,2 +31,18 @@ /** | ||
} | ||
public toJSON(){ | ||
var alt = {}; | ||
Object.getOwnPropertyNames(this).forEach(function (key) { | ||
alt[key] = this[key]; | ||
}, this); | ||
return alt; | ||
} | ||
public toString(){ | ||
var alt = {}; | ||
Object.getOwnPropertyNames(this).forEach(function (key) { | ||
alt[key] = this[key]; | ||
}, this); | ||
return alt; | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
543355
8773
2