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

bignumber.js

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bignumber.js - npm Package Compare versions

Comparing version 9.0.2 to 9.1.0

9

CHANGELOG.md

@@ -0,1 +1,10 @@

#### 9.1.0
* 08/08/22
* #329 Remove `import` example.
* #277 Resolve lint warnings and add number `toString` note.
* Correct `decimalPlaces()` return type in *bignumber.d.ts*.
* Add ES module global `crypto` example.
* #322 Add `exports` field to *package.json*.
* #251 (#308) Amend *bignumber.d.ts* to allow instantiating a BigNumber without `new`.
#### 9.0.2

@@ -2,0 +11,0 @@ * 12/12/21

2

LICENCE.md
The MIT License (MIT)
=====================
Copyright © `<2021>` `Michael Mclaughlin`
Copyright © `<2022>` `Michael Mclaughlin`

@@ -6,0 +6,0 @@ Permission is hereby granted, free of charge, to any person

{
"name": "bignumber.js",
"description": "A library for arbitrary-precision decimal and non-decimal arithmetic",
"version": "9.0.2",
"version": "9.1.0",
"keywords": [

@@ -27,2 +27,13 @@ "arbitrary",

"types": "bignumber.d.ts",
"exports": {
".": {
"types": "./bignumber.d.ts",
"require": "./bignumber.js",
"import": "./bignumber.mjs",
"browser": "./bignumber.js"
},
"./bignumber.mjs": "./bignumber.mjs",
"./bignumber.js": "./bignumber.js",
"./package.json": "./package.json"
},
"author": {

@@ -29,0 +40,0 @@ "name": "Michael Mclaughlin",

@@ -51,3 +51,3 @@ ![bignumber.js](https://raw.githubusercontent.com/MikeMcl/bignumber.js/gh-pages/bignumberjs.png)

```html
<script src='https://cdn.jsdelivr.net/npm/bignumber.js@9.0.2/bignumber.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/bignumber.js@9.1.0/bignumber.min.js'></script>
```

@@ -69,5 +69,2 @@

import BigNumber from "bignumber.js";
// or maybe
import { BigNumber } from "bignumber.js";
// else
import { BigNumber } from "./node_modules/bignumber.js/bignumber.mjs";

@@ -79,3 +76,3 @@ ```

```javascript
import BigNumber from 'https://raw.githubusercontent.com/mikemcl/bignumber.js/v9.0.2/bignumber.mjs';
import BigNumber from 'https://raw.githubusercontent.com/mikemcl/bignumber.js/v9.1.0/bignumber.mjs';
import BigNumber from 'https://unpkg.com/bignumber.js@latest/bignumber.mjs';

@@ -82,0 +79,0 @@ ```

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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