mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-21 22:57:59 -04:00
* Version bump * Got async Nunjucks extensions working * Got JSONPath extension working * Swapped render function for new stuff * Wrote custom recursive render function * traverse -> clone * add-module-exports * Moved tests
13 lines
230 B
JavaScript
13 lines
230 B
JavaScript
import BaseExtension from './base/BaseExtension';
|
|
|
|
export default class TimestampExtension extends BaseExtension {
|
|
constructor () {
|
|
super();
|
|
this.tags = ['timestamp'];
|
|
}
|
|
|
|
run (context) {
|
|
return Date.now();
|
|
}
|
|
}
|