New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ctrl/ngx-github-buttons

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ctrl/ngx-github-buttons - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

2

bundles/ctrl-ngx-github-buttons.umd.js

@@ -74,3 +74,3 @@ (function (global, factory) {

};
ButtonService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ButtonService_Factory() { return new ButtonService(core.ɵɵinject(http.HttpClient)); }, token: ButtonService, providedIn: "root" });
ButtonService.ngInjectableDef = core.defineInjectable({ factory: function ButtonService_Factory() { return new ButtonService(core.inject(http.HttpClient)); }, token: ButtonService, providedIn: "root" });
ButtonService = __decorate([

@@ -77,0 +77,0 @@ core.Injectable({ providedIn: 'root' }),

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/common"),require("@angular/common/http"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ctrl/ngx-github-buttons",["exports","@angular/common","@angular/common/http","@angular/core"],n):n(((t=t||self).ctrl=t.ctrl||{},t.ctrl["ngx-github-buttons"]={}),t.ng.common,t.ng.common.http,t.ng.core)}(this,function(t,n,e,o){"use strict";function i(t,n,e,o){var i,r=arguments.length,s=r<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,e,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(n,e,s):i(n,e))||s);return r>3&&s&&Object.defineProperty(n,e,s),s}function r(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}var s=function(){function t(){this.large=!1}return i([o.Input(),r("design:type",Object)],t.prototype,"large",void 0),i([o.Input(),r("design:type",Number)],t.prototype,"count",void 0),i([o.Input(),r("design:type",String)],t.prototype,"counterLabel",void 0),i([o.Input(),r("design:type",String)],t.prototype,"counterHref",void 0),t=i([o.Component({selector:"ntkme-counter",template:'\n <a class="social-count" [class.gh-large]="large" [href]="counterHref"\n [attr.aria-label]="(count | number) + counterLabel + \' on GitHub\'">\n <b></b>\n <i></i>\n <span>{{ count | number }}</span>\n </a>\n ',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:["\n a {\n color: #24292e;\n text-decoration: none;\n outline: 0;\n }\n .social-count {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;\n user-select: none;\n display: inline-block;\n font-weight: 600;\n vertical-align: middle;\n cursor: pointer;\n border: 1px solid #d1d2d3;\n border-radius: 0.25em;\n position: relative;\n background-color: #fff;\n margin-left: 5px;\n font-size: 10px;\n height: 20px;\n padding: 0 5px;\n line-height: 18px;\n }\n .social-count:hover {\n color: #0366d6;\n }\n .social-count:focus {\n border-color: #c8e1ff;\n }\n .social-count b,\n .social-count i {\n position: absolute;\n top: 50%;\n right: 100%;\n display: block;\n width: 0;\n height: 0;\n margin-top: -4px;\n border: 4px solid transparent;\n }\n .gh-large.social-count b,\n .gh-large.social-count i {\n margin-top: -6px;\n border-width: 6px;\n }\n .social-count b {\n margin-right: 0;\n border-right-color: #d1d2d3;\n }\n .social-count:focus b {\n border-right-color: #c8e1ff;\n }\n .social-count i {\n margin-right: -1px;\n border-right-color: #fff;\n }\n .gh-large.social-count {\n padding: 0 7px;\n margin-left: 7px;\n font-size: 11px;\n height: 28px;\n line-height: 26px;\n }\n .gh-large.social-count span {\n vertical-align: 0;\n }\n "]})],t)}(),a=function(){function t(t){this.httpClient=t}return t.prototype.user=function(t){return this.httpClient.get("https://api.github.com/users/"+t)},t.prototype.repo=function(t,n){return this.httpClient.get("https://api.github.com/repos/"+t+"/"+n)},t.ngInjectableDef=o.ɵɵdefineInjectable({factory:function(){return new t(o.ɵɵinject(e.HttpClient))},token:t,providedIn:"root"}),t=i([o.Injectable({providedIn:"root"}),r("design:paramtypes",[e.HttpClient])],t)}(),c={follow:{path:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z",height:"16",width:"16"},watch:{path:"M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z",height:"16",width:"16"},star:{path:"M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74z",height:"16",width:"14"},fork:{path:"M8 1a1.993 1.993 0 0 0-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 0 0 2 1a1.993 1.993 0 0 0-1 3.72V6.5l3 3v1.78A1.993 1.993 0 0 0 5 15a1.993 1.993 0 0 0 1-3.72V9.5l3-3V4.72A1.993 1.993 0 0 0 8 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z",height:"16",width:"10"},issue:{path:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z",height:"16",width:"14"},download:{path:"M9 12h2l-3 3-3-3h2V7h2v5zm3-8c0-.44-.91-3-4.5-3C5.08 1 3 2.92 3 5 1.02 5 0 6.52 0 8c0 1.53 1 3 3 3h3V9.7H3C1.38 9.7 1.3 8.28 1.3 8c0-.17.05-1.7 1.7-1.7h1.3V5c0-1.39 1.56-2.7 3.2-2.7 2.55 0 3.13 1.55 3.2 1.8v1.2H12c.81 0 2.7.22 2.7 2.2 0 2.09-2.25 2.2-2.7 2.2h-2V11h2c2.08 0 4-1.16 4-3.5C16 5.06 14.08 4 12 4z",height:"16",width:"16"}},u=function(){function t(t){this.buttonService=t,this.type="star",this.count=!1,this.size="none",this.standardIcon=!1,this.text="",this.svg={},this.loaded=!1}return t.prototype.ngOnChanges=function(){var t=this.standardIcon?"follow":this.type;switch(this.svg=c[t],this.type){case"watch":this.text="Watch",this.countAttr="subscribers_count",this.counterLabel=" watchers",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/subscription",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/watchers";break;case"star":this.text="Star",this.countAttr="stargazers_count",this.counterLabel=" stargazers",this.buttonHref="https://github.com/"+this.user+"/"+this.repo,this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/stargazers";break;case"fork":this.text="Fork",this.countAttr="network_count",this.counterLabel=" forks",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/fork",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/network";break;case"follow":this.text="Follow @"+this.user,this.countAttr="followers",this.counterLabel=" followers",this.buttonHref="https://github.com/"+this.user,this.counterHref="https://github.com/"+this.user+"/followers";break;case"issue":this.text="Issue",this.countAttr="open_issues",this.counterLabel=" followers",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/issues",this.counterHref=this.buttonHref;break;case"download":this.text="Download",this.counterLabel=" followers",this.countAttr="subscribers_count",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/archive/master.zip"}this.count&&this.user&&"download"!==this.type&&this.fetch()},t.prototype.fetch=function(){var t,n=this;if(this.loaded=!1,"follow"===this.type)t=this.buttonService.user(this.user);else{if(!this.repo)return;t=this.buttonService.repo(this.user,this.repo)}t.subscribe(function(t){return n.callback(t)})},t.prototype.callback=function(t){this.counter=t[this.countAttr],this.loaded=!0},i([o.Input(),r("design:type",String)],t.prototype,"user",void 0),i([o.Input(),r("design:type",String)],t.prototype,"repo",void 0),i([o.Input(),r("design:type",String)],t.prototype,"type",void 0),i([o.Input(),r("design:type",Object)],t.prototype,"count",void 0),i([o.Input(),r("design:type",String)],t.prototype,"size",void 0),i([o.Input(),r("design:type",Object)],t.prototype,"standardIcon",void 0),t=i([o.Component({selector:"ntkme-github-button",template:'\n <div [class.gh-large]="this.size === \'large\'">\n <a [href]="buttonHref" class="gh-btn"\n [attr.aria-label]="text + \' on GitHub\'">\n <svg version="1.1"\n [attr.width]="svg.width" [attr.height]="svg.height"\n [attr.viewBox]="\'0 0 \' + svg.width + \' \' + svg.height"\n class="gh-octicon" aria-hidden="true">\n <path fill-rule="evenodd" [attr.d]="svg.path"></path>\n </svg>\n <span> {{ text }}</span>\n </a>\n <ntkme-counter *ngIf="count && loaded"\n [count]="counter"\n [large]="this.size === \'large\'"\n [counterLabel]="counterLabel"\n [counterHref]="counterHref"\n ></ntkme-counter>\n </div>\n ',styles:["\n a {\n color: #24292e;\n text-decoration: none;\n outline: 0;\n }\n .gh-btn {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,\n Arial, sans-serif;\n user-select: none;\n display: inline-block;\n font-weight: 600;\n vertical-align: middle;\n cursor: pointer;\n border: 1px solid #d1d2d3;\n border-radius: 0.25em;\n background-color: #eff3f6;\n background-image: linear-gradient(to bottom, #fafbfc, #e4ebf0);\n background-repeat: repeat-x;\n background-size: 110% 110%;\n height: 20px;\n padding: 0 5px;\n line-height: 18px;\n font-size: 11px;\n white-space: nowrap;\n }\n .gh-btn:focus {\n border-color: #c8e1ff;\n }\n .gh-btn:active {\n background-color: #e9ecef;\n background-image: none;\n border-color: #afb1b2;\n box-shadow: inset 0 0.15em 0.3em rgba(27, 31, 35, 0.15);\n }\n .gh-btn:hover {\n background-color: #e6ebf1;\n background-image: linear-gradient(to bottom, #f0f3f6, #dce3ec);\n border-color: #afb1b2;\n }\n .gh-octicon {\n position: relative;\n display: inline-block;\n fill: currentColor;\n height: 14px;\n top: 2px;\n vertical-align: initial;\n }\n .gh-btn span {\n vertical-align: 1px;\n }\n .gh-large .gh-btn {\n height: 28px;\n line-height: 26px;\n padding: 0 10px;\n font-size: 12px;\n }\n .gh-large .gh-btn span {\n vertical-align: 0;\n }\n .gh-large .gh-octicon {\n height: 16px;\n top: 4px;\n }\n "]}),r("design:paramtypes",[a])],t)}(),h=function(){function t(){}return t=i([o.NgModule({imports:[n.CommonModule,e.HttpClientModule],exports:[u],declarations:[u,s]})],t)}(),p=function(){function t(){this.large=!1}return i([o.Input(),r("design:type",Object)],t.prototype,"large",void 0),i([o.Input(),r("design:type",Number)],t.prototype,"count",void 0),i([o.Input(),r("design:type",String)],t.prototype,"counterLabel",void 0),i([o.Input(),r("design:type",String)],t.prototype,"counterHref",void 0),t=i([o.Component({selector:"mdo-counter",template:'\n <a class="gh-count" [class.github-btn-large]="large"\n [href]="counterHref" target="_blank"\n [attr.aria-label]="(count | number) + counterLabel + \' on GitHub\'"\n >\n {{ count | number }}\n </a>\n ',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:["\n .gh-count {\n padding: 2px 5px 2px 4px;\n color: #333;\n text-decoration: none;\n white-space: nowrap;\n cursor: pointer;\n border-radius: 3px;\n display: inline-block;\n }\n .gh-count {\n position: relative;\n margin-left: 4px;\n background-color: #fafafa;\n border: 1px solid #d4d4d4;\n }\n .gh-count:hover,\n .gh-count:focus {\n color: #4183C4;\n }\n .gh-count:before,\n .gh-count:after {\n content: '';\n position: absolute;\n display: inline-block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n .gh-count:before {\n top: 50%;\n left: -3px;\n margin-top: -4px;\n border-width: 4px 4px 4px 0;\n border-right-color: #fafafa;\n }\n .gh-count:after {\n top: 50%;\n left: -4px;\n z-index: -1;\n margin-top: -5px;\n border-width: 5px 5px 5px 0;\n border-right-color: #d4d4d4;\n }\n .github-btn-large.gh-count {\n padding: 4px 8px 4px 8px;\n font-size: 16px;\n line-height: 22px;\n border-radius: 4px;\n margin-left: 6px;\n }\n .github-btn-large.gh-count:before {\n left: -5px;\n margin-top: -6px;\n border-width: 6px 6px 6px 0;\n }\n .github-btn-large.gh-count:after {\n left: -6px;\n margin-top: -7px;\n border-width: 7px 7px 7px 0;\n }\n "]})],t)}(),g=function(){function t(t){this.buttonService=t,this.type="star",this.count=!1,this.size="none",this.text="",this.mainButton={"github-btn":!0},this.loaded=!1}return t.prototype.ngOnChanges=function(){switch(this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/",this.mainButton["github-btn-large"]="large"===this.size,this.type){case"watch":this.mainButton["github-watchers"]=!0,this.text="Watch",this.countAttr="subscribers_count",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/watchers";break;case"star":this.mainButton["github-stargazers"]=!0,this.text="Star",this.counterLabel=" stargazers",this.countAttr="stargazers_count",this.counterLabel=" watchers",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/stargazers";break;case"fork":this.mainButton["github-forks"]=!0,this.text="Fork",this.counterLabel=" forks",this.countAttr="network_count",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/fork",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/network";break;case"follow":this.mainButton["github-me"]=!0,this.text="Follow @"+this.user,this.counterLabel=" followers",this.countAttr="followers",this.buttonHref="https://github.com/"+this.user,this.counterHref="https://github.com/"+this.user+"/followers"}this.count&&this.user&&this.fetch()},t.prototype.fetch=function(){var t,n=this;if(this.loaded=!1,"follow"===this.type)t=this.buttonService.user(this.user);else{if(!this.repo)return;t=this.buttonService.repo(this.user,this.repo)}t.subscribe(function(t){return n.callback(t)})},t.prototype.callback=function(t){this.counter=t[this.countAttr],this.loaded=!0},i([o.Input(),r("design:type",String)],t.prototype,"user",void 0),i([o.Input(),r("design:type",String)],t.prototype,"repo",void 0),i([o.Input(),r("design:type",String)],t.prototype,"type",void 0),i([o.Input(),r("design:type",Object)],t.prototype,"count",void 0),i([o.Input(),r("design:type",String)],t.prototype,"size",void 0),t=i([o.Component({selector:"mdo-github-button",template:'\n <div [ngClass]="mainButton">\n <a class="gh-btn" [href]="buttonHref" target="_blank"\n [attr.aria-label]="text + \' on GitHub\'">\n <span class="gh-ico" aria-hidden="true"></span>\n <span class="gh-text">{{ text }}</span>\n </a>\n <mdo-counter *ngIf="count && loaded"\n [count]="counter"\n [large]="this.size === \'large\'"\n [counterLabel]="counterLabel"\n [counterHref]="counterHref"\n ></mdo-counter>\n </div>\n ',styles:["\n .github-btn {\n display: inline-block;\n font: bold 11px/14px 'Helvetica Neue', Helvetica, Arial, sans-serif;\n height: 20px;\n }\n .gh-btn {\n padding: 2px 5px 2px 4px;\n color: #333;\n text-decoration: none;\n white-space: nowrap;\n cursor: pointer;\n border-radius: 3px;\n background-color: #eee;\n background-image: linear-gradient(to bottom, #fcfcfc 0, #eee 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcfcfc', endColorstr='#eeeeee', GradientType=0);\n background-repeat: no-repeat;\n border: 1px solid #d5d5d5;\n display: inline-block;\n }\n .gh-btn:hover,\n .gh-btn:focus {\n text-decoration: none;\n background-color: #ddd;\n background-image: linear-gradient(to bottom, #eee 0, #ddd 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#dddddd', GradientType=0);\n border-color: #ccc;\n }\n .gh-btn:active {\n background-image: none;\n background-color: #dcdcdc;\n border-color: #b5b5b5;\n box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);\n }\n .gh-ico {\n display: inline-block;\n width: 14px;\n height: 14px;\n margin-right: 4px;\n margin-bottom: -3px;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjQwcHgiIGhlaWdodD0iNDBweCIgdmlld0JveD0iMTIgMTIgNDAgNDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMTIgMTIgNDAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiMzMzMzMzMiIGQ9Ik0zMiAxMy40Yy0xMC41IDAtMTkgOC41LTE5IDE5YzAgOC40IDUuNSAxNS41IDEzIDE4YzEgMC4yIDEuMy0wLjQgMS4zLTAuOWMwLTAuNSAwLTEuNyAwLTMuMiBjLTUuMyAxLjEtNi40LTIuNi02LjQtMi42QzIwIDQxLjYgMTguOCA0MSAxOC44IDQxYy0xLjctMS4yIDAuMS0xLjEgMC4xLTEuMWMxLjkgMC4xIDIuOSAyIDIuOSAyYzEuNyAyLjkgNC41IDIuMSA1LjUgMS42IGMwLjItMS4yIDAuNy0yLjEgMS4yLTIuNmMtNC4yLTAuNS04LjctMi4xLTguNy05LjRjMC0yLjEgMC43LTMuNyAyLTUuMWMtMC4yLTAuNS0wLjgtMi40IDAuMi01YzAgMCAxLjYtMC41IDUuMiAyIGMxLjUtMC40IDMuMS0wLjcgNC44LTAuN2MxLjYgMCAzLjMgMC4yIDQuNyAwLjdjMy42LTIuNCA1LjItMiA1LjItMmMxIDIuNiAwLjQgNC42IDAuMiA1YzEuMiAxLjMgMiAzIDIgNS4xYzAgNy4zLTQuNSA4LjktOC43IDkuNCBjMC43IDAuNiAxLjMgMS43IDEuMyAzLjVjMCAyLjYgMCA0LjYgMCA1LjJjMCAwLjUgMC40IDEuMSAxLjMgMC45YzcuNS0yLjYgMTMtOS43IDEzLTE4LjFDNTEgMjEuOSA0Mi41IDEzLjQgMzIgMTMuNHoiLz48L3N2Zz4=');\n background-size: 100% 100%;\n background-repeat: no-repeat;\n }\n .github-btn-large {\n height: 32px;\n }\n .github-btn-large .gh-btn {\n padding: 4px 10px 4px 8px;\n font-size: 16px;\n line-height: 22px;\n border-radius: 4px;\n }\n .github-btn-large .gh-ico {\n width: 20px;\n height: 20px;\n }\n "]}),r("design:paramtypes",[a])],t)}(),l=function(){function t(){}return t=i([o.NgModule({imports:[n.CommonModule,e.HttpClientModule],exports:[g],declarations:[g,p]})],t)}();t.ButtonService=a,t.MdoButtonModule=l,t.MdoCounterComponent=p,t.MdoGithubButtonComponent=g,t.NtkmeButtonComponent=u,t.NtkmeButtonModule=h,t.NtkmeCounterComponent=s,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/common"),require("@angular/common/http"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ctrl/ngx-github-buttons",["exports","@angular/common","@angular/common/http","@angular/core"],n):n(((t=t||self).ctrl=t.ctrl||{},t.ctrl["ngx-github-buttons"]={}),t.ng.common,t.ng.common.http,t.ng.core)}(this,function(t,n,e,o){"use strict";function i(t,n,e,o){var i,r=arguments.length,s=r<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,e,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(n,e,s):i(n,e))||s);return r>3&&s&&Object.defineProperty(n,e,s),s}function r(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}var s=function(){function t(){this.large=!1}return i([o.Input(),r("design:type",Object)],t.prototype,"large",void 0),i([o.Input(),r("design:type",Number)],t.prototype,"count",void 0),i([o.Input(),r("design:type",String)],t.prototype,"counterLabel",void 0),i([o.Input(),r("design:type",String)],t.prototype,"counterHref",void 0),t=i([o.Component({selector:"ntkme-counter",template:'\n <a class="social-count" [class.gh-large]="large" [href]="counterHref"\n [attr.aria-label]="(count | number) + counterLabel + \' on GitHub\'">\n <b></b>\n <i></i>\n <span>{{ count | number }}</span>\n </a>\n ',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:["\n a {\n color: #24292e;\n text-decoration: none;\n outline: 0;\n }\n .social-count {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;\n user-select: none;\n display: inline-block;\n font-weight: 600;\n vertical-align: middle;\n cursor: pointer;\n border: 1px solid #d1d2d3;\n border-radius: 0.25em;\n position: relative;\n background-color: #fff;\n margin-left: 5px;\n font-size: 10px;\n height: 20px;\n padding: 0 5px;\n line-height: 18px;\n }\n .social-count:hover {\n color: #0366d6;\n }\n .social-count:focus {\n border-color: #c8e1ff;\n }\n .social-count b,\n .social-count i {\n position: absolute;\n top: 50%;\n right: 100%;\n display: block;\n width: 0;\n height: 0;\n margin-top: -4px;\n border: 4px solid transparent;\n }\n .gh-large.social-count b,\n .gh-large.social-count i {\n margin-top: -6px;\n border-width: 6px;\n }\n .social-count b {\n margin-right: 0;\n border-right-color: #d1d2d3;\n }\n .social-count:focus b {\n border-right-color: #c8e1ff;\n }\n .social-count i {\n margin-right: -1px;\n border-right-color: #fff;\n }\n .gh-large.social-count {\n padding: 0 7px;\n margin-left: 7px;\n font-size: 11px;\n height: 28px;\n line-height: 26px;\n }\n .gh-large.social-count span {\n vertical-align: 0;\n }\n "]})],t)}(),a=function(){function t(t){this.httpClient=t}return t.prototype.user=function(t){return this.httpClient.get("https://api.github.com/users/"+t)},t.prototype.repo=function(t,n){return this.httpClient.get("https://api.github.com/repos/"+t+"/"+n)},t.ngInjectableDef=o.defineInjectable({factory:function(){return new t(o.inject(e.HttpClient))},token:t,providedIn:"root"}),t=i([o.Injectable({providedIn:"root"}),r("design:paramtypes",[e.HttpClient])],t)}(),c={follow:{path:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z",height:"16",width:"16"},watch:{path:"M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z",height:"16",width:"16"},star:{path:"M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74z",height:"16",width:"14"},fork:{path:"M8 1a1.993 1.993 0 0 0-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 0 0 2 1a1.993 1.993 0 0 0-1 3.72V6.5l3 3v1.78A1.993 1.993 0 0 0 5 15a1.993 1.993 0 0 0 1-3.72V9.5l3-3V4.72A1.993 1.993 0 0 0 8 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z",height:"16",width:"10"},issue:{path:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z",height:"16",width:"14"},download:{path:"M9 12h2l-3 3-3-3h2V7h2v5zm3-8c0-.44-.91-3-4.5-3C5.08 1 3 2.92 3 5 1.02 5 0 6.52 0 8c0 1.53 1 3 3 3h3V9.7H3C1.38 9.7 1.3 8.28 1.3 8c0-.17.05-1.7 1.7-1.7h1.3V5c0-1.39 1.56-2.7 3.2-2.7 2.55 0 3.13 1.55 3.2 1.8v1.2H12c.81 0 2.7.22 2.7 2.2 0 2.09-2.25 2.2-2.7 2.2h-2V11h2c2.08 0 4-1.16 4-3.5C16 5.06 14.08 4 12 4z",height:"16",width:"16"}},u=function(){function t(t){this.buttonService=t,this.type="star",this.count=!1,this.size="none",this.standardIcon=!1,this.text="",this.svg={},this.loaded=!1}return t.prototype.ngOnChanges=function(){var t=this.standardIcon?"follow":this.type;switch(this.svg=c[t],this.type){case"watch":this.text="Watch",this.countAttr="subscribers_count",this.counterLabel=" watchers",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/subscription",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/watchers";break;case"star":this.text="Star",this.countAttr="stargazers_count",this.counterLabel=" stargazers",this.buttonHref="https://github.com/"+this.user+"/"+this.repo,this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/stargazers";break;case"fork":this.text="Fork",this.countAttr="network_count",this.counterLabel=" forks",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/fork",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/network";break;case"follow":this.text="Follow @"+this.user,this.countAttr="followers",this.counterLabel=" followers",this.buttonHref="https://github.com/"+this.user,this.counterHref="https://github.com/"+this.user+"/followers";break;case"issue":this.text="Issue",this.countAttr="open_issues",this.counterLabel=" followers",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/issues",this.counterHref=this.buttonHref;break;case"download":this.text="Download",this.counterLabel=" followers",this.countAttr="subscribers_count",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/archive/master.zip"}this.count&&this.user&&"download"!==this.type&&this.fetch()},t.prototype.fetch=function(){var t,n=this;if(this.loaded=!1,"follow"===this.type)t=this.buttonService.user(this.user);else{if(!this.repo)return;t=this.buttonService.repo(this.user,this.repo)}t.subscribe(function(t){return n.callback(t)})},t.prototype.callback=function(t){this.counter=t[this.countAttr],this.loaded=!0},i([o.Input(),r("design:type",String)],t.prototype,"user",void 0),i([o.Input(),r("design:type",String)],t.prototype,"repo",void 0),i([o.Input(),r("design:type",String)],t.prototype,"type",void 0),i([o.Input(),r("design:type",Object)],t.prototype,"count",void 0),i([o.Input(),r("design:type",String)],t.prototype,"size",void 0),i([o.Input(),r("design:type",Object)],t.prototype,"standardIcon",void 0),t=i([o.Component({selector:"ntkme-github-button",template:'\n <div [class.gh-large]="this.size === \'large\'">\n <a [href]="buttonHref" class="gh-btn"\n [attr.aria-label]="text + \' on GitHub\'">\n <svg version="1.1"\n [attr.width]="svg.width" [attr.height]="svg.height"\n [attr.viewBox]="\'0 0 \' + svg.width + \' \' + svg.height"\n class="gh-octicon" aria-hidden="true">\n <path fill-rule="evenodd" [attr.d]="svg.path"></path>\n </svg>\n <span> {{ text }}</span>\n </a>\n <ntkme-counter *ngIf="count && loaded"\n [count]="counter"\n [large]="this.size === \'large\'"\n [counterLabel]="counterLabel"\n [counterHref]="counterHref"\n ></ntkme-counter>\n </div>\n ',styles:["\n a {\n color: #24292e;\n text-decoration: none;\n outline: 0;\n }\n .gh-btn {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,\n Arial, sans-serif;\n user-select: none;\n display: inline-block;\n font-weight: 600;\n vertical-align: middle;\n cursor: pointer;\n border: 1px solid #d1d2d3;\n border-radius: 0.25em;\n background-color: #eff3f6;\n background-image: linear-gradient(to bottom, #fafbfc, #e4ebf0);\n background-repeat: repeat-x;\n background-size: 110% 110%;\n height: 20px;\n padding: 0 5px;\n line-height: 18px;\n font-size: 11px;\n white-space: nowrap;\n }\n .gh-btn:focus {\n border-color: #c8e1ff;\n }\n .gh-btn:active {\n background-color: #e9ecef;\n background-image: none;\n border-color: #afb1b2;\n box-shadow: inset 0 0.15em 0.3em rgba(27, 31, 35, 0.15);\n }\n .gh-btn:hover {\n background-color: #e6ebf1;\n background-image: linear-gradient(to bottom, #f0f3f6, #dce3ec);\n border-color: #afb1b2;\n }\n .gh-octicon {\n position: relative;\n display: inline-block;\n fill: currentColor;\n height: 14px;\n top: 2px;\n vertical-align: initial;\n }\n .gh-btn span {\n vertical-align: 1px;\n }\n .gh-large .gh-btn {\n height: 28px;\n line-height: 26px;\n padding: 0 10px;\n font-size: 12px;\n }\n .gh-large .gh-btn span {\n vertical-align: 0;\n }\n .gh-large .gh-octicon {\n height: 16px;\n top: 4px;\n }\n "]}),r("design:paramtypes",[a])],t)}(),h=function(){function t(){}return t=i([o.NgModule({imports:[n.CommonModule,e.HttpClientModule],exports:[u],declarations:[u,s]})],t)}(),p=function(){function t(){this.large=!1}return i([o.Input(),r("design:type",Object)],t.prototype,"large",void 0),i([o.Input(),r("design:type",Number)],t.prototype,"count",void 0),i([o.Input(),r("design:type",String)],t.prototype,"counterLabel",void 0),i([o.Input(),r("design:type",String)],t.prototype,"counterHref",void 0),t=i([o.Component({selector:"mdo-counter",template:'\n <a class="gh-count" [class.github-btn-large]="large"\n [href]="counterHref" target="_blank"\n [attr.aria-label]="(count | number) + counterLabel + \' on GitHub\'"\n >\n {{ count | number }}\n </a>\n ',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:["\n .gh-count {\n padding: 2px 5px 2px 4px;\n color: #333;\n text-decoration: none;\n white-space: nowrap;\n cursor: pointer;\n border-radius: 3px;\n display: inline-block;\n }\n .gh-count {\n position: relative;\n margin-left: 4px;\n background-color: #fafafa;\n border: 1px solid #d4d4d4;\n }\n .gh-count:hover,\n .gh-count:focus {\n color: #4183C4;\n }\n .gh-count:before,\n .gh-count:after {\n content: '';\n position: absolute;\n display: inline-block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n .gh-count:before {\n top: 50%;\n left: -3px;\n margin-top: -4px;\n border-width: 4px 4px 4px 0;\n border-right-color: #fafafa;\n }\n .gh-count:after {\n top: 50%;\n left: -4px;\n z-index: -1;\n margin-top: -5px;\n border-width: 5px 5px 5px 0;\n border-right-color: #d4d4d4;\n }\n .github-btn-large.gh-count {\n padding: 4px 8px 4px 8px;\n font-size: 16px;\n line-height: 22px;\n border-radius: 4px;\n margin-left: 6px;\n }\n .github-btn-large.gh-count:before {\n left: -5px;\n margin-top: -6px;\n border-width: 6px 6px 6px 0;\n }\n .github-btn-large.gh-count:after {\n left: -6px;\n margin-top: -7px;\n border-width: 7px 7px 7px 0;\n }\n "]})],t)}(),g=function(){function t(t){this.buttonService=t,this.type="star",this.count=!1,this.size="none",this.text="",this.mainButton={"github-btn":!0},this.loaded=!1}return t.prototype.ngOnChanges=function(){switch(this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/",this.mainButton["github-btn-large"]="large"===this.size,this.type){case"watch":this.mainButton["github-watchers"]=!0,this.text="Watch",this.countAttr="subscribers_count",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/watchers";break;case"star":this.mainButton["github-stargazers"]=!0,this.text="Star",this.counterLabel=" stargazers",this.countAttr="stargazers_count",this.counterLabel=" watchers",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/stargazers";break;case"fork":this.mainButton["github-forks"]=!0,this.text="Fork",this.counterLabel=" forks",this.countAttr="network_count",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/fork",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/network";break;case"follow":this.mainButton["github-me"]=!0,this.text="Follow @"+this.user,this.counterLabel=" followers",this.countAttr="followers",this.buttonHref="https://github.com/"+this.user,this.counterHref="https://github.com/"+this.user+"/followers"}this.count&&this.user&&this.fetch()},t.prototype.fetch=function(){var t,n=this;if(this.loaded=!1,"follow"===this.type)t=this.buttonService.user(this.user);else{if(!this.repo)return;t=this.buttonService.repo(this.user,this.repo)}t.subscribe(function(t){return n.callback(t)})},t.prototype.callback=function(t){this.counter=t[this.countAttr],this.loaded=!0},i([o.Input(),r("design:type",String)],t.prototype,"user",void 0),i([o.Input(),r("design:type",String)],t.prototype,"repo",void 0),i([o.Input(),r("design:type",String)],t.prototype,"type",void 0),i([o.Input(),r("design:type",Object)],t.prototype,"count",void 0),i([o.Input(),r("design:type",String)],t.prototype,"size",void 0),t=i([o.Component({selector:"mdo-github-button",template:'\n <div [ngClass]="mainButton">\n <a class="gh-btn" [href]="buttonHref" target="_blank"\n [attr.aria-label]="text + \' on GitHub\'">\n <span class="gh-ico" aria-hidden="true"></span>\n <span class="gh-text">{{ text }}</span>\n </a>\n <mdo-counter *ngIf="count && loaded"\n [count]="counter"\n [large]="this.size === \'large\'"\n [counterLabel]="counterLabel"\n [counterHref]="counterHref"\n ></mdo-counter>\n </div>\n ',styles:["\n .github-btn {\n display: inline-block;\n font: bold 11px/14px 'Helvetica Neue', Helvetica, Arial, sans-serif;\n height: 20px;\n }\n .gh-btn {\n padding: 2px 5px 2px 4px;\n color: #333;\n text-decoration: none;\n white-space: nowrap;\n cursor: pointer;\n border-radius: 3px;\n background-color: #eee;\n background-image: linear-gradient(to bottom, #fcfcfc 0, #eee 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcfcfc', endColorstr='#eeeeee', GradientType=0);\n background-repeat: no-repeat;\n border: 1px solid #d5d5d5;\n display: inline-block;\n }\n .gh-btn:hover,\n .gh-btn:focus {\n text-decoration: none;\n background-color: #ddd;\n background-image: linear-gradient(to bottom, #eee 0, #ddd 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#dddddd', GradientType=0);\n border-color: #ccc;\n }\n .gh-btn:active {\n background-image: none;\n background-color: #dcdcdc;\n border-color: #b5b5b5;\n box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);\n }\n .gh-ico {\n display: inline-block;\n width: 14px;\n height: 14px;\n margin-right: 4px;\n margin-bottom: -3px;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjQwcHgiIGhlaWdodD0iNDBweCIgdmlld0JveD0iMTIgMTIgNDAgNDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMTIgMTIgNDAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiMzMzMzMzMiIGQ9Ik0zMiAxMy40Yy0xMC41IDAtMTkgOC41LTE5IDE5YzAgOC40IDUuNSAxNS41IDEzIDE4YzEgMC4yIDEuMy0wLjQgMS4zLTAuOWMwLTAuNSAwLTEuNyAwLTMuMiBjLTUuMyAxLjEtNi40LTIuNi02LjQtMi42QzIwIDQxLjYgMTguOCA0MSAxOC44IDQxYy0xLjctMS4yIDAuMS0xLjEgMC4xLTEuMWMxLjkgMC4xIDIuOSAyIDIuOSAyYzEuNyAyLjkgNC41IDIuMSA1LjUgMS42IGMwLjItMS4yIDAuNy0yLjEgMS4yLTIuNmMtNC4yLTAuNS04LjctMi4xLTguNy05LjRjMC0yLjEgMC43LTMuNyAyLTUuMWMtMC4yLTAuNS0wLjgtMi40IDAuMi01YzAgMCAxLjYtMC41IDUuMiAyIGMxLjUtMC40IDMuMS0wLjcgNC44LTAuN2MxLjYgMCAzLjMgMC4yIDQuNyAwLjdjMy42LTIuNCA1LjItMiA1LjItMmMxIDIuNiAwLjQgNC42IDAuMiA1YzEuMiAxLjMgMiAzIDIgNS4xYzAgNy4zLTQuNSA4LjktOC43IDkuNCBjMC43IDAuNiAxLjMgMS43IDEuMyAzLjVjMCAyLjYgMCA0LjYgMCA1LjJjMCAwLjUgMC40IDEuMSAxLjMgMC45YzcuNS0yLjYgMTMtOS43IDEzLTE4LjFDNTEgMjEuOSA0Mi41IDEzLjQgMzIgMTMuNHoiLz48L3N2Zz4=');\n background-size: 100% 100%;\n background-repeat: no-repeat;\n }\n .github-btn-large {\n height: 32px;\n }\n .github-btn-large .gh-btn {\n padding: 4px 10px 4px 8px;\n font-size: 16px;\n line-height: 22px;\n border-radius: 4px;\n }\n .github-btn-large .gh-ico {\n width: 20px;\n height: 20px;\n }\n "]}),r("design:paramtypes",[a])],t)}(),l=function(){function t(){}return t=i([o.NgModule({imports:[n.CommonModule,e.HttpClientModule],exports:[g],declarations:[g,p]})],t)}();t.ButtonService=a,t.MdoButtonModule=l,t.MdoCounterComponent=p,t.MdoGithubButtonComponent=g,t.NtkmeButtonComponent=u,t.NtkmeButtonModule=h,t.NtkmeCounterComponent=s,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ctrl-ngx-github-buttons.umd.min.js.map

@@ -17,3 +17,3 @@ import * as tslib_1 from "tslib";

};
ButtonService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ButtonService_Factory() { return new ButtonService(i0.ɵɵinject(i1.HttpClient)); }, token: ButtonService, providedIn: "root" });
ButtonService.ngInjectableDef = i0.defineInjectable({ factory: function ButtonService_Factory() { return new ButtonService(i0.inject(i1.HttpClient)); }, token: ButtonService, providedIn: "root" });
ButtonService = tslib_1.__decorate([

@@ -20,0 +20,0 @@ Injectable({ providedIn: 'root' }),

@@ -16,3 +16,3 @@ import * as tslib_1 from "tslib";

};
ButtonService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ButtonService_Factory() { return new ButtonService(i0.ɵɵinject(i1.HttpClient)); }, token: ButtonService, providedIn: "root" });
ButtonService.ngInjectableDef = i0.defineInjectable({ factory: function ButtonService_Factory() { return new ButtonService(i0.inject(i1.HttpClient)); }, token: ButtonService, providedIn: "root" });
ButtonService = tslib_1.__decorate([

@@ -19,0 +19,0 @@ Injectable({ providedIn: 'root' }),

import { __decorate, __metadata } from 'tslib';
import { CommonModule } from '@angular/common';
import { HttpClient, HttpClientModule } from '@angular/common/http';
import { Input, Component, ChangeDetectionStrategy, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule } from '@angular/core';
import { Input, Component, ChangeDetectionStrategy, defineInjectable, inject, Injectable, NgModule } from '@angular/core';

@@ -120,3 +120,3 @@ let NtkmeCounterComponent = class NtkmeCounterComponent {

};
ButtonService.ngInjectableDef = ɵɵdefineInjectable({ factory: function ButtonService_Factory() { return new ButtonService(ɵɵinject(HttpClient)); }, token: ButtonService, providedIn: "root" });
ButtonService.ngInjectableDef = defineInjectable({ factory: function ButtonService_Factory() { return new ButtonService(inject(HttpClient)); }, token: ButtonService, providedIn: "root" });
ButtonService = __decorate([

@@ -123,0 +123,0 @@ Injectable({ providedIn: 'root' }),

import { __decorate, __metadata } from 'tslib';
import { CommonModule } from '@angular/common';
import { HttpClient, HttpClientModule } from '@angular/common/http';
import { Input, Component, ChangeDetectionStrategy, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule } from '@angular/core';
import { Input, Component, ChangeDetectionStrategy, defineInjectable, inject, Injectable, NgModule } from '@angular/core';

@@ -47,3 +47,3 @@ var NtkmeCounterComponent = /** @class */ (function () {

};
ButtonService.ngInjectableDef = ɵɵdefineInjectable({ factory: function ButtonService_Factory() { return new ButtonService(ɵɵinject(HttpClient)); }, token: ButtonService, providedIn: "root" });
ButtonService.ngInjectableDef = defineInjectable({ factory: function ButtonService_Factory() { return new ButtonService(inject(HttpClient)); }, token: ButtonService, providedIn: "root" });
ButtonService = __decorate([

@@ -50,0 +50,0 @@ Injectable({ providedIn: 'root' }),

{
"$schema": "../../node_modules/ng-packagr/package.schema.json",
"name": "@ctrl/ngx-github-buttons",
"version": "2.1.5",
"version": "2.1.6",
"description": "GitHub Buttons for Angular. Star, Like, Follow and more",

@@ -6,0 +6,0 @@ "peerDependencies": {

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