Skip to content

Commit db4637a

Browse files
committed
refactor index.js exporting
1 parent bf6a067 commit db4637a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Queue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const QUEUE = Symbol('task queue')
55
const IS_STOPPED = Symbol('is stopped')
66
const IS_SLEEPING = Symbol('is sleeping')
77

8-
export class Queue {
8+
export default class Queue {
99
constructor (priority = priorities.SYNC) {
1010
this[QUEUE] = new Set()
1111
this.priority = priority

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { Queue } from './Queue'
1+
export { default as Queue } from './Queue'
22
export { priorities } from './queues'

0 commit comments

Comments
 (0)