New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@or-sdk/base

Package Overview
Dependencies
Maintainers
2
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@or-sdk/base - npm Package Compare versions

Comparing version 0.36.0 to 0.36.1-beta.2750.0

22

dist/cjs/errors.js

@@ -18,3 +18,21 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiTimeoutError = void 0;
exports.ApiTimeoutError = exports.BaseError = void 0;
/**
* Base error class that properly extends default Error class in TypeScript
* By extending other errors from this one, you don't need to do additional manipulations
* (e.g. override constructor, set prototype, set name, etc.)
*/
var BaseError = /** @class */ (function (_super) {
__extends(BaseError, _super);
function BaseError(message, options) {
if (options === void 0) { options = {}; }
var _newTarget = this.constructor;
var _this = _super.call(this, message, options) || this;
Object.setPrototypeOf(_this, _newTarget.prototype);
_this.name = _this.constructor.name;
return _this;
}
return BaseError;
}(Error));
exports.BaseError = BaseError;
var ApiTimeoutError = /** @class */ (function (_super) {

@@ -26,4 +44,4 @@ __extends(ApiTimeoutError, _super);

return ApiTimeoutError;
}(Error));
}(BaseError));
exports.ApiTimeoutError = ApiTimeoutError;
//# sourceMappingURL=errors.js.map

@@ -1,3 +0,15 @@

export class ApiTimeoutError extends Error {
/**
* Base error class that properly extends default Error class in TypeScript
* By extending other errors from this one, you don't need to do additional manipulations
* (e.g. override constructor, set prototype, set name, etc.)
*/
export class BaseError extends Error {
constructor(message, options = {}) {
super(message, options);
Object.setPrototypeOf(this, new.target.prototype);
this.name = this.constructor.name;
}
}
export class ApiTimeoutError extends BaseError {
}
//# sourceMappingURL=errors.js.map

@@ -1,3 +0,11 @@

export declare class ApiTimeoutError extends Error {
/**
* Base error class that properly extends default Error class in TypeScript
* By extending other errors from this one, you don't need to do additional manipulations
* (e.g. override constructor, set prototype, set name, etc.)
*/
export declare class BaseError extends Error {
constructor(message: string, options?: ErrorOptions);
}
export declare class ApiTimeoutError extends BaseError {
}
//# sourceMappingURL=errors.d.ts.map

5

package.json
{
"name": "@or-sdk/base",
"version": "0.36.0",
"version": "0.36.1-beta.2750.0",
"license": "Apache-2.0",

@@ -36,4 +36,3 @@ "main": "dist/cjs/index.js",

"access": "public"
},
"gitHead": "8dfa8f781b730dfa917a3f2c92b4ac80f2302099"
}
}

@@ -1,1 +0,14 @@

export class ApiTimeoutError extends Error {}
/**
* Base error class that properly extends default Error class in TypeScript
* By extending other errors from this one, you don't need to do additional manipulations
* (e.g. override constructor, set prototype, set name, etc.)
*/
export class BaseError extends Error {
constructor(message: string, options: ErrorOptions = {}) {
super(message, options);
Object.setPrototypeOf(this, new.target.prototype);
this.name = this.constructor.name;
}
}
export class ApiTimeoutError extends BaseError {}

Sorry, the diff of this file is not supported yet

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