Skip to content

Commit

Permalink
V1.0.3 (#2)
Browse files Browse the repository at this point in the history
* Updated lock file version

* Upgraded mocha

* Added type declaration

* Updated repository section in package.json

* Added notice to README

* Incremented npm version to 1.0.3
  • Loading branch information
ChiaMineJP authored Jun 13, 2023
1 parent 3391780 commit 7ee4d61
Show file tree
Hide file tree
Showing 4 changed files with 1,311 additions and 650 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Notice
This is a custom version of `json-bigint` which fixed [a critical issue](https://github.com/sidorares/json-bigint/issues/49).

You can check diff from v1.0.0 in the link below.
https://github.com/Chia-Mine/json-bigint/compare/390482a8b6b460f98c61c3b65915dbd91fc8e7b2...v1.0.3

The commit `390482a8b6b460f98c61c3b65915dbd91fc8e7b2` is what the `v1.0.0` tag is pointing.
Please also check
https://github.com/sidorares/json-bigint/tags

# json-bigint

[![Build Status](https://secure.travis-ci.org/sidorares/json-bigint.png)](http://travis-ci.org/sidorares/json-bigint)
Expand Down
20 changes: 20 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type Option = {
strict?: boolean;
storeAsString?: boolean;
alwaysParseAsBig?: boolean;
useNativeBigInt?: boolean;
protoAction?: 'error' | 'ignore' | 'preserve';
constructorAction?: 'error' | 'ignore' | 'preserve';
};

type JSONbigAPI = {
stringify: typeof JSON.stringify;
parse: typeof JSON.parse;
} & ((option?: Option) => {
stringify: typeof JSON.stringify;
parse: typeof JSON.parse;
});


declare const api: JSONbigAPI;
export = api;
Loading

0 comments on commit 7ee4d61

Please sign in to comment.