From bcafbf603eb1af540a2a3309be9c683266837bea Mon Sep 17 00:00:00 2001 From: Jefff Nelson Date: Fri, 23 Apr 2021 19:15:28 -0700 Subject: [PATCH] Build fixes for npm 7 --- package.json | 11 ++++++++++- src/decoder/decodeData/index.ts | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f8f77af..1724343 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "fs-extra": "^4.0.1", "jest": "^23.1.0", "rimraf": "^2.6.2", - "ts-jest": "^20.0.14", + "ts-jest": "^23.0.4", "ts-node": "^3.3.0", "tslint": "^5.7.0", "typescript": "^2.5.2", @@ -47,6 +47,15 @@ ], "transform": { "^.+\\.ts$": "/node_modules/ts-jest/preprocessor.js" + }, + "globals": { + "ts-jest": { + "tsConfig": { + "noImplicitAny": false, + "lib": ["es2015"], + "types": ["jest", "node"] + } + } } } } diff --git a/src/decoder/decodeData/index.ts b/src/decoder/decodeData/index.ts index aab9030..7850573 100644 --- a/src/decoder/decodeData/index.ts +++ b/src/decoder/decodeData/index.ts @@ -179,7 +179,7 @@ export function decode(data: Uint8ClampedArray, version: number): DecodedQR { text: "", bytes: [], chunks: [], - version: version, + version, }; while (stream.available() >= 4) {