swc/bundler/tests/.cache/untrusted/dabadff7db43529f8c1c4ecbb76a0ef74e4a65f7.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

18 lines
425 B
TypeScript

// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/functionhelper.js
// FunctionHelper
// -------
function FunctionHelper(client) {
this.client = client;
}
FunctionHelper.prototype.now = function (precision) {
if (typeof precision === 'number') {
return this.client.raw(`CURRENT_TIMESTAMP(${precision})`);
}
return this.client.raw('CURRENT_TIMESTAMP');
};
export default FunctionHelper;