Socket
Socket
Sign inDemoInstall

crc

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crc - npm Package Compare versions

Comparing version 4.1.1 to 4.2.0

calculators/crc8dvbs2.d.ts

5

cjs/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.crcjam = exports.crc32 = exports.crc24 = exports.crc16kermit = exports.crc16xmodem = exports.crc16modbus = exports.crc16ccitt = exports.crc16 = exports.crc81wire = exports.crc8 = exports.crc1 = void 0;
exports.crcjam = exports.crc32 = exports.crc24 = exports.crc16kermit = exports.crc16xmodem = exports.crc16modbus = exports.crc16ccitt = exports.crc16 = exports.crc8dvbs2 = exports.crc81wire = exports.crc8 = exports.crc1 = void 0;
const crc1_js_1 = __importDefault(require("./crc1.js"));

@@ -14,2 +14,4 @@ exports.crc1 = crc1_js_1.default;

exports.crc81wire = crc81wire_js_1.default;
const crc8dvbs2_js_1 = __importDefault(require("./crc8dvbs2.js"));
exports.crc8dvbs2 = crc8dvbs2_js_1.default;
const crc16_js_1 = __importDefault(require("./crc16.js"));

@@ -35,2 +37,3 @@ exports.crc16 = crc16_js_1.default;

crc81wire: crc81wire_js_1.default,
crc8dvbs2: crc8dvbs2_js_1.default,
crc16: crc16_js_1.default,

@@ -37,0 +40,0 @@ crc16ccitt: crc16ccitt_js_1.default,

2

create_buffer.d.ts
/// <reference types="node" />
import { Buffer } from 'buffer';
import { BufferInput } from './types.js';
declare const createBuffer: (value: BufferInput, encoding?: BufferEncoding | undefined) => Buffer;
declare const createBuffer: (value: BufferInput, encoding?: BufferEncoding) => Buffer;
export default createBuffer;
import crc1 from './crc1.js';
import crc8 from './crc8.js';
import crc81wire from './crc81wire.js';
import crc8dvbs2 from './crc8dvbs2.js';
import crc16 from './crc16.js';

@@ -15,2 +16,3 @@ import crc16ccitt from './crc16ccitt.js';

export { crc81wire };
export { crc8dvbs2 };
export { crc16 };

@@ -28,2 +30,3 @@ export { crc16ccitt };

crc81wire: import("./types.js").CRCModule;
crc8dvbs2: import("./types.js").CRCModule;
crc16: import("./types.js").CRCModule;

@@ -30,0 +33,0 @@ crc16ccitt: import("./types.js").CRCModule;

/// <reference types="node" />
import { Buffer } from 'buffer';
import { BufferInput } from './types.js';
declare const createBuffer: (value: BufferInput, encoding?: BufferEncoding | undefined) => Buffer;
declare const createBuffer: (value: BufferInput, encoding?: BufferEncoding) => Buffer;
export default createBuffer;
import crc1 from './crc1.js';
import crc8 from './crc8.js';
import crc81wire from './crc81wire.js';
import crc8dvbs2 from './crc8dvbs2.js';
import crc16 from './crc16.js';

@@ -15,2 +16,3 @@ import crc16ccitt from './crc16ccitt.js';

export { crc81wire };
export { crc8dvbs2 };
export { crc16 };

@@ -28,2 +30,3 @@ export { crc16ccitt };

crc81wire: import("./types.js").CRCModule;
crc8dvbs2: import("./types.js").CRCModule;
crc16: import("./types.js").CRCModule;

@@ -30,0 +33,0 @@ crc16ccitt: import("./types.js").CRCModule;

import crc1 from './crc1.js';
import crc8 from './crc8.js';
import crc81wire from './crc81wire.js';
import crc8dvbs2 from './crc8dvbs2.js';
import crc16 from './crc16.js';

@@ -15,2 +16,3 @@ import crc16ccitt from './crc16ccitt.js';

export { crc81wire };
export { crc8dvbs2 };
export { crc16 };

@@ -28,2 +30,3 @@ export { crc16ccitt };

crc81wire,
crc8dvbs2,
crc16,

@@ -30,0 +33,0 @@ crc16ccitt,

/// <reference types="node" />
import { Buffer } from 'buffer';
export declare type BufferInput = string | ArrayBuffer | Buffer;
export type BufferInput = string | ArrayBuffer | Buffer;
export interface CRCCalculator<T = BufferInput | Uint8Array> {

@@ -5,0 +5,0 @@ (value: T, previous?: number): number;

{
"name": "crc",
"version": "4.1.1",
"description": "Module for calculating Cyclic Redundancy Check (CRC) for Node.js and the Browser.",
"version": "4.2.0",
"description": "Module for calculating Cyclic Redundancy Check (CRC) for Node.js and the browser.",
"author": {

@@ -9,5 +9,5 @@ "name": "Alex Gorbatchev",

},
"homepage": "https://github.com/alexgorbatchev/node-crc",
"bugs": "https://github.com/alexgorbatchev/node-crc/issues",
"repository": "alexgorbatchev/node-crc",
"homepage": "https://github.com/alexgorbatchev/crc",
"bugs": "https://github.com/alexgorbatchev/crc/issues",
"repository": "alexgorbatchev/crc",
"license": "MIT",

@@ -26,2 +26,3 @@ "keywords": [

"crc8",
"crc8dvbs2",
"crcjam"

@@ -139,2 +140,12 @@ ],

},
"./crc8dvbs2": {
"types": "./mjs/crc8dvbs2.d.ts",
"import": "./mjs/crc8dvbs2.js",
"require": "./cjs-default-unwrap/crc8dvbs2.js"
},
"./calculators/crc8dvbs2": {
"types": "./mjs/calculators/crc8dvbs2.d.ts",
"import": "./mjs/calculators/crc8dvbs2.js",
"require": "./cjs-default-unwrap/calculators/crc8dvbs2.js"
},
"./crcjam": {

@@ -141,0 +152,0 @@ "types": "./mjs/crcjam.d.ts",

@@ -15,2 +15,3 @@ # crc

- CRC8 1-Wire (`crc81wire`)
- CRC8 DVB-S2 (`crc8dvbs2`)
- CRC16 (`crc16`)

@@ -17,0 +18,0 @@ - CRC16 CCITT (`crc16ccitt`)

/// <reference types="node" />
import { Buffer } from 'buffer';
export declare type BufferInput = string | ArrayBuffer | Buffer;
export type BufferInput = string | ArrayBuffer | Buffer;
export interface CRCCalculator<T = BufferInput | Uint8Array> {

@@ -5,0 +5,0 @@ (value: T, previous?: number): number;

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