Remove unnecessary "use strict" directives

This commit is contained in:
hensm
2022-09-02 06:30:19 +01:00
parent d5eb78f881
commit 8ecd3320f7
48 changed files with 0 additions and 97 deletions

View File

@@ -1,5 +1,3 @@
"use strict";
import type { Channel } from "castv2";
import messaging from "../../messaging";

View File

@@ -1,5 +1,3 @@
"use strict";
import { Channel, Client } from "castv2";
import type { ReceiverMessage, SenderMessage } from "./types";

View File

@@ -1,5 +1,3 @@
"use strict";
import mdns from "mdns";
import type { ReceiverDevice } from "../../messagingTypes";

View File

@@ -1,5 +1,3 @@
"use strict";
import messaging, { Message } from "../../messaging";
import Session from "./Session";

View File

@@ -1,5 +1,3 @@
"use strict";
import CastClient from "./client";
import type {

View File

@@ -1,5 +1,3 @@
"use strict";
export interface Image {
url: string;
height: Nullable<number>;

View File

@@ -1,5 +1,3 @@
"use strict";
import fs from "fs";
import http from "http";
import os from "os";

View File

@@ -1,5 +1,3 @@
"use strict";
import messaging, { Message } from "./messaging";
import { handleCastMessage } from "./components/cast";

View File

@@ -1,5 +1,3 @@
"use strict";
import fs from "fs";
/**

View File

@@ -1,5 +1,3 @@
"use strict";
import { TypedEmitter } from "tiny-typed-emitter";
import { DecodeTransform, EncodeTransform } from "../transforms";

View File

@@ -1,5 +1,3 @@
"use strict";
import type {
Image,
ReceiverStatus,

View File

@@ -1,5 +1,3 @@
"use strict";
import http, { IncomingMessage } from "http";
import WebSocket from "ws";

View File

@@ -1,5 +1,3 @@
"use strict";
import yargs from "yargs";
import { applicationName, applicationVersion } from "../config.json";

View File

@@ -1,5 +1,3 @@
"use strict";
import { Transform, TransformCallback } from "stream";
import type { Message } from "./bridge/messaging";

View File

@@ -1,5 +1,3 @@
"use strict";
import logger from "../lib/logger";
import messaging, { Port, Message } from "../messaging";
import options from "../lib/options";

View File

@@ -1,5 +1,3 @@
"use strict";
import defaultOptions from "../defaultOptions";
import logger from "../lib/logger";
import options from "../lib/options";

View File

@@ -1,5 +1,3 @@
"use strict";
import bridge from "../lib/bridge";
import {
BaseConfig,

View File

@@ -1,5 +1,3 @@
"use strict";
import bridge from "../lib/bridge";
import logger from "../lib/logger";
import { TypedEventTarget } from "../lib/TypedEventTarget";

View File

@@ -1,5 +1,3 @@
"use strict";
import logger from "../lib/logger";
import options from "../lib/options";
import { stringify } from "../lib/utils";

View File

@@ -1,5 +1,3 @@
"use strict";
import logger from "../lib/logger";
import options from "../lib/options";

View File

@@ -1,6 +1,3 @@
/* eslint-disable @typescript-eslint/no-namespace */
"use strict";
import type { TypedMessagePort } from "../lib/TypedMessagePort";
import messaging, { Message } from "../messaging";
import type { ReceiverDevice } from "../types";

View File

@@ -1,5 +1,3 @@
"use strict";
const _ = browser.i18n.getMessage;
export interface KnownApp {

View File

@@ -1,5 +1,3 @@
"use strict";
import { v4 as uuid } from "uuid";
import { Logger } from "../../lib/logger";

View File

@@ -1,5 +1,3 @@
"use strict";
import type Session from "./Session";
import {

View File

@@ -1,5 +1,3 @@
"use strict";
export enum AutoJoinPolicy {
TAB_AND_ORIGIN_SCOPED = "tab_and_origin_scoped",
ORIGIN_SCOPED = "origin_scoped",

View File

@@ -1,5 +1,3 @@
"use strict";
import { Logger } from "../../lib/logger";
import type { Message } from "../../messaging";

View File

@@ -1,5 +1,3 @@
"use strict";
import { v4 as uuid } from "uuid";
import { Logger } from "../../../lib/logger";

View File

@@ -1,5 +1,3 @@
"use strict";
import type { Image, Volume } from "../classes";
import {

View File

@@ -1,5 +1,3 @@
"use strict";
export enum ContainerType {
GENERIC_CONTAINER,
AUDIOBOOK_CONTAINER

View File

@@ -1,5 +1,3 @@
"use strict";
export * from "./enums";
export * from "./classes";

View File

@@ -1,5 +1,3 @@
"use strict";
/**
* Keep in sync with bridge types at:
* app/src/bridge/components/cast/types.ts

View File

@@ -1,5 +1,3 @@
"use strict";
import options from "../../lib/options";
import { Logger } from "../../lib/logger";

View File

@@ -1,5 +1,3 @@
"use strict";
/**
* Cast Chrome Sender SDK loader script.
*

View File

@@ -1,5 +1,3 @@
"use strict";
import type { WhitelistItemData } from "./background/whitelist";
export interface Options {

View File

@@ -1,5 +1,3 @@
"use strict";
interface TypedEvents {
[key: string]: any;
}

View File

@@ -1,5 +1,3 @@
"use strict";
/**
* Provides a typed interface to MessagePort objects.
*/

View File

@@ -1,5 +1,3 @@
"use strict";
/**
* Provides a typed interface to runtime.Port objects.
*/

View File

@@ -1,5 +1,3 @@
"use strict";
/**
* Allows typed access to a StorageArea.
*

View File

@@ -1,5 +1,3 @@
"use strict";
import semver from "semver";
import logger from "./logger";

View File

@@ -1,5 +1,3 @@
"use strict";
export class Logger {
constructor(private prefix: string) {}

View File

@@ -1,5 +1,3 @@
"use strict";
const WILDCARD_SCHEMES = ["http", "https", "ws", "wss"];
export const REMOTE_MATCH_PATTERN_REGEX =

View File

@@ -1,5 +1,3 @@
"use strict";
import logger from "./logger";
import options from "./options";

View File

@@ -1,5 +1,3 @@
"use strict";
import defaultOptions, { Options } from "../defaultOptions";
export { Options };

View File

@@ -1,5 +1,3 @@
"use strict";
const PLATFORM_MAC = "Macintosh; Intel Mac OS X 12_5";
const PLATFORM_MAC_HYBRID = "Macintosh; Intel Mac OS X 12_5; rv:103.0";
const PLATFORM_WIN = "Windows NT 10.0; Win64; x64";

View File

@@ -1,5 +1,3 @@
"use strict";
import { ReceiverSelectorMediaType } from "../types";
export function getNextEllipsis(ellipsis: string): string {

View File

@@ -1,5 +1,3 @@
"use strict";
import type { TypedPort } from "./lib/TypedPort";
import type {

View File

@@ -1,5 +1,3 @@
"use strict";
import type { SessionRequest } from "./cast/sdk/classes";
import type { MediaStatus, ReceiverStatus } from "./cast/sdk/types";

View File

@@ -1,5 +1,3 @@
"use strict";
import Options from "./Options.svelte";
// macOS styles