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

Commit

Permalink
Merge pull request #40 from fielded/2.2.3
Browse files Browse the repository at this point in the history
chore: release 2.2.3
  • Loading branch information
patriciagarcia authored Dec 16, 2016
2 parents ef3247b + 3dff9b2 commit c39673f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 33 deletions.
39 changes: 7 additions & 32 deletions dist/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,11 @@

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

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
};

var classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
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; };

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);
}
}
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; }; }();

return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var find = function find(list, match) {
for (var i = 0; i < list.length; i++) {
Expand Down Expand Up @@ -72,7 +48,7 @@

var StateIndicatorsService = function () {
function StateIndicatorsService($q, smartId, STOCK_STATUSES, lgasService, statesService, zonesService, thresholdsService, productListService) {
classCallCheck(this, StateIndicatorsService);
_classCallCheck(this, StateIndicatorsService);

this.$q = $q;
this.smartId = smartId;
Expand All @@ -84,7 +60,7 @@
this.productListService = productListService;
}

createClass(StateIndicatorsService, [{
_createClass(StateIndicatorsService, [{
key: 'stateRequiredAllocationsByZone',
value: function stateRequiredAllocationsByZone(stockCounts) {
var _this = this;
Expand Down Expand Up @@ -137,9 +113,7 @@
var location = getLocation(lgas, states, zones, stockCount);
var locationThresholds = void 0;
if (location && location.level === 'zone') {
// Temporary fix for https://github.com/fielded/nav-integrated-national-dashboard/issues/265
// This should be removed when https://github.com/fielded/nav-etl/issues/136 is fixed
locationThresholds = _this2.thresholdsService.calculateThresholds(location, stockCount, products, requiredAllocations[location._id], { version: 'last' });
locationThresholds = _this2.thresholdsService.calculateThresholds(location, stockCount, products, requiredAllocations[location._id]);
} else {
locationThresholds = _this2.thresholdsService.calculateThresholds(location, stockCount, products);
}
Expand Down Expand Up @@ -278,6 +252,7 @@
return this.$q.all(promises).then(decorateStockCounts.bind(null, nonZoneStockCounts, zoneStockCounts));
}
}]);

return StateIndicatorsService;
}();

Expand Down
2 changes: 1 addition & 1 deletion dist/bundle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c39673f

Please sign in to comment.