@atombender/hydrant-api
Advanced tools
@@ -141,3 +141,3 @@ 'use strict'; | ||
| value: function equals(other) { | ||
| return other instanceof AggregationInstance && other.dimension.equals(this.dimension) && (other.categoryValue.equals ? other.categoryValue.equals(this.categoryValue) : (0, _underscore.isEqual)(other.categoryValue, this.categoryValue)) && other.functionName === this.functionName; | ||
| return other instanceof AggregationInstance && other.dimension && other.dimension.equals(this.dimension) && (other.categoryValue.equals ? other.categoryValue.equals(this.categoryValue) : (0, _underscore.isEqual)(other.categoryValue, this.categoryValue)) && other.functionName === this.functionName; | ||
| } | ||
@@ -144,0 +144,0 @@ }, { |
+1
-1
| { | ||
| "name": "@atombender/hydrant-api", | ||
| "version": "0.0.34", | ||
| "version": "0.0.35", | ||
| "repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -12,3 +12,7 @@ import expect from 'expect.js'; | ||
| const testTimeZones = [null, 'America/Los_Angeles', 'America/New_York']; | ||
| const testTimeZones = [ | ||
| null, | ||
| 'America/Los_Angeles', | ||
| 'America/New_York' | ||
| ]; | ||
@@ -29,4 +33,4 @@ describe('TIMEFRAMES', () => { | ||
| let range = getTimeframeById('this_year').getRange(tzName); | ||
| expect(range.start.format()).to.eql(now.startOf('year').format()); | ||
| expect(range.end.format()).to.eql(now.format()); | ||
| expect(range.start.format()).to.eql(moment(now).startOf('year').format()); | ||
| expect(range.end.format('YYYY-MM-DD')).to.eql(now.format('YYYY-MM-DD')); | ||
| }); | ||
@@ -33,0 +37,0 @@ }); |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
123285
0.05%3237
0.12%