@trenskow/buffered-promise 0.1.21 → 0.2.0
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.json +49 -0
- package/eslint.config.mjs +46 -0
- package/index.js +2 -5
- package/package.json +6 -2
- package/.eslintrc.js +0 -49
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"es6": true,
|
|
4
|
+
"node": true,
|
|
5
|
+
"mocha": true
|
|
6
|
+
},
|
|
7
|
+
"parserOptions": {
|
|
8
|
+
"ecmaVersion": 2017
|
|
9
|
+
},
|
|
10
|
+
"extends": "eslint:recommended",
|
|
11
|
+
"rules": {
|
|
12
|
+
"indent": [
|
|
13
|
+
"error",
|
|
14
|
+
"tab"
|
|
15
|
+
],
|
|
16
|
+
"linebreak-style": [
|
|
17
|
+
"error",
|
|
18
|
+
"unix"
|
|
19
|
+
],
|
|
20
|
+
"quotes": [
|
|
21
|
+
"error",
|
|
22
|
+
"single"
|
|
23
|
+
],
|
|
24
|
+
"semi": [
|
|
25
|
+
"error",
|
|
26
|
+
"always"
|
|
27
|
+
],
|
|
28
|
+
"no-console": [
|
|
29
|
+
"error", {
|
|
30
|
+
"allow": [
|
|
31
|
+
"warn",
|
|
32
|
+
"error",
|
|
33
|
+
"info"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"no-unused-vars": [
|
|
38
|
+
"error", {
|
|
39
|
+
"argsIgnorePattern": "^_"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"no-empty": [
|
|
43
|
+
"error", {
|
|
44
|
+
"allowEmptyCatch": true
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"require-atomic-updates": "off"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import js from "@eslint/js";
|
|
5
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = path.dirname(__filename);
|
|
9
|
+
const compat = new FlatCompat({
|
|
10
|
+
baseDirectory: __dirname,
|
|
11
|
+
recommendedConfig: js.configs.recommended,
|
|
12
|
+
allConfig: js.configs.all
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export default [...compat.extends("eslint:recommended"), {
|
|
16
|
+
languageOptions: {
|
|
17
|
+
globals: {
|
|
18
|
+
...globals.node,
|
|
19
|
+
...globals.mocha,
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
ecmaVersion: 2017,
|
|
23
|
+
sourceType: "commonjs",
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
rules: {
|
|
27
|
+
indent: ["error", "tab"],
|
|
28
|
+
"linebreak-style": ["error", "unix"],
|
|
29
|
+
quotes: ["error", "single"],
|
|
30
|
+
semi: ["error", "always"],
|
|
31
|
+
|
|
32
|
+
"no-console": ["error", {
|
|
33
|
+
allow: ["warn", "error", "info"],
|
|
34
|
+
}],
|
|
35
|
+
|
|
36
|
+
"no-unused-vars": ["error", {
|
|
37
|
+
argsIgnorePattern: "^_",
|
|
38
|
+
}],
|
|
39
|
+
|
|
40
|
+
"no-empty": ["error", {
|
|
41
|
+
allowEmptyCatch: true,
|
|
42
|
+
}],
|
|
43
|
+
|
|
44
|
+
"require-atomic-updates": "off",
|
|
45
|
+
},
|
|
46
|
+
}];
|
package/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import CustomPromise from '@trenskow/custom-promise';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
CustomPromise = require('@trenskow/custom-promise');
|
|
5
|
-
|
|
6
|
-
exports = module.exports = class BufferedPromise extends CustomPromise {
|
|
3
|
+
export default class BufferedPromise extends CustomPromise {
|
|
7
4
|
|
|
8
5
|
constructor(promise) {
|
|
9
6
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trenskow/buffered-promise",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Simple custom promise for buffering promise results.",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
9
|
},
|
|
@@ -24,6 +25,9 @@
|
|
|
24
25
|
"@trenskow/custom-promise": "^0.12.0"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"eslint": "^
|
|
28
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
29
|
+
"@eslint/js": "^9.13.0",
|
|
30
|
+
"eslint": "^9.13.0",
|
|
31
|
+
"globals": "^15.11.0"
|
|
28
32
|
}
|
|
29
33
|
}
|
package/.eslintrc.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
'env': {
|
|
3
|
-
'es6': true,
|
|
4
|
-
'node': true,
|
|
5
|
-
'mocha': true
|
|
6
|
-
},
|
|
7
|
-
'parserOptions': {
|
|
8
|
-
'ecmaVersion': 2017
|
|
9
|
-
},
|
|
10
|
-
'extends': 'eslint:recommended',
|
|
11
|
-
'rules': {
|
|
12
|
-
'indent': [
|
|
13
|
-
'error',
|
|
14
|
-
'tab'
|
|
15
|
-
],
|
|
16
|
-
'linebreak-style': [
|
|
17
|
-
'error',
|
|
18
|
-
'unix'
|
|
19
|
-
],
|
|
20
|
-
'quotes': [
|
|
21
|
-
'error',
|
|
22
|
-
'single'
|
|
23
|
-
],
|
|
24
|
-
'semi': [
|
|
25
|
-
'error',
|
|
26
|
-
'always'
|
|
27
|
-
],
|
|
28
|
-
'no-console': [
|
|
29
|
-
'error', {
|
|
30
|
-
'allow': [
|
|
31
|
-
'warn',
|
|
32
|
-
'error',
|
|
33
|
-
'info'
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
'no-unused-vars': [
|
|
38
|
-
'error', {
|
|
39
|
-
'argsIgnorePattern': '^_'
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
'no-empty': [
|
|
43
|
-
'error', {
|
|
44
|
-
'allowEmptyCatch': true
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
'require-atomic-updates': 'off'
|
|
48
|
-
}
|
|
49
|
-
};
|