Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mercuryworkshop/epoxy-transport

Package Overview
Dependencies
Maintainers
5
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mercuryworkshop/epoxy-transport - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

4

package.json
{
"name": "@mercuryworkshop/epoxy-transport",
"version": "1.0.2",
"version": "1.1.0",
"description": "a bare transport that implements end-to-end encryption with epoxy-tls and wisp",

@@ -14,3 +14,3 @@ "main": "./dist/index.mjs",

"dependencies": {
"@mercuryworkshop/epoxy-tls": "^1.1.1",
"@mercuryworkshop/epoxy-tls": "^1.4.1",
"esbuild-plugin-umd-wrapper": "^2.0.0",

@@ -17,0 +17,0 @@ "rollup": "^4.12.0",

@@ -29,10 +29,15 @@ import { BareHeaders, BareResponse, TransferrableResponse, type BareTransport } from "@mercuryworkshop/bare-mux";

body = await body.arrayBuffer();
let payload = await this.epxclient.fetch(remote.href, { method, body, headers, redirect: "manual" });
return {
body: payload.body!,
headers: (payload as any).rawHeaders,
status: payload.status,
statusText: payload.statusText,
};
try {
let payload = await this.epxclient.fetch(remote.href, { method, body, headers, redirect: "manual" });
return {
body: payload.body!,
headers: (payload as any).rawHeaders,
status: payload.status,
statusText: payload.statusText,
};
} catch (err) {
console.error(err);
throw err;
}
}

@@ -61,5 +66,9 @@

return async (data) => {
(await epsocket).send(data);
if (typeof data === 'string') {
(await epsocket).send_text(data);
} else {
(await epsocket).send_binary(data);
}
};
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc