Re-indented some files I was missing. (#19)

I think that's it.
This commit is contained in:
Sergio Díaz 2018-05-04 22:00:54 -06:00 committed by GitHub
parent 4bf7a60e9c
commit 56d536a509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 7819 additions and 7814 deletions

View File

@ -17,3 +17,9 @@ GET /cookies/set:
GET /status/418: GET /status/418:
alias: teapot alias: teapot
POST /post:
alias: post
formdata:
file: $[createReadStream('./github.yml')]

View File

@ -53,6 +53,7 @@ class Plugins {
} }
replaceDynamicValues(obj) { replaceDynamicValues(obj) {
vm.createContext(this.context);
return replaceInObject(obj, val => { return replaceInObject(obj, val => {
let valIsEmpty = val.trim().length === 0; let valIsEmpty = val.trim().length === 0;
@ -93,8 +94,6 @@ class Plugins {
defineDynamicValue(name, fn) { defineDynamicValue(name, fn) {
this.registry.dynamicValues.push({ name, fn }); this.registry.dynamicValues.push({ name, fn });
this.context[name] = fn; this.context[name] = fn;
vm.createContext(this.context);
} }
} }