Comparing version 0.1.15 to 0.1.16
{ | ||
"name": "streamops", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"main": "./src/main.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -228,4 +228,4 @@ const EventEmitter = require('events'); | ||
function isGenerator(fn) { | ||
return fn.constructor.name === 'GeneratorFunction' || | ||
fn.constructor.name === 'AsyncGeneratorFunction'; | ||
return fn?.constructor?.name === 'GeneratorFunction' || | ||
fn?.constructor?.name === 'AsyncGeneratorFunction'; | ||
} | ||
@@ -232,0 +232,0 @@ |
106484