summaryrefslogtreecommitdiff
path: root/node_modules/mongoose/support/expresso/lib
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/mongoose/support/expresso/lib')
-rw-r--r--node_modules/mongoose/support/expresso/lib/bar.js4
-rw-r--r--node_modules/mongoose/support/expresso/lib/foo.js16
2 files changed, 20 insertions, 0 deletions
diff --git a/node_modules/mongoose/support/expresso/lib/bar.js b/node_modules/mongoose/support/expresso/lib/bar.js
new file mode 100644
index 0000000..e15aad4
--- /dev/null
+++ b/node_modules/mongoose/support/expresso/lib/bar.js
@@ -0,0 +1,4 @@
+
+exports.bar = function(msg){
+ return msg || 'bar';
+}; \ No newline at end of file
diff --git a/node_modules/mongoose/support/expresso/lib/foo.js b/node_modules/mongoose/support/expresso/lib/foo.js
new file mode 100644
index 0000000..15701a5
--- /dev/null
+++ b/node_modules/mongoose/support/expresso/lib/foo.js
@@ -0,0 +1,16 @@
+
+exports.foo = function(msg){
+ if (msg) {
+ return msg;
+ } else {
+ return generateFoo();
+ }
+};
+
+function generateFoo() {
+ return 'foo';
+}
+
+function Foo(msg){
+ this.msg = msg || 'foo';
+}