@supabase/realtime-js
Advanced tools
Comparing version 2.10.1 to 2.10.2
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.10.1"; | ||
export declare const version = "2.10.2"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '2.10.1'; | ||
exports.version = '2.10.2'; | ||
//# sourceMappingURL=version.js.map |
@@ -223,3 +223,3 @@ "use strict"; | ||
async send(args, opts = {}) { | ||
var _a; | ||
var _a, _b; | ||
if (!this._canPush() && args.type === 'broadcast') { | ||
@@ -244,8 +244,4 @@ const { event, payload: endpoint_payload } = args; | ||
const response = await this._fetchWithTimeout(this.broadcastEndpointURL, options, (_a = opts.timeout) !== null && _a !== void 0 ? _a : this.timeout); | ||
if (response.ok) { | ||
return 'ok'; | ||
} | ||
else { | ||
return 'error'; | ||
} | ||
await ((_b = response.body) === null || _b === void 0 ? void 0 : _b.cancel()); | ||
return response.ok ? 'ok' : 'error'; | ||
} | ||
@@ -252,0 +248,0 @@ catch (error) { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.10.1"; | ||
export declare const version = "2.10.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = '2.10.1'; | ||
export const version = '2.10.2'; | ||
//# sourceMappingURL=version.js.map |
@@ -194,3 +194,3 @@ import { CHANNEL_EVENTS, CHANNEL_STATES } from './lib/constants'; | ||
async send(args, opts = {}) { | ||
var _a; | ||
var _a, _b; | ||
if (!this._canPush() && args.type === 'broadcast') { | ||
@@ -215,8 +215,4 @@ const { event, payload: endpoint_payload } = args; | ||
const response = await this._fetchWithTimeout(this.broadcastEndpointURL, options, (_a = opts.timeout) !== null && _a !== void 0 ? _a : this.timeout); | ||
if (response.ok) { | ||
return 'ok'; | ||
} | ||
else { | ||
return 'error'; | ||
} | ||
await ((_b = response.body) === null || _b === void 0 ? void 0 : _b.cancel()); | ||
return response.ok ? 'ok' : 'error'; | ||
} | ||
@@ -223,0 +219,0 @@ catch (error) { |
{ | ||
"name": "@supabase/realtime-js", | ||
"version": "2.10.1", | ||
"version": "2.10.2", | ||
"description": "Listen to realtime updates to your PostgreSQL database", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,1 +0,1 @@ | ||
export const version = '2.10.1' | ||
export const version = '2.10.2' |
@@ -466,7 +466,4 @@ import { CHANNEL_EVENTS, CHANNEL_STATES } from './lib/constants' | ||
if (response.ok) { | ||
return 'ok' | ||
} else { | ||
return 'error' | ||
} | ||
await response.body?.cancel() | ||
return response.ok ? 'ok' : 'error' | ||
} catch (error: any) { | ||
@@ -473,0 +470,0 @@ if (error.name === 'AbortError') { |
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
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
369659
6624