cborg 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -212,7 +212,7 @@ describe('json basics', () => {
212
212
  ], false);
213
213
  chai.assert.strictEqual(`${ decode.decode(encode.encode(9007199254740991)) }`, '9007199254740991');
214
214
  chai.assert.strictEqual(`${ decode.decode(encode.encode(9007199254740992)) }`, '9007199254740992');
215
- chai.assert.strictEqual(`${ decode.decode(encode.encode(900719925474099100)) }`, '900719925474099100');
215
+ chai.assert.strictEqual(`${ decode.decode(encode.encode(900719925474099100n)) }`, '900719925474099100');
216
216
  });
217
217
  it('should throw on bad types', () => {
218
218
  chai.assert.throws(() => encode.encode(new Uint8Array([
@@ -212,7 +212,7 @@ describe('json basics', () => {
212
212
  ], false);
213
213
  chai.assert.strictEqual(`${ decode.decode(encode.encode(9007199254740991)) }`, '9007199254740991');
214
214
  chai.assert.strictEqual(`${ decode.decode(encode.encode(9007199254740992)) }`, '9007199254740992');
215
- chai.assert.strictEqual(`${ decode.decode(encode.encode(900719925474099100)) }`, '900719925474099100');
215
+ chai.assert.strictEqual(`${ decode.decode(encode.encode(900719925474099100n)) }`, '900719925474099100');
216
216
  });
217
217
  it('should throw on bad types', () => {
218
218
  chai.assert.throws(() => encode.encode(new Uint8Array([
@@ -210,7 +210,7 @@ describe('json basics', () => {
210
210
  ], false);
211
211
  assert.strictEqual(`${ decode(encode(9007199254740991)) }`, '9007199254740991');
212
212
  assert.strictEqual(`${ decode(encode(9007199254740992)) }`, '9007199254740992');
213
- assert.strictEqual(`${ decode(encode(900719925474099100)) }`, '900719925474099100');
213
+ assert.strictEqual(`${ decode(encode(900719925474099100n)) }`, '900719925474099100');
214
214
  });
215
215
  it('should throw on bad types', () => {
216
216
  assert.throws(() => encode(new Uint8Array([
@@ -210,7 +210,7 @@ describe('json basics', () => {
210
210
  ], false);
211
211
  assert.strictEqual(`${ decode(encode(9007199254740991)) }`, '9007199254740991');
212
212
  assert.strictEqual(`${ decode(encode(9007199254740992)) }`, '9007199254740992');
213
- assert.strictEqual(`${ decode(encode(900719925474099100)) }`, '900719925474099100');
213
+ assert.strictEqual(`${ decode(encode(900719925474099100n)) }`, '900719925474099100');
214
214
  });
215
215
  it('should throw on bad types', () => {
216
216
  assert.throws(() => encode(new Uint8Array([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cborg",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Fast CBOR with a focus on strictness",
5
5
  "main": "./cjs/cborg.js",
6
6
  "bin": {