puqeue 1.0.19 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js CHANGED
@@ -5,7 +5,8 @@ module.exports = {
5
5
  'mocha': true
6
6
  },
7
7
  'parserOptions': {
8
- 'ecmaVersion': 2017
8
+ 'ecmaVersion': 2017,
9
+ 'sourceType': 'module'
9
10
  },
10
11
  'extends': 'eslint:recommended',
11
12
  'rules': {
package/index.js CHANGED
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- module.exports = exports = class Queue {
1
+ export default class Queue {
4
2
 
5
3
  constructor(options = {}) {
6
4
  this._name = options.name;
@@ -79,4 +77,4 @@ module.exports = exports = class Queue {
79
77
 
80
78
  }
81
79
 
82
- };
80
+ }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "puqeue",
3
- "version": "1.0.19",
3
+ "version": "1.1.1",
4
4
  "description": "A small queue for promises.",
5
5
  "main": "index.js",
6
+ "type": "module",
6
7
  "scripts": {
7
8
  "test": "./node_modules/mocha/bin/mocha.js test"
8
9
  },
@@ -26,5 +27,8 @@
26
27
  "chai-as-promised": "^7.1.1",
27
28
  "eslint": "^8.56.0",
28
29
  "mocha": "^10.2.0"
30
+ },
31
+ "overrides": {
32
+ "chai": "^5.0.0"
29
33
  }
30
34
  }
package/test/index.js CHANGED
@@ -1,12 +1,9 @@
1
- 'use strict';
1
+ import { use as useChai, expect } from 'chai';
2
+ import chaiAsPromised from 'chai-as-promised';
2
3
 
3
- const
4
- { expect } = require('chai');
4
+ useChai(chaiAsPromised);
5
5
 
6
- require('chai').use(require('chai-as-promised'));
7
-
8
- const
9
- Puqeue = require('../');
6
+ import Puqeue from '../index.js';
10
7
 
11
8
  describe('Puqeue', () => {
12
9
  it ('should come back executed in correct order.', async () => {