chronoshift
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -542,11 +542,4 @@ /* | ||
if (typeof window === 'undefined_') { | ||
req_helpers = require_("./helpers"); | ||
module.exports = init(req_helpers); | ||
} else if (typeof define !== 'undefined') { | ||
define('olson/timezonetime',["olson/helpers"], init); | ||
} else { | ||
this.WallTime || (this.WallTime = {}); | ||
this.WallTime.TimeZoneTime = init(this.WallTime.helpers); | ||
} | ||
this.WallTime || (this.WallTime = {}); | ||
this.WallTime.TimeZoneTime = init(this.WallTime.helpers); | ||
@@ -997,12 +990,4 @@ }).call(this); | ||
if (typeof window === 'undefined_') { | ||
req_helpers = require_("./helpers"); | ||
req_TimeZoneTime = require_("./timezonetime"); | ||
module.exports = init(req_helpers, req_TimeZoneTime); | ||
} else if (typeof define !== 'undefined') { | ||
define('olson/rule',["olson/helpers", "olson/timezonetime"], init); | ||
} else { | ||
this.WallTime || (this.WallTime = {}); | ||
this.WallTime.rule = init(this.WallTime.helpers, this.WallTime.TimeZoneTime); | ||
} | ||
this.WallTime || (this.WallTime = {}); | ||
this.WallTime.rule = init(this.WallTime.helpers, this.WallTime.TimeZoneTime); | ||
@@ -1236,13 +1221,4 @@ }).call(this); | ||
if (typeof window === 'undefined_') { | ||
req_helpers = require_("./helpers"); | ||
req_rule = require_("./rule"); | ||
req_TimeZoneTime = require_("./timezonetime"); | ||
module.exports = init(req_helpers, req_rule, req_TimeZoneTime); | ||
} else if (typeof define !== 'undefined') { | ||
define('olson/zone',["olson/helpers", "olson/rule", "olson/timezonetime"], init); | ||
} else { | ||
this.WallTime || (this.WallTime = {}); | ||
this.WallTime.zone = init(this.WallTime.helpers, this.WallTime.rule, this.WallTime.TimeZoneTime); | ||
} | ||
this.WallTime || (this.WallTime = {}); | ||
this.WallTime.zone = init(this.WallTime.helpers, this.WallTime.rule, this.WallTime.TimeZoneTime); | ||
@@ -1421,40 +1397,14 @@ }).call(this); | ||
if (typeof window === 'undefined_') { | ||
req_zone = require_("./olson/zone"); | ||
req_rule = require_("./olson/rule"); | ||
req_help = require_("./olson/helpers"); | ||
module.exports = init(req_help, req_rule, req_zone); | ||
} else if (typeof define !== 'undefined') { | ||
if (!require.specified('walltime-data')) { | ||
if (typeof console !== "undefined" && console !== null) { | ||
if (typeof console.warn === "function") { | ||
console.warn("To use WallTime with requirejs please include the walltime-data.js script before requiring walltime"); | ||
} | ||
} | ||
define('walltime-data', [], function() { | ||
return null; | ||
}); | ||
} | ||
define('walltime',['olson/helpers', 'olson/rule', 'olson/zone', 'walltime-data'], function(req_zone, req_rule, req_help, WallTimeData) { | ||
var lib; | ||
lib = init(req_zone, req_rule, req_help); | ||
if (WallTimeData != null ? WallTimeData.zones : void 0) { | ||
lib.init(WallTimeData.rules, WallTimeData.zones); | ||
} | ||
return lib; | ||
}); | ||
} else { | ||
this.WallTime || (this.WallTime = {}); | ||
api = init(this.WallTime.helpers, this.WallTime.rule, this.WallTime.zone); | ||
_ref = this.WallTime; | ||
for (key in _ref) { | ||
if (!__hasProp.call(_ref, key)) continue; | ||
val = _ref[key]; | ||
api[key] = val; | ||
} | ||
this.WallTime = api; | ||
if (this.WallTime.autoinit && ((_ref1 = this.WallTime.data) != null ? _ref1.rules : void 0) && ((_ref2 = this.WallTime.data) != null ? _ref2.zones : void 0)) { | ||
this.WallTime.init(this.WallTime.data.rules, this.WallTime.data.zones); | ||
} | ||
this.WallTime || (this.WallTime = {}); | ||
api = init(this.WallTime.helpers, this.WallTime.rule, this.WallTime.zone); | ||
_ref = this.WallTime; | ||
for (key in _ref) { | ||
if (!__hasProp.call(_ref, key)) continue; | ||
val = _ref[key]; | ||
api[key] = val; | ||
} | ||
this.WallTime = api; | ||
if (this.WallTime.autoinit && ((_ref1 = this.WallTime.data) != null ? _ref1.rules : void 0) && ((_ref2 = this.WallTime.data) != null ? _ref2.zones : void 0)) { | ||
this.WallTime.init(this.WallTime.data.rules, this.WallTime.data.zones); | ||
} | ||
@@ -1461,0 +1411,0 @@ }).call(this); |
{ | ||
"name": "chronoshift", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "A tiny library for shifting time with timezones", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
797578
7724