Skip to content

Commit 0ee8993

Browse files
committed
fixed missing Buffer in browser
1 parent a256580 commit 0ee8993

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

index.esm.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// extract values
22
const recuFilter = (tree, copy, valCreator) => {
33
const recu = (tree, copy) => {
4-
if (typeof tree === 'object' && !Buffer.isBuffer(tree) && !(typeof tree?.subarray === 'function') // like Int32Array
5-
) {
4+
if (typeof tree === 'object') {
65
for (let k of Object.keys(tree)) {
76
if (['__proto__', 'constructor', 'prototype'].includes(k)) continue;
87
copy[k] = {};

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
// extract values
33
const recuFilter = (tree, copy, valCreator) => {
44
const recu = (tree, copy) => {
5-
if (typeof tree === 'object' && !Buffer.isBuffer(tree) && !(typeof tree?.subarray === 'function') // like Int32Array
6-
) {
5+
if (typeof tree === 'object') {
76
for (let k of Object.keys(tree)) {
87
if (['__proto__', 'constructor', 'prototype'].includes(k)) continue;
98
copy[k] = {};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iorpc",
3-
"version": "9.0.3",
3+
"version": "9.0.4",
44
"keywords": [
55
"rpc",
66
"callback",

0 commit comments

Comments
 (0)