Skip to content

Commit 08556d8

Browse files
committed
Try to fix crc error
1 parent da7ed62 commit 08556d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crypto.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {createHmac} from "crypto";
2-
import crc8 from "crc/crc8";
2+
import crc8 from "crc/lib/es6/calculators/crc8";
33

44
const getCRC8 = (data: number[]): number => crc8(new Int8Array(data));
55

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "@tsconfig/node12/tsconfig.json",
33
"compilerOptions": {
4-
// "target": "ES2020",
4+
"target": "ES2020",
55
"preserveConstEnums": true,
66
"noImplicitAny": true,
77
"module": "ES2020",

0 commit comments

Comments
 (0)