aurelia-task-queue
Advanced tools
Comparing version 1.2.1 to 1.3.0
{ | ||
"name": "aurelia-task-queue", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "A simple task queue for the browser that enables the queuing of both standard tasks and micro tasks.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -14,6 +14,5 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) { | ||
} : function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
var hasSetImmediate = typeof setImmediate === 'function'; | ||
var stackSeparator = '\nEnqueued in TaskQueue by:\n'; | ||
@@ -53,6 +52,2 @@ var microStackSeparator = '\nEnqueued in MicroTaskQueue by:\n'; | ||
task.onError(error); | ||
} else if (hasSetImmediate) { | ||
setImmediate(function () { | ||
throw error; | ||
}); | ||
} else { | ||
@@ -59,0 +54,0 @@ setTimeout(function () { |
import {DOM,FEATURE} from 'aurelia-pal'; | ||
let hasSetImmediate = typeof setImmediate === 'function'; | ||
const stackSeparator = '\nEnqueued in TaskQueue by:\n'; | ||
@@ -50,4 +49,2 @@ const microStackSeparator = '\nEnqueued in MicroTaskQueue by:\n'; | ||
task.onError(error); | ||
} else if (hasSetImmediate) { | ||
setImmediate(() => { throw error; }); | ||
} else { | ||
@@ -54,0 +51,0 @@ setTimeout(() => { throw error; }, 0); |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -15,3 +15,2 @@ var _aureliaPal = require('aurelia-pal'); | ||
var hasSetImmediate = typeof setImmediate === 'function'; | ||
var stackSeparator = '\nEnqueued in TaskQueue by:\n'; | ||
@@ -51,6 +50,2 @@ var microStackSeparator = '\nEnqueued in MicroTaskQueue by:\n'; | ||
task.onError(error); | ||
} else if (hasSetImmediate) { | ||
setImmediate(function () { | ||
throw error; | ||
}); | ||
} else { | ||
@@ -57,0 +52,0 @@ setTimeout(function () { |
import { DOM, FEATURE } from 'aurelia-pal'; | ||
let hasSetImmediate = typeof setImmediate === 'function'; | ||
const stackSeparator = '\nEnqueued in TaskQueue by:\n'; | ||
@@ -38,6 +37,2 @@ const microStackSeparator = '\nEnqueued in MicroTaskQueue by:\n'; | ||
task.onError(error); | ||
} else if (hasSetImmediate) { | ||
setImmediate(() => { | ||
throw error; | ||
}); | ||
} else { | ||
@@ -44,0 +39,0 @@ setTimeout(() => { |
@@ -1,2 +0,2 @@ | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -7,3 +7,2 @@ | ||
var hasSetImmediate = typeof setImmediate === 'function'; | ||
var stackSeparator = '\nEnqueued in TaskQueue by:\n'; | ||
@@ -43,6 +42,2 @@ var microStackSeparator = '\nEnqueued in MicroTaskQueue by:\n'; | ||
task.onError(error); | ||
} else if (hasSetImmediate) { | ||
setImmediate(function () { | ||
throw error; | ||
}); | ||
} else { | ||
@@ -49,0 +44,0 @@ setTimeout(function () { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var DOM, FEATURE, _typeof, hasSetImmediate, stackSeparator, microStackSeparator, TaskQueue; | ||
var DOM, FEATURE, _typeof, stackSeparator, microStackSeparator, TaskQueue; | ||
@@ -42,6 +42,2 @@ | ||
task.onError(error); | ||
} else if (hasSetImmediate) { | ||
setImmediate(function () { | ||
throw error; | ||
}); | ||
} else { | ||
@@ -95,5 +91,4 @@ setTimeout(function () { | ||
} : function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
hasSetImmediate = typeof setImmediate === 'function'; | ||
stackSeparator = '\nEnqueued in TaskQueue by:\n'; | ||
@@ -100,0 +95,0 @@ microStackSeparator = '\nEnqueued in MicroTaskQueue by:\n'; |
@@ -11,3 +11,3 @@ 'use strict'; | ||
for (var _key in _aureliaTaskQueue) { | ||
if (_key !== "default" && key !== "__esModule") _exportObj[_key] = _aureliaTaskQueue[_key]; | ||
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _aureliaTaskQueue[_key]; | ||
} | ||
@@ -14,0 +14,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"name":"aurelia-task-queue","children":[{"id":5,"name":"TaskQueue","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Implements an asynchronous task queue."},"children":[{"id":8,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of TaskQueue."},"signatures":[{"id":9,"name":"new TaskQueue","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of TaskQueue."},"type":{"type":"reference","name":"TaskQueue","id":5}}]},{"id":6,"name":"flushing","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Whether the queue is in the process of flushing."},"type":{"type":"instrinct","name":"any"}},{"id":7,"name":"longStacks","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Enables long stack traces for queued tasks."},"type":{"type":"instrinct","name":"any"}},{"id":18,"name":"flushMicroTaskQueue","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":19,"name":"flushMicroTaskQueue","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Immediately flushes the micro task queue."},"type":{"type":"instrinct","name":"void"}}]},{"id":16,"name":"flushTaskQueue","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":17,"name":"flushTaskQueue","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Immediately flushes the task queue."},"type":{"type":"instrinct","name":"void"}}]},{"id":20,"name":"prepareQueueStack","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":21,"name":"prepareQueueStack","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":22,"name":"separator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":10,"name":"queueMicroTask","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":11,"name":"queueMicroTask","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Queues a task on the micro task queue for ASAP execution."},"parameters":[{"id":12,"name":"task","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The task to queue up for ASAP execution.\n"},"type":{"type":"union","types":[{"type":"reference","name":"Task","id":2},{"type":"reference","name":"Function"}]}}],"type":{"type":"instrinct","name":"void"}}]},{"id":13,"name":"queueTask","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":14,"name":"queueTask","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Queues a task on the macro task queue for turn-based execution."},"parameters":[{"id":15,"name":"task","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The task to queue up for turn-based execution.\n"},"type":{"type":"union","types":[{"type":"reference","name":"Task","id":2},{"type":"reference","name":"Function"}]}}],"type":{"type":"instrinct","name":"void"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[8]},{"title":"Properties","kind":1024,"children":[6,7]},{"title":"Methods","kind":2048,"children":[18,16,20,10,13]}]},{"id":2,"name":"Task","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"Either a Function or a class with a call method that will do work when dequeued."},"children":[{"id":3,"name":"call","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":4,"name":"call","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Call it."},"type":{"type":"instrinct","name":"void"}}]}],"groups":[{"title":"Methods","kind":2048,"children":[3]}]}],"groups":[{"title":"Classes","kind":128,"children":[5]},{"title":"Interfaces","kind":256,"children":[2]}]} | ||
{"name":"aurelia-task-queue","children":[{"id":5,"name":"TaskQueue","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Implements an asynchronous task queue."},"children":[{"id":8,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of TaskQueue."},"signatures":[{"id":9,"name":"new TaskQueue","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of TaskQueue."},"type":{"type":"reference","name":"TaskQueue","id":5}}],"sources":[{"fileName":"aurelia-task-queue.d.ts","line":33,"character":18}]},{"id":6,"name":"flushing","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Whether the queue is in the process of flushing."},"sources":[{"fileName":"aurelia-task-queue.d.ts","line":28,"character":10}],"type":{"type":"instrinct","name":"any"}},{"id":7,"name":"longStacks","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Enables long stack traces for queued tasks."},"sources":[{"fileName":"aurelia-task-queue.d.ts","line":33,"character":12}],"type":{"type":"instrinct","name":"any"}},{"id":18,"name":"flushMicroTaskQueue","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":19,"name":"flushMicroTaskQueue","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Immediately flushes the micro task queue."},"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-task-queue.d.ts","line":60,"character":21}]},{"id":16,"name":"flushTaskQueue","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":17,"name":"flushTaskQueue","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Immediately flushes the task queue."},"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-task-queue.d.ts","line":55,"character":16}]},{"id":20,"name":"prepareQueueStack","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":21,"name":"prepareQueueStack","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":22,"name":"separator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-task-queue.d.ts","line":61,"character":19}]},{"id":10,"name":"queueMicroTask","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":11,"name":"queueMicroTask","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Queues a task on the micro task queue for ASAP execution."},"parameters":[{"id":12,"name":"task","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The task to queue up for ASAP execution.\n"},"type":{"type":"union","types":[{"type":"reference","name":"Task","id":2},{"type":"reference","name":"Function"}]}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-task-queue.d.ts","line":44,"character":16}]},{"id":13,"name":"queueTask","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":14,"name":"queueTask","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Queues a task on the macro task queue for turn-based execution."},"parameters":[{"id":15,"name":"task","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The task to queue up for turn-based execution.\n"},"type":{"type":"union","types":[{"type":"reference","name":"Task","id":2},{"type":"reference","name":"Function"}]}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-task-queue.d.ts","line":50,"character":11}]}],"groups":[{"title":"Constructors","kind":512,"children":[8]},{"title":"Properties","kind":1024,"children":[6,7]},{"title":"Methods","kind":2048,"children":[18,16,20,10,13]}],"sources":[{"fileName":"aurelia-task-queue.d.ts","line":23,"character":30}]},{"id":2,"name":"Task","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"Either a Function or a class with a call method that will do work when dequeued."},"children":[{"id":3,"name":"call","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":4,"name":"call","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Call it."},"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-task-queue.d.ts","line":14,"character":6}]}],"groups":[{"title":"Methods","kind":2048,"children":[3]}],"sources":[{"fileName":"aurelia-task-queue.d.ts","line":9,"character":29}]}],"groups":[{"title":"Classes","kind":128,"children":[5]},{"title":"Interfaces","kind":256,"children":[2]}]} |
@@ -0,1 +1,8 @@ | ||
<a name="1.3.0"></a> | ||
# [1.3.0](https://github.com/aurelia/task-queue/compare/1.2.1...1.3.0) (2018-05-08) | ||
### Bug Fixes | ||
* Removed setImmediate error handling code which was not compatible with Electron. | ||
<a name="1.2.1"></a> | ||
@@ -2,0 +9,0 @@ ## [1.2.1](https://github.com/aurelia/task-queue/compare/1.2.0...v1.2.1) (2017-10-01) |
{ | ||
"name": "aurelia-task-queue", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "A simple task queue for the browser that enables the queuing of both standard tasks and micro tasks.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import {DOM, FEATURE} from 'aurelia-pal'; | ||
let hasSetImmediate = typeof setImmediate === 'function'; | ||
const stackSeparator = '\nEnqueued in TaskQueue by:\n'; | ||
@@ -50,4 +49,2 @@ const microStackSeparator = '\nEnqueued in MicroTaskQueue by:\n'; | ||
task.onError(error); | ||
} else if (hasSetImmediate) { | ||
setImmediate(() => { throw error; }); | ||
} else { | ||
@@ -54,0 +51,0 @@ setTimeout(() => { throw error; }, 0); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142333
51
2215