Skip to content

Commit

Permalink
Merge pull request #6 from kevinGodell/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
kevinGodell authored Aug 9, 2023
2 parents 02bd450 + c55407b commit 04cbe54
Show file tree
Hide file tree
Showing 7 changed files with 1,364 additions and 321 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -35,7 +35,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -54,7 +54,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
4 changes: 0 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
image: Visual Studio 2017
environment:
matrix:
- nodejs_version: '14'
platform: x86
- nodejs_version: '14'
platform: x64
- nodejs_version: '16'
platform: x86
- nodejs_version: '16'
Expand Down
2 changes: 1 addition & 1 deletion examples/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pipe2pam.on('data', data => {
console.log(
`received pam: ${++counter}, depth: ${data.depth}, height: ${data.height}, maxval: ${data.maxval}, pam.length: ${data.pam.length}, headers.length: ${data.headers.length}, pixels.length: ${
data.pixels.length
}, tupltype: ${data.tupltype}, width: ${data.width}, chunks: ${data.chunks}`
}, tupltype: ${data.tupltype}, width: ${data.width}, chunks: ${data.chunks}`,
);
});

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Transform } = require('stream');
const { Transform } = require('node:stream');

const BufferPool = require('./lib/buffer-pool');

Expand All @@ -23,8 +23,8 @@ class Pipe2Pam extends Transform {
#chunksTotalLength = 0;

constructor(options) {
options = options instanceof Object ? options : {};
super({ writableObjectMode: false, readableObjectMode: true });
options = options && typeof options === 'object' ? options : {};
if (+options.pool > 0) {
this.#bufferPool = new BufferPool({ length: +options.pool + 1 });
this.#poolLength = this.#bufferPool.length;
Expand Down
4 changes: 2 additions & 2 deletions lib/ffmpeg.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffmpegStatic = require('ffmpeg-static');

module.exports = ffmpegPath;
module.exports = ffmpegStatic;
Loading

0 comments on commit 04cbe54

Please sign in to comment.