@jambonz/time-series 0.2.12 → 0.2.14

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.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -18,7 +18,9 @@ const AlertType = {
18
18
  SP_DEVICE_LIMIT: 'service-provider-device-limit',
19
19
  SP_API_LIMIT: 'service-provider-api-limit',
20
20
  ACCOUNT_INACTIVE: 'account is inactive or suspended',
21
- PLAY_FILENOTFOUND: 'play-url-notfound'
21
+ PLAY_FILENOTFOUND: 'play-url-notfound',
22
+ TTS_STREAMING_CONNECTION_FAILURE: 'tts-streaming-connection-failure',
23
+ APPLICATION: 'alert-from-application'
22
24
  };
23
25
 
24
26
  const schemas = {
@@ -673,6 +675,9 @@ const writeAlerts = async(client, alerts) => {
673
675
  case AlertType.PLAY_FILENOTFOUND:
674
676
  message = `The file at ${url} was not found`;
675
677
  break;
678
+ case AlertType.TTS_STREAMING_CONNECTION_FAILURE:
679
+ message = `Failed to connect to tts streaming service at ${vendor}`;
680
+ break;
676
681
  default:
677
682
  break;
678
683
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/time-series",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "write and query data to time series daetabase",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,6 +18,6 @@
18
18
  "eslint": "^7.23.0",
19
19
  "eslint-plugin-promise": "^4.3.1",
20
20
  "nyc": "^15.1.0",
21
- "tape": "^5.2.2"
21
+ "tape": "^5.7.5"
22
22
  }
23
23
  }