Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnotify/countdown

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnotify/countdown - npm Package Compare versions

Comparing version 5.1.2 to 5.2.0

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

# [5.2.0](https://github.com/sciactive/pnotify/compare/v5.1.2...v5.2.0) (2020-11-06)
### Bug Fixes
* fix an issue with Countdown module not updating bar ([860ef8e](https://github.com/sciactive/pnotify/commit/860ef8ed0d7fbfbc095a27d0d3637ec7455bdda7))
* fix countdown bar appearance in Angeler theme ([ec5d7f1](https://github.com/sciactive/pnotify/commit/ec5d7f13b31f81fda7cea57ef1baa67f7c99f8f2))
## [5.1.2](https://github.com/sciactive/pnotify/compare/v5.1.1...v5.1.2) (2020-04-29)

@@ -8,0 +20,0 @@

2

dist/PNotifyCountdown.js

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).PNotifyCountdown={})}(this,(function(t){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,n){return(i=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?u(t):n}function f(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],r=!0,o=!1,i=void 0;try{for(var c,u=t[Symbol.iterator]();!(r=(c=u.next()).done)&&(e.push(c.value),!n||e.length!==n);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return e}(t,n)||s(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,n){if(t){if("string"==typeof t)return d(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,n):void 0}}function d(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function p(){}function y(t){return t()}function h(){return Object.create(null)}function v(t){t.forEach(y)}function m(t){return"function"==typeof t}function b(t,e){return t!=t?e==e:t!==e||t&&"object"===n(t)||"function"==typeof t}function g(t,n,e){t.insertBefore(n,e||null)}function $(t){t.parentNode.removeChild(t)}function w(t){return document.createElement(t)}function _(){return t="",document.createTextNode(t);var t}function S(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function x(t){return Array.from(t.childNodes)}var O;function j(t){O=t}function A(t){(function(){if(!O)throw new Error("Function called outside component initialization");return O})().$$.on_destroy.push(t)}var E=[],P=[],k=[],I=[],T=Promise.resolve(),C=!1;function R(t){k.push(t)}var N=!1,D=new Set;function M(){if(!N){N=!0;do{for(var t=0;t<E.length;t+=1){var n=E[t];j(n),q(n.$$)}for(E.length=0;P.length;)P.pop()();for(var e=0;e<k.length;e+=1){var r=k[e];D.has(r)||(D.add(r),r())}k.length=0}while(E.length);for(;I.length;)I.pop()();C=!1,N=!1,D.clear()}}function q(t){if(null!==t.fragment){t.update(),v(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(R)}}var z=new Set;function B(t,n){t&&t.i&&(z.delete(t),t.i(n))}function F(t,n,e){var r=t.$$,o=r.fragment,i=r.on_mount,c=r.on_destroy,u=r.after_update;o&&o.m(n,e),R((function(){var n=i.map(y).filter(m);c?c.push.apply(c,l(n)):v(n),t.$$.on_mount=[]})),u.forEach(R)}function U(t,n){-1===t.$$.dirty[0]&&(E.push(t),C||(C=!0,T.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function G(t){var n,e,r,o,i;return{c:function(){n=w("div"),S(e=w("div"),"class",r="pnotify-countdown-bar ".concat(t[0].getStyle("countdown-bar"))),S(e,"style",o="height: ".concat("right"===t[1]||"left"===t[1]?t[3]:"100","%; width: ").concat("top"===t[1]||"bottom"===t[1]?t[3]:"100","%;")),S(n,"class",i="pnotify-countdown pnotify-countdown-".concat(t[1]," ").concat(t[2]?"pnotify-countdown-reverse":""," ").concat(t[0].getStyle("countdown")))},m:function(t,r){g(t,n,r),function(t,n){t.appendChild(n)}(n,e)},p:function(t,c){1&c&&r!==(r="pnotify-countdown-bar ".concat(t[0].getStyle("countdown-bar")))&&S(e,"class",r),10&c&&o!==(o="height: ".concat("right"===t[1]||"left"===t[1]?t[3]:"100","%; width: ").concat("top"===t[1]||"bottom"===t[1]?t[3]:"100","%;"))&&S(e,"style",o),7&c&&i!==(i="pnotify-countdown pnotify-countdown-".concat(t[1]," ").concat(t[2]?"pnotify-countdown-reverse":""," ").concat(t[0].getStyle("countdown")))&&S(n,"class",i)},d:function(t){t&&$(n)}}}function H(t){var n,e=t[4]&&G(t);return{c:function(){e&&e.c(),n=_()},m:function(t,r){e&&e.m(t,r),g(t,n,r)},p:function(t,r){var o=f(r,1)[0];t[4]?e?e.p(t,o):((e=G(t)).c(),e.m(n.parentNode,n)):e&&(e.d(1),e=null)},i:p,o:p,d:function(t){e&&e.d(t),t&&$(n)}}}var J={anchor:"bottom",reverse:!1};function K(t,n,e){var r,o,i=n.self,c=void 0===i?null:i,u=n.anchor,a=void 0===u?J.anchor:u,f=n.reverse,l=void 0===f?J.reverse:f,s=c.getState(),d=c.getTimer(),p=0,y=100,h=setInterval((function(){r&&(o?(p=c.delay-(new Date-o),e(3,y=p/c.delay*100)):e(3,y="closing"===s?0:100))}),100),v=c.on("pnotify:update",(function(){e(5,s=c.getState()),e(6,d=c.getTimer())}));return A((function(){v(),clearInterval(h)})),t.$set=function(t){"self"in t&&e(0,c=t.self),"anchor"in t&&e(1,a=t.anchor),"reverse"in t&&e(2,l=t.reverse)},t.$$.update=function(){33&t.$$.dirty&&e(4,r=-1!==["opening","open","closing"].indexOf(s)&&c.hide&&c.delay!==1/0),80&t.$$.dirty&&(o=r&&d&&"prevented"!==d?new Date:null)},[c,a,l,y,r]}var L=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&i(t,n)}(f,t);var n,r=(n=f,function(){var t,e=o(n);if(c()){var r=o(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return a(this,t)});function f(t){var n;return e(this,f),function(t,n,e,r,o,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],u=O;j(t);var a=n.props||{},f=t.$$={fragment:null,ctx:null,props:i,update:p,not_equal:o,bound:h(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:[]),callbacks:h(),dirty:c},l=!1;if(f.ctx=e?e(t,a,(function(n,e){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:e;return f.ctx&&o(f.ctx[n],f.ctx[n]=r)&&(f.bound[n]&&f.bound[n](r),l&&U(t,n)),e})):[],f.update(),l=!0,v(f.before_update),f.fragment=!!r&&r(f.ctx),n.target){if(n.hydrate){var s=x(n.target);f.fragment&&f.fragment.l(s),s.forEach($)}else f.fragment&&f.fragment.c();n.intro&&B(t.$$.fragment),F(t,n.target,n.anchor),M()}j(u)}(u(n=r.call(this)),t,K,H,b,{self:0,anchor:1,reverse:2}),n}return f}(function(){function t(){e(this,t)}var n,o,i;return n=t,(o=[{key:"$destroy",value:function(){var t,n;t=1,null!==(n=this.$$).fragment&&(v(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]),this.$destroy=p}},{key:"$on",value:function(t,n){var e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),function(){var t=e.indexOf(n);-1!==t&&e.splice(t,1)}}},{key:"$set",value:function(){}}])&&r(n.prototype,o),i&&r(n,i),t}());t.default=L,t.defaults=J,t.position="AppendContainer",Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).PNotifyCountdown={})}(this,(function(t){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,n){return(i=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?u(t):n}function f(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,o=r(t);if(n){var i=r(this).constructor;e=Reflect.construct(o,arguments,i)}else e=o.apply(this,arguments);return c(this,e)}}function a(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],o=!0,r=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(o=(u=c.next()).done)&&(e.push(u.value),!n||e.length!==n);o=!0);}catch(t){r=!0,i=t}finally{try{o||null==c.return||c.return()}finally{if(r)throw i}}return e}(t,n)||s(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,n){if(t){if("string"==typeof t)return d(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,n):void 0}}function d(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function p(){}function y(t){return t()}function h(){return Object.create(null)}function v(t){t.forEach(y)}function b(t){return"function"==typeof t}function m(t,e){return t!=t?e==e:t!==e||t&&"object"===n(t)||"function"==typeof t}function g(t,n,e){t.insertBefore(n,e||null)}function w(t){t.parentNode.removeChild(t)}function $(t){return document.createElement(t)}function _(){return t="",document.createTextNode(t);var t}function S(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function O(t){return Array.from(t.childNodes)}var x;function j(t){x=t}function A(){if(!x)throw new Error("Function called outside component initialization");return x}var k=[],E=[],P=[],T=[],C=Promise.resolve(),I=!1;function R(t){P.push(t)}var M=!1,N=new Set;function D(){if(!M){M=!0;do{for(var t=0;t<k.length;t+=1){var n=k[t];j(n),q(n.$$)}for(j(null),k.length=0;E.length;)E.pop()();for(var e=0;e<P.length;e+=1){var o=P[e];N.has(o)||(N.add(o),o())}P.length=0}while(k.length);for(;T.length;)T.pop()();I=!1,M=!1,N.clear()}}function q(t){if(null!==t.fragment){t.update(),v(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(R)}}var z=new Set;function B(t,n){t&&t.i&&(z.delete(t),t.i(n))}function F(t,n,e){var o=t.$$,r=o.fragment,i=o.on_mount,u=o.on_destroy,c=o.after_update;r&&r.m(n,e),R((function(){var n=i.map(y).filter(b);u?u.push.apply(u,l(n)):v(n),t.$$.on_mount=[]})),c.forEach(R)}function U(t,n){-1===t.$$.dirty[0]&&(k.push(t),I||(I=!0,C.then(D)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function G(t){var n,e,o,r,i;return{c:function(){n=$("div"),S(e=$("div"),"class",o="pnotify-countdown-bar ".concat(t[0].getStyle("countdown-bar"))),S(e,"style",r="height: ".concat("right"===t[1]||"left"===t[1]?t[3]:"100","%; width: ").concat("top"===t[1]||"bottom"===t[1]?t[3]:"100","%;")),S(n,"class",i="pnotify-countdown pnotify-countdown-".concat(t[1]," ").concat(t[2]?"pnotify-countdown-reverse":""," ").concat(t[0].getStyle("countdown")))},m:function(t,o){g(t,n,o),function(t,n){t.appendChild(n)}(n,e)},p:function(t,u){1&u&&o!==(o="pnotify-countdown-bar ".concat(t[0].getStyle("countdown-bar")))&&S(e,"class",o),10&u&&r!==(r="height: ".concat("right"===t[1]||"left"===t[1]?t[3]:"100","%; width: ").concat("top"===t[1]||"bottom"===t[1]?t[3]:"100","%;"))&&S(e,"style",r),7&u&&i!==(i="pnotify-countdown pnotify-countdown-".concat(t[1]," ").concat(t[2]?"pnotify-countdown-reverse":""," ").concat(t[0].getStyle("countdown")))&&S(n,"class",i)},d:function(t){t&&w(n)}}}function H(t){var n,e=t[4]&&G(t);return{c:function(){e&&e.c(),n=_()},m:function(t,o){e&&e.m(t,o),g(t,n,o)},p:function(t,o){var r=a(o,1)[0];t[4]?e?e.p(t,r):((e=G(t)).c(),e.m(n.parentNode,n)):e&&(e.d(1),e=null)},i:p,o:p,d:function(t){e&&e.d(t),t&&w(n)}}}var J={anchor:"bottom",reverse:!1};function K(t,n,e){var o,r,i,u,c,f,a=n.self,l=void 0===a?null:a,s=n.anchor,d=void 0===s?J.anchor:s,p=n.reverse,y=void 0===p?J.reverse:p,h=l.getState(),v=l.getTimer(),b=0,m=100,g=function(){e(5,h=l.getState()),e(6,v=l.getTimer())};return u=function(){r=l.on("pnotify:update",g),i=l.on("pnotify:afterOpen",g),o=setInterval((function(){c&&(f?(b=l.delay-(new Date-f),e(3,m=b/l.delay*100)):e(3,m="closing"===h?0:100))}),100)},A().$$.on_mount.push(u),function(t){A().$$.on_destroy.push(t)}((function(){r&&r(),i&&i(),clearInterval(o)})),t.$$set=function(t){"self"in t&&e(0,l=t.self),"anchor"in t&&e(1,d=t.anchor),"reverse"in t&&e(2,y=t.reverse)},t.$$.update=function(){33&t.$$.dirty&&e(4,c=-1!==["opening","open","closing"].indexOf(h)&&l.hide&&l.delay!==1/0),80&t.$$.dirty&&(f=c&&v&&"prevented"!==v?new Date:null),19&t.$$.dirty&&(l.removeModuleClass("elem","pnotify-with-countdown","pnotify-with-countdown-bottom","pnotify-with-countdown-top","pnotify-with-countdown-left","pnotify-with-countdown-right"),c&&l.addModuleClass("elem","pnotify-with-countdown","pnotify-with-countdown-".concat(d)))},[l,d,y,m,c]}var L=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&i(t,n)}(o,t);var n=f(o);function o(t){var r;return e(this,o),function(t,n,e,o,r,i){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],c=x;j(t);var f=n.props||{},a=t.$$={fragment:null,ctx:null,props:i,update:p,not_equal:r,bound:h(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:h(),dirty:u,skip_bound:!1},l=!1;if(a.ctx=e?e(t,f,(function(n,e){var o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:e;return a.ctx&&r(a.ctx[n],a.ctx[n]=o)&&(!a.skip_bound&&a.bound[n]&&a.bound[n](o),l&&U(t,n)),e})):[],a.update(),l=!0,v(a.before_update),a.fragment=!!o&&o(a.ctx),n.target){if(n.hydrate){var s=O(n.target);a.fragment&&a.fragment.l(s),s.forEach(w)}else a.fragment&&a.fragment.c();n.intro&&B(t.$$.fragment),F(t,n.target,n.anchor),D()}j(c)}(u(r=n.call(this)),t,K,H,m,{self:0,anchor:1,reverse:2}),r}return o}(function(){function t(){e(this,t)}var n,r,i;return n=t,(r=[{key:"$destroy",value:function(){var t,n;t=1,null!==(n=this.$$).fragment&&(v(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]),this.$destroy=p}},{key:"$on",value:function(t,n){var e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),function(){var t=e.indexOf(n);-1!==t&&e.splice(t,1)}}},{key:"$set",value:function(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}])&&o(n.prototype,r),i&&o(n,i),t}());t.default=L,t.defaults=J,t.position="AppendContainer",Object.defineProperty(t,"__esModule",{value:!0})}));
{
"name": "@pnotify/countdown",
"version": "5.1.2",
"version": "5.2.0",
"description": "PNotify - Countdown Module",

@@ -43,17 +43,17 @@ "keywords": [

"dependencies": {
"@pnotify/core": "^5.1.2"
"@pnotify/core": "^5.2.0"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"core-js": "^3.6.5",
"rollup": "^2.7.3",
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"core-js": "^3.7.0",
"rollup": "^2.33.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^3.1.1",
"rollup-plugin-svelte": "^5.2.1",
"rollup-plugin-terser": "^5.3.0",
"svelte": "^3.20.1"
"rollup-plugin-postcss": "^3.1.8",
"rollup-plugin-svelte": "^5.2.3",
"rollup-plugin-terser": "^5.3.1",
"svelte": "^3.29.4"
},
"gitHead": "9981e5abf26f283912e5b6a5f7cbe2cef85cacc5"
"gitHead": "25725de6ec35debe1724d1e23ce236727e9e211a"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc