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

timer-ng7

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timer-ng7 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

1

bundles/timer-ng7.umd.js

@@ -62,2 +62,3 @@ (function (global, factory) {

this.hour = 0;
this.stopTimer();
};

@@ -64,0 +65,0 @@ /**

2

bundles/timer-ng7.umd.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("timer-ng7",["exports","@angular/core","@angular/platform-browser"],e):e(t["timer-ng7"]={},t.ng.core,t.ng.platformBrowser)}(this,function(t,e,n){"use strict";var r=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"tmr-timer-lib",template:"\n <p>\n timer-lib works!\n </p>\n "}]}],t.ctorParameters=function(){return[]},t}(),o=function(){function t(){this.sec=0,this.min=0,this.hour=0,this.toggleSwitch=!0}return t.prototype.ngOnInit=function(){},t.prototype.resetTimer=function(){this.sec=0,this.min=0,this.hour=0},t.prototype.startTimer=function(){var t=this;this.interval=setInterval(function(){t.toggleSwitch=!t.toggleSwitch,59===t.sec&&59===t.min?(t.sec=0,t.min=0,t.hour++):59===t.sec?(t.sec=0,t.min++):t.sec++},1e3)},t.prototype.stopTimer=function(){this.toggleSwitch=!0,clearInterval(this.interval)},t.decorators=[{type:e.Component,args:[{selector:"tmr-timer",template:'<strong *ngIf="toggleSwitch">{{("0" + hour).slice(-2)}}h <span>:</span> {{("0" + min).slice(-2)}}m <span>:</span>\n {{("0" + sec).slice(-2)}}s</strong>\n<strong *ngIf="!toggleSwitch">{{("0" + hour).slice(-2)}}h <span class="dot">:</span> {{("0" + min).slice(-2)}}m <span class="dot">:</span>\n {{("0" + sec).slice(-2)}}s</strong>\n',styles:["strong{color:#4618c5}.dot{color:#fff}"]}]}],t.ctorParameters=function(){return[]},t}(),s=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[r,o],imports:[n.BrowserModule],exports:[r,o]}]}],t}();t.TimerLibModule=s,t.TimerComponent=o,t.ɵa=r,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("timer-ng7",["exports","@angular/core","@angular/platform-browser"],e):e(t["timer-ng7"]={},t.ng.core,t.ng.platformBrowser)}(this,function(t,e,n){"use strict";var r=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"tmr-timer-lib",template:"\n <p>\n timer-lib works!\n </p>\n "}]}],t.ctorParameters=function(){return[]},t}(),o=function(){function t(){this.sec=0,this.min=0,this.hour=0,this.toggleSwitch=!0}return t.prototype.ngOnInit=function(){},t.prototype.resetTimer=function(){this.sec=0,this.min=0,this.hour=0,this.stopTimer()},t.prototype.startTimer=function(){var t=this;this.interval=setInterval(function(){t.toggleSwitch=!t.toggleSwitch,59===t.sec&&59===t.min?(t.sec=0,t.min=0,t.hour++):59===t.sec?(t.sec=0,t.min++):t.sec++},1e3)},t.prototype.stopTimer=function(){this.toggleSwitch=!0,clearInterval(this.interval)},t.decorators=[{type:e.Component,args:[{selector:"tmr-timer",template:'<strong *ngIf="toggleSwitch">{{("0" + hour).slice(-2)}}h <span>:</span> {{("0" + min).slice(-2)}}m <span>:</span>\n {{("0" + sec).slice(-2)}}s</strong>\n<strong *ngIf="!toggleSwitch">{{("0" + hour).slice(-2)}}h <span class="dot">:</span> {{("0" + min).slice(-2)}}m <span class="dot">:</span>\n {{("0" + sec).slice(-2)}}s</strong>\n',styles:["strong{color:#4618c5}.dot{color:#fff}"]}]}],t.ctorParameters=function(){return[]},t}(),s=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[r,o],imports:[n.BrowserModule],exports:[r,o]}]}],t}();t.TimerLibModule=s,t.TimerComponent=o,t.ɵa=r,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=timer-ng7.umd.min.js.map

@@ -25,2 +25,3 @@ /**

this.hour = 0;
this.stopTimer();
}

@@ -76,2 +77,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGltZXItbmc3LyIsInNvdXJjZXMiOlsibGliL3RpbWVyL3RpbWVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQU9sRCxNQUFNLE9BQU8sY0FBYztJQVF6QjtRQVBBLFFBQUcsR0FBRyxDQUFDLENBQUM7UUFDUixRQUFHLEdBQUcsQ0FBQyxDQUFDO1FBQ1IsU0FBSSxHQUFHLENBQUMsQ0FBQztRQUdULGlCQUFZLEdBQUcsSUFBSSxDQUFDO0lBRUosQ0FBQzs7OztJQUVqQixRQUFRO0lBQ1IsQ0FBQzs7OztJQUVELFVBQVU7UUFDUixJQUFJLENBQUMsR0FBRyxHQUFHLENBQUMsQ0FBQztRQUNiLElBQUksQ0FBQyxHQUFHLEdBQUcsQ0FBQyxDQUFDO1FBQ2IsSUFBSSxDQUFDLElBQUksR0FBRyxDQUFDLENBQUM7SUFDaEIsQ0FBQzs7OztJQUVELFVBQVU7UUFDUixJQUFJLENBQUMsUUFBUSxHQUFHLFdBQVcsQ0FBQyxHQUFHLEVBQUU7WUFDL0IsSUFBSSxDQUFDLFlBQVksR0FBRyxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUM7WUFDdkMsSUFBSSxJQUFJLENBQUMsR0FBRyxLQUFLLEVBQUUsSUFBSSxJQUFJLENBQUMsR0FBRyx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iAgICB0aGlzLnNlYyA9IDA7XG4gICAgdGhpcy5taW4gPSAwO1xuICAgIHRoaXMuaG91ciA9IDA7XG4gICAgdGhpcy5zdG9wVGltZXIoKTtcbiAgfVxuXG4gIHN0YXJ0VGltZXIoKSB7XG4gICAgdGhpcy5pbnRlcnZhbCA9IHNldEludGVydmFsKCgpID0+IHtcbiAgICAgIHRoaXMudG9nZ2xlU3dpdGNoID0gIXRoaXMudG9nZ2xlU3dpdGNoO1xuICAgICAgaWYgKHRoaXMuc2VjID09PSA1OSAmJiB0aGlzLm1pbiA9PT0gNTkpIHtcbiAgICAgICAgdGhpcy5zZWMgPSAwO1xuICAgICAgICB0aGlzLm1pbiA9IDA7XG4gICAgICAgIHRoaXMuaG91cisrO1xuICAgICAgfSBlbHNlIGlmICh0aGlzLnNlYyA9PT0gNTkpIHtcbiAgICAgICAgdGhpcy5zZWMgPSAwO1xuICAgICAgICB0aGlzLm1pbisrO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhpcy5zZWMrKztcbiAgICAgIH1cbiAgICB9LCAxMDAwKTtcbiAgfVxuXG4gIHN0b3BUaW1lcigpIHtcbiAgICB0aGlzLnRvZ2dsZVN3aXRjaCA9IHRydWU7XG4gICAgY2xlYXJJbnRlcnZhbCh0aGlzLmludGVydmFsKTtcbiAgfVxufVxuXG4iXX0=

@@ -31,2 +31,3 @@ /**

this.hour = 0;
this.stopTimer();
};

@@ -91,2 +92,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGltZXItbmc3LyIsInNvdXJjZXMiOlsibGliL3RpbWVyL3RpbWVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUVsRDtJQWFFO1FBUEEsU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XG4gICAgICAgIHRoaXMubWluID0gMDtcbiAgICAgICAgdGhpcy5ob3VyKys7XG4gICAgICB9IGVsc2UgaWYgKHRoaXMuc2VjID09PSA1OSkge1xuICAgICAgICB0aGlzLnNlYyA9IDA7XG4gICAgICAgIHRoaXMubWluKys7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLnNlYysrO1xuICAgICAgfVxuICAgIH0sIDEwMDApO1xuICB9XG5cbiAgc3RvcFRpbWVyKCkge1xuICAgIHRoaXMudG9nZ2xlU3dpdGNoID0gdHJ1ZTtcbiAgICBjbGVhckludGVydmFsKHRoaXMuaW50ZXJ2YWwpO1xuICB9XG59XG5cbiJdfQ==

@@ -52,2 +52,3 @@ import { Component, NgModule } from '@angular/core';

this.hour = 0;
this.stopTimer();
}

@@ -54,0 +55,0 @@ /**

@@ -59,2 +59,3 @@ import { Component, NgModule } from '@angular/core';

this.hour = 0;
this.stopTimer();
};

@@ -61,0 +62,0 @@ /**

@@ -6,5 +6,7 @@ {

"keywords": [
"timer"
"timer",
"angular timer",
"angular 7 timer"
],
"version": "1.0.2",
"version": "1.0.3",
"peerDependencies": {

@@ -11,0 +13,0 @@ "@angular/common": "^7.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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