Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

c8osdkjscore

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c8osdkjscore - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4-beta1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc