Comparing version 4.1.1 to 4.2.0
@@ -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, |
/// <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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
95331
149
1474
123