UNPKG

@barchart/common-node-js

Version:

Common classes, utilities, and functions for building Node.js servers

24 lines (20 loc) 532 B
const CompressedStringSerializer = require('./CompressedStringSerializer'); module.exports = (() => { 'use strict'; /** * Converts a string into (and back from) the compressed and encrypted * representation used on a DynamoDB record. * * @public * @extends {CompressedStringSerializer} */ class EncryptedStringSerializer extends CompressedStringSerializer { constructor(attribute) { super(attribute); } toString() { return '[EncryptedStringSerializer]'; } } return EncryptedStringSerializer; })();