diff --git a/dist/index.js b/dist/index.js
index 22b2421..38bb6a0 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,11 +1,10 @@
-#!/usr/bin/env node
-
///
var environment = require("./smartenv.environment");
var objectstorage = require("./smartenv.objectstorage");
var smartenv = {}; //create smartenv object
-environment.init(smartenv);
+smartenv.getEnv = environment.getEnv;
+smartenv.printEnv = environment.printEnv;
smartenv.obs = objectstorage.obs;
module.exports = smartenv;
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQztBQUUxQyxJQUFPLFdBQVcsV0FBVyx3QkFBd0IsQ0FBQyxDQUFDO0FBQ3ZELElBQU8sYUFBYSxXQUFXLDBCQUEwQixDQUFDLENBQUM7QUFFM0QsSUFBSSxRQUFRLEdBQU8sRUFBRSxDQUFDLENBQUMsd0JBQXdCO0FBQy9DLFdBQVcsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUM7QUFDM0IsUUFBUSxDQUFDLEdBQUcsR0FBRyxhQUFhLENBQUMsR0FBRyxDQUFDO0FBRWpDLGlCQUFTLFFBQVEsQ0FBQyIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCJ0eXBpbmdzL21haW4uZC50c1wiIC8+XG5cbmltcG9ydCBlbnZpcm9ubWVudCA9IHJlcXVpcmUoXCIuL3NtYXJ0ZW52LmVudmlyb25tZW50XCIpO1xuaW1wb3J0IG9iamVjdHN0b3JhZ2UgPSByZXF1aXJlKFwiLi9zbWFydGVudi5vYmplY3RzdG9yYWdlXCIpO1xuXG52YXIgc21hcnRlbnY6YW55ID0ge307IC8vY3JlYXRlIHNtYXJ0ZW52IG9iamVjdFxuZW52aXJvbm1lbnQuaW5pdChzbWFydGVudik7XG5zbWFydGVudi5vYnMgPSBvYm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3JhZ2Uub2JzO1xuXG5leHBvcnQgPSBzbWFydGVudjtcbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
diff --git a/dist/smartenv.classes.helpers.js b/dist/smartenv.classes.helpers.js
index fe26c28..bd5e2d6 100644
--- a/dist/smartenv.classes.helpers.js
+++ b/dist/smartenv.classes.helpers.js
@@ -1,5 +1,3 @@
-#!/usr/bin/env node
-
///
exports.getEnvString = function () {
if (typeof window !== "undefined") {
diff --git a/dist/smartenv.classes.js b/dist/smartenv.classes.js
index 03acb87..e54379b 100644
--- a/dist/smartenv.classes.js
+++ b/dist/smartenv.classes.js
@@ -1,5 +1,3 @@
-#!/usr/bin/env node
-
///
var helpers = require("./smartenv.classes.helpers");
var Environment = (function () {
diff --git a/dist/smartenv.environment.js b/dist/smartenv.environment.js
index 3c4ad7d..fc71442 100644
--- a/dist/smartenv.environment.js
+++ b/dist/smartenv.environment.js
@@ -1,5 +1,3 @@
-#!/usr/bin/env node
-
///
/**
* Deals with the environment the current JS script is running in.
@@ -13,7 +11,7 @@ var envDetermined = false;
* returns the environment
* @returns {Environment}
*/
-var getEnv = function () {
+exports.getEnv = function () {
if (!envDetermined) {
environment = new classes.Environment();
envDetermined = true; // ensure code above only runs once
@@ -24,7 +22,7 @@ var getEnv = function () {
/**
* prints the environment to console
*/
-var printEnv = function () {
+exports.printEnv = function () {
if (this.getEnv().isNode) {
plugins.beautylog.ok("running on NODE");
var smartenvVersion = require("../package.json").version;
@@ -37,9 +35,5 @@ var printEnv = function () {
plugins.beautylog.log("the smartenv registration store currently holds the following properties:");
console.log(Object.getOwnPropertyNames(objectStorage.obs.getAll()));
};
-exports.init = function (objectArg) {
- objectArg.getEnv = getEnv;
- objectArg.printEnv = printEnv;
-};
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZW52LmVudmlyb25tZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUF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lcnNpb247XG4gICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLmxvZyhcIm5vZGUgdmVyc2lvbiBpcyBcIiArIHRoaXMuZ2V0RW52KCkubm9kZVZlcnNpb24gKyBcIiBhbmQgc21hcnRlbnYgdmVyc2lvbiBpcyBcIiArIHNtYXJ0ZW52VmVyc2lvbik7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgcGx1Z2lucy5iZWF1dHlsb2cub2soXCJydW5uaW5nIG9uIEJST1dTRVJcIik7XG4gICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLmxvZyhcImJyb3dzZXIgaXMgXCIgKyB0aGlzLmdldEVudigpLnVzZXJBZ2VudCk7XG4gICAgfVxuICAgIHBsdWdpbnMuYmVhdXR5bG9nLmxvZyhcInRoZSBzbWFydGVudiByZWdpc3RyYXRpb24gc3RvcmUgY3VycmVudGx5IGhvbGRzIHRoZSBmb2xsb3dpbmcgcHJvcGVydGllczpcIik7XG4gICAgY29uc29sZS5sb2coT2JqZWN0LmdldE93blByb3BlcnR5TmFtZXMob2JqZWN0U3RvcmFnZS5vYnMuZ2V0QWxsKCkpKTtcbn07Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
diff --git a/dist/smartenv.objectstorage.js b/dist/smartenv.objectstorage.js
index 56107bd..883c422 100644
--- a/dist/smartenv.objectstorage.js
+++ b/dist/smartenv.objectstorage.js
@@ -1,5 +1,3 @@
-#!/usr/bin/env node
-
///
var plugins = require("./smartenv.plugins");
exports.obs = {
diff --git a/dist/smartenv.plugins.js b/dist/smartenv.plugins.js
index 79c4c0f..a3af91d 100644
--- a/dist/smartenv.plugins.js
+++ b/dist/smartenv.plugins.js
@@ -1,5 +1,3 @@
-#!/usr/bin/env node
-
///
var plugins = {
beautylog: require("beautylog"),
diff --git a/package.json b/package.json
index 3976ccd..a6e1f74 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,7 @@
},
"homepage": "https://github.com/pushrocks/smartenv",
"dependencies": {
- "beautylog": "^2.1.1",
+ "beautylog": "^3.0.0",
"lodash": "^4.5.0",
"q": "^1.4.1"
},
@@ -29,6 +29,6 @@
"easyserve": "0.0.5",
"gulp": "^3.9.1",
"gulp-browser": "1.0.10",
- "npmts": "^3.0.2"
+ "npmts": "^3.1.2"
}
}
diff --git a/test/test.js b/test/test.js
index 76cd567..dbcaf31 100644
--- a/test/test.js
+++ b/test/test.js
@@ -1,5 +1,3 @@
-#!/usr/bin/env node
-
///
var smartenv = require("../dist/index.js");
var beautylog = require("beautylog");
diff --git a/ts/index.ts b/ts/index.ts
index 78565d0..c543b83 100644
--- a/ts/index.ts
+++ b/ts/index.ts
@@ -4,7 +4,8 @@ import environment = require("./smartenv.environment");
import objectstorage = require("./smartenv.objectstorage");
var smartenv:any = {}; //create smartenv object
-environment.init(smartenv);
+smartenv.getEnv = environment.getEnv;
+smartenv.printEnv = environment.printEnv;
smartenv.obs = objectstorage.obs;
export = smartenv;
diff --git a/ts/smartenv.environment.ts b/ts/smartenv.environment.ts
index 4bbc41f..2c401d3 100644
--- a/ts/smartenv.environment.ts
+++ b/ts/smartenv.environment.ts
@@ -14,7 +14,7 @@ var envDetermined:boolean = false;
* returns the environment
* @returns {Environment}
*/
-var getEnv = function(){
+export var getEnv = function(){
if (!envDetermined) {
environment = new classes.Environment();
envDetermined = true; // ensure code above only runs once
@@ -25,7 +25,7 @@ var getEnv = function(){
/**
* prints the environment to console
*/
-var printEnv = function() {
+export var printEnv = function() {
if (this.getEnv().isNode) {
plugins.beautylog.ok("running on NODE");
var smartenvVersion = require("../package.json").version;
@@ -36,9 +36,4 @@ var printEnv = function() {
}
plugins.beautylog.log("the smartenv registration store currently holds the following properties:");
console.log(Object.getOwnPropertyNames(objectStorage.obs.getAll()));
-};
-
-export var init = function(objectArg) {
- objectArg.getEnv = getEnv;
- objectArg.printEnv = printEnv;
};
\ No newline at end of file