@ethersproject/units
Advanced tools
Comparing version 5.0.0-beta.124 to 5.0.0-beta.125
@@ -1,1 +0,1 @@ | ||
export declare const version = "5.0.0-beta.124"; | ||
export declare const version = "5.0.0-beta.125"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "5.0.0-beta.124"; | ||
exports.version = "5.0.0-beta.125"; |
13
index.js
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var fixednumber_1 = require("@ethersproject/bignumber/fixednumber"); | ||
var errors = __importStar(require("@ethersproject/errors")); | ||
var logger_1 = require("@ethersproject/logger"); | ||
var _version_1 = require("./_version"); | ||
var logger = new logger_1.Logger(_version_1.version); | ||
var names = [ | ||
@@ -26,3 +21,3 @@ "wei", | ||
if (comps.length > 2 || !comps[0].match(/^-?[0-9]*$/) || (comps[1] && !comps[1].match(/^[0-9]*$/)) || value === "." || value === "-.") { | ||
errors.throwError("invalid value", errors.INVALID_ARGUMENT, { argument: "value", value: value }); | ||
logger.throwArgumentError("invalid value", "value", value); | ||
} | ||
@@ -29,0 +24,0 @@ // Make sure we have at least one whole digit (0 if none) |
{ | ||
"name": "@ethersproject/units", | ||
"version": "5.0.0-beta.124", | ||
"version": "5.0.0-beta.125", | ||
"description": "Unit conversion functions for Ethereum.", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"@ethersproject/constants": ">5.0.0-beta.0", | ||
"@ethersproject/errors": ">5.0.0-beta.0" | ||
"@ethersproject/logger": ">5.0.0-beta.0" | ||
}, | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
}, | ||
"tarballHash": "0x4b7e5d4cda519e6e142a2653feae62f677464dc4e4c82e6bb1241f77afc9c36b" | ||
"tarballHash": "0x547434cd4cf71184ab7637318f627ec404d829092c587c1725ca4a3c1b24814b" | ||
} |
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
5134
93
- Removed@ethersproject/errors@>5.0.0-beta.0
- Removed@ethersproject/errors@5.0.1(transitive)