mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
79b3f3fe7c
* Helper to tokenize Nunjucks tag * More granular types * Add tag definitions * Improve editor to be more WYSIWYG * Fixed tests * Added raw response tag
33 lines
482 B
JavaScript
33 lines
482 B
JavaScript
import BaseExtension from './base/base-extension';
|
|
|
|
export default class TimestampExtension extends BaseExtension {
|
|
constructor () {
|
|
super();
|
|
this.deprecated = true;
|
|
}
|
|
|
|
getName () {
|
|
return 'Timestamp';
|
|
}
|
|
|
|
getDefaultFill () {
|
|
return 'timestamp';
|
|
}
|
|
|
|
getTag () {
|
|
return 'timestamp';
|
|
}
|
|
|
|
getDescription () {
|
|
return 'generate timestamp in milliseconds';
|
|
}
|
|
|
|
getArguments () {
|
|
return [];
|
|
}
|
|
|
|
run (context) {
|
|
return Date.now();
|
|
}
|
|
}
|