js-joda-timezone
Advanced tools
Comparing version
Changelog | ||
========= | ||
### 1.2.1 (next) | ||
### 1.2.2 (next) | ||
### 1.2.1 | ||
#### bug | ||
* fix umd build | ||
#### dependendency updates | ||
### 1.2.0 | ||
@@ -7,0 +15,0 @@ |
@@ -1,2 +0,2 @@ | ||
//! @version js-joda-timezone-1.2.0 | ||
//! @version js-joda-timezone-1.2.1 | ||
//! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors | ||
@@ -13,3 +13,3 @@ //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree) | ||
root["JSJodaTimezone"] = factory(root["JSJoda"]); | ||
})(window, function(__WEBPACK_EXTERNAL_MODULE_js_joda__) { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_js_joda__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -16,0 +16,0 @@ /******/ // The module cache |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("js-joda")):"function"==typeof define&&define.amd?define(["js-joda"],e):"object"==typeof exports?exports.JSJodaTimezone=e(require("js-joda")):t.JSJodaTimezone=e(t.JSJoda)}(window,function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(e,n){e.exports=t},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e=function(t){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;return t.of(e)}catch(t){}return null}(t);if(null==e)return;t.systemDefault=function(){return e}},t.exports=e.default},function(t,e,n){"use strict";function o(t){return t>96?t-87:t>64?t-29:t-48}function r(t){var e=0,n=t.split("."),r=n[0],i=n[1]||"",s=1,f=0,u=1;for(45===t.charCodeAt(0)&&(e=1,u=-1);e<r.length;e++)f=60*f+o(r.charCodeAt(e));for(e=0;e<i.length;e++)s/=60,f+=o(i.charCodeAt(e))*s;return f*u}function i(t){for(var e=0;e<t.length;e++)t[e]=r(t[e])}function s(t,e){var n,o=[];for(n=0;n<e.length;n++)o[n]=t[e[n]];return o}e.__esModule=!0,e.unpack=function(t){var e=t.split("|"),n=e[2].split(" "),o=e[3].split(""),r=e[4].split(" ");return i(n),i(o),i(r),function(t,e){for(var n=0;n<e;n++)t[n]=Math.round((t[n-1]||0)+6e4*t[n]);t[e-1]=1/0}(r,o.length),{name:e[0],abbrs:s(e[1].split(" "),o),offsets:s(n,o),untils:r,population:0|e[5]}}},function(t,e,n){"use strict";e.__esModule=!0,e.MomentZoneRules=void 0;var o=n(0);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.MomentZoneRules=function(t){function e(n){r(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return o._tzdbInfo=n,o._ldtUntils=new i(o._tzdbInfo.untils,o._tzdbInfo.offsets),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isFixedOffset=function(){return 1===this._tzdbInfo.offsets.length},e.prototype.offsetOfInstant=function(t){var e=t.toEpochMilli();return this.offsetOfEpochMilli(e)},e.prototype.offsetOfEpochMilli=function(t){var e=function(t,e){var n=t.length-1,o=-1,r=void 0;for(;n-o>1;)t[r=n+o>>1]<=e?o=r:n=r;return n}(this._tzdbInfo.untils,t);return o.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(e))},e.prototype.offsetOfLocalDateTime=function(t){var e=this._offsetInfo(t);return e instanceof o.ZoneOffsetTransition?e.offsetBefore():e},e.prototype._offsetInfo=function(t){var e=function(t,e){var n=t.size-1,o=-1,r=void 0;for(;n-o>1;)e.isBefore(t.get(r=n+o>>1))?n=r:o=r;return n}(this._ldtUntils,t),n=e>>1;if(e%2==1){var r=this._ldtUntils.get(Math.max(e-1,0)),i=this._ldtUntils.get(Math.min(e,this._ldtUntils.size-1)),s=o.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(n)),f=o.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(Math.min(n+1,this._tzdbInfo.offsets.length-1)));return s.compareTo(f)>0?o.ZoneOffsetTransition.of(r,s,f):o.ZoneOffsetTransition.of(i,s,f)}return o.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(n))},e.prototype._offsetByIndexInSeconds=function(t){return-s(this._tzdbInfo.offsets[t])},e.prototype.validOffsets=function(t){var e=this._offsetInfo(t);return e instanceof o.ZoneOffsetTransition?e.validOffsets():[e]},e.prototype.transition=function(t){var e=this._offsetInfo(t);return e instanceof o.ZoneOffsetTransition?e:null},e.prototype.standardOffset=function(t){f("ZoneRules.standardOffset")},e.prototype.daylightSavings=function(t){f("ZoneRules.daylightSavings")},e.prototype.isDaylightSavings=function(t){f("ZoneRules.isDaylightSavings")},e.prototype.isValidOffset=function(t,e){return this.validOffsets(t).some(function(t){return t.equals(e)})},e.prototype.nextTransition=function(t){f("ZoneRules.nextTransition")},e.prototype.previousTransition=function(t){f("ZoneRules.previousTransition")},e.prototype.transitions=function(){f("ZoneRules.transitions")},e.prototype.transitionRules=function(){f("ZoneRules.transitionRules")},e.prototype.equals=function(t){return this===t||t instanceof e&&this._tzdbInfo===t._tzdbInfo},e.prototype.toString=function(){return this._tzdbInfo.name},e}(o.ZoneRules);var i=function(){function t(e,n){r(this,t),this._tzdbUntils=e,this._tzdbOffsets=n,this._ldtUntils=[],this.size=2*this._tzdbUntils.length}return t.prototype._generateTupple=function(t){var e=this._tzdbUntils[t];if(e===1/0)return[o.LocalDateTime.MAX,o.LocalDateTime.MAX];var n=o.Instant.ofEpochMilli(e),r=s(this._tzdbOffsets[t]),i=o.ZoneOffset.ofTotalSeconds(-r),f=o.LocalDateTime.ofInstant(n,i),u=Math.min(t+1,this._tzdbOffsets.length-1),a=s(this._tzdbOffsets[u]),l=o.ZoneOffset.ofTotalSeconds(-a),c=o.LocalDateTime.ofInstant(n,l);return r>a?[f,c]:[c,f]},t.prototype._getTupple=function(t){return null==this._ldtUntils[t]&&(this._ldtUntils[t]=this._generateTupple(t)),this._ldtUntils[t]},t.prototype.get=function(t){return this._getTupple(t>>1)[t%2]},t}();function s(t){return(e=60*+t)<0?Math.ceil(e):Math.floor(e);var e}function f(t){throw new Error("not supported: "+t)}},function(t,e,n){"use strict";e.__esModule=!0,e.MomentZoneRulesProvider=void 0;var o=n(0),r=n(3),i=n(2);var s=void 0,f=void 0,u=[],a={},l={};e.MomentZoneRulesProvider=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.getRules=function(t){var e=a[l[t]];if(null==e)throw new o.DateTimeException("Unknown time-zone ID: "+t);return new r.MomentZoneRules(e)},e.getAvailableZoneIds=function(){return u},e.getVersion=function(){return f},e.getTzdbData=function(){return s},e.loadTzdbData=function(t){s=t,f=t.version;var e=t.zones,n=Array.isArray(e),o=0;for(e=n?e:e[Symbol.iterator]();;){var r;if(n){if(o>=e.length)break;r=e[o++]}else{if((o=e.next()).done)break;r=o.value}var c=r,d=(0,i.unpack)(c);u.push(d.name),a[d.name]=d,l[d.name]=d.name}var p=t.links,h=Array.isArray(p),v=0;for(p=h?p:p[Symbol.iterator]();;){var y;if(h){if(v>=p.length)break;y=p[v++]}else{if((v=p.next()).done)break;y=v.value}var _=y.split("|");u.push(_[1]),l[_[1]]=_[0]}},e}(o.ZoneRulesProvider)},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return t.ZoneRulesProvider.getRules=r.MomentZoneRulesProvider.getRules,t.ZoneRulesProvider.getAvailableZoneIds=r.MomentZoneRulesProvider.getAvailableZoneIds,t.ZoneRulesProvider.getTzdbData=r.MomentZoneRulesProvider.getTzdbData,t.ZoneRulesProvider.loadTzdbData=r.MomentZoneRulesProvider.loadTzdbData,(0,s.default)(t.ZoneId),t};var o,r=n(4),i=n(1),s=(o=i)&&o.__esModule?o:{default:o};t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var o,r=n(5),i=(o=r)&&o.__esModule?o:{default:o};e.default=i.default,t.exports=e.default}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("js-joda")):"function"==typeof define&&define.amd?define(["js-joda"],e):"object"==typeof exports?exports.JSJodaTimezone=e(require("js-joda")):t.JSJodaTimezone=e(t.JSJoda)}(this,function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(e,n){e.exports=t},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e=function(t){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;return t.of(e)}catch(t){}return null}(t);if(null==e)return;t.systemDefault=function(){return e}},t.exports=e.default},function(t,e,n){"use strict";function o(t){return t>96?t-87:t>64?t-29:t-48}function r(t){var e=0,n=t.split("."),r=n[0],i=n[1]||"",s=1,f=0,u=1;for(45===t.charCodeAt(0)&&(e=1,u=-1);e<r.length;e++)f=60*f+o(r.charCodeAt(e));for(e=0;e<i.length;e++)s/=60,f+=o(i.charCodeAt(e))*s;return f*u}function i(t){for(var e=0;e<t.length;e++)t[e]=r(t[e])}function s(t,e){var n,o=[];for(n=0;n<e.length;n++)o[n]=t[e[n]];return o}e.__esModule=!0,e.unpack=function(t){var e=t.split("|"),n=e[2].split(" "),o=e[3].split(""),r=e[4].split(" ");return i(n),i(o),i(r),function(t,e){for(var n=0;n<e;n++)t[n]=Math.round((t[n-1]||0)+6e4*t[n]);t[e-1]=1/0}(r,o.length),{name:e[0],abbrs:s(e[1].split(" "),o),offsets:s(n,o),untils:r,population:0|e[5]}}},function(t,e,n){"use strict";e.__esModule=!0,e.MomentZoneRules=void 0;var o=n(0);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.MomentZoneRules=function(t){function e(n){r(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return o._tzdbInfo=n,o._ldtUntils=new i(o._tzdbInfo.untils,o._tzdbInfo.offsets),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isFixedOffset=function(){return 1===this._tzdbInfo.offsets.length},e.prototype.offsetOfInstant=function(t){var e=t.toEpochMilli();return this.offsetOfEpochMilli(e)},e.prototype.offsetOfEpochMilli=function(t){var e=function(t,e){var n=t.length-1,o=-1,r=void 0;for(;n-o>1;)t[r=n+o>>1]<=e?o=r:n=r;return n}(this._tzdbInfo.untils,t);return o.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(e))},e.prototype.offsetOfLocalDateTime=function(t){var e=this._offsetInfo(t);return e instanceof o.ZoneOffsetTransition?e.offsetBefore():e},e.prototype._offsetInfo=function(t){var e=function(t,e){var n=t.size-1,o=-1,r=void 0;for(;n-o>1;)e.isBefore(t.get(r=n+o>>1))?n=r:o=r;return n}(this._ldtUntils,t),n=e>>1;if(e%2==1){var r=this._ldtUntils.get(Math.max(e-1,0)),i=this._ldtUntils.get(Math.min(e,this._ldtUntils.size-1)),s=o.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(n)),f=o.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(Math.min(n+1,this._tzdbInfo.offsets.length-1)));return s.compareTo(f)>0?o.ZoneOffsetTransition.of(r,s,f):o.ZoneOffsetTransition.of(i,s,f)}return o.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(n))},e.prototype._offsetByIndexInSeconds=function(t){return-s(this._tzdbInfo.offsets[t])},e.prototype.validOffsets=function(t){var e=this._offsetInfo(t);return e instanceof o.ZoneOffsetTransition?e.validOffsets():[e]},e.prototype.transition=function(t){var e=this._offsetInfo(t);return e instanceof o.ZoneOffsetTransition?e:null},e.prototype.standardOffset=function(t){f("ZoneRules.standardOffset")},e.prototype.daylightSavings=function(t){f("ZoneRules.daylightSavings")},e.prototype.isDaylightSavings=function(t){f("ZoneRules.isDaylightSavings")},e.prototype.isValidOffset=function(t,e){return this.validOffsets(t).some(function(t){return t.equals(e)})},e.prototype.nextTransition=function(t){f("ZoneRules.nextTransition")},e.prototype.previousTransition=function(t){f("ZoneRules.previousTransition")},e.prototype.transitions=function(){f("ZoneRules.transitions")},e.prototype.transitionRules=function(){f("ZoneRules.transitionRules")},e.prototype.equals=function(t){return this===t||t instanceof e&&this._tzdbInfo===t._tzdbInfo},e.prototype.toString=function(){return this._tzdbInfo.name},e}(o.ZoneRules);var i=function(){function t(e,n){r(this,t),this._tzdbUntils=e,this._tzdbOffsets=n,this._ldtUntils=[],this.size=2*this._tzdbUntils.length}return t.prototype._generateTupple=function(t){var e=this._tzdbUntils[t];if(e===1/0)return[o.LocalDateTime.MAX,o.LocalDateTime.MAX];var n=o.Instant.ofEpochMilli(e),r=s(this._tzdbOffsets[t]),i=o.ZoneOffset.ofTotalSeconds(-r),f=o.LocalDateTime.ofInstant(n,i),u=Math.min(t+1,this._tzdbOffsets.length-1),a=s(this._tzdbOffsets[u]),l=o.ZoneOffset.ofTotalSeconds(-a),c=o.LocalDateTime.ofInstant(n,l);return r>a?[f,c]:[c,f]},t.prototype._getTupple=function(t){return null==this._ldtUntils[t]&&(this._ldtUntils[t]=this._generateTupple(t)),this._ldtUntils[t]},t.prototype.get=function(t){return this._getTupple(t>>1)[t%2]},t}();function s(t){return(e=60*+t)<0?Math.ceil(e):Math.floor(e);var e}function f(t){throw new Error("not supported: "+t)}},function(t,e,n){"use strict";e.__esModule=!0,e.MomentZoneRulesProvider=void 0;var o=n(0),r=n(3),i=n(2);var s=void 0,f=void 0,u=[],a={},l={};e.MomentZoneRulesProvider=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.getRules=function(t){var e=a[l[t]];if(null==e)throw new o.DateTimeException("Unknown time-zone ID: "+t);return new r.MomentZoneRules(e)},e.getAvailableZoneIds=function(){return u},e.getVersion=function(){return f},e.getTzdbData=function(){return s},e.loadTzdbData=function(t){s=t,f=t.version;var e=t.zones,n=Array.isArray(e),o=0;for(e=n?e:e[Symbol.iterator]();;){var r;if(n){if(o>=e.length)break;r=e[o++]}else{if((o=e.next()).done)break;r=o.value}var c=r,d=(0,i.unpack)(c);u.push(d.name),a[d.name]=d,l[d.name]=d.name}var p=t.links,h=Array.isArray(p),v=0;for(p=h?p:p[Symbol.iterator]();;){var y;if(h){if(v>=p.length)break;y=p[v++]}else{if((v=p.next()).done)break;y=v.value}var _=y.split("|");u.push(_[1]),l[_[1]]=_[0]}},e}(o.ZoneRulesProvider)},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return t.ZoneRulesProvider.getRules=r.MomentZoneRulesProvider.getRules,t.ZoneRulesProvider.getAvailableZoneIds=r.MomentZoneRulesProvider.getAvailableZoneIds,t.ZoneRulesProvider.getTzdbData=r.MomentZoneRulesProvider.getTzdbData,t.ZoneRulesProvider.loadTzdbData=r.MomentZoneRulesProvider.loadTzdbData,(0,s.default)(t.ZoneId),t};var o,r=n(4),i=n(1),s=(o=i)&&o.__esModule?o:{default:o};t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var o,r=n(5),i=(o=r)&&o.__esModule?o:{default:o};e.default=i.default,t.exports=e.default}])}); |
{ | ||
"name": "js-joda-timezone", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "iana tzdb timezone bindings for js-joda", | ||
@@ -44,3 +44,3 @@ "typings": "dist/js-joda-timezone.d.ts", | ||
"peerDependencies": { | ||
"js-joda": "^1.8.0" | ||
"js-joda": "^1.8.2" | ||
}, | ||
@@ -58,5 +58,5 @@ "devDependencies": { | ||
"esdoc-standard-plugin": "^1.0.0", | ||
"eslint": "^4.18.2", | ||
"eslint": "^4.19.1", | ||
"eslint-config-js-joda": "^1.0.0", | ||
"js-joda": "^1.8.0", | ||
"js-joda": "^1.8.2", | ||
"json-loader": "^0.5.7", | ||
@@ -71,3 +71,3 @@ "karma": "^2.0.0", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^2.0.13", | ||
"karma-webpack": "^3.0.0", | ||
"markdown-toc": "^1.2.0", | ||
@@ -80,4 +80,4 @@ "mocha": "^5.0.4", | ||
"uglifyjs-webpack-plugin": "^1.2.4", | ||
"webpack": "^4.1.1", | ||
"webpack-cli": "^2.0.12" | ||
"webpack": "^4.2.0", | ||
"webpack-cli": "^2.0.13" | ||
}, | ||
@@ -84,0 +84,0 @@ "license": "BSD-3-Clause", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
544858
0.01%