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

@emartech/data-aggregator-language

Package Overview
Dependencies
Maintainers
85
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emartech/data-aggregator-language - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

2

package.json

@@ -29,3 +29,3 @@ {

},
"version": "2.4.1"
"version": "2.4.2"
}

@@ -163,2 +163,6 @@ 'use strict';

});
it('works for properties that are not defined', function() {
expect(aggregate('EMPTY UNION programs.foo')).to.eql(true);
});
});

@@ -165,0 +169,0 @@

@@ -40,3 +40,3 @@ 'use strict';

union(propertyName) {
return this._data.map(propertyName).flatten().uniq().value();
return this._data.map(propertyName).reject(x => typeof (x) === 'undefined').flatten().uniq().value();
}

@@ -43,0 +43,0 @@

@@ -54,3 +54,12 @@ 'use strict';

});
it('returns empty array for non-existent property names', function() {
const data = [
{
date: '2017-08-19'
}
];
expect(Period.create(data).union('non.existent.data.set')).to.eql([]);
});
});
});
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