pusher-platform-node
Advanced tools
Comparing version 0.11.1 to 0.12.0
@@ -9,2 +9,9 @@ # Change Log | ||
## [v0.12.0] 2018-03-29 | ||
### Changes | ||
- `grant_type` is now required in `AuthenticatePayload` | ||
- `AuthenticatePayload` is now exported from `index.js` | ||
## [v0.11.1] 2018-01-26 | ||
@@ -27,3 +34,3 @@ | ||
- When instantiating an `Instance` you now provide a `locator` instead of an `instanceId`. | ||
- When instantiating an `Instance` you now provide a `locator` instead of an `instanceId` | ||
@@ -40,3 +47,3 @@ ## [v0.9.0] 2017-09-20 | ||
- Corrected the error when instantiating the library - it now says it requires `instanceId` instead of `instance` field. | ||
- Corrected the error when instantiating the library - it now says it requires `instanceId` instead of `instance` field | ||
@@ -53,3 +60,3 @@ ## [v0.8.2] 2017-08-04 | ||
- Move path sanitization logic all to the `BaseClient`. | ||
- Move path sanitization logic all to the `BaseClient` | ||
- `TokenWithExpiry` is now an exported interface. | ||
@@ -61,3 +68,4 @@ | ||
- Renamed the `instance` to `instanceId` when instantiating an `Instance`. `Instance` class now has a parameter `id` that used to be `instance`. | ||
- Renamed the `instance` to `instanceId` when instantiating an `Instance` | ||
- `Instance` class now has a parameter `id` that used to be `instance` | ||
@@ -68,3 +76,3 @@ ## [v0.7.1] 2017-07-18 | ||
- Requests now return a body as well. | ||
- Requests now return a body as well | ||
@@ -75,7 +83,7 @@ ## [v0.7.0] 2017-07-17 | ||
- Fixed the issue with path - requests now work again. | ||
- Fixed the issue with path - requests now work again | ||
### Changes | ||
- Removed `generateSuperUserJWT` in `Instance`. | ||
- Removed `generateSuperUserJWT` in `Instance` | ||
- Allow `Authenticator` to take in custom `tokenExpiry` and `tokenLeeway` - for SuperUser requests | ||
@@ -95,3 +103,3 @@ - Rename exported `TOKEN_EXPIRY` to `DEFAULT_TOKEN_EXPIRY` | ||
- Changed the artifact name to `pusher-platform-node` | ||
- Renamed `App` to `Instance`, `appId` to `instanceId`. | ||
- Renamed `App` to `Instance`, `appId` to `instanceId` | ||
- Updated the tenancy to the upcoming standard: https://cluster.and.host/services/serviceName/serviceVersion/instanceId/... | ||
@@ -98,0 +106,0 @@ |
{ | ||
"name": "pusher-platform-node", | ||
"version": "0.11.1", | ||
"version": "0.12.0", | ||
"main": "./target/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./target/index.d.ts", |
@@ -12,3 +12,3 @@ # pusher-platform-node | ||
"dependencies": { | ||
"pusher-platform-node": "^0.10.0" | ||
"pusher-platform-node": "~0.12.0" | ||
} | ||
@@ -51,3 +51,3 @@ } | ||
type AuthenticatePayload { | ||
grant_type?: string; | ||
grant_type: string; | ||
refresh_token?: string; | ||
@@ -54,0 +54,0 @@ }; |
@@ -34,3 +34,3 @@ import {IncomingMessage} from "http"; | ||
export interface AuthenticatePayload { | ||
grant_type?: string; | ||
grant_type: string; | ||
refresh_token?: string; | ||
@@ -37,0 +37,0 @@ } |
@@ -1,12 +0,20 @@ | ||
export {IncomingMessage as IncomingMessage} from "http"; | ||
export { IncomingMessage as IncomingMessage } from 'http'; | ||
export {ErrorResponse, AuthenticateOptions} from "./common"; | ||
export {UnsupportedGrantTypeError, InvalidGrantTypeError} from './errors'; | ||
export { | ||
AuthenticateOptions, | ||
AuthenticatePayload, | ||
ErrorResponse, | ||
} from './common'; | ||
export { | ||
InvalidGrantTypeError, | ||
UnsupportedGrantTypeError, | ||
} from './errors'; | ||
export { | ||
default as Instance, | ||
InstanceOptions | ||
} from "./instance"; | ||
} from './instance'; | ||
export {default as BaseClient} from "./base_client"; | ||
export { default as BaseClient } from './base_client'; | ||
@@ -16,2 +24,2 @@ export { | ||
TokenWithExpiry, | ||
} from "./authenticator"; | ||
} from './authenticator'; |
@@ -29,3 +29,3 @@ /// <reference types="node" /> | ||
export interface AuthenticatePayload { | ||
grant_type?: string; | ||
grant_type: string; | ||
refresh_token?: string; | ||
@@ -32,0 +32,0 @@ } |
@@ -1,6 +0,6 @@ | ||
export { IncomingMessage as IncomingMessage } from "http"; | ||
export { ErrorResponse, AuthenticateOptions } from "./common"; | ||
export { UnsupportedGrantTypeError, InvalidGrantTypeError } from './errors'; | ||
export { default as Instance, InstanceOptions } from "./instance"; | ||
export { default as BaseClient } from "./base_client"; | ||
export { AuthenticationResponse, TokenWithExpiry } from "./authenticator"; | ||
export { IncomingMessage as IncomingMessage } from 'http'; | ||
export { AuthenticateOptions, AuthenticatePayload, ErrorResponse } from './common'; | ||
export { InvalidGrantTypeError, UnsupportedGrantTypeError } from './errors'; | ||
export { default as Instance, InstanceOptions } from './instance'; | ||
export { default as BaseClient } from './base_client'; | ||
export { AuthenticationResponse, TokenWithExpiry } from './authenticator'; |
@@ -6,4 +6,4 @@ "use strict"; | ||
var errors_1 = require("./errors"); | ||
exports.InvalidGrantTypeError = errors_1.InvalidGrantTypeError; | ||
exports.UnsupportedGrantTypeError = errors_1.UnsupportedGrantTypeError; | ||
exports.InvalidGrantTypeError = errors_1.InvalidGrantTypeError; | ||
var instance_1 = require("./instance"); | ||
@@ -10,0 +10,0 @@ exports.Instance = instance_1.default; |
Sorry, the diff of this file is not supported yet
61441
779
30