Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed May 9, 2024
1 parent 7ddf4ab commit 49b3853
Show file tree
Hide file tree
Showing 21 changed files with 771 additions and 926 deletions.
46 changes: 0 additions & 46 deletions .eslintrc.js

This file was deleted.

6 changes: 5 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ module.exports = function (grunt)
cover: `${c8} grunt test-fast`,
cover_report: `${c8} report -r lcov`,
cover_check: `${c8} check-coverage --statements 100 --branches 100 --functions 100 --lines 100`
}).map(([k, cmd]) => [k, { cmd, stdio: 'inherit' }]))
}).map(([k, cmd]) => [k, {
cmd,
stdio: 'inherit',
shell: '/bin/bash'
}]))
});

grunt.loadNpmTasks('grunt-eslint');
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ grunt lint
- <a name="toc_bpmuxcarrier-options"></a>[BPMux](#bpmuxcarrier-options)
- <a name="toc_bidi_reader"></a>[bidi_reader](#bidi_reader)
- <a name="toc_bpmuxprototypemultiplexoptions"></a><a name="toc_bpmuxprototype"></a>[BPMux.prototype.multiplex](#bpmuxprototypemultiplexoptions)
- <a name="toc_duplex"></a>[duplex](#duplex)
- <a name="toc_bpmuxeventspeer_multiplexduplex"></a><a name="toc_bpmuxevents"></a>[BPMux.events.peer_multiplex](#bpmuxeventspeer_multiplexduplex)
- <a name="toc_bpmuxeventshandshakeduplex-handshake_data-delay_handshake"></a>[BPMux.events.handshake](#bpmuxeventshandshakeduplex-handshake_data-delay_handshake)
- <a name="toc_bpmuxeventshandshake_sentduplex-complete"></a>[BPMux.events.handshake_sent](#bpmuxeventshandshake_sentduplex-complete)
Expand Down Expand Up @@ -549,6 +550,22 @@ are required because HTTP/2 push streams are unidirectional.

<sub>Go: [TOC](#tableofcontents) | [BPMux.prototype](#toc_bpmuxprototype)</sub>

## duplex()

> const orig_getReader = readable.getReader;
readable.getReader = function ()
{
const reader = orig_getReader.apply(this, arguments);
Object.defineProperty(reader, 'closed',
{
value: new Promise(() =&gt; {}),
writable: false
});
return reader;
};

<sub>Go: [TOC](#tableofcontents)</sub>

<a name="bpmuxevents"></a>

## BPMux.events.peer_multiplex(duplex)
Expand Down
50 changes: 50 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/* eslint-env node */
const js = require('@eslint/js');
const { EslintEnvProcessor } = require('eslint-plugin-eslint-env');

module.exports = [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
},
processor: new EslintEnvProcessor(),
"rules": {
"indent": [
"error", 4, {
"SwitchCase": 1,
"CallExpression": {
"arguments": "off"
},
"FunctionDeclaration": {
"parameters": "off"
},
"FunctionExpression": {
"parameters": "off"
}
}
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"error",
"always"
],
"brace-style": [
"error",
"allman", {
"allowSingleLine": true
}
],
"no-unused-vars": [
"error", {
"varsIgnorePattern": "^unused_",
"argsIgnorePattern": "^unused_",
"caughtErrorsIgnorePattern": "^unused"
}
]
}
}
];
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ function BPMux(carrier, options)

(async () =>
{
while (true) // eslint-disable-line no-constant-condition
while (true)
{
let done, value, writable, readable;

Expand Down Expand Up @@ -1678,7 +1678,7 @@ BPMux.prototype.__send = function ()
n -= 1;
}

while (true) // eslint-disable-line no-constant-condition
while (true)
{
space = this._out_stream._writableState.highWaterMark - this._out_stream._writableState.length;
output = [];
Expand Down
Loading

0 comments on commit 49b3853

Please sign in to comment.