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

@ethersproject/units

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/units - npm Package Compare versions

Comparing version 5.0.0-beta.124 to 5.0.0-beta.125

2

_version.d.ts

@@ -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";
"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"
}
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