@neo-one/utils
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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
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
98546
16
1072