mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
55bfe2acb9
* 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();
|
|
}
|
|
}
|