Comparing version 1.1.2 to 1.1.3
@@ -0,1 +1,13 @@ | ||
v1.1.3 | ||
===== | ||
### API Changes ### | ||
- Fixed issue with Object.isEmpty where strings with length > 0 will return true. | ||
### Internal Changes ### | ||
- Updated Array#sortBy to use .compare method when available. | ||
v1.1.2 | ||
@@ -2,0 +14,0 @@ ===== |
@@ -28,2 +28,3 @@ Object.SugarMethods = {}; | ||
Date.prototype.toUTC = function() {}; | ||
Date.prototype.compare = function() {}; | ||
Date.setLocale = function() {}; | ||
@@ -41,2 +42,3 @@ Function.prototype.cancel = function() {}; | ||
Number.prototype.upto = function() {}; | ||
Number.prototype.compare = function() {}; | ||
Object.defineProperties = function() {}; | ||
@@ -79,1 +81,2 @@ Object.defineProperty = function() {}; | ||
String.prototype.zenkaku = function() {}; | ||
String.prototype.compare = function() {}; |
{ | ||
"name": "sugar", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A Javascript library for working with native objects.", | ||
@@ -5,0 +5,0 @@ "keywords": ["functional", "utility", "ender"], |
@@ -446,2 +446,4 @@ test('Object', function () { | ||
equal(Object.isEmpty(''), true, 'Object.isEmpty | empty string is empty'); | ||
equal(Object.isEmpty('wasabi'), false, 'Object.isEmpty | non-empty string is not empty'); | ||
equal(Object.isEmpty({ length: 0 }), false, 'Object.isEmpty | simple object with length property is not empty'); | ||
equal(Object.isEmpty([]), true, 'Object.isEmpty | empty array is empty'); | ||
@@ -448,0 +450,0 @@ equal(Object.isEmpty(NaN), true, 'Object.isEmpty | NaN is empty'); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1050702
18966
35967