Skip to content

Commit

Permalink
fix: use default imports for event-target-shim (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlaz authored Oct 21, 2024
1 parent 441bfc3 commit 31836c1
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/MediaDevices.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventTarget, Event, defineEventAttribute } from 'event-target-shim/index';
import { EventTarget, Event, defineEventAttribute } from 'event-target-shim';
import { NativeModules } from 'react-native';

import getDisplayMedia from './getDisplayMedia';
Expand Down
2 changes: 1 addition & 1 deletion src/MediaStream.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventTarget, defineEventAttribute } from 'event-target-shim/index';
import { EventTarget, defineEventAttribute } from 'event-target-shim';
import { NativeModules } from 'react-native';

import MediaStreamTrack, { MediaStreamTrackInfo } from './MediaStreamTrack';
Expand Down
2 changes: 1 addition & 1 deletion src/MediaStreamTrack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventTarget, Event, defineEventAttribute } from 'event-target-shim/index';
import { EventTarget, Event, defineEventAttribute } from 'event-target-shim';
import { NativeModules } from 'react-native';

import { MediaTrackConstraints } from './Constraints';
Expand Down
2 changes: 1 addition & 1 deletion src/MediaStreamTrackEvent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Event } from 'event-target-shim/index';
import { Event } from 'event-target-shim';

import type MediaStreamTrack from './MediaStreamTrack';

Expand Down
2 changes: 1 addition & 1 deletion src/MessageEvent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Event } from 'event-target-shim/index';
import { Event } from 'event-target-shim';

export type MessageEventData = string | ArrayBuffer | Blob;

Expand Down
2 changes: 1 addition & 1 deletion src/RTCDataChannel.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as base64 from 'base64-js';
import { EventTarget, defineEventAttribute } from 'event-target-shim/index';
import { EventTarget, defineEventAttribute } from 'event-target-shim';
import { NativeModules } from 'react-native';

import { addListener, removeListener } from './EventEmitter';
Expand Down
2 changes: 1 addition & 1 deletion src/RTCDataChannelEvent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Event } from 'event-target-shim/index';
import { Event } from 'event-target-shim';

import type RTCDataChannel from './RTCDataChannel';

Expand Down
2 changes: 1 addition & 1 deletion src/RTCErrorEvent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Event } from 'event-target-shim/index';
import { Event } from 'event-target-shim';

type RTCPeerConnectionErrorFunc =
| 'addTransceiver'
Expand Down
2 changes: 1 addition & 1 deletion src/RTCIceCandidateEvent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Event } from 'event-target-shim/index';
import { Event } from 'event-target-shim';

import type RTCIceCandidate from './RTCIceCandidate';

Expand Down
2 changes: 1 addition & 1 deletion src/RTCPeerConnection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventTarget, Event, defineEventAttribute } from 'event-target-shim/index';
import { EventTarget, Event, defineEventAttribute } from 'event-target-shim';
import { NativeModules } from 'react-native';

import { addListener, removeListener } from './EventEmitter';
Expand Down
2 changes: 1 addition & 1 deletion src/RTCTrackEvent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Event } from 'event-target-shim/index';
import { Event } from 'event-target-shim';

import MediaStream from './MediaStream';
import type MediaStreamTrack from './MediaStreamTrack';
Expand Down

0 comments on commit 31836c1

Please sign in to comment.