configurapi-handler-ws 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "configurapi-handler-ws",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "main": "src/index",
5
5
  "files": [
6
6
  "src/*",
package/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  StreamResponse: require('./streamResponse'),
3
- pushbackFunction: require('./postbackFunction'),
3
+ postbackFunction: require('./postbackFunction'),
4
4
  PostbackResponse: require('./postbackResponse'),
5
5
  WebSocketClient: require('./webSocketClient')
6
6
  };
@@ -1,3 +1,3 @@
1
1
  import { PostbackResponse } from "./postbackResponse";
2
2
 
3
- export function pushFunction(postBackFunction: Function, response: PostbackResponse): Promise<void>;
3
+ export function postbackFunction(postBackFunction: Function, response: PostbackResponse): Promise<void>;
@@ -6,7 +6,7 @@ function sleep(ms) {
6
6
  return new Promise(r => setTimeout(r, ms));
7
7
  }
8
8
 
9
- module.exports = async function pushFunction(postBackFunction, response)
9
+ module.exports = async function postbackFunction(postBackFunction, response)
10
10
  {
11
11
  // Helper: postToConnection with light retry on throttling
12
12
  const postJSON = async (body, headers) =>