@aws-crypto/caching-materials-manager-node
Advanced tools
Comparing version 3.0.3 to 3.1.0
@@ -12,3 +12,3 @@ "use strict"; | ||
const toUtf8 = (input) => Buffer.from(input).toString('utf8'); | ||
const cacheKeyHelpers = cache_material_1.buildCryptographicMaterialsCacheKeyHelpers(fromUtf8, toUtf8, sha512_1.sha512); | ||
const cacheKeyHelpers = (0, cache_material_1.buildCryptographicMaterialsCacheKeyHelpers)(fromUtf8, toUtf8, sha512_1.sha512); | ||
class NodeCachingMaterialsManager { | ||
@@ -23,4 +23,4 @@ constructor(input) { | ||
*/ | ||
const { partition = crypto_1.randomBytes(64).toString('base64') } = input; | ||
cache_material_1.decorateProperties(this, { | ||
const { partition = (0, crypto_1.randomBytes)(64).toString('base64') } = input; | ||
(0, cache_material_1.decorateProperties)(this, { | ||
...input, | ||
@@ -31,7 +31,7 @@ backingMaterialsManager, | ||
} | ||
getEncryptionMaterials = cache_material_1.getEncryptionMaterials(cacheKeyHelpers); | ||
decryptMaterials = cache_material_1.decryptMaterials(cacheKeyHelpers); | ||
_cacheEntryHasExceededLimits = cache_material_1.cacheEntryHasExceededLimits(); | ||
getEncryptionMaterials = (0, cache_material_1.getEncryptionMaterials)(cacheKeyHelpers); | ||
decryptMaterials = (0, cache_material_1.decryptMaterials)(cacheKeyHelpers); | ||
_cacheEntryHasExceededLimits = (0, cache_material_1.cacheEntryHasExceededLimits)(); | ||
} | ||
exports.NodeCachingMaterialsManager = NodeCachingMaterialsManager; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FjaGluZ19tYXRlcmlhbHNfbWFuYWdlcl9ub2RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NhY2hpbmdfbWF0ZXJpYWxzX21hbmFnZXJfbm9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQzs7O0FBR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7OztXQUdHO1FBQ0gsTUFBTSxFQUFFLFNBQVMsR0FBRyxJQUFBLG9CQUFXLEVBQUMsRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLFFBQVEsQ0FBQyxFQUFFLEdBQUcsS0FBSyxDQUFBO1FBRWhFLElBQUEsbUNBQWtCLEVBQUMsSUFBSSxFQUFFO1lBQ3ZCLEdBQUcsS0FBSztZQUNSLHVCQUF1QjtZQUN2QixTQUFTO1NBQ1YsQ0FBQyxDQUFBO0lBQ0osQ0FBQztJQUVELHNCQUFzQixHQUNwQixJQUFBLHVDQUFzQixFQUFxQixlQUFlLENBQUMsQ0FBQTtJQUM3RCxnQkFBZ0IsR0FDZCxJQUFBLGlDQUFnQixFQUFxQixlQUFlLENBQUMsQ0FBQTtJQUN2RCw0QkFBNEIsR0FDMUIsSUFBQSw0Q0FBMkIsR0FBc0IsQ0FBQTtDQUNwRDtBQW5DRCxrRUFtQ0MifQ== |
@@ -9,5 +9,5 @@ "use strict"; | ||
.map((item) => (typeof item === 'string' ? Buffer.from(item) : item)) | ||
.reduce((hash, item) => hash.update(item), crypto_1.createHash('sha512')) | ||
.reduce((hash, item) => hash.update(item), (0, crypto_1.createHash)('sha512')) | ||
.digest(); | ||
exports.sha512 = sha512; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhNTEyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3NoYTUxMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQzs7O0FBRXRDLG1DQUFtQztBQUU1QixNQUFNLE1BQU0sR0FBRyxLQUFLLEVBQUUsR0FBRyxJQUE2QixFQUFFLEVBQUUsQ0FDL0QsSUFBSTtLQUNELEdBQUcsQ0FBQyxDQUFDLElBQUksRUFBRSxFQUFFLENBQUMsQ0FBQyxPQUFPLElBQUksS0FBSyx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to/caching-materials-manager-node", | ||
"version": "3.0.3", | ||
"version": "3.1.0", | ||
"scripts": { | ||
@@ -21,4 +21,4 @@ "prepublishOnly": "npm run build", | ||
"dependencies": { | ||
"@aws-crypto/cache-material": "^3.0.0", | ||
"@aws-crypto/material-management-node": "^3.0.3", | ||
"@aws-crypto/cache-material": "^3.1.0", | ||
"@aws-crypto/material-management-node": "^3.1.0", | ||
"tslib": "^2.2.0" | ||
@@ -33,3 +33,3 @@ }, | ||
], | ||
"gitHead": "6ba9add3e0aea196ae4cb298709cb80725a9404c" | ||
"gitHead": "1bc8957ce9378767d3fca65ae5310c130384e075" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29077