fable 3.0.143 → 3.0.144

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.143",
3
+ "version": "3.0.144",
4
4
  "description": "A service dependency injection, configuration and logging library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -50,20 +50,20 @@
50
50
  },
51
51
  "homepage": "https://github.com/stevenvelozo/fable",
52
52
  "devDependencies": {
53
- "quackage": "^1.0.30"
53
+ "quackage": "^1.0.33"
54
54
  },
55
55
  "dependencies": {
56
56
  "async.eachlimit": "^0.5.2",
57
57
  "async.waterfall": "^0.5.2",
58
- "big.js": "^6.2.1",
58
+ "big.js": "^6.2.2",
59
59
  "cachetrax": "^1.0.4",
60
60
  "cookie": "^0.6.0",
61
61
  "data-arithmatic": "^1.0.7",
62
- "dayjs": "^1.11.11",
63
- "fable-log": "^3.0.14",
64
- "fable-serviceproviderbase": "^3.0.13",
65
- "fable-settings": "^3.0.10",
66
- "fable-uuid": "^3.0.7",
62
+ "dayjs": "^1.11.13",
63
+ "fable-log": "^3.0.15",
64
+ "fable-serviceproviderbase": "^3.0.14",
65
+ "fable-settings": "^3.0.11",
66
+ "fable-uuid": "^3.0.9",
67
67
  "manyfest": "^1.0.37",
68
68
  "simple-get": "^4.0.1"
69
69
  }
package/source/Fable.js CHANGED
@@ -17,6 +17,7 @@ class Fable extends libFableServiceBase.CoreServiceProviderBase
17
17
 
18
18
  // Initialization Phase 0: Set up the lowest level state (fable is a utility service manager at heart)
19
19
  this.serviceType = 'ServiceManager';
20
+ this._Package = require('../package.json');
20
21
 
21
22
  // An array of the types of services available
22
23
  this.serviceTypes = [];
@@ -360,7 +360,7 @@ class FableServiceMath extends libFableServiceBase
360
360
  let tmpRightValue = isNaN(pRightValue) ? 0 : pRightValue;
361
361
 
362
362
  let tmpLeftArbitraryValue = new this.fable.Utility.bigNumber(tmpLeftValue);
363
- return tmpLeftArbitraryValue.lt(tmpRightValue);
363
+ return tmpLeftArbitraryValue.lte(tmpRightValue);
364
364
  }
365
365
 
366
366
  /**
@@ -36,14 +36,16 @@ suite
36
36
  let testFable = new libFable({LogStreams: false});
37
37
  // Instantiate the logger
38
38
  Expect(testFable).to.be.an('object', 'Fable should initialize as an object directly from the require statement.');
39
- Expect(testFable).to.have.a.property('log')
40
- .that.is.a('object');
41
- Expect(testFable).to.have.a.property('settings')
42
- .that.is.a('object');
43
- Expect(testFable).to.have.a.property('fable')
44
- .that.is.a('object');
45
- Expect(testFable.settings.Product)
46
- .to.equal('ApplicationNameHere')
39
+ Expect(testFable).to.have.a.property('log').that.is.a('object');
40
+ Expect(testFable).to.have.a.property('settings').that.is.a('object');
41
+ Expect(testFable).to.have.a.property('fable').that.is.a('object');
42
+ Expect(testFable.settings.Product).to.equal('ApplicationNameHere');
43
+
44
+ // Test package anthropology
45
+ Expect(testFable._PackageFableServiceProvider).to.be.an('object', 'Fable should have a _PackageFableServiceProvider object.');
46
+ Expect(testFable._PackageFableServiceProvider.name).equal('fable-serviceproviderbase', 'Fable _PackageFableServiceProvider.package.name should be set.');
47
+ Expect(testFable._Package).to.be.an('object', 'Fable should have a _Package object.');
48
+ Expect(testFable._Package.name).to.equal('fable', 'Fable _Package.package.name should be set.');
47
49
  }
48
50
  );
49
51
  test
package/test/Math_test.js CHANGED
@@ -53,7 +53,21 @@ suite
53
53
 
54
54
  Expect(testFable.Math.gtPrecise(4, 5)).to.equal(false);
55
55
  Expect(testFable.Math.gtePrecise(1000, 5)).to.equal(true);
56
+ Expect(testFable.Math.gtePrecise('0.00', '0.0')).to.equal(true);
57
+ Expect(testFable.Math.gtePrecise('0.00', '0.0000000000000000000000000000000001')).to.equal(false);
58
+ Expect(testFable.Math.gtePrecise('0.00', 0.01)).to.equal(false);
59
+ Expect(testFable.Math.gtePrecise('0.00', '-0.0000000000000000000000000000000001')).to.equal(true);
60
+ Expect(testFable.Math.gtePrecise('0.00', -0.01)).to.equal(true);
61
+ Expect(testFable.Math.gtePrecise('0.00000000000000000000000000000000099', '0.000000000000000000000000000000001')).to.equal(false);
62
+ Expect(testFable.Math.gtePrecise('0.000000000000000000000000000000001', '0.00000000000000000000000000000000099')).to.equal(true);
56
63
  Expect(testFable.Math.ltePrecise(1000, 5)).to.equal(false);
64
+ Expect(testFable.Math.ltePrecise('0.00', '0.0')).to.equal(true);
65
+ Expect(testFable.Math.ltePrecise('0.00', '0.0000000000000000000000000000000001')).to.equal(true);
66
+ Expect(testFable.Math.ltePrecise('0.00', 0.01)).to.equal(true);
67
+ Expect(testFable.Math.ltePrecise('0.00', '-0.0000000000000000000000000000000001')).to.equal(false);
68
+ Expect(testFable.Math.ltePrecise('0.00', -0.01)).to.equal(false);
69
+ Expect(testFable.Math.ltePrecise('0.00000000000000000000000000000000099', '0.000000000000000000000000000000001')).to.equal(true);
70
+ Expect(testFable.Math.ltePrecise('0.000000000000000000000000000000001', '0.00000000000000000000000000000000099')).to.equal(false);
57
71
  Expect(testFable.Math.ltPrecise(4, 5)).to.equal(true);
58
72
 
59
73
  Expect(testFable.Math.comparePrecise(4, 5)).to.equal(-1);
@@ -205,4 +219,4 @@ suite
205
219
  }
206
220
  );
207
221
  }
208
- );
222
+ );