Socket
Socket
Sign inDemoInstall

@google-cloud/speech

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/speech - npm Package Compare versions

Comparing version 3.2.2 to 3.2.3

7

CHANGELOG.md

@@ -7,2 +7,9 @@ # Changelog

### [3.2.3](https://www.github.com/googleapis/nodejs-speech/compare/v3.2.2...v3.2.3) (2019-07-23)
### Bug Fixes
* **deps:** drop dependency on through2 ([#400](https://www.github.com/googleapis/nodejs-speech/issues/400)) ([0c25310](https://www.github.com/googleapis/nodejs-speech/commit/0c25310))
### [3.2.2](https://www.github.com/googleapis/nodejs-speech/compare/v3.2.1...v3.2.2) (2019-06-26)

@@ -9,0 +16,0 @@

9

package.json
{
"name": "@google-cloud/speech",
"description": "Cloud Speech Client Library for Node.js",
"version": "3.2.2",
"version": "3.2.3",
"license": "Apache-2.0",

@@ -40,3 +40,3 @@ "author": "Google Inc.",

"fix": "eslint --fix '**/*.js'",
"docs-test": "linkinator docs -r --skip www.googleapis.com",
"docs-test": "linkinator docs",
"predocs-test": "npm run docs"

@@ -49,4 +49,3 @@ },

"pumpify": "^1.5.1",
"stream-events": "^1.0.4",
"through2": "^3.0.0"
"stream-events": "^1.0.4"
},

@@ -68,4 +67,4 @@ "devDependencies": {

"sinon": "^7.0.0",
"linkinator": "^1.1.2"
"linkinator": "^1.5.0"
}
}

@@ -22,3 +22,3 @@ /*!

const streamEvents = require('stream-events');
const through = require('through2');
const {PassThrough} = require('stream');

@@ -98,18 +98,22 @@ /*!

// the appropriate request structure.
through.obj((audioContent, _, next) => {
if (audioContent !== undefined) {
next(null, {audioContent});
return;
}
next();
new PassThrough({
objectMode: true,
transform: (audioContent, _, next) => {
if (audioContent !== undefined) {
next(null, {audioContent});
return;
}
next();
},
}),
requestStream,
through.obj((response, enc, next) => {
if (response.error) {
next(new common.util.ApiError(response.error));
return;
}
next(null, response);
new PassThrough({
objectMode: true,
transform: (response, enc, next) => {
if (response.error) {
next(new common.util.ApiError(response.error));
return;
}
next(null, response);
},
}),

@@ -116,0 +120,0 @@ ]);

@@ -258,5 +258,4 @@ // Copyright 2019 Google LLC

* If `use_enhanced` is set to true and the `model` field is not set, then
* an appropriate enhanced model is chosen if:
* 1. project is eligible for requesting enhanced models
* 2. an enhanced model exists for the audio
* an appropriate enhanced model is chosen if an enhanced model exists for
* the audio.
*

@@ -267,8 +266,2 @@ * If `use_enhanced` is true and an enhanced version of the specified model

*
* Enhanced speech models require that you opt-in to data logging using
* instructions in the
* [documentation](https://cloud.google.com/speech-to-text/docs/enable-data-logging). If you set
* `use_enhanced` to true and you have not enabled audio logging, then you
* will receive an error.
*
* @typedef RecognitionConfig

@@ -275,0 +268,0 @@ * @memberof google.cloud.speech.v1

@@ -295,5 +295,4 @@ // Copyright 2019 Google LLC

* If `use_enhanced` is set to true and the `model` field is not set, then
* an appropriate enhanced model is chosen if:
* 1. project is eligible for requesting enhanced models
* 2. an enhanced model exists for the audio
* an appropriate enhanced model is chosen if an enhanced model exists for
* the audio.
*

@@ -304,8 +303,2 @@ * If `use_enhanced` is true and an enhanced version of the specified model

*
* Enhanced speech models require that you opt-in to data logging using
* instructions in the
* [documentation](https://cloud.google.com/speech-to-text/docs/enable-data-logging). If you set
* `use_enhanced` to true and you have not enabled audio logging, then you
* will receive an error.
*
* @typedef RecognitionConfig

@@ -312,0 +305,0 @@ * @memberof google.cloud.speech.v1p1beta1

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc