@neo-one/utils
Advanced tools
Comparing version 1.0.0-alpha.52 to 1.0.0-alpha.53
{ | ||
"name": "@neo-one/utils", | ||
"version": "1.0.0-alpha.52", | ||
"version": "1.0.0-alpha.53", | ||
"author": "Alex DiCarlo <alexdicarlo@gmail.com>", | ||
"description": "NEO•ONE shared utils.", | ||
"license": "MIT", | ||
"homepage": "https://neo-one.io", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/neo-one-suite/neo-one.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/neo-one-suite/neo-one/issues" | ||
}, | ||
"keywords": [ | ||
"neo", | ||
"NEO", | ||
"one", | ||
"ONE", | ||
"blockchain", | ||
"neo-one", | ||
"neo-one-suite", | ||
"neo one", | ||
"neo one suite", | ||
"NEO ONE", | ||
"NEO ONE suite", | ||
"NEO•ONE", | ||
"NEO•ONE suite", | ||
"neo blockchain", | ||
"NEO Blockchain", | ||
"NEO blockchain", | ||
"dapp", | ||
"dapps" | ||
"dapp" | ||
], | ||
"description": "NEO•ONE shared utils.", | ||
"repository": "https://github.com/neo-one-suite/neo-one", | ||
"bugs": "https://github.com/neo-one-suite/neo-one/issues", | ||
"license": "MIT", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.esm.js", | ||
"types": "./src/index.ts", | ||
"engines": { | ||
"node": ">=10.6.0" | ||
"esm": { | ||
"await": false, | ||
"cache": true, | ||
"cjs": { | ||
"cache": true, | ||
"extensions": true, | ||
"interop": true, | ||
"mutableNamespace": true, | ||
"namedExports": true, | ||
"paths": true, | ||
"topLevelReturn": false, | ||
"vars": true | ||
}, | ||
"mainFields": [ | ||
"main" | ||
], | ||
"mode": "auto" | ||
}, | ||
"dependencies": { | ||
"@neo-one/monitor": "^1.0.0-alpha.48", | ||
"esm": "^3.0.69", | ||
"lodash": "^4.17.10", | ||
"rxjs": "^6.2.1", | ||
"tslib": "^1.9.3" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"dependencies": { | ||
"@neo-one/monitor": "^1.0.0-alpha.47", | ||
"lodash": "^4.17.10", | ||
"rxjs": "^6.2.1" | ||
} | ||
} | ||
"main": "src/index.common.js", | ||
"module": "src/index.js", | ||
"types": "src/index.ts", | ||
"sideEffects": false | ||
} |
@@ -1,31 +0,11 @@ | ||
// tslint:disable | ||
// @ts-ignore | ||
function inherits(subClass, superClass) { | ||
if (typeof superClass !== 'function' && superClass != null) { | ||
throw new TypeError('Super expression must either be null or a function'); | ||
export class CustomError extends Error { | ||
public readonly message: string; | ||
public constructor(message?: string) { | ||
super(message); | ||
this.message = message === undefined ? '' : message; | ||
// tslint:disable-next-line no-any | ||
(this as any).__proto__ = CustomError.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); | ||
} | ||
} | ||
export let CustomError: typeof Error = (function(_super) { | ||
inherits(CustomError, _super); | ||
function CustomError() { | ||
// @ts-ignore | ||
var _newTarget = this.constructor; | ||
// @ts-ignore | ||
var _this = _super.apply(this, arguments); // 'Error' breaks prototype chain here | ||
_this.__proto__ = _newTarget.prototype; // restore prototype chain | ||
return _this; | ||
} | ||
return CustomError; | ||
})(Error) as any; |
// tslint:disable readonly-keyword no-object-mutation | ||
import { Observable, ObservableInput, OperatorFunction, Subscriber, Subscription, TeardownLogic } from 'rxjs'; | ||
import { Observable, Subscriber, Subscription } from 'rxjs'; | ||
import { Operator } from 'rxjs/internal/Operator'; | ||
import { OuterSubscriber } from 'rxjs/internal/OuterSubscriber'; | ||
import { ObservableInput, OperatorFunction, TeardownLogic } from 'rxjs/internal/types'; | ||
import { subscribeToResult } from 'rxjs/internal/util/subscribeToResult'; | ||
@@ -6,0 +7,0 @@ |
@@ -1,2 +0,2 @@ | ||
import * as _ from 'lodash'; | ||
import _ from 'lodash'; | ||
@@ -3,0 +3,0 @@ const nowSeconds = (): number => Math.round(Date.now() / 1000); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
21
0
1
1
13
0
44798
5
573
1
+ Addedesm@^3.0.69
+ Addedtslib@^1.9.3
+ Addedesm@3.2.25(transitive)