ca828504ad862f9283a61a866d5c29daca56fce14c4f277a329076efdd5dcb83.json 4.6 KB

1
  1. {"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ProxyInfo = void 0;\nconst Exports_js_1 = require(\"../sdk/Exports.js\");\nclass ProxyInfo {\n constructor(proxyHostName, proxyPort, proxyUserName, proxyPassword) {\n this.privProxyHostName = proxyHostName;\n this.privProxyPort = proxyPort;\n this.privProxyUserName = proxyUserName;\n this.privProxyPassword = proxyPassword;\n }\n static fromParameters(parameters) {\n return new ProxyInfo(parameters.getProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyHostName), parseInt(parameters.getProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyPort), 10), parameters.getProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyUserName), parameters.getProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyPassword));\n }\n static fromRecognizerConfig(config) {\n return this.fromParameters(config.parameters);\n }\n get HostName() {\n return this.privProxyHostName;\n }\n get Port() {\n return this.privProxyPort;\n }\n get UserName() {\n return this.privProxyUserName;\n }\n get Password() {\n return this.privProxyPassword;\n }\n}\nexports.ProxyInfo = ProxyInfo;","map":{"version":3,"names":["Object","defineProperty","exports","value","ProxyInfo","Exports_js_1","require","constructor","proxyHostName","proxyPort","proxyUserName","proxyPassword","privProxyHostName","privProxyPort","privProxyUserName","privProxyPassword","fromParameters","parameters","getProperty","PropertyId","SpeechServiceConnection_ProxyHostName","parseInt","SpeechServiceConnection_ProxyPort","SpeechServiceConnection_ProxyUserName","SpeechServiceConnection_ProxyPassword","fromRecognizerConfig","config","HostName","Port","UserName","Password"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/ProxyInfo.js"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProxyInfo = void 0;\nconst Exports_js_1 = require(\"../sdk/Exports.js\");\nclass ProxyInfo {\n constructor(proxyHostName, proxyPort, proxyUserName, proxyPassword) {\n this.privProxyHostName = proxyHostName;\n this.privProxyPort = proxyPort;\n this.privProxyUserName = proxyUserName;\n this.privProxyPassword = proxyPassword;\n }\n static fromParameters(parameters) {\n return new ProxyInfo(parameters.getProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyHostName), parseInt(parameters.getProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyPort), 10), parameters.getProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyUserName), parameters.getProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyPassword));\n }\n static fromRecognizerConfig(config) {\n return this.fromParameters(config.parameters);\n }\n get HostName() {\n return this.privProxyHostName;\n }\n get Port() {\n return this.privProxyPort;\n }\n get UserName() {\n return this.privProxyUserName;\n }\n get Password() {\n return this.privProxyPassword;\n }\n}\nexports.ProxyInfo = ProxyInfo;\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACAA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,SAAS,GAAG,KAAK,CAAC;AAC1B,MAAMC,YAAY,GAAGC,OAAO,CAAC,mBAAmB,CAAC;AACjD,MAAMF,SAAS,CAAC;EACZG,WAAWA,CAACC,aAAa,EAAEC,SAAS,EAAEC,aAAa,EAAEC,aAAa,EAAE;IAChE,IAAI,CAACC,iBAAiB,GAAGJ,aAAa;IACtC,IAAI,CAACK,aAAa,GAAGJ,SAAS;IAC9B,IAAI,CAACK,iBAAiB,GAAGJ,aAAa;IACtC,IAAI,CAACK,iBAAiB,GAAGJ,aAAa;EAC1C;EACA,OAAOK,cAAcA,CAACC,UAAU,EAAE;IAC9B,OAAO,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