mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
18 lines
425 B
TypeScript
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;
|