diff --git a/lib/shim/dynamic.js b/lib/shim/dynamic.js index f17631d..bb513b5 100644 --- a/lib/shim/dynamic.js +++ b/lib/shim/dynamic.js @@ -198,7 +198,7 @@ const DIRECTORY_PATHS = [ ]; // generators for $random* variables -const dynamicGenerators = { +export const dynamicGenerators = { // Skipped from Postman $guid: { description: 'A v4 style guid', @@ -756,7 +756,7 @@ const dynamicGenerators = { // It will look like this: /\{\{\$guid\}\}|\{\{\$timestamp\}\}|\{\{\$isoTimestamp\}\}/g // It can then be used to match templates containing generators // for example with the replaceIn function -const dynamicGeneratorsRegex = (function() { +export const dynamicGeneratorsRegex = (function() { let generatorRegexString = ''; for (const [key, value] of Object.entries(dynamicGenerators)) { generatorRegexString += '{{' + key + '}}' + '|'; @@ -770,8 +770,3 @@ const dynamicGeneratorsRegex = (function() { const generatorRegex = new RegExp(generatorRegexString, 'g'); return generatorRegex; })(); - -module.exports = { - dynamicGenerators, - dynamicGeneratorsRegex, -};