@singularsystems/neo-core 0.10.81 → 0.10.82

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.
@@ -191,7 +191,8 @@ var DateUtils = /** @class */ (function () {
191
191
  // 31 May - 1 month == 31 April == 1 May, this will fix that:
192
192
  var newMonth = newDate.getMonth();
193
193
  var oldMonth = date.getMonth();
194
- if (newMonth !== oldMonth + (timeSpan.months % 12)) {
194
+ // JS % operator gives remainder, not mod
195
+ if (newMonth !== ((oldMonth + (timeSpan.months % 12) + 12) % 12)) {
195
196
  newDate.setDate(0);
196
197
  }
197
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-core",
3
- "version": "0.10.81",
3
+ "version": "0.10.82",
4
4
  "description": "Core functionality for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",