Comparing version 2.0.0-beta.18 to 2.0.0-beta.21
@@ -53,3 +53,2 @@ const CallableInstance = require('callable-instance') | ||
const callsites = getStackLine.capture() | ||
await this._ready | ||
const now = new Date().getTime() | ||
@@ -149,3 +148,3 @@ const parsedOptions = this._generateOptions(opts) | ||
(!opts.delay || isNaN(opts.delay)) && | ||
(!opts.schedule || !(opts.schedule instanceof Date) || opts.schedule.toString === 'Invalid Date') | ||
(!opts.schedule || !(opts.schedule instanceof Date) || opts.schedule.toString() === 'Invalid Date') | ||
) { | ||
@@ -152,0 +151,0 @@ throw new Error('Invalid schedule date or delay duration when attempting to send a delayed emission') |
@@ -40,3 +40,2 @@ const CallableInstance = require('callable-instance') | ||
// TODO pass back fallback if it's anything but undefined | ||
fallback (data) { | ||
@@ -181,3 +180,3 @@ this._fallback = data | ||
if (this._fallback) { | ||
if (typeof this._fallback !== 'undefined') { | ||
resolve(this._fallback) | ||
@@ -184,0 +183,0 @@ } else { |
{ | ||
"name": "remit", | ||
"version": "2.0.0-beta.18", | ||
"version": "2.0.0-beta.21", | ||
"description": "A small set of functionality used to create microservices that don't need to be aware of one-another's existence.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
65956
1466