Comparing version 8.0.2 to 8.1.0
# Changelog | ||
## 8.1.0 | ||
- [CHANGED] Move @types dependencies to devDependencies | ||
- [CHANGED] Upgrade typescript to 5.1.3 | ||
## 8.0.2 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "pusher-js", | ||
"version": "8.0.2", | ||
"version": "8.1.0", | ||
"description": "Pusher Channels JavaScript library for browsers, React Native, NodeJS and web workers", | ||
@@ -57,3 +57,3 @@ "main": "dist/node/pusher.js", | ||
"ts-loader": "^6.0.4", | ||
"typescript": "^3.9.0", | ||
"typescript": "^5.1.3", | ||
"uglify-js": "^2.6.2", | ||
@@ -64,9 +64,9 @@ "webpack": "^4.46.0", | ||
"webpack-merge": "^5.8.0", | ||
"xmlhttprequest": "^1.8.0" | ||
"xmlhttprequest": "^1.8.0", | ||
"@types/node": "^20.3.0", | ||
"@types/express-serve-static-core": "4.17.28" | ||
}, | ||
"dependencies": { | ||
"tweetnacl": "^1.0.3", | ||
"@types/node": "^14.14.31", | ||
"@types/express-serve-static-core": "4.17.28" | ||
"tweetnacl": "^1.0.3" | ||
} | ||
} |
@@ -7,3 +7,3 @@ { | ||
"declarationDir": "types", | ||
"target": "es3", | ||
"target": "ES6", | ||
"removeComments": true, | ||
@@ -10,0 +10,0 @@ "moduleResolution": "node", |
@@ -10,3 +10,3 @@ export declare enum AuthRequestType { | ||
} | ||
export declare type ChannelAuthorizationCallback = (error: Error | null, authData: ChannelAuthorizationData | null) => void; | ||
export type ChannelAuthorizationCallback = (error: Error | null, authData: ChannelAuthorizationData | null) => void; | ||
export interface ChannelAuthorizationRequestParams { | ||
@@ -23,3 +23,3 @@ socketId: string; | ||
} | ||
export declare type UserAuthenticationCallback = (error: Error | null, authData: UserAuthenticationData | null) => void; | ||
export type UserAuthenticationCallback = (error: Error | null, authData: UserAuthenticationData | null) => void; | ||
export interface UserAuthenticationRequestParams { | ||
@@ -31,3 +31,3 @@ socketId: string; | ||
} | ||
export declare type AuthTransportCallback = ChannelAuthorizationCallback | UserAuthenticationCallback; | ||
export type AuthTransportCallback = ChannelAuthorizationCallback | UserAuthenticationCallback; | ||
export interface AuthOptionsT<AuthHandler> { | ||
@@ -34,0 +34,0 @@ transport: 'ajax' | 'jsonp'; |
import { Options } from './options'; | ||
import { ChannelAuthorizationHandler, UserAuthenticationHandler } from './auth/options'; | ||
import * as nacl from 'tweetnacl'; | ||
export declare type AuthTransport = 'ajax' | 'jsonp'; | ||
export declare type Transport = 'ws' | 'wss' | 'xhr_streaming' | 'xhr_polling' | 'sockjs'; | ||
export type AuthTransport = 'ajax' | 'jsonp'; | ||
export type Transport = 'ws' | 'wss' | 'xhr_streaming' | 'xhr_polling' | 'sockjs'; | ||
export interface Config { | ||
@@ -7,0 +7,0 @@ activityTimeout: number; |
@@ -13,7 +13,4 @@ import Strategy from './strategy'; | ||
abort: () => void; | ||
forceMinPriority: () => void; | ||
} | { | ||
abort: () => void; | ||
forceMinPriority: (p: any) => void; | ||
}; | ||
} |
@@ -7,3 +7,3 @@ interface Scheduler { | ||
} | ||
declare type Delay = number; | ||
type Delay = number; | ||
export { Scheduler, Canceller, Delay }; |
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 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 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 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 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
1
6023687
32
60527
- Removed@types/node@^14.14.31
- Removed@types/express-serve-static-core@4.17.28(transitive)
- Removed@types/node@14.18.63(transitive)
- Removed@types/qs@6.9.18(transitive)
- Removed@types/range-parser@1.2.7(transitive)