yandex-speech-promise
Advanced tools
Comparing version 1.0.1 to 1.2.0
@@ -16,3 +16,2 @@ "use strict"; | ||
var querystring_1 = require("querystring"); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
var _a = require("../package.json"), name = _a.name, version = _a.version; | ||
@@ -19,0 +18,0 @@ var apiUrl = "https://stt.api.cloud.yandex.net/speech/v1/stt:recognize"; |
@@ -52,3 +52,2 @@ "use strict"; | ||
var querystring_1 = require("querystring"); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
var _a = require("../package.json"), name = _a.name, version = _a.version; | ||
@@ -73,3 +72,3 @@ var apiUrl = "https://tts.api.cloud.yandex.net/speech/v1/tts:synthesize"; | ||
_a)); | ||
return [2 /*return*/, new Promise(function (resolve, reject) { | ||
return [2, new Promise(function (resolve, reject) { | ||
var req = https_1.request(apiUrl, { | ||
@@ -87,6 +86,4 @@ method: "POST", | ||
var data = ""; | ||
var isError = false; | ||
res.setEncoding("binary"); | ||
res.on("data", function (chunk) { | ||
// console.log(chunk); | ||
data += chunk; | ||
@@ -93,0 +90,0 @@ }); |
{ | ||
"name": "yandex-speech-promise", | ||
"version": "1.0.1", | ||
"version": "1.2.0", | ||
"description": "Promise based implementation of Yandex Speech Kit API", | ||
@@ -21,3 +21,5 @@ "main": "index.js", | ||
"files": [ | ||
"dist/" | ||
"dist/", | ||
"index.d.ts", | ||
"index.js" | ||
], | ||
@@ -24,0 +26,0 @@ "keywords": [ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12365
8
253
2