@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API
19 lines • 833 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// TODO: add support for browser environment in phase 2
export class ProtectedDataEncryptionKeyCache {
cacheRefresher;
constructor(_cacheTimeToLive) {
throw new Error("Client-side Encryption not supported in browser environment");
}
async getOrCreate(_name, _keyEncryptionKey, _encryptedValue, _forceRefresh) {
throw new Error("Client-side Encryption not supported in browser environment");
}
}
export function randomBytes(_size) {
throw new Error("Client-side random generator not supported in browser environment");
}
export function createHmac(_algorithm, _key) {
throw new Error("Client-side random generator not supported in browser environment");
}
//# sourceMappingURL=ProtectedDataEncryptionKeyCache.js.map