@naturalcycles/abba 1.15.6 → 1.15.7

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/dist/util.js CHANGED
@@ -127,7 +127,7 @@ exports.segmentationRuleMap = {
127
127
  const canGenerateNewAssignments = (experiment, exclusionSet) => {
128
128
  return (!exclusionSet.has(experiment.id) &&
129
129
  experiment.status === types_1.AssignmentStatus.Active &&
130
- (0, js_lib_1.localDate)().isBetween(experiment.startDateIncl, experiment.endDateExcl, '[)'));
130
+ (0, js_lib_1.localDateToday)().isBetween(experiment.startDateIncl, experiment.endDateExcl, '[)'));
131
131
  };
132
132
  exports.canGenerateNewAssignments = canGenerateNewAssignments;
133
133
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/abba",
3
- "version": "1.15.6",
3
+ "version": "1.15.7",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "build": "build",
package/src/util.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { localDate, Saved } from '@naturalcycles/js-lib'
1
+ import { localDateToday, Saved } from '@naturalcycles/js-lib'
2
2
  import { satisfies } from 'semver'
3
3
  import {
4
4
  AssignmentStatus,
@@ -150,7 +150,7 @@ export const canGenerateNewAssignments = (
150
150
  return (
151
151
  !exclusionSet.has(experiment.id) &&
152
152
  experiment.status === AssignmentStatus.Active &&
153
- localDate().isBetween(experiment.startDateIncl, experiment.endDateExcl, '[)')
153
+ localDateToday().isBetween(experiment.startDateIncl, experiment.endDateExcl, '[)')
154
154
  )
155
155
  }
156
156