Skip to content

Commit

Permalink
fix extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Oct 25, 2024
1 parent 06e57ac commit ab679fc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/ffmpeg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { Writable } from 'node:stream'

import type { StreamRequestCallback } from 'homebridge'

import type { Logger } from './logger'
import type { StreamingDelegate } from './streamingDelegate'
import type { Logger } from './logger.js'
import type { StreamingDelegate } from './streamingDelegate.js'

import { spawn } from 'node:child_process'
import os from 'node:os'
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import type {
PlatformConfig,
} from 'homebridge'

import type { AutomationReturn } from './autoTypes'
import type { CameraConfig, FfmpegPlatformConfig } from './configTypes'
import type { AutomationReturn } from './autoTypes.js'
import type { CameraConfig, FfmpegPlatformConfig } from './configTypes.js'

import { readFileSync } from 'node:fs'
import http from 'node:http'
Expand All @@ -24,8 +24,8 @@ import {
} from 'homebridge'
import mqtt from 'mqtt'

import { Logger } from './logger'
import { StreamingDelegate } from './streamingDelegate'
import { Logger } from './logger.js'
import { StreamingDelegate } from './streamingDelegate.js'

const version = getVersion()

Expand Down
6 changes: 3 additions & 3 deletions src/prebuffer.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import type { ChildProcess } from 'node:child_process'
import type { Server } from 'node:net'

import type { Logger } from './logger'
import type { MP4Atom } from './recordingDelegate'
import type { Logger } from './logger.js'
import type { MP4Atom } from './recordingDelegate.js'

import { Buffer } from 'node:buffer'
import { spawn } from 'node:child_process'
import EventEmitter from 'node:events'
import { createServer } from 'node:net'
import { env } from 'node:process'

import { listenServer, parseFragmentedMP4 } from './recordingDelegate'
import { listenServer, parseFragmentedMP4 } from './recordingDelegate.js'

interface PrebufferFmp4 {
atom: MP4Atom
Expand Down
8 changes: 4 additions & 4 deletions src/recordingDelegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import type { Readable } from 'node:stream'

import type { API, CameraController, CameraRecordingConfiguration, CameraRecordingDelegate, HAP, HDSProtocolSpecificErrorReason, RecordingPacket } from 'homebridge'

import type { VideoConfig } from './configTypes'
import type { Logger } from './logger'
import type { Mp4Session } from './prebuffer'
import type { VideoConfig } from './configTypes.js'
import type { Logger } from './logger.js'
import type { Mp4Session } from './prebuffer.js'

import { Buffer } from 'node:buffer'
import { spawn } from 'node:child_process'
Expand All @@ -17,7 +17,7 @@ import { env } from 'node:process'
import ffmpegPath from 'ffmpeg-for-homebridge'
import { APIEvent, AudioRecordingCodecType, H264Level, H264Profile } from 'homebridge'

import { PreBuffer } from './prebuffer'
import { PreBuffer } from './prebuffer.js'

const ffmpegPathString = ffmpegPath as unknown as string

Expand Down
4 changes: 2 additions & 2 deletions src/streamingDelegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import type {
} from 'homebridge'
import type { pickPortOptions } from 'pick-port'

import type { CameraConfig, VideoConfig } from './configTypes'
import type { Logger } from './logger'
import type { CameraConfig, VideoConfig } from './configTypes.js'
import type { Logger } from './logger.js'

import { Buffer } from 'node:buffer'
import { spawn } from 'node:child_process'
Expand Down

0 comments on commit ab679fc

Please sign in to comment.