@amazon-sumerian-hosts/core
Advanced tools
Comparing version 2.0.0 to 2.0.4
{ | ||
"name": "@amazon-sumerian-hosts/core", | ||
"version": "2.0.0", | ||
"version": "2.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -7,3 +7,3 @@ # Amazon Sumerian Hosts | ||
Refer to the [API Documentation](https://aws-samples.github.io/amazon-sumerian-hosts/) for more detailed information on the classes and methods available. Amazon Sumerian Hosts is a published [npm](https://www.npmjs.com/) package, so alternatively you can install in an existing Node.js project by running `npm install --save-dev @amazon-sumerian-hosts/core`. If you'd like to pull the gitub repository and create your own build, see [Building the Repository](https://github.com/aws-samples/amazon-sumerian-hosts/blob/mainline2.0/README.md#building-the-repository) for prerequisites and instructions on how to do that. | ||
Refer to the [API Documentation](https://aws-samples.github.io/amazon-sumerian-hosts/) for more detailed information on the classes and methods available. Amazon Sumerian Hosts is a published [npm](https://www.npmjs.com/) package, so alternatively you can install in an existing Node.js project by running `npm install --save-dev @amazon-sumerian-hosts/core`. If you'd like to pull the GitHub repository and create your own build, see [Building the Repository](https://github.com/aws-samples/amazon-sumerian-hosts/blob/mainline2.0/README.md#building-the-repository) for prerequisites and instructions on how to do that. | ||
@@ -10,0 +10,0 @@ ## License |
@@ -136,7 +136,12 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
}); | ||
}).then(data => { | ||
this.emit(this.constructor.EVENTS.lexResponseReady, data); | ||
return data; | ||
}); | ||
}) | ||
.then(data => { | ||
this.emit(this.constructor.EVENTS.lexResponseReady, data); | ||
return data; | ||
}) | ||
.catch(error => { | ||
const errorMessage = `Error happened during voice recording: ${error}. Please check whether your speech is more than 15s.`; | ||
console.error(errorMessage); | ||
throw new Error(errorMessage); | ||
}); | ||
} | ||
@@ -252,3 +257,2 @@ | ||
this.emit(this.constructor.EVENTS.recordEnd); | ||
return this._processWithAudio(result, this._audioContext.sampleRate); | ||
@@ -255,0 +259,0 @@ } |
@@ -5,2 +5,5 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// This line gets replaced by Github actions to the SHA of the git commit | ||
const HOSTS_VERSION = 'v2.0.4'; | ||
/** | ||
@@ -198,5 +201,2 @@ * A collection of useful generic functions. | ||
static getVersion() { | ||
// HOSTS_VERSION is defined by Webpack, to the version of the library | ||
// Either a git commit or a release version | ||
// eslint-disable-next-line no-undef | ||
return HOSTS_VERSION; | ||
@@ -203,0 +203,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
0
485633
46
11664