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

@neo-one/utils

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo-one/utils - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

src/CustomError.js

45

dist/es.js

@@ -58,15 +58,36 @@ import { Observable as Observable$1 } from 'rxjs/Observable';

var _sPO = Object.setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
/* eslint-disable */
function inherits(subClass, superClass) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError('Super expression must either be null or a function');
}
var _construct = typeof Reflect === "object" && Reflect.construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
}
var CustomError = (function (_super) {
inherits(CustomError, _super);
function CustomError() {
var _newTarget = this.constructor;
var _this = _super.apply(this, arguments); // 'Error' breaks prototype chain here
_this.__proto__ = _newTarget.prototype; // restore prototype chain
return _this;
}
return CustomError;
})(Error);
function finalize(func) {

@@ -415,3 +436,3 @@ return function (source) {

export { finalize, createProfile, now as performanceNow, logInvoke, neverComplete, onComplete, setupCLI, utils };
export { CustomError, finalize, createProfile, now as performanceNow, logInvoke, neverComplete, onComplete, setupCLI, utils };
//# sourceMappingURL=es.js.map

@@ -64,15 +64,36 @@ 'use strict';

var _sPO = Object.setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
/* eslint-disable */
function inherits(subClass, superClass) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError('Super expression must either be null or a function');
}
var _construct = typeof Reflect === "object" && Reflect.construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
}
var CustomError = (function (_super) {
inherits(CustomError, _super);
function CustomError() {
var _newTarget = this.constructor;
var _this = _super.apply(this, arguments); // 'Error' breaks prototype chain here
_this.__proto__ = _newTarget.prototype; // restore prototype chain
return _this;
}
return CustomError;
})(Error);
function finalize(func) {

@@ -421,2 +442,3 @@ return function (source) {

exports.CustomError = CustomError;
exports.finalize = finalize;

@@ -423,0 +445,0 @@ exports.createProfile = createProfile;

{
"name": "@neo-one/utils",
"version": "0.0.1",
"version": "0.0.2",
"keywords": [

@@ -5,0 +5,0 @@ "neo",

/* @flow */
export { default as CustomError } from './CustomError';
export { default as finalize } from './finalize';

@@ -3,0 +4,0 @@ export { createProfile, now as performanceNow } from './log';

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