Socket
Socket
Sign inDemoInstall

cbor2

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cbor2 - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

lib/options-6rvr5ElO.d.ts

1

lib/box.js

@@ -59,2 +59,1 @@ import { SYMS } from "./constants.js";

};
//# sourceMappingURL=box.js.map

@@ -1,2 +0,2 @@

import { C as CommentOptions } from './options-_aKvrAbt.js';
import { C as CommentOptions } from './options-qFjTvqa8.js';
import './sorts.js';

@@ -3,0 +3,0 @@

@@ -224,2 +224,1 @@ import { MT, NUMBYTES, SYMS } from "./constants.js";

};
//# sourceMappingURL=comment.js.map

@@ -67,2 +67,1 @@ const MT = {

};
//# sourceMappingURL=constants.js.map

@@ -1,2 +0,2 @@

import { R as RequiredDecodeOptions, D as DecodeOptions, P as Parent, M as MtAiValue } from './options-_aKvrAbt.js';
import { R as RequiredDecodeOptions, D as DecodeOptions, P as Parent, M as MtAiValue } from './options-qFjTvqa8.js';
import { DecodeStream } from './decodeStream.js';

@@ -3,0 +3,0 @@ import { Tag } from './tag.js';

@@ -25,2 +25,3 @@ import { sortCoreDeterministic } from "./sorts.js";

dcbor: false,
preferMap: false,
rejectLargeNegatives: false,

@@ -277,3 +278,3 @@ rejectBigInts: false,

}
ret = !this.#opts.boxed && pu.every(([k]) => typeof k === "string") ? Object.fromEntries(pu) : new Map(pu);
ret = !this.#opts.boxed && !this.#opts.preferMap && pu.every(([k]) => typeof k === "string") ? Object.fromEntries(pu) : new Map(pu);
break;

@@ -322,2 +323,1 @@ }

};
//# sourceMappingURL=container.js.map

@@ -1,2 +0,2 @@

import { D as DecodeOptions } from './options-_aKvrAbt.js';
import { D as DecodeOptions } from './options-qFjTvqa8.js';
import './sorts.js';

@@ -3,0 +3,0 @@

@@ -47,2 +47,1 @@ import { CBORcontainer } from "./container.js";

};
//# sourceMappingURL=decoder.js.map

@@ -1,2 +0,2 @@

import { M as MtAiValue, S as Sliceable, b as DecodeStreamOptions } from './options-_aKvrAbt.js';
import { M as MtAiValue, S as Sliceable, b as DecodeStreamOptions } from './options-qFjTvqa8.js';
import './sorts.js';

@@ -3,0 +3,0 @@

@@ -265,2 +265,1 @@ import {

};
//# sourceMappingURL=decodeStream.js.map

@@ -1,2 +0,2 @@

import { D as DecodeOptions } from './options-_aKvrAbt.js';
import { D as DecodeOptions } from './options-qFjTvqa8.js';
import './sorts.js';

@@ -3,0 +3,0 @@

@@ -126,2 +126,1 @@ import { MT, SYMS } from "./constants.js";

};
//# sourceMappingURL=diagnostic.js.map

@@ -1,2 +0,2 @@

import { f as RequiredEncodeOptions, E as EncodeOptions, j as Writer, h as TaggedValue, T as TagNumber } from './options-_aKvrAbt.js';
import { f as RequiredEncodeOptions, E as EncodeOptions, j as Writer, h as TaggedValue, T as TagNumber } from './options-qFjTvqa8.js';
import './sorts.js';

@@ -3,0 +3,0 @@

@@ -291,2 +291,1 @@ import { sortCoreDeterministic } from "./sorts.js";

};
//# sourceMappingURL=encoder.js.map

@@ -87,2 +87,1 @@ function parseHalf(buf, offset = 0, rejectSubnormals = false) {

};
//# sourceMappingURL=float.js.map

@@ -1,3 +0,3 @@

