fable 3.0.150 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fable",
3
- "version": "3.0.150",
3
+ "version": "3.1.0",
4
4
  "description": "A service dependency injection, configuration and logging library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "homepage": "https://github.com/stevenvelozo/fable",
52
52
  "devDependencies": {
53
- "quackage": "^1.0.36"
53
+ "quackage": "^1.0.38"
54
54
  },
55
55
  "dependencies": {
56
56
  "async.eachlimit": "^0.5.2",
@@ -24,6 +24,13 @@ class FableServiceFilePersistence extends libFableServiceBase
24
24
  }
25
25
 
26
26
  joinPath(...pPathArray)
27
+ {
28
+ // TODO: Fix anything that's using this before changing this to the new true node join
29
+ // return libPath.join(...pPathArray);
30
+ return libPath.resolve(...pPathArray);
31
+ }
32
+
33
+ resolvePath(...pPathArray)
27
34
  {
28
35
  return libPath.resolve(...pPathArray);
29
36
  }
@@ -35,8 +42,7 @@ class FableServiceFilePersistence extends libFableServiceBase
35
42
 
36
43
  exists(pPath, fCallback)
37
44
  {
38
- let tmpFileExists = this.existsSync(pPath);;
39
-
45
+ let tmpFileExists = this.existsSync(pPath);
40
46
  return fCallback(null, tmpFileExists);
41
47
  }
42
48
 
@@ -116,6 +116,20 @@ suite
116
116
  }
117
117
  );
118
118
  test
119
+ (
120
+ 'Resolve a path.',
121
+ function(fTestComplete)
122
+ {
123
+ let testFable = new libFable();
124
+ let tmpFilePersistence = testFable.instantiateServiceProvider('FilePersistence');
125
+
126
+ Expect(tmpFilePersistence.resolvePath('tmp/tests/../othertests/names/'))
127
+ .to.equal(process.cwd()+'/tmp/othertests/names');
128
+
129
+ return fTestComplete();
130
+ }
131
+ );
132
+ test
119
133
  (
120
134
  'Create a recursive folder.',
121
135
  function(fTestComplete)