Skip to content

Commit

Permalink
Build didn't get published last time..
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshulse committed Oct 7, 2017
1 parent 9072c0e commit ad7ecf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.vscode/
coverage/
yarn-error.log
13 changes: 5 additions & 8 deletions build/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

function _defineEnumerableProperties(obj, descs) { for (var key in descs) { var desc = descs[key]; desc.configurable = desc.enumerable = true; if ("value" in desc) desc.writable = true; Object.defineProperty(obj, key, desc); } return obj; }

var YEAR_IN_MS = 3.154e+10;
var MONTH_IN_MS = 2.628e+9;
var WEEK_IN_MS = 6.048e+8;
Expand Down Expand Up @@ -48,9 +46,7 @@ var converterFactory = function converterFactory(millisecondUnit) {
var yearConverter = function yearConverter(value) {
return {
get in() {
var _hours, _ref, _mutatorMap;

return _ref = {
return {
get years() {
return value;
},
Expand All @@ -71,10 +67,11 @@ var yearConverter = function yearConverter(value) {
},
get seconds() {
return value * YEAR_IN_MS / SECOND_IN_MS;
},
get milliseconds() {
return value * YEAR_IN_MS;
}
}, _hours = "hours", _mutatorMap = {}, _mutatorMap[_hours] = _mutatorMap[_hours] || {}, _mutatorMap[_hours].get = function () {
return value * YEAR_IN_MS;
}, _defineEnumerableProperties(_ref, _mutatorMap), _ref;
};
}
};
};
Expand Down

0 comments on commit ad7ecf6

Please sign in to comment.