+50
-99
@@ -26,9 +26,12 @@ <?xml version="1.0" encoding="UTF-8"?> | ||
| <leaf> | ||
| <file leaf-file-name="index.js" pinned="false" current="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/index.js"> | ||
| <file leaf-file-name="Readme.md" pinned="false" current="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/examples/simple/Readme.md"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="16" column="25" selection-start="193" selection-end="200" vertical-scroll-proportion="0.0"> | ||
| <state line="4" column="3" selection-start="50" selection-end="50" vertical-scroll-proportion="-2.7272727"> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| <provider editor-type-id="MarkdownPreviewEditor"> | ||
| <state /> | ||
| </provider> | ||
| </entry> | ||
@@ -39,3 +42,3 @@ </file> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="25" column="33" selection-start="395" selection-end="395" vertical-scroll-proportion="0.0"> | ||
| <state line="24" column="69" selection-start="381" selection-end="388" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
@@ -46,6 +49,6 @@ </state> | ||
| </file> | ||
| <file leaf-file-name="env.json" pinned="false" current="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/test/fixtures/env.json"> | ||
| <file leaf-file-name="package.json" pinned="false" current="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="2" column="15" selection-start="0" selection-end="40" vertical-scroll-proportion="0.0"> | ||
| <state line="2" column="21" selection-start="41" selection-end="41" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
@@ -56,6 +59,6 @@ </state> | ||
| </file> | ||
| <file leaf-file-name="env.test.js" pinned="false" current="false" current-in-tab="false"> | ||
| <file leaf-file-name="env.test.js" pinned="false" current="true" current-in-tab="true"> | ||
| <entry file="file://$PROJECT_DIR$/test/env.test.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="32" column="0" selection-start="521" selection-end="521" vertical-scroll-proportion="0.0"> | ||
| <state line="24" column="2" selection-start="437" selection-end="437" vertical-scroll-proportion="0.42007002"> | ||
| <folding /> | ||
@@ -66,41 +69,2 @@ </state> | ||
| </file> | ||
| <file leaf-file-name="index.js" pinned="false" current="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/examples/simple/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="2" column="0" selection-start="56" selection-end="122" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="Readme.md" pinned="false" current="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/examples/simple/Readme.md"> | ||
| <provider editor-type-id="MarkdownPreviewEditor"> | ||
| <state /> | ||
| </provider> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="4" column="3" selection-start="50" selection-end="50" vertical-scroll-proportion="-2.7272727"> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="env.json" pinned="false" current="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/examples/simple/env.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="1" column="2" selection-start="4" selection-end="4" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="package.json" pinned="false" current="true" current-in-tab="true"> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="9" column="5" selection-start="303" selection-end="303" vertical-scroll-proportion="0.23396881"> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| </leaf> | ||
@@ -120,5 +84,2 @@ </component> | ||
| <option value="$PROJECT_DIR$/.travis.yml" /> | ||
| <option value="$PROJECT_DIR$/lib/env.js" /> | ||
| <option value="$PROJECT_DIR$/test/env.test.js" /> | ||
| <option value="$PROJECT_DIR$/package.json" /> | ||
| <option value="$PROJECT_DIR$/examples/simple/env.json" /> | ||
@@ -128,2 +89,5 @@ <option value="$PROJECT_DIR$/examples/simple/index.js" /> | ||
| <option value="$PROJECT_DIR$/Readme.md" /> | ||
| <option value="$PROJECT_DIR$/lib/env.js" /> | ||
| <option value="$PROJECT_DIR$/package.json" /> | ||
| <option value="$PROJECT_DIR$/test/env.test.js" /> | ||
| </list> | ||
@@ -158,2 +122,4 @@ </option> | ||
| <panes> | ||
| <pane id="Favorites" /> | ||
| <pane id="Scope" /> | ||
| <pane id="ProjectPane"> | ||
@@ -251,4 +217,2 @@ <subPane> | ||
| </pane> | ||
| <pane id="Favorites" /> | ||
| <pane id="Scope" /> | ||
| </panes> | ||
@@ -282,2 +246,3 @@ </component> | ||
| <task active="true" id="Default" summary="Default task"> | ||
| <changelist id="6d48e1ed-ad88-4bb0-ae1e-20397b1f1353" name="Default" comment="" /> | ||
| <created>1322230347131</created> | ||
@@ -289,21 +254,21 @@ <updated>1322230347131</updated> | ||
| <component name="ToolWindowManager"> | ||
| <frame x="0" y="22" width="1280" height="724" extended-state="0" /> | ||
| <frame x="0" y="22" width="1920" height="1004" extended-state="0" /> | ||
| <editor active="true" /> | ||
| <layout> | ||
| <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Phing Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Phing Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24939074" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.11223944" sideWeight="0.97742665" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | ||
| <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | ||
| </layout> | ||
@@ -356,5 +321,3 @@ </component> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="6" column="0" selection-start="59" selection-end="59" vertical-scroll-proportion="0.1559792"> | ||
| <folding /> | ||
| </state> | ||
| <state line="6" column="0" selection-start="59" selection-end="59" vertical-scroll-proportion="0.1559792" /> | ||
| </provider> | ||
@@ -364,39 +327,34 @@ </entry> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="2" column="0" selection-start="27" selection-end="27" vertical-scroll-proportion="0.05199307"> | ||
| <folding /> | ||
| </state> | ||
| <state line="2" column="0" selection-start="27" selection-end="27" vertical-scroll-proportion="0.05199307" /> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/test/env.test.js"> | ||
| <entry file="file://$PROJECT_DIR$/test/fixtures/env.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="32" column="0" selection-start="521" selection-end="521" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
| </state> | ||
| <state line="2" column="15" selection-start="0" selection-end="40" vertical-scroll-proportion="0.0" /> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/test/fixtures/env.json"> | ||
| <entry file="file://$PROJECT_DIR$/examples/simple/env.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="2" column="15" selection-start="0" selection-end="40" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
| </state> | ||
| <state line="1" column="2" selection-start="4" selection-end="4" vertical-scroll-proportion="0.0" /> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/env.js"> | ||
| <entry file="file://$PROJECT_DIR$/examples/simple/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="25" column="33" selection-start="395" selection-end="395" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
| </state> | ||
| <state line="2" column="0" selection-start="56" selection-end="122" vertical-scroll-proportion="0.0" /> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/examples/simple/env.json"> | ||
| <entry file="file://$PROJECT_DIR$/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="1" column="2" selection-start="4" selection-end="4" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
| </state> | ||
| <state line="16" column="25" selection-start="193" selection-end="200" vertical-scroll-proportion="0.0" /> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/examples/simple/Readme.md"> | ||
| <entry file="file://$PROJECT_DIR$/Readme.md"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="9" column="132" selection-start="362" selection-end="377" vertical-scroll-proportion="0.24538745" /> | ||
| </provider> | ||
| <provider editor-type-id="MarkdownPreviewEditor"> | ||
| <state /> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/examples/simple/Readme.md"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
@@ -407,13 +365,9 @@ <state line="4" column="3" selection-start="50" selection-end="50" vertical-scroll-proportion="-2.7272727"> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/examples/simple/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="2" column="0" selection-start="56" selection-end="122" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
| </state> | ||
| <provider editor-type-id="MarkdownPreviewEditor"> | ||
| <state /> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/index.js"> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="16" column="25" selection-start="193" selection-end="200" vertical-scroll-proportion="0.0"> | ||
| <state line="2" column="21" selection-start="41" selection-end="41" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
@@ -423,8 +377,5 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/Readme.md"> | ||
| <provider editor-type-id="MarkdownPreviewEditor"> | ||
| <state /> | ||
| </provider> | ||
| <entry file="file://$PROJECT_DIR$/lib/env.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="6" column="0" selection-start="235" selection-end="235" vertical-scroll-proportion="0.1682243"> | ||
| <state line="24" column="69" selection-start="381" selection-end="388" vertical-scroll-proportion="0.0"> | ||
| <folding /> | ||
@@ -434,5 +385,5 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <entry file="file://$PROJECT_DIR$/test/env.test.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state line="9" column="5" selection-start="303" selection-end="303" vertical-scroll-proportion="0.23396881"> | ||
| <state line="24" column="2" selection-start="437" selection-end="437" vertical-scroll-proportion="0.42007002"> | ||
| <folding /> | ||
@@ -439,0 +390,0 @@ </state> |
+1
-1
@@ -25,3 +25,3 @@ /*! | ||
| this.envfile = path.join(process.cwd(), envfile || 'env.json') | ||
| this.evars = require(this.envfile) || {} | ||
| this.evars = (path.existsSync(this.envfile)) ? require(this.envfile) : {} | ||
| this.id = process.env['ENV_ID'] | ||
@@ -28,0 +28,0 @@ } |
+1
-1
| { | ||
| "name": "env" | ||
| , "version": "0.0.1" | ||
| , "version": "0.0.2" | ||
| , "description": "Environment variable manager" | ||
@@ -5,0 +5,0 @@ , "keywords": ["process", "environment", "env"] |
+10
-4
@@ -6,7 +6,3 @@ var Env = require('..') | ||
| console.log(Env, env) | ||
| test('env core', function (t) { | ||
| t.plan(6) | ||
| t.ok(Env.version) | ||
@@ -89,1 +85,11 @@ t.ok(env.ok) | ||
| }) | ||
| test('env with no env.json', function (t) { | ||
| var env3 = require('..')() | ||
| t.ok(env3.evars) | ||
| t.isa(env3.evars, 'object') | ||
| t.deepEqual(env3.evars, {}) | ||
| t.deepEqual(env3.get(), {}) | ||
| t.end() | ||
| }) |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
211
2.93%27701
-5.85%