Socket
Socket
Sign inDemoInstall

big.js

Package Overview
Dependencies
0
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.1 to 6.2.0

18

big.js
/*
* big.js v6.1.1
* big.js v6.2.0
* A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic.
* Copyright (c) 2021 Michael Mclaughlin
* Copyright (c) 2022 Michael Mclaughlin
* https://github.com/MikeMcl/big.js/LICENCE.md

@@ -101,4 +101,4 @@ */

if (typeof n !== 'string') {
if (Big.strict === true) {
throw TypeError(INVALID + 'number');
if (Big.strict === true && typeof n !== 'bigint') {
throw TypeError(INVALID + 'value');
}

@@ -633,2 +633,12 @@

};
/*
* Return a new Big whose value is the value of this Big negated.
*/
P.neg = function () {
var x = new this.constructor(this);
x.s = -x.s;
return x;
};

@@ -635,0 +645,0 @@

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": "big.js",
"description": "A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic",
"version": "6.1.1",
"version": "6.2.0",
"keywords": [

@@ -19,2 +19,11 @@ "arbitrary",

],
"exports": {
".": {
"import": "./big.mjs",
"require": "./big.js"
},
"./big.mjs": "./big.mjs",
"./big.js": "./big.js",
"./package.json": "./package.json"
},
"repository": {

@@ -21,0 +30,0 @@ "type": "git",

@@ -43,3 +43,3 @@ # big.js

```html
<script src='https://cdn.jsdelivr.net/npm/big.js@6.0.0/big.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/big.js@6.2.0/big.min.js'></script>
```

@@ -68,4 +68,4 @@

```javascript
import Big from 'https://raw.githubusercontent.com/mikemcl/big.js/v6.0.0/big.mjs';
import Big from 'https://unpkg.com/big.js@6.0.0/big.mjs';
import Big from 'https://raw.githubusercontent.com/mikemcl/big.js/v6.2.0/big.mjs';
import Big from 'https://unpkg.com/big.js@6.2.0/big.mjs';
```

@@ -72,0 +72,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc