Skip to content

Commit

Permalink
Fix lint in browser example
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreif committed Nov 3, 2024
1 parent 5e7bc71 commit 083ae61
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/examples/browser-example.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'dotenv/config'
import { RingApi } from '../ring-client-api'
import { promisify } from 'util'
const fs = require('fs'),
path = require('path'),
express = require('express') // note, express is not installed by default so you will need to run `npm i express`
import fs from 'node:fs/promises'
import path from 'node:path'
// @ts-expect-error express is not installed by default so you will need to run `npm i express`
import express from 'express'

/**
* This example creates an hls stream which is viewable in a browser
Expand Down Expand Up @@ -33,8 +33,8 @@ async function example() {
)
})

if (!(await promisify(fs.exists)(publicOutputDirectory))) {
await promisify(fs.mkdir)(publicOutputDirectory)
if (!(await fs.stat(publicOutputDirectory))) {
await fs.mkdir(publicOutputDirectory)
}

const call = await camera.streamVideo({
Expand Down

0 comments on commit 083ae61

Please sign in to comment.