UNPKG

@env0/dynamo-easy

Version:

DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.

15 lines 544 B
/** * @module expression */ import * as tslib_1 from "tslib"; /** * @hidden */ export function dynamicTemplate(templateString, templateVariables) { var keys = Object.keys(templateVariables); var values = Object.values(templateVariables); // tslint:disable-next-line:function-constructor var templateFunction = new (Function.bind.apply(Function, tslib_1.__spread([void 0], keys, ["return `" + templateString + "`;"])))(); return templateFunction.apply(void 0, tslib_1.__spread(values)); } //# sourceMappingURL=util.js.map