🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

js-joda-timezone

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-joda-timezone - npm Package Compare versions

Comparing version

to
2.0.0

Changelog
=========
### 2.0.1 (next)
### 2.0.0
#### public API
(re) introduced new plugin concept
* Hide `use(plug)` concept from public api.
The function for extending js-joda is not exported anymore (the default export of this module is removed).
The code for extending js-joda `use(plug)` is not required anymore, because js-joda-timezone automaticaly extends
js-joda when imported.
#### dependendency updates
### 1.3.1

@@ -5,0 +19,0 @@

@@ -1,2 +0,2 @@

//! @version js-joda-timezone-1.3.1
//! @version js-joda-timezone-2.0.0
//! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors

@@ -460,6 +460,6 @@ //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)

/***/ "./src/js-joda-timezone-empty.js":
/*!***************************************!*\
!*** ./src/js-joda-timezone-empty.js ***!
\***************************************/
/***/ "./src/auto-plug.js":
/*!**************************!*\
!*** ./src/auto-plug.js ***!
\**************************/
/*! no static exports found */

@@ -472,3 +472,6 @@ /***/ (function(module, exports, __webpack_require__) {

exports.__esModule = true;
exports.default = autoPlug;
var _jsJoda = __webpack_require__(/*! js-joda */ "js-joda");
var _plug = __webpack_require__(/*! ./plug */ "./src/plug.js");

@@ -480,11 +483,36 @@

exports.default = _plug2.default; /*
* @copyright (c) 2016-present, Philipp Thürwächter, Pattrick Hüper
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/
/*
* @copyright (c) 2016-present, Philipp Thürwächter, Pattrick Hüper
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/
module.exports = exports['default'];
function autoPlug() {
(0, _jsJoda.use)(_plug2.default);
}
/***/ }),
/***/ "./src/js-joda-timezone-empty.js":
/*!***************************************!*\
!*** ./src/js-joda-timezone-empty.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _autoPlug = __webpack_require__(/*! ./auto-plug */ "./src/auto-plug.js");
var _autoPlug2 = _interopRequireDefault(_autoPlug);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
(0, _autoPlug2.default)(); /*
* @copyright (c) 2016-present, Philipp Thürwächter, Pattrick Hüper
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/
/***/ }),
/***/ "./src/plug.js":

@@ -520,7 +548,2 @@ /*!*********************!*\

module.exports = exports['default']; /*
* @copyright (c) 2016-present, Philipp Thürwächter, Pattrick Hüper
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/
/***/ }),

@@ -560,3 +583,2 @@

}
module.exports = exports["default"];

@@ -563,0 +585,0 @@ /***/ }),

@@ -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)}(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,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},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 function(t){return t<0?Math.ceil(t):Math.floor(t)}(60*+t)}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 b=y.split("|");u.push(b[1]),l[b[1]]=b[0]}},e}(o.ZoneRulesProvider)},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return t.ZoneRulesProvider.getRules=o.MomentZoneRulesProvider.getRules,t.ZoneRulesProvider.getAvailableZoneIds=o.MomentZoneRulesProvider.getAvailableZoneIds,t.ZoneRulesProvider.getTzdbData=o.MomentZoneRulesProvider.getTzdbData,t.ZoneRulesProvider.loadTzdbData=o.MomentZoneRulesProvider.loadTzdbData,(0,r.default)(t.ZoneId),t};var o=n(4),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1));t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var o=function(t){return t&&t.__esModule?t:{default:t}}(n(5));e.default=o.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,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},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=7)}([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}}},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 function(t){return t<0?Math.ceil(t):Math.floor(t)}(60*+t)}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=o.MomentZoneRulesProvider.getRules,t.ZoneRulesProvider.getAvailableZoneIds=o.MomentZoneRulesProvider.getAvailableZoneIds,t.ZoneRulesProvider.getTzdbData=o.MomentZoneRulesProvider.getTzdbData,t.ZoneRulesProvider.loadTzdbData=o.MomentZoneRulesProvider.loadTzdbData,(0,r.default)(t.ZoneId),t};var o=n(4),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1))},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(){(0,o.use)(r.default)};var o=n(0),r=function(t){return t&&t.__esModule?t:{default:t}}(n(5))},function(t,e,n){"use strict";(0,function(t){return t&&t.__esModule?t:{default:t}}(n(6)).default)()}])});

@@ -1,1 +0,1 @@

export default function plug(jsJoda: any):any;
export { };
{
"name": "js-joda-timezone",
"version": "1.3.1",
"version": "2.0.0",
"description": "iana tzdb timezone bindings for js-joda",

@@ -48,10 +48,9 @@ "typings": "dist/js-joda-timezone.d.ts",

"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-istanbul": "^4.1.5",
"babel-plugin-istanbul": "^4.1.6",
"babel-preset-es2015": "^6.24.1",
"chai": "^4.1.2",
"coveralls": "^3.0.0",
"esdoc": "^1.0.4",
"coveralls": "^3.0.1",
"esdoc": "^1.1.0",
"esdoc-standard-plugin": "^1.0.0",

@@ -62,3 +61,3 @@ "eslint": "^4.19.1",

"json-loader": "^0.5.7",
"karma": "^2.0.0",
"karma": "^2.0.2",
"karma-chai-plugins": "^0.9.0",

@@ -73,10 +72,10 @@ "karma-chrome-launcher": "^2.2.0",

"markdown-toc": "^1.2.0",
"mocha": "^5.0.4",
"moment-timezone": "^0.5.14",
"nyc": "^11.6.0",
"mocha": "^5.2.0",
"moment-timezone": "^0.5.17",
"nyc": "^12.0.2",
"phantomjs-prebuilt": "^2.1.16",
"typescript": "^2.7.2",
"uglifyjs-webpack-plugin": "^1.2.4",
"webpack": "^4.2.0",
"webpack-cli": "^2.0.13"
"typescript": "^2.9.2",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^4.12.0",
"webpack-cli": "^3.0.6"
},

@@ -83,0 +82,0 @@ "license": "BSD-3-Clause",

@@ -27,6 +27,6 @@ # js-joda-timezone

const jsJoda = require('js-joda')
.use(require('js-joda-timezone'))
var jsJoda = require('js-joda')
require('js-joda-timezone')
const { LocalDateTime, ZoneId, ZonedDateTime } = jsJoda;
var { LocalDateTime, ZoneId, ZonedDateTime } = jsJoda;

@@ -48,9 +48,7 @@ LocalDateTime

### es6
### es6 / typescript
import { use as jsJodaUse, ZonedDateTime, ZoneId } from 'js-joda'
import jsJodaTimeZone from 'js-joda-timezone'
import { ZonedDateTime, ZoneId } from 'js-joda'
import 'js-joda-timezone'
jsJodaUse(jsJodaTimeZone)
const zdt = ZonedDateTime.now(ZoneId.of('America/New_York'))

@@ -63,5 +61,2 @@

<script>
// use js-joda-timezone
JSJoda.use(JSJodaTimezone)
// copy all js-joda classes to the global scope

@@ -68,0 +63,0 @@ for(let key in JSJoda) { this[key] = JSJoda[key]; }

@@ -6,4 +6,4 @@ /*

import plug from './plug';
import autoPlug from './auto-plug';
export default plug;
autoPlug();

@@ -6,9 +6,9 @@ /*

import latest from '../data/packed/latest';
import latest from './tzdbData';
import plug from './plug';
import { MomentZoneRulesProvider } from './MomentZoneRulesProvider';
import autoPlug from './auto-plug';
MomentZoneRulesProvider.loadTzdbData(latest);
export default plug;
autoPlug();

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