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 1.0.8 to 1.0.9

101

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

@@ -7,17 +7,6 @@ (function (global, factory) {

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var ButtonService = /** @class */ (function () {
/**
* @param {?} httpClient
*/
function ButtonService(httpClient) {
this.httpClient = httpClient;
}
/**
* @param {?} user
* @return {?}
*/
ButtonService.prototype.user = function (user) {

@@ -27,7 +16,2 @@ return this.httpClient

};
/**
* @param {?} user
* @param {?} repo
* @return {?}
*/
ButtonService.prototype.repo = function (user, repo) {

@@ -42,10 +26,5 @@ return this.httpClient

];
/** @nocollapse */
ButtonService.ctorParameters = function () { return [
{ type: http.HttpClient, },
]; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var NtkmeCounterComponent = /** @class */ (function () {

@@ -66,3 +45,2 @@ function NtkmeCounterComponent() {

];
/** @nocollapse */
NtkmeCounterComponent.ctorParameters = function () { return []; };

@@ -75,6 +53,2 @@ NtkmeCounterComponent.propDecorators = {

};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var svg = {

@@ -113,22 +87,7 @@ follow: {

var NtkmeButtonComponent = /** @class */ (function () {
/**
* @param {?} buttonService
*/
function NtkmeButtonComponent(buttonService) {
this.buttonService = buttonService;
/**
* Type of button to show
*/
this.type = 'star';
/**
* Show the optional watchers or forks count
*/
this.count = false;
/**
* Optional flag for using a larger button
*/
this.size = 'none';
/**
* Use the github logo as the icon
*/
this.standardIcon = false;

@@ -139,7 +98,4 @@ this.text = '';

}
/**
* @return {?}
*/
NtkmeButtonComponent.prototype.ngOnChanges = function () {
var /** @type {?} */ iconType = this.standardIcon ? 'follow' : this.type;
var iconType = this.standardIcon ? 'follow' : this.type;
this.svg = svg[iconType];

@@ -195,9 +151,6 @@ switch (this.type) {

};
/**
* @return {?}
*/
NtkmeButtonComponent.prototype.fetch = function () {
var _this = this;
this.loaded = false;
var /** @type {?} */ sub;
var sub;
if (this.type === 'follow') {

@@ -214,6 +167,2 @@ sub = this.buttonService.user(this.user);

};
/**
* @param {?} data
* @return {?}
*/
NtkmeButtonComponent.prototype.callback = function (data) {

@@ -233,3 +182,2 @@ this.counter = data[this.countAttr];

];
/** @nocollapse */
NtkmeButtonComponent.ctorParameters = function () { return [

@@ -246,6 +194,2 @@ { type: ButtonService, },

};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var NtkmeButtonModule = /** @class */ (function () {

@@ -264,8 +208,3 @@ function NtkmeButtonModule() {

];
/** @nocollapse */
NtkmeButtonModule.ctorParameters = function () { return []; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var MdoCounterComponent = /** @class */ (function () {

@@ -286,3 +225,2 @@ function MdoCounterComponent() {

];
/** @nocollapse */
MdoCounterComponent.ctorParameters = function () { return []; };

@@ -295,23 +233,7 @@ MdoCounterComponent.propDecorators = {

};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var MdoGithubButtonComponent = /** @class */ (function () {
/**
* @param {?} buttonService
*/
function MdoGithubButtonComponent(buttonService) {
this.buttonService = buttonService;
/**
* Type of button to show
*/
this.type = 'star';
/**
* Show the optional watchers or forks count
*/
this.count = false;
/**
* Optional flag for using a larger button
*/
this.size = 'none';

@@ -324,9 +246,5 @@ this.text = '';

}
/**
* @return {?}
*/
MdoGithubButtonComponent.prototype.ngOnChanges = function () {
this.buttonHref = 'https://github.com/' + this.user + '/' + this.repo + '/';
this.mainButton['github-btn-large'] = this.size === 'large';
// Add the class, change the text label, set count link href
switch (this.type) {

@@ -370,9 +288,6 @@ case 'watch':

};
/**
* @return {?}
*/
MdoGithubButtonComponent.prototype.fetch = function () {
var _this = this;
this.loaded = false;
var /** @type {?} */ sub;
var sub;
if (this.type === 'follow') {

@@ -389,6 +304,2 @@ sub = this.buttonService.user(this.user);

};
/**
* @param {?} data
* @return {?}
*/
MdoGithubButtonComponent.prototype.callback = function (data) {

@@ -409,3 +320,2 @@ this.counter = data[this.countAttr];

];
/** @nocollapse */
MdoGithubButtonComponent.ctorParameters = function () { return [

@@ -421,6 +331,2 @@ { type: ButtonService, },

};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var MdoButtonModule = /** @class */ (function () {

@@ -442,3 +348,2 @@ function MdoButtonModule() {

];
/** @nocollapse */
MdoButtonModule.ctorParameters = function () { return []; };

@@ -445,0 +350,0 @@

import { HttpClient, HttpClientModule } from '@angular/common/http';
import { Injectable, ChangeDetectionStrategy, Component, Input, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var ButtonService = /** @class */ (function () {
/**
* @param {?} httpClient
*/
function ButtonService(httpClient) {
this.httpClient = httpClient;
}
/**
* @param {?} user
* @return {?}
*/
ButtonService.prototype.user = function (user) {

@@ -23,7 +13,2 @@ return this.httpClient

};
/**
* @param {?} user
* @param {?} repo
* @return {?}
*/
ButtonService.prototype.repo = function (user, repo) {

@@ -38,10 +23,5 @@ return this.httpClient

];
/** @nocollapse */
ButtonService.ctorParameters = function () { return [
{ type: HttpClient, },
]; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var NtkmeCounterComponent = /** @class */ (function () {

@@ -62,3 +42,2 @@ function NtkmeCounterComponent() {

];
/** @nocollapse */
NtkmeCounterComponent.ctorParameters = function () { return []; };

@@ -71,6 +50,2 @@ NtkmeCounterComponent.propDecorators = {

};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var svg = {

@@ -109,22 +84,7 @@ follow: {

var NtkmeButtonComponent = /** @class */ (function () {
/**
* @param {?} buttonService
*/
function NtkmeButtonComponent(buttonService) {
this.buttonService = buttonService;
/**
* Type of button to show
*/
this.type = 'star';
/**
* Show the optional watchers or forks count
*/
this.count = false;
/**
* Optional flag for using a larger button
*/
this.size = 'none';
/**
* Use the github logo as the icon
*/
this.standardIcon = false;

@@ -135,7 +95,4 @@ this.text = '';

}
/**
* @return {?}
*/
NtkmeButtonComponent.prototype.ngOnChanges = function () {
var /** @type {?} */ iconType = this.standardIcon ? 'follow' : this.type;
var iconType = this.standardIcon ? 'follow' : this.type;
this.svg = svg[iconType];

@@ -191,9 +148,6 @@ switch (this.type) {

};
/**
* @return {?}
*/
NtkmeButtonComponent.prototype.fetch = function () {
var _this = this;
this.loaded = false;
var /** @type {?} */ sub;
var sub;
if (this.type === 'follow') {

@@ -210,6 +164,2 @@ sub = this.buttonService.user(this.user);

};
/**
* @param {?} data
* @return {?}
*/
NtkmeButtonComponent.prototype.callback = function (data) {

@@ -229,3 +179,2 @@ this.counter = data[this.countAttr];

];
/** @nocollapse */
NtkmeButtonComponent.ctorParameters = function () { return [

@@ -242,6 +191,2 @@ { type: ButtonService, },

};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var NtkmeButtonModule = /** @class */ (function () {

@@ -260,8 +205,3 @@ function NtkmeButtonModule() {

];
/** @nocollapse */
NtkmeButtonModule.ctorParameters = function () { return []; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var MdoCounterComponent = /** @class */ (function () {

@@ -282,3 +222,2 @@ function MdoCounterComponent() {

];
/** @nocollapse */
MdoCounterComponent.ctorParameters = function () { return []; };

@@ -291,23 +230,7 @@ MdoCounterComponent.propDecorators = {

};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var MdoGithubButtonComponent = /** @class */ (function () {
/**
* @param {?} buttonService
*/
function MdoGithubButtonComponent(buttonService) {
this.buttonService = buttonService;
/**
* Type of button to show
*/
this.type = 'star';
/**
* Show the optional watchers or forks count
*/
this.count = false;
/**
* Optional flag for using a larger button
*/
this.size = 'none';

@@ -320,9 +243,5 @@ this.text = '';

}
/**
* @return {?}
*/
MdoGithubButtonComponent.prototype.ngOnChanges = function () {
this.buttonHref = 'https://github.com/' + this.user + '/' + this.repo + '/';
this.mainButton['github-btn-large'] = this.size === 'large';
// Add the class, change the text label, set count link href
switch (this.type) {

@@ -366,9 +285,6 @@ case 'watch':

};
/**
* @return {?}
*/
MdoGithubButtonComponent.prototype.fetch = function () {
var _this = this;
this.loaded = false;
var /** @type {?} */ sub;
var sub;
if (this.type === 'follow') {

@@ -385,6 +301,2 @@ sub = this.buttonService.user(this.user);

};
/**
* @param {?} data
* @return {?}
*/
MdoGithubButtonComponent.prototype.callback = function (data) {

@@ -405,3 +317,2 @@ this.counter = data[this.countAttr];

];
/** @nocollapse */
MdoGithubButtonComponent.ctorParameters = function () { return [

@@ -417,6 +328,2 @@ { type: ButtonService, },

};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var MdoButtonModule = /** @class */ (function () {

@@ -438,16 +345,5 @@ function MdoButtonModule() {

];
/** @nocollapse */
MdoButtonModule.ctorParameters = function () { return []; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
export { NtkmeButtonModule, NtkmeButtonComponent, NtkmeCounterComponent, MdoButtonModule, MdoCounterComponent, MdoGithubButtonComponent, ButtonService };
//# sourceMappingURL=ctrl-ngx-github-buttons.js.map

3

package.json
{
"$schema": "../../node_modules/ng-packagr/package.schema.json",
"name": "@ctrl/ngx-github-buttons",
"version": "1.0.8",
"version": "1.0.9",
"description": "GitHub Buttons for Angular",

@@ -11,2 +11,3 @@ "peerDependencies": {

},
"sideEffects": false,
"author": "Scott Cooper <scttcper@gmail.com> (https://github.com/scttcper)",

@@ -13,0 +14,0 @@ "repository": "https://github.com/TypeCtrl/ngx-github-buttons.git",

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