Skip to content

Commit

Permalink
feat: polyfill for TextEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesog committed Dec 30, 2021
1 parent 3afdb63 commit fd0c273
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 265 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"axios": "^0.21.4",
"crc": "^3.8.0",
"node-crc16": "^2.0.7",
"qrcode": "^1.4.4"
"qrcode": "^1.4.4",
"text-encoding": "^0.7.0"
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
Expand All @@ -70,6 +71,7 @@
"@types/jest": "^27.0.3",
"@types/node": "^17.0.4",
"@types/qrcode": "^1.4.2",
"@types/text-encoding": "^0.0.36",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"codecov": "^3.5.0",
Expand All @@ -88,11 +90,11 @@
"nyc": "^15.1.0",
"open-cli": "^7.0.1",
"prettier": "^2.5.1",
"semantic-release": "^18.0.1",
"ts-jest": "^27.1.2",
"ts-node": "^10.4.0",
"typedoc": "^0.22.10",
"typescript": "^4.5.4",
"semantic-release": "^18.0.1"
"typescript": "^4.5.4"
},
"files": [
"build/main",
Expand Down
2 changes: 1 addition & 1 deletion src/crc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TextEncoder } from 'util';
import { TextEncoder } from 'text-encoding';

import numToHex from './utils/numToHex';

Expand Down
Loading

0 comments on commit fd0c273

Please sign in to comment.