319b102ca4c78ef8e15d2dc0aef6f13ca32da4894c3abefe1b63282c246877af.json 4.8 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.CognitiveSubscriptionKeyAuthentication = void 0;\nconst Exports_js_1 = require(\"../common/Exports.js\");\nconst HeaderNames_js_1 = require(\"./HeaderNames.js\");\nconst IAuthentication_js_1 = require(\"./IAuthentication.js\");\n/**\n * @class\n */\nclass CognitiveSubscriptionKeyAuthentication {\n /**\n * Creates and initializes an instance of the CognitiveSubscriptionKeyAuthentication class.\n * @constructor\n * @param {string} subscriptionKey - The subscription key\n */\n constructor(subscriptionKey) {\n if (!subscriptionKey) {\n throw new Exports_js_1.ArgumentNullError(\"subscriptionKey\");\n }\n this.privAuthInfo = new IAuthentication_js_1.AuthInfo(HeaderNames_js_1.HeaderNames.AuthKey, subscriptionKey);\n }\n /**\n * Fetches the subscription key.\n * @member\n * @function\n * @public\n * @param {string} authFetchEventId - The id to fetch.\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n fetch(authFetchEventId) {\n return Promise.resolve(this.privAuthInfo);\n }\n /**\n * Fetches the subscription key.\n * @member\n * @function\n * @public\n * @param {string} authFetchEventId - The id to fetch.\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n fetchOnExpiry(authFetchEventId) {\n return Promise.resolve(this.privAuthInfo);\n }\n}\nexports.CognitiveSubscriptionKeyAuthentication = CognitiveSubscriptionKeyAuthentication;","map":{"version":3,"names":["Object","defineProperty","exports","value","CognitiveSubscriptionKeyAuthentication","Exports_js_1","require","HeaderNames_js_1","IAuthentication_js_1","constructor","subscriptionKey","ArgumentNullError","privAuthInfo","AuthInfo","HeaderNames","AuthKey","fetch","authFetchEventId","Promise","resolve","fetchOnExpiry"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/CognitiveSubscriptionKeyAuthentication.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.CognitiveSubscriptionKeyAuthentication = void 0;\nconst Exports_js_1 = require(\"../common/Exports.js\");\nconst HeaderNames_js_1 = require(\"./HeaderNames.js\");\nconst IAuthentication_js_1 = require(\"./IAuthentication.js\");\n/**\n * @class\n */\nclass CognitiveSubscriptionKeyAuthentication {\n /**\n * Creates and initializes an instance of the CognitiveSubscriptionKeyAuthentication class.\n * @constructor\n * @param {string} subscriptionKey - The subscription key\n */\n constructor(subscriptionKey) {\n if (!subscriptionKey) {\n throw new Exports_js_1.ArgumentNullError(\"subscriptionKey\");\n }\n this.privAuthInfo = new IAuthentication_js_1.AuthInfo(HeaderNames_js_1.HeaderNames.AuthKey, subscriptionKey);\n }\n /**\n * Fetches the subscription key.\n * @member\n * @function\n * @public\n * @param {string} authFetchEventId - The id to fetch.\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n fetch(authFetchEventId) {\n return Promise.resolve(this.privAuthInfo);\n }\n /**\n * Fetches the subscription key.\n * @member\n * @function\n * @public\n * @param {string} authFetchEventId - The id to fetch.\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n fetchOnExpiry(authFetchEventId) {\n return Promise.resolve(this.privAuthInfo);\n }\n}\nexports.CognitiveSubscriptionKeyAuthentication = CognitiveSubscriptionKeyAuthentication;\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,sCAAsC,GAAG,KAAK,CAAC;AACvD,MAAMC,YAAY,GAAGC,OAAO,CAAC,sBAAsB,CAAC;AACpD,MAAMC,gBAAgB,GAAGD,OAAO,CAAC,kBAAkB,CAAC;AACpD,MAAME,oBAAoB,GAAGF,OAAO,CAAC,sBAAsB,CAAC;AAC5D;AACA;AACA;AACA,MAAMF,sCAAsC,CAAC;EACzC;AACJ;AACA;AACA;AACA;EACIK,WAAWA,CAACC,eAAe,EAAE;IACzB,IAAI,CAACA,eAAe,EAAE;MAClB,MAAM,IAAIL,YAAY,CAACM,iBAAiB,CAAC,iBAAiB,CAAC;IAC/D;IACA,IAAI,CAACC,YAAY,GAAG,IAAIJ,oBAAoB,CAACK,QAAQ,CAACN,gBAAgB,CAACO,WAAW,CAACC,OAAO,EAAEL,eAAe,CAAC;EAChH;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI;EACAM,KAAKA,CAACC,gBAAgB,EAAE;IACpB,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAI,CAACP,YAAY,CAAC;EAC7C;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI;EACAQ,aAAaA,CAACH,gBAAgB,EAAE;IAC5B,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAI,CAACP,YAAY,CAAC;EAC7C;AACJ;AACAV,OAAO,CAACE,sCAAsC,GAAGA,sCAAsC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}