Comparing version 2.0.3 to 2.0.4
[ | ||
{ | ||
"version": "2.0.4", | ||
"changes": [ | ||
{ | ||
"note": "Dependencies updated" | ||
} | ||
], | ||
"timestamp": 1541740904 | ||
}, | ||
{ | ||
"timestamp": 1539871071, | ||
@@ -4,0 +13,0 @@ "version": "2.0.3", |
@@ -8,2 +8,6 @@ <!-- | ||
## v2.0.4 - _November 9, 2018_ | ||
* Dependencies updated | ||
## v2.0.3 - _October 18, 2018_ | ||
@@ -10,0 +14,0 @@ |
@@ -15,2 +15,23 @@ "use strict"; | ||
}); | ||
// Set a debug print function for NodeJS | ||
// Upstream issue: https://github.com/MikeMcl/bignumber.js/issues/188 | ||
var isNode = require("detect-node"); | ||
if (isNode) { | ||
// Dynamically load a NodeJS specific module. | ||
// Typescript requires all imports to be global, so we need to use | ||
// `const` here and disable the tslint warning. | ||
// tslint:disable-next-line: no-var-requires | ||
var util = require('util'); | ||
// Set a custom util.inspect function | ||
// HACK: We add a function to the BigNumber class by assigning to the | ||
// prototype. The function name is a symbol provided by Node. | ||
bignumber_js_1.BigNumber.prototype[util.inspect.custom] = function () { | ||
// HACK: When executed, `this` will refer to the BigNumber instance. | ||
// This is also why we need a function expression instead of an | ||
// arrow function, as the latter does not have a `this`. | ||
// Return the readable string representation | ||
// tslint:disable-next-line: no-invalid-this | ||
return this.toString(); | ||
}; | ||
} | ||
//# sourceMappingURL=configured_bignumber.js.map |
{ | ||
"name": "@0x/utils", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"engines": { | ||
@@ -14,3 +14,3 @@ "node": ">=6.12" | ||
"clean": "shx rm -rf lib", | ||
"lint": "tslint --project .", | ||
"lint": "tslint --format stylish --project .", | ||
"test": "yarn run_mocha", | ||
@@ -32,3 +32,3 @@ "test:circleci": "yarn test:coverage", | ||
"devDependencies": { | ||
"@0x/tslint-config": "^1.0.9", | ||
"@0x/tslint-config": "^1.0.10", | ||
"@types/detect-node": "2.0.0", | ||
@@ -46,4 +46,4 @@ "@types/lodash": "4.14.104", | ||
"dependencies": { | ||
"@0x/types": "^1.2.0", | ||
"@0x/typescript-typings": "^3.0.3", | ||
"@0x/types": "^1.2.1", | ||
"@0x/typescript-typings": "^3.0.4", | ||
"@types/node": "*", | ||
@@ -53,3 +53,3 @@ "abortcontroller-polyfill": "^1.1.9", | ||
"detect-node": "2.0.3", | ||
"ethereum-types": "^1.1.1", | ||
"ethereum-types": "^1.1.2", | ||
"ethereumjs-util": "^5.1.1", | ||
@@ -64,3 +64,3 @@ "ethers": "~4.0.4", | ||
}, | ||
"gitHead": "8b62b350b1fed6a0d8827ca9ed5fcec3e78ae82f" | ||
"gitHead": "b4a11de097258d37fa9271e64fc28a1d012a8d26" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
103455
1725
2
Updated@0x/types@^1.2.1
Updatedethereum-types@^1.1.2