Skip to content

Commit 4707a77

Browse files
Update to 0.1.1.
1 parent 05d206b commit 4707a77

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

json-bufferify.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* json-bufferify 0.1.0
2+
* json-bufferify 0.1.1
33
* Date: 2017-11-10
44
* © 2017 LangZhai(智能小菜菜)
55
* This is licensed under the GNU LGPL, version 3 or later.

json-bufferify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* json-bufferify 0.1.0
2+
* json-bufferify 0.1.1
33
* Date: 2017-11-10
44
* © 2017 LangZhai(智能小菜菜)
55
* This is licensed under the GNU LGPL, version 3 or later.
@@ -247,7 +247,7 @@
247247
break;
248248
}
249249
} else {
250-
template[item] = template[item] = view.getUint8(offset++) ? String.fromCharCode.apply(null, new Array(template[item]).join().split(',').map(() => {
250+
template[item] = (template[item] = view.getUint8(offset++)) ? String.fromCharCode.apply(null, new Array(template[item]).join().split(',').map(() => {
251251
let code = view.getUint16(offset);
252252
offset += 2;
253253
return code;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-bufferify",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"main": "json-bufferify.js",
55
"types": "json-bufferify.d.ts",
66
"description": "This is a module to help you convert between JSON and ArrayBuffer, and you can run it in both Node.js and browser.",

0 commit comments

Comments
 (0)