Skip to content

Commit

Permalink
deps: update buffer-factory
Browse files Browse the repository at this point in the history
Signed-off-by: imnemo <291400733@qq.com>
  • Loading branch information
imnemo committed Sep 3, 2020
1 parent cd6aea7 commit 7985dbc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var parseParam = function (input, encoding, option) {
var buf = (function () {
if (typeof input === 'string') {
try {
input = bufferFactory(input, encoding);
input = bufferFactory.create(input, encoding);
} catch (e) {
console.trace(e);
return null;
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-crc16",
"version": "2.0.6",
"version": "2.0.7",
"description": "A native node addon to calcalate and verify CRC16 values, adopted by MODBUS agreement.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -59,7 +59,7 @@
"README-zh.md"
],
"dependencies": {
"buffer-factory": "1.0.6",
"buffer-factory": "1.0.8",
"node-addon-api": "3.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 7985dbc

Please sign in to comment.