Skip to content
This repository was archived by the owner on Jan 14, 2020. It is now read-only.

Commit c39673f

Browse files
Merge pull request #40 from fielded/2.2.3
chore: release 2.2.3
2 parents ef3247b + 3dff9b2 commit c39673f

File tree

2 files changed

+8
-33
lines changed

2 files changed

+8
-33
lines changed

dist/bundle.js

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,11 @@
33

44
angular = 'default' in angular ? angular['default'] : angular;
55

6-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
7-
return typeof obj;
8-
} : function (obj) {
9-
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
10-
};
11-
12-
var classCallCheck = function (instance, Constructor) {
13-
if (!(instance instanceof Constructor)) {
14-
throw new TypeError("Cannot call a class as a function");
15-
}
16-
};
6+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
177

18-
var createClass = function () {
19-
function defineProperties(target, props) {
20-
for (var i = 0; i < props.length; i++) {
21-
var descriptor = props[i];
22-
descriptor.enumerable = descriptor.enumerable || false;
23-
descriptor.configurable = true;
24-
if ("value" in descriptor) descriptor.writable = true;
25-
Object.defineProperty(target, descriptor.key, descriptor);
26-
}
27-
}
8+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
289

29-
return function (Constructor, protoProps, staticProps) {
30-
if (protoProps) defineProperties(Constructor.prototype, protoProps);
31-
if (staticProps) defineProperties(Constructor, staticProps);
32-
return Constructor;
33-
};
34-
}();
10+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3511

3612
var find = function find(list, match) {
3713
for (var i = 0; i < list.length; i++) {
@@ -72,7 +48,7 @@
7248

7349
var StateIndicatorsService = function () {
7450
function StateIndicatorsService($q, smartId, STOCK_STATUSES, lgasService, statesService, zonesService, thresholdsService, productListService) {
75-
classCallCheck(this, StateIndicatorsService);
51+
_classCallCheck(this, StateIndicatorsService);
7652

7753
this.$q = $q;
7854
this.smartId = smartId;
@@ -84,7 +60,7 @@
8460
this.productListService = productListService;
8561
}
8662

87-
createClass(StateIndicatorsService, [{
63+
_createClass(StateIndicatorsService, [{
8864
key: 'stateRequiredAllocationsByZone',
8965
value: function stateRequiredAllocationsByZone(stockCounts) {
9066
var _this = this;
@@ -137,9 +113,7 @@
137113
var location = getLocation(lgas, states, zones, stockCount);
138114
var locationThresholds = void 0;
139115
if (location && location.level === 'zone') {
140-
// Temporary fix for https://github.com/fielded/nav-integrated-national-dashboard/issues/265
141-
// This should be removed when https://github.com/fielded/nav-etl/issues/136 is fixed
142-
locationThresholds = _this2.thresholdsService.calculateThresholds(location, stockCount, products, requiredAllocations[location._id], { version: 'last' });
116+
locationThresholds = _this2.thresholdsService.calculateThresholds(location, stockCount, products, requiredAllocations[location._id]);
143117
} else {
144118
locationThresholds = _this2.thresholdsService.calculateThresholds(location, stockCount, products);
145119
}
@@ -278,6 +252,7 @@
278252
return this.$q.all(promises).then(decorateStockCounts.bind(null, nonZoneStockCounts, zoneStockCounts));
279253
}
280254
}]);
255+
281256
return StateIndicatorsService;
282257
}();
283258

dist/bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)