2017-06-01 02:04:27 +00:00
|
|
|
import * as plugins from '../../plugins/index';
|
|
|
|
|
|
|
|
import timestampExtension from './timestamp-extension';
|
|
|
|
import uuidExtension from './uuid-extension';
|
2017-03-08 05:52:17 +00:00
|
|
|
import NowExtension from './now-extension';
|
2017-06-01 02:04:27 +00:00
|
|
|
import responseExtension from './response-extension';
|
|
|
|
import base64Extension from './base-64-extension';
|
2017-06-09 01:10:12 +00:00
|
|
|
import requestExtension from './request-extension';
|
2017-06-01 02:04:27 +00:00
|
|
|
|
|
|
|
const DEFAULT_EXTENSIONS = [
|
|
|
|
timestampExtension,
|
|
|
|
NowExtension,
|
|
|
|
uuidExtension,
|
|
|
|
base64Extension,
|
2017-06-09 01:10:12 +00:00
|
|
|
requestExtension,
|
2017-06-01 02:04:27 +00:00
|
|
|
responseExtension
|
|
|
|
];
|
2017-02-20 18:32:27 +00:00
|
|
|
|
2017-07-20 01:55:40 +00:00
|
|
|
export async function all () {
|
|
|
|
const templateTags = await plugins.getTemplateTags();
|
|
|
|
return [
|
|
|
|
...DEFAULT_EXTENSIONS,
|
|
|
|
...templateTags.map(p => p.templateTag)
|
|
|
|
];
|
2017-02-20 18:32:27 +00:00
|
|
|
}
|