Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sugar

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sugar - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

12

CHANGELOG.md

@@ -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 @@ =====

3

lib/externs.js

@@ -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() {};

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc