Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
melchor629 committed Dec 4, 2024
1 parent c338646 commit b9f96e2
Show file tree
Hide file tree
Showing 28 changed files with 529 additions and 415 deletions.
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default [
noJsx: true,
}),
{
name: 'flac-bindings:vitest',
files: ['test/**'],
plugins: {
vitest,
Expand All @@ -16,6 +17,7 @@ export default [
},
},
{
name: 'flac-bindings:examples',
files: ['examples/**'],
rules: {
'import/no-unresolved': 'off',
Expand Down
2 changes: 1 addition & 1 deletion examples/easy-play.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Speaker from 'speaker'
import { FileDecoder } from 'flac-bindings'
import Speaker from 'speaker'
import createArgs from './_args.js'

const args = createArgs(import.meta.url)
Expand Down
2 changes: 1 addition & 1 deletion examples/flac2wav.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs'
import wav from 'wav'
import { FileDecoder } from 'flac-bindings'
import wav from 'wav'
import createArgs from './_args.js'

const args = createArgs(import.meta.url)
Expand Down
2 changes: 1 addition & 1 deletion examples/mic2flac.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// requires sox (macOS/Windows) or arecord (Linux)
import mic from 'mic'
import { FileEncoder } from 'flac-bindings'
import mic from 'mic'
import createArgs from './_args.js'

const args = createArgs(import.meta.url)
Expand Down
2 changes: 1 addition & 1 deletion examples/mic2flac2icecast.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import http from 'http'
// requires sox (macOS/Windows) or arecord (Linux)
import mic from 'mic'
import { StreamEncoder } from 'flac-bindings'
import mic from 'mic'

// here there are a lot of stuff to configure, change the script with the right value :)

Expand Down
2 changes: 1 addition & 1 deletion examples/wav2flac.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs'
import wav from 'wav'
import { FileEncoder } from 'flac-bindings'
import wav from 'wav'
import createArgs from './_args.js'

const args = createArgs(import.meta.url)
Expand Down
6 changes: 3 additions & 3 deletions examples/write-metadata-2.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { format, Chain, metadata } from 'flac-bindings/api'
import { basename } from 'path'
import { homedir } from 'os'
import { homedir } from 'node:os'
import { basename } from 'node:path'
import { Chain, format, metadata } from 'flac-bindings/api'
import createArgs from './_args.js'

const args = createArgs(import.meta.url)
Expand Down
6 changes: 3 additions & 3 deletions examples/write-metadata.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { format, SimpleIterator, metadata } from 'flac-bindings'
import { basename } from 'path'
import { homedir } from 'os'
import { homedir } from 'node:os'
import { basename } from 'node:path'
import { SimpleIterator, format, metadata } from 'flac-bindings'
import createArgs from './_args.js'

const args = createArgs(import.meta.url)
Expand Down
2 changes: 1 addition & 1 deletion lib/decoder/file-decoder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Readable } from 'node:stream'
import debug from 'debug'
import * as flac from '../api.js'

class FileDecoder extends Readable {
Expand Down
2 changes: 1 addition & 1 deletion lib/decoder/stream-decoder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import stream from 'node:stream'
import debug from 'debug'
import * as flac from '../api.js'

class StreamDecoder extends stream.Transform {
Expand Down
2 changes: 1 addition & 1 deletion lib/encoder/file-encoder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Writable } from 'node:stream'
import debug from 'debug'
import BaseEncoder from './helper.js'

class FileEncoder extends Writable {
Expand Down
3 changes: 2 additions & 1 deletion lib/encoder/helper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
EncoderBuilder, Encoder, format, fns,
Encoder,
EncoderBuilder, fns, format,
} from '../api.js'

class BaseEncoder {
Expand Down
2 changes: 1 addition & 1 deletion lib/encoder/stream-encoder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Transform } from 'node:stream'
import debug from 'debug'
import { Encoder } from '../api.js'
import BaseEncoder from './helper.js'

Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * as api from './api.js'
export { StreamEncoder, FileEncoder } from './encoder/index.js'
export { StreamDecoder, FileDecoder } from './decoder/index.js'
export { FileEncoder, StreamEncoder } from './encoder/index.js'
export { FileDecoder, StreamDecoder } from './decoder/index.js'
Loading

0 comments on commit b9f96e2

Please sign in to comment.