Comparing version 2.3.0 to 2.3.1
/*@license Copyright 2015-2022 Ably Real-time Ltd (ably.com) | ||
Ably JavaScript Library v2.3.0 | ||
Ably JavaScript Library v2.3.1 | ||
https://github.com/ably/ably-js | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "ably", | ||
"description": "Realtime client library for Ably, the realtime messaging service", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"license": "Apache-2.0", | ||
@@ -82,2 +82,4 @@ "bugs": { | ||
"cors": "^2.8.5", | ||
"csv": "^6.3.9", | ||
"dox": "^1.0.0", | ||
"esbuild": "^0.18.10", | ||
@@ -93,3 +95,3 @@ "esbuild-plugin-umd-wrapper": "ably-forks/esbuild-plugin-umd-wrapper#1.0.7-optional-amd-named-module", | ||
"express": "^4.17.1", | ||
"glob": "~4.4", | ||
"glob": "^10.4.2", | ||
"grunt": "^1.6.1", | ||
@@ -159,8 +161,10 @@ "grunt-cli": "~1.2.0", | ||
"prepare": "npm run build", | ||
"format": "prettier --write --ignore-path .gitignore --ignore-path .prettierignore src test ably.d.ts modular.d.ts webpack.config.js Gruntfile.js scripts/*.[jt]s docs/**/*.md grunt", | ||
"format:check": "prettier --check --ignore-path .gitignore --ignore-path .prettierignore src test ably.d.ts modular.d.ts webpack.config.js Gruntfile.js scripts/*.[jt]s docs/**/*.md grunt", | ||
"format": "prettier --write --ignore-path .gitignore --ignore-path .prettierignore src test ably.d.ts modular.d.ts webpack.config.js Gruntfile.js scripts/**/*.[jt]s docs/**/*.md grunt", | ||
"format:check": "prettier --check --ignore-path .gitignore --ignore-path .prettierignore src test ably.d.ts modular.d.ts webpack.config.js Gruntfile.js scripts/**/*.[jt]s docs/**/*.md grunt", | ||
"sourcemap": "source-map-explorer build/ably.min.js", | ||
"modulereport": "tsc --noEmit --esModuleInterop scripts/moduleReport.ts && esr scripts/moduleReport.ts", | ||
"speccoveragereport": "tsc --noEmit --esModuleInterop --target ES2017 --moduleResolution node scripts/specCoverageReport.ts && esr scripts/specCoverageReport.ts", | ||
"process-private-api-data": "tsc --noEmit --esModuleInterop --strictNullChecks scripts/processPrivateApiData/run.ts && esr scripts/processPrivateApiData/run.ts", | ||
"docs": "typedoc" | ||
} | ||
} |
@@ -11,3 +11,3 @@ import * as Ably from 'ably'; | ||
export type ChannelParameters = string | ChannelNameAndOptions; | ||
export declare const version = "2.3.0"; | ||
export declare const version = "2.3.1"; | ||
export declare function channelOptionsWithAgent(options?: Ably.ChannelOptions): { | ||
@@ -14,0 +14,0 @@ params: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.channelOptionsWithAgent = exports.version = void 0; | ||
exports.version = '2.3.0'; | ||
exports.version = '2.3.1'; | ||
function channelOptionsWithAgent(options) { | ||
@@ -6,0 +6,0 @@ return Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.params), { agent: `react-hooks/${exports.version}` }) }); |
@@ -37,3 +37,3 @@ "use strict"; | ||
setConnectionState(stateChange.current); | ||
}); | ||
}, params.ablyId); | ||
// similar to connection states, we should only attempt to enter presence when in certain | ||
@@ -40,0 +40,0 @@ // channel states. |
@@ -11,3 +11,3 @@ import * as Ably from 'ably'; | ||
export type ChannelParameters = string | ChannelNameAndOptions; | ||
export declare const version = "2.3.0"; | ||
export declare const version = "2.3.1"; | ||
export declare function channelOptionsWithAgent(options?: Ably.ChannelOptions): { | ||
@@ -14,0 +14,0 @@ params: { |
@@ -1,2 +0,2 @@ | ||
export const version = '2.3.0'; | ||
export const version = '2.3.1'; | ||
export function channelOptionsWithAgent(options) { | ||
@@ -3,0 +3,0 @@ return Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.params), { agent: `react-hooks/${version}` }) }); |
@@ -34,3 +34,3 @@ import { useCallback, useEffect, useRef, useState } from 'react'; | ||
setConnectionState(stateChange.current); | ||
}); | ||
}, params.ablyId); | ||
// similar to connection states, we should only attempt to enter presence when in certain | ||
@@ -37,0 +37,0 @@ // channel states. |
@@ -27,2 +27,5 @@ import * as Utils from '../util/utils'; | ||
// internal API to make EventEmitter usable in other SDKs | ||
static readonly EventEmitter = EventEmitter; | ||
/* | ||
@@ -29,0 +32,0 @@ * The public typings declare that this only accepts an object, but since we want to emit a good error message in the case where a non-TypeScript user does one of these things: |
@@ -15,3 +15,3 @@ import * as Ably from 'ably'; | ||
export const version = '2.3.0'; | ||
export const version = '2.3.1'; | ||
@@ -18,0 +18,0 @@ export function channelOptionsWithAgent(options?: Ably.ChannelOptions) { |
@@ -51,3 +51,3 @@ import type * as Ably from 'ably'; | ||
setConnectionState(stateChange.current); | ||
}); | ||
}, params.ablyId); | ||
@@ -54,0 +54,0 @@ // similar to connection states, we should only attempt to enter presence when in certain |
@@ -1,1 +0,1 @@ | ||
{"version":"0.18.1","results":[["/hooks/useConnectionStateListener.test.tsx",{"duration":42,"failed":false}],["/hooks/usePresence.test.tsx",{"duration":102,"failed":false}],["/hooks/useChannelStateListener.test.tsx",{"duration":46,"failed":false}],["/hooks/useChannel.test.tsx",{"duration":327,"failed":false}]]} | ||
{"version":"0.18.1","results":[["/hooks/useConnectionStateListener.test.tsx",{"duration":55,"failed":false}],["/hooks/usePresence.test.tsx",{"duration":84,"failed":true}],["/hooks/useChannelStateListener.test.tsx",{"duration":60,"failed":false}],["/hooks/useChannel.test.tsx",{"duration":307,"failed":false}],["/hooks/usePresenceListener.test.tsx",{"duration":123,"failed":false}]]} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
6103904
62
249
70689