diff --git a/dist/index.js b/dist/index.js
index feb275d..22b2421 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,11 +1,11 @@
#!/usr/bin/env node
///
-var SmartenvEnvironment = require("./smartenv.environment");
-var SmartenvObjectStorage = require("./smartenv.objectstorage");
+var environment = require("./smartenv.environment");
+var objectstorage = require("./smartenv.objectstorage");
var smartenv = {}; //create smartenv object
-SmartenvEnvironment.init(smartenv);
-smartenv.obs = SmartenvObjectStorage.obs;
+environment.init(smartenv);
+smartenv.obs = objectstorage.obs;
module.exports = smartenv;
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQztBQUUxQyxJQUFPLG1CQUFtQixXQUFXLHdCQUF3QixDQUFDLENBQUM7QUFDL0QsSUFBTyxxQkFBcUIsV0FBVywwQkFBMEIsQ0FBQyxDQUFDO0FBRW5FLElBQUksUUFBUSxHQUFPLEVBQUUsQ0FBQyxDQUFDLHdCQUF3QjtBQUMvQyxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUM7QUFDbkMsUUFBUSxDQUFDLEdBQUcsR0FBRyxxQkFBcUIsQ0FBQyxHQUFHLENBQUM7QUFFekMsaUJBQVMsUUFBUSxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cInR5cGluZ3MvbWFpbi5kLnRzXCIgLz5cblxuaW1wb3J0IFNtYXJ0ZW52RW52aXJvbm1lbnQgPSByZXF1aXJlKFwiLi9zbWFydGVudi5lbnZpcm9ubWVudFwiKTtcbmltcG9ydCBTbWFydGVudk9iamVjdFN0b3JhZ2UgPSByZXF1aXJlKFwiLi9zbWFydGVudi5vYmplY3RzdG9yYWdlXCIpO1xuXG52YXIgc21hcnRlbnY6YW55ID0ge307IC8vY3Jl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ID0gc21hcnRlbnY7XG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
diff --git a/dist/smartenv.environment.js b/dist/smartenv.environment.js
index 35d8cf8..2e05201 100644
--- a/dist/smartenv.environment.js
+++ b/dist/smartenv.environment.js
@@ -5,8 +5,8 @@
* Deals with the environment the current JS script is running in.
*/
var plugins = require("./smartenv.plugins");
-var SmartenvClasses = require("./smartenv.classes");
-var SmartenvObjectStorage = require("./smartenv.objectstorage");
+var classes = require("./smartenv.classes");
+var objectStorage = require("./smartenv.objectstorage");
var environment;
var envDetermined = false;
/**
@@ -25,7 +25,7 @@ var getEnv = function () {
else if (typeof process !== "undefined") {
localRunTimeEnv = 'node';
}
- environment = new SmartenvClasses.Environment(localRunTimeEnv, localUserAgent);
+ environment = new classes.Environment(localRunTimeEnv, localUserAgent);
})();
envDetermined = true; // ensure code above only runs once
}
@@ -46,11 +46,11 @@ var printEnv = function () {
plugins.beautylog.log("browser is " + this.getEnv().userAgent);
}
plugins.beautylog.log("the smartenv registration store currently holds the following properties:");
- console.log(Object.getOwnPropertyNames(SmartenvObjectStorage.obs.getAll()));
+ console.log(Object.getOwnPropertyNames(objectStorage.obs.getAll()));
};
exports.init = function (objectArg) {
objectArg.getEnv = getEnv;
objectArg.printEnv = printEnv;
};
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZW52LmVudmlyb25tZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQztBQUMxQzs7R0FFRztBQUNILElBQU8sT0FBTyxXQUFXLG9CQUFvQixDQUFDLENBQUM7QUFDL0MsSUFBTyxlQUFlLFdBQVcsb0JBQW9CLENBQUMsQ0FBQztBQUN2RCxJQUFPLHFCQUFxQixXQUFXLDBCQUEwQixDQUFDLENBQUM7QUFHbkUsSUFBSSxXQUF1QyxDQUFDO0FBQzVDLElBQUksYUFBYSxHQUFXLEtBQUssQ0FB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gYW5kIHNtYXJ0ZW52IHZlcnNpb24gaXMgXCIgKyBzbWFydGVudlZlcnNpb24pO1xuICAgIH0gZWxzZSB7XG4gICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLm9rKFwicnVubmluZyBvbiBCUk9XU0VSXCIpO1xuICAgICAgICBwbHVnaW5zLmJlYXV0eWxvZy5sb2coXCJicm93c2VyIGlzIFwiICsgdGhpcy5nZXRFbnYoKS51c2VyQWdlbnQpO1xuICAgIH1cbiAgICBwbHVnaW5zLmJlYXV0eWxvZy5sb2coXCJ0aGUgc21hcnRlbnYgcmVnaXN0cmF0aW9uIHN0b3JlIGN1cnJlbnRseSBob2xkcyB0aGUgZm9sbG93aW5nIHByb3BlcnRpZXM6XCIpO1xuICAgIGNvbnNvbGUubG9nKE9iamVjdC5nZXRPd25Qcm9wZXJ0eU5hbWVzKG9iamVjdFN0b3JhZ2Uub2JzLmdldEFsbCgpKSk7XG59O1xuXG5leHBvcnQgdmFyIGluaXQgPSBmdW5jdGlvbihvYmplY3RBcmcpIHtcbiAgICBvYmplY3RBcmcuZ2V0RW52ID0gZ2V0RW52O1xuICAgIG9iamVjdEFyZy5wcmludEVudiA9IHByaW50RW52O1xufTsiXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
diff --git a/ts/index.ts b/ts/index.ts
index 0efb361..78565d0 100644
--- a/ts/index.ts
+++ b/ts/index.ts
@@ -1,10 +1,10 @@
///
-import SmartenvEnvironment = require("./smartenv.environment");
-import SmartenvObjectStorage = require("./smartenv.objectstorage");
+import environment = require("./smartenv.environment");
+import objectstorage = require("./smartenv.objectstorage");
var smartenv:any = {}; //create smartenv object
-SmartenvEnvironment.init(smartenv);
-smartenv.obs = SmartenvObjectStorage.obs;
+environment.init(smartenv);
+smartenv.obs = objectstorage.obs;
export = smartenv;
diff --git a/ts/smartenv.environment.ts b/ts/smartenv.environment.ts
index 7c8ac6b..c615955 100644
--- a/ts/smartenv.environment.ts
+++ b/ts/smartenv.environment.ts
@@ -3,11 +3,11 @@
* Deals with the environment the current JS script is running in.
*/
import plugins = require("./smartenv.plugins");
-import SmartenvClasses = require("./smartenv.classes");
-import SmartenvObjectStorage = require("./smartenv.objectstorage");
+import classes = require("./smartenv.classes");
+import objectStorage = require("./smartenv.objectstorage");
-var environment:SmartenvClasses.Environment;
+var environment:classes.Environment;
var envDetermined:boolean = false;
/**
@@ -25,7 +25,7 @@ var getEnv = function(){
} else if (typeof process !== "undefined") {
localRunTimeEnv = 'node';
}
- environment = new SmartenvClasses.Environment(localRunTimeEnv,localUserAgent);
+ environment = new classes.Environment(localRunTimeEnv,localUserAgent);
})();
envDetermined = true; // ensure code above only runs once
};
@@ -45,7 +45,7 @@ var printEnv = function() {
plugins.beautylog.log("browser is " + this.getEnv().userAgent);
}
plugins.beautylog.log("the smartenv registration store currently holds the following properties:");
- console.log(Object.getOwnPropertyNames(SmartenvObjectStorage.obs.getAll()));
+ console.log(Object.getOwnPropertyNames(objectStorage.obs.getAll()));
};
export var init = function(objectArg) {