@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API
1 lines • 1.27 kB
Source Map (JSON)
{"version":3,"file":"ProtectedDataEncryptionKeyCache-browser.mjs","sourceRoot":"","sources":["../../../../src/encryption/Cache/ProtectedDataEncryptionKeyCache-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,uDAAuD;AACvD,kEAAkE;AAClE,MAAM,OAAO,+BAA+B;IAC1C,YAAY,gBAAwB;QAClC,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;CACF;AAED,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;AACvF,CAAC;AACD,MAAM,UAAU,UAAU,CAAC,UAAkB,EAAE,IAAY;IACzD,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;AACvF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// TODO: add support for browser environment in phase 2\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class\nexport class ProtectedDataEncryptionKeyCache {\n constructor(_cacheTimeToLive: number) {\n throw new Error(\"Client-side Encryption not supported in browser environment\");\n }\n}\n\nexport function randomBytes(_size: number): Promise<string> {\n throw new Error(\"Client-side random generator not supported in browser environment\");\n}\nexport function createHmac(_algorithm: string, _key: string): Promise<string> {\n throw new Error(\"Client-side random generator not supported in browser environment\");\n}\n"]}