confeta-env
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -15,2 +15,3 @@ 'use strict'; | ||
var $separator = Symbol('separator'); | ||
var $options = Symbol('options'); | ||
@@ -23,2 +24,3 @@ var ConfetaEnv = function () { | ||
this[$options] = options; | ||
var prefix = options.prefix || ''; | ||
@@ -41,3 +43,10 @@ this[$separator] = options.separator || '.'; | ||
return this[$env][path]; | ||
var value = this[$env][path]; | ||
var arraySeparator = this[$options].arraySeparator; | ||
if (arraySeparator) { | ||
value = value.split(arraySeparator); | ||
} | ||
return value; | ||
} | ||
@@ -44,0 +53,0 @@ }]); |
{ | ||
"name": "confeta-env", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Confeta env source", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
107785
2803