Socket
Socket
Sign inDemoInstall

isows

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isows - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

_cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebSocket = void 0;
const ws_1 = require("ws");
const WebSocket_ = require("ws");
const utils_js_1 = require("./utils.js");

@@ -11,5 +11,7 @@ exports.WebSocket = (() => {

catch {
return ws_1.WebSocket;
if (WebSocket_.WebSocket)
return WebSocket_.WebSocket;
return WebSocket_;
}
})();
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { WebSocket as WebSocketNode_ } from "ws";
import * as WebSocket_ from "ws";
import { getNativeWebSocket } from "./utils.js";

@@ -8,5 +8,7 @@ export const WebSocket = (() => {

catch {
return WebSocketNode_;
if (WebSocket_.WebSocket)
return WebSocket_.WebSocket;
return WebSocket_;
}
})();
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

/// <reference types="ws" />
import * as WebSocket_ from "ws";
export declare const WebSocket: {

@@ -9,3 +9,3 @@ new (url: string | URL, protocols?: string | string[] | undefined): WebSocket;

readonly CLOSED: 3;
} | typeof import("ws");
} | typeof WebSocket_;
//# sourceMappingURL=index.d.ts.map
# isows
## 1.0.3
### Patch Changes
- [`8d37b99`](https://github.com/wagmi-dev/isows/commit/8d37b99ad08c286c20a50864d98c8119d7dae0db) Thanks [@jxom](https://github.com/jxom)! - Fixed CommonJS builds.
## 1.0.2

@@ -4,0 +10,0 @@

@@ -1,2 +0,2 @@

import { WebSocket as WebSocketNode_ } from "ws";
import * as WebSocket_ from "ws";
import { getNativeWebSocket } from "./utils.js";

@@ -8,4 +8,5 @@

} catch {
return WebSocketNode_;
if (WebSocket_.WebSocket) return WebSocket_.WebSocket;
return WebSocket_;
}
})();
{
"name": "isows",
"description": "Isomorphic WebSocket",
"version": "1.0.2",
"version": "1.0.3",
"browser": "./_esm/native.js",

@@ -6,0 +6,0 @@ "main": "./_cjs/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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