Comparing version 1.0.2 to 1.0.3
"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
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
9867
108