@mercuryworkshop/bare-mux
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -101,3 +101,3 @@ import { v4 } from 'uuid'; | ||
//@ts-expect-error not installing node types for this one thing | ||
self.BCC_VERSION = "1.1.0"; | ||
self.BCC_VERSION = "1.1.1"; | ||
console.debug("BARE_MUX_VERSION: " + self.BCC_VERSION); | ||
@@ -104,0 +104,0 @@ function initTransport(name, config) { |
@@ -1,2 +0,1 @@ | ||
/// <reference lib="webworker" /> | ||
import { BareHeaders, BareTransport, TransferrableResponse } from './BareTypes'; | ||
@@ -3,0 +2,0 @@ export declare function registerRemoteListener(channel: ServiceWorker): void; |
export declare const fetch: typeof globalThis.fetch; | ||
export declare const WebSocket: { | ||
new (url: string | URL, protocols?: string | string[] | undefined): WebSocket; | ||
new (url: string | URL, protocols?: string | string[]): WebSocket; | ||
prototype: WebSocket; | ||
@@ -11,11 +11,11 @@ readonly CONNECTING: 0; | ||
export declare const Request: { | ||
new (input: URL | RequestInfo, init?: RequestInit | undefined): Request; | ||
new (input: RequestInfo | URL, init?: RequestInit): Request; | ||
prototype: Request; | ||
}; | ||
export declare const Response: { | ||
new (body?: BodyInit | null | undefined, init?: ResponseInit | undefined): Response; | ||
new (body?: BodyInit | null, init?: ResponseInit): Response; | ||
prototype: Response; | ||
error(): Response; | ||
json(data: any, init?: ResponseInit | undefined): Response; | ||
redirect(url: string | URL, status?: number | undefined): Response; | ||
json(data: any, init?: ResponseInit): Response; | ||
redirect(url: string | URL, status?: number): Response; | ||
}; | ||
@@ -34,4 +34,4 @@ export declare const XMLHttpRequest: { | ||
send: { | ||
(data: string | Blob | ArrayBufferView | ArrayBufferLike): void; | ||
(data: string | Blob | ArrayBufferView | ArrayBufferLike): void; | ||
(data: string | ArrayBufferLike | Blob | ArrayBufferView): void; | ||
(data: string | ArrayBufferLike | Blob | ArrayBufferView): void; | ||
}; | ||
@@ -38,0 +38,0 @@ }; |
{ | ||
"name": "@mercuryworkshop/bare-mux", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
"type": "module", | ||
"scripts": { | ||
"build": "rollup -c" | ||
}, | ||
"author": "", | ||
"main": "dist/index.cjs", | ||
"types": "dist/index.d.ts", | ||
"types": "dist/types.d.ts", | ||
"exports": { | ||
@@ -39,3 +36,6 @@ ".": { | ||
"uuid": "^9.0.1" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c" | ||
} | ||
} | ||
} |
@@ -45,6 +45,5 @@ # Bare-Mux | ||
SetTransport("EpxMod.EpoxyClient", { wisp: "wss://wisp.mercurywork.shop" }); | ||
SetTransport("BareMod.BareClient", "https://some-bare-server.com" }); | ||
SetTransport("BareMod.BareClient", "https://some-bare-server.com"); | ||
``` | ||
If not using a bundler, include the `bare.cjs` file in releases and call `BareMux.SetTransport`. | ||
If not using a bundler, extract the npm package in releases, and include the `bare.cjs` file and call `BareMux.SetTransport`. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112844
15
980
49