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 type { Channel } from "castv2";
import messaging from "../../messaging"; import messaging from "../../messaging";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,3 @@
"use strict";
import logger from "../lib/logger"; import logger from "../lib/logger";
import options from "../lib/options"; 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 type { TypedMessagePort } from "../lib/TypedMessagePort";
import messaging, { Message } from "../messaging"; import messaging, { Message } from "../messaging";
import type { ReceiverDevice } from "../types"; import type { ReceiverDevice } from "../types";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,3 @@
"use strict";
const PLATFORM_MAC = "Macintosh; Intel Mac OS X 12_5"; 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_MAC_HYBRID = "Macintosh; Intel Mac OS X 12_5; rv:103.0";
const PLATFORM_WIN = "Windows NT 10.0; Win64; x64"; const PLATFORM_WIN = "Windows NT 10.0; Win64; x64";

View File

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

View File

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

View File

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

View File

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