import { D as DecodeOptions } from './options-_aKvrAbt.js';
export { C as CommentOptions, b as DecodeStreamOptions, c as DecodeValue, a as Decodeable, E as EncodeOptions, M as MtAiValue, P as Parent, d as ParentConstructor, e as RequiredCommentOptions, R as RequiredDecodeOptions, f as RequiredEncodeOptions, g as Simple, S as Sliceable, T as TagNumber, h as TaggedValue, i as ToCBOR, j as Writer, W as WriterOptions } from './options-_aKvrAbt.js';
import { D as DecodeOptions } from './options-qFjTvqa8.js';
export { C as CommentOptions, b as DecodeStreamOptions, c as DecodeValue, a as Decodeable, E as EncodeOptions, M as MtAiValue, P as Parent, d as ParentConstructor, e as RequiredCommentOptions, R as RequiredDecodeOptions, f as RequiredEncodeOptions, g as Simple, S as Sliceable, T as TagNumber, h as TaggedValue, i as ToCBOR, j as Writer, W as WriterOptions } from './options-qFjTvqa8.js';
export { DecodeStream, ValueGenerator } from './decodeStream.js';

@@ -4,0 +4,0 @@ export { decode } from './decoder.js';

@@ -36,2 +36,1 @@ import "./types.js";

};
//# sourceMappingURL=index.js.map
import './sorts.js';
export { C as CommentOptions, D as DecodeOptions, b as DecodeStreamOptions, c as DecodeValue, a as Decodeable, E as EncodeOptions, M as MtAiValue, P as Parent, d as ParentConstructor, e as RequiredCommentOptions, R as RequiredDecodeOptions, f as RequiredEncodeOptions, k as RequiredWriterOptions, S as Sliceable, W as WriterOptions } from './options-_aKvrAbt.js';
export { C as CommentOptions, D as DecodeOptions, b as DecodeStreamOptions, c as DecodeValue, a as Decodeable, E as EncodeOptions, M as MtAiValue, P as Parent, d as ParentConstructor, e as RequiredCommentOptions, R as RequiredDecodeOptions, f as RequiredEncodeOptions, k as RequiredWriterOptions, S as Sliceable, W as WriterOptions } from './options-qFjTvqa8.js';

@@ -1,2 +0,2 @@

export { g as Simple } from './options-_aKvrAbt.js';
export { g as Simple } from './options-qFjTvqa8.js';
import './sorts.js';

@@ -24,2 +24,1 @@ import { MT } from "./constants.js";

};
//# sourceMappingURL=simple.js.map

@@ -33,2 +33,1 @@ function sortCoreDeterministic(a, b) {

};
//# sourceMappingURL=sorts.js.map

@@ -1,2 +0,2 @@

import { e as RequiredCommentOptions, R as RequiredDecodeOptions, i as ToCBOR, a as Decodeable, T as TagNumber } from './options-_aKvrAbt.js';
import { e as RequiredCommentOptions, R as RequiredDecodeOptions, i as ToCBOR, a as Decodeable, T as TagNumber } from './options-qFjTvqa8.js';
import './sorts.js';

@@ -3,0 +3,0 @@

@@ -112,2 +112,1 @@ class Tag {

};
//# sourceMappingURL=tag.js.map

@@ -369,2 +369,1 @@ import { MT, TAG } from "./constants.js";

registerEncoder(BigInt, writeBoxed);
//# sourceMappingURL=types.js.map

@@ -50,2 +50,1 @@ function hexToU8(str) {

};
//# sourceMappingURL=utils.js.map

@@ -1,2 +0,2 @@

export { T as TagNumber, h as TaggedValue, i as ToCBOR, j as Writer } from './options-_aKvrAbt.js';
export { T as TagNumber, h as TaggedValue, i as ToCBOR, j as Writer } from './options-qFjTvqa8.js';
import './sorts.js';

@@ -138,2 +138,1 @@ class Writer {

};
//# sourceMappingURL=writer.js.map
{
"name": "cbor2",
"version": "1.2.1",
"version": "1.2.2",
"description": "Encode and parse data in the Concise Binary Object Representation (CBOR) data format (RFC8949).",

@@ -46,10 +46,10 @@ "exports": {

},
"packageManager": "pnpm@8.14.3",
"packageManager": "pnpm@8.15.1",
"devDependencies": {
"@cto.af/eslint-config": "3.1.0",
"@typescript-eslint/eslint-plugin": "6.19.1",
"@typescript-eslint/parser": "6.19.1",
"@typescript-eslint/eslint-plugin": "6.20.0",
"@typescript-eslint/parser": "6.20.0",
"c8": "9.1.0",
"eslint": "8.56.0",
"eslint-plugin-jsdoc": "48.0.2",
"eslint-plugin-jsdoc": "48.0.4",
"eslint-plugin-markdown": "3.0.1",

@@ -56,0 +56,0 @@ "rimraf": "^5.0.5",

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