Socket
Socket
Sign inDemoInstall

flatbuffers

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flatbuffers - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

js/flexbuffers/bit-width-util.d.ts

0

js/builder.d.ts

@@ -0,0 +0,0 @@ import { ByteBuffer } from "./byte-buffer";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Long } from "./long";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare const SIZEOF_SHORT = 2;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare enum Encoding {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export { SIZEOF_SHORT } from './constants';

@@ -0,0 +0,0 @@ "use strict";

2

js/flexbuffers.d.ts
import { Builder } from './flexbuffers/builder';
export { toReference } from './flexbuffers/reference';
export declare function builder(): Builder;
export declare function toObject(buffer: Uint8Array): unknown;
export declare function toObject(buffer: ArrayBuffer): unknown;
export declare function encode(object: unknown, size?: number, deduplicateStrings?: boolean, deduplicateKeys?: boolean, deduplicateKeyVectors?: boolean): Uint8Array;

@@ -14,3 +14,3 @@ "use strict";

function toObject(buffer) {
return reference_1.toReference(buffer).toObject();
return (0, reference_1.toReference)(buffer).toObject();
}

@@ -17,0 +17,0 @@ exports.toObject = toObject;

@@ -0,0 +0,0 @@ export declare function createLong(low: number, high: number): Long;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { ByteBuffer } from './byte-buffer';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ export declare const int32: Int32Array;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { ByteBuffer } from "./byte-buffer";

@@ -0,0 +0,0 @@ import { ByteBuffer } from "./byte-buffer";

@@ -0,0 +0,0 @@ import { Long } from "./long";

@@ -0,0 +0,0 @@ import { FILE_IDENTIFIER_LENGTH, SIZEOF_INT } from "./constants";

@@ -0,0 +0,0 @@ export declare const SIZEOF_SHORT = 2;

@@ -0,0 +0,0 @@ export const SIZEOF_SHORT = 2;

@@ -0,0 +0,0 @@ export declare enum Encoding {

@@ -0,0 +0,0 @@ export var Encoding;

@@ -0,0 +0,0 @@ export { SIZEOF_SHORT } from './constants';

@@ -0,0 +0,0 @@ export { SIZEOF_SHORT } from './constants';

import { Builder } from './flexbuffers/builder';
export { toReference } from './flexbuffers/reference';
export declare function builder(): Builder;
export declare function toObject(buffer: Uint8Array): unknown;
export declare function toObject(buffer: ArrayBuffer): unknown;
export declare function encode(object: unknown, size?: number, deduplicateStrings?: boolean, deduplicateKeys?: boolean, deduplicateKeyVectors?: boolean): Uint8Array;

@@ -0,0 +0,0 @@ /* eslint-disable @typescript-eslint/no-namespace */

@@ -0,0 +0,0 @@ export declare function createLong(low: number, high: number): Long;

@@ -0,0 +0,0 @@ export function createLong(low, high) {

@@ -0,0 +0,0 @@ import { ByteBuffer } from './byte-buffer';

export {};

@@ -0,0 +0,0 @@ export declare const int32: Int32Array;

@@ -0,0 +0,0 @@ export const int32 = new Int32Array(2);

{
"name": "flatbuffers",
"version": "2.0.3",
"version": "2.0.4",
"description": "Memory Efficient Serialization Library",
"files": [
"js/*.js",
"js/*.d.ts",
"mjs/*.js",
"mjs/*.d.ts",
"ts/*.ts"
"js/**/*.js",
"js/**/*.d.ts",
"mjs/**/*.js",
"mjs/**/*.d.ts",
"ts/**/*.ts"
],

@@ -21,3 +21,3 @@ "main": "js/flatbuffers.js",

"compile": "tsc && tsc -p tsconfig.mjs.json",
"prepublishOnly": "npm run compile"
"prepublishOnly": "npm install --only=dev && npm run compile"
},

@@ -24,0 +24,0 @@ "repository": {

@@ -10,3 +10,3 @@ /* eslint-disable @typescript-eslint/no-namespace */

export function toObject(buffer: Uint8Array): unknown {
export function toObject(buffer: ArrayBuffer): unknown {
return toReference(buffer).toObject();

@@ -13,0 +13,0 @@ }

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