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

angular-pimg

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-pimg - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

14

bundles/angular-pimg.umd.js

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

var className = _a.className, dataSaver = _a.dataSaver, fetchOnDemand = _a.fetchOnDemand, placeholderClassName = _a.placeholderClassName;
console.log('setting config');
this._className = typeof className !== 'undefined' ? className : this.className;

@@ -96,5 +97,3 @@ this._fetchOnDemand = typeof fetchOnDemand !== 'undefined' ? fetchOnDemand : this.fetchOnDemand;

}
else {
this._dataSaver = true; // dataSaver is true
}
this._dataSaver = true; // dataSaver is true
};

@@ -150,3 +149,2 @@ AngularPimgService.decorators = [

_this.isIntersecting = true;
console.log('Called by intersection API');
_this.delayed = false;

@@ -169,3 +167,2 @@ observer.disconnect();

.then(function (res) {
console.log(res);
_this.blob = _this.domSanitizer.bypassSecurityTrustUrl(URL.createObjectURL(res));

@@ -193,3 +190,2 @@ _this.loading = false;

if (props.findIndex(function (val) { return val === prop; }) > 0 && !this_1.isUndefined(changes[prop].currentValue)) {
console.log(prop + " is not undefined. It has changed");
this_1[prop] = changes[prop].currentValue;

@@ -225,3 +221,2 @@ }

// Called on initialization; Set the default configuration options if option is not present
console.log('Config options', this.options);
if (this.isUndefined(this.fetchOnDemand)) {

@@ -239,4 +234,6 @@ this.fetchOnDemand = this.options.fetchOnDemand;

}
console.log('datasaver', this.dataSaver, this.options.dataSaver);
if (this.isObject(this.dataSaver)) {
// set buttonClassName and wrapperClassName
this.dataSaver = true;
this.buttonClassName = this.dataSaver.buttonClassName;

@@ -266,3 +263,2 @@ this.wrapperClassName = this.dataSaver.wrapperClassName;

this.fetchImage();
console.log('Fetching image, due to config', this.dataSaver);
}

@@ -367,2 +363,2 @@ if (this.src && this.src.includes('c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QTlCVDs7Ozs7OztBQ0FBO1FBY0UsMkJBQW9DO1lBQ2xDLElBQUksWUFBWSxFQUFFO2dCQUNoQixNQUFNLElBQUksS0FBSyxDQUFDLDZFQUE2RSxDQUFDLENBQUM7YUFDaEc7U0FDRjs7Ozs7UUFDTSx5QkFBTzs7OztZQUFkLFVBQWUsT0FBcUM7Z0JBQ2xELE9BQU87b0JBQ0wsUUFBUSxFQUFFLGlCQUFpQjtvQkFDM0IsU0FBUyxFQUFFO3dCQUNULGtCQUFrQjt3QkFDbEIsRUFBRSxPQUFPLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRSxPQUFPLEVBQUU7cUJBQzFDO2lCQUNGLENBQUM7YUFDSDs7b0JBckJGQyxXQUFRLFNBQUM7d0JBQ1IsT0FBTyxFQUFFOzRCQUNQQyxtQkFBWTt5QkFDYjt3QkFDRCxZQUFZLEVBQUUsQ0FBQyxvQkFBb0IsQ0FBQzt3QkFDcEMsT0FBTyxFQUFFLENBQUMsb0JBQW9CLENBQUM7cUJBQ2hDOzs7Ozt3QkFDWSxpQkFBaUIsdUJBQ2ZULFdBQVEsWUFBSVUsV0FBUTs7O2dDQWRuQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser"),require("@angular/common")):"function"==typeof define&&define.amd?define("angular-pimg",["exports","@angular/core","@angular/platform-browser","@angular/common"],t):t(e["angular-pimg"]={},e.ng.core,e.ng.platformBrowser,e.ng.common)}(this,function(e,a,t,n){"use strict";var s=function(){function e(e){this._placeholderClassName="pimg__placeholder",this._fetchOnDemand=!1,this._buttonClassName="pimg_btn",this._wrapperClassName="pimg_wrapper",e&&this.setConfig(e)}return Object.defineProperty(e.prototype,"wrapperClassName",{get:function(){return this._wrapperClassName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buttonClassName",{get:function(){return this._buttonClassName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholderClassName",{get:function(){return this._placeholderClassName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSaver",{get:function(){return this._dataSaver},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fetchOnDemand",{get:function(){return this._fetchOnDemand},enumerable:!0,configurable:!0}),e.prototype.setConfig=function(e){var t=e.className,n=e.dataSaver,a=e.fetchOnDemand,s=e.placeholderClassName;this._className=void 0!==t?t:this.className,this._fetchOnDemand=void 0!==a?a:this.fetchOnDemand,this._placeholderClassName=void 0!==s?s:this.placeholderClassName,void 0!==n&&("object"==typeof n?(this._buttonClassName=n.buttonClassName,this._wrapperClassName=n.wrapperClassName):this._dataSaver=!0)},e.decorators=[{type:a.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:a.Optional},{type:a.Inject,args:["Options"]}]}]},e.ngInjectableDef=a.defineInjectable({factory:function(){return new e(a.inject("Options",8))},token:e,providedIn:"root"}),e}(),r=function(){function e(e,t,n){this.el=e,this.domSanitizer=t,this.options=n,this.style={display:"block"},this.fetched=new a.EventEmitter,this.error=new a.EventEmitter,this.wrapperClassName="",this.buttonClassName="",this.blob="",this.isIntersecting=!1,this.isObject=function(e){return"object"==typeof e},this.isUndefined=function(e){return void 0===e},this.insertInput(),this.setUp()}return e.prototype.setFetchOnDemand=function(){var t=this,n=new IntersectionObserver(function(e){e[0].isIntersecting&&!t.isIntersecting&&(t.fetchImage(),t.isIntersecting=!0,console.log("Called by intersection API"),t.delayed=!1,n.disconnect())});n.observe(this.el.nativeElement)},e.prototype.fetchImage=function(){var t=this;fetch(this.src).then(function(e){return e.blob()}).then(function(e){console.log(e),t.blob=t.domSanitizer.bypassSecurityTrustUrl(URL.createObjectURL(e)),t.loading=!1,t.isIntersecting=!1,t.delayed=!1,t.fetched.emit()})["catch"](function(e){t.error.emit(e)})},e.prototype.ngOnChanges=function(e){var n=["src","fetchOnDemand","placeholder","placeholderClassName","className","style"],t=function(t){0<n.findIndex(function(e){return e===t})&&!a.isUndefined(e[t].currentValue)?(console.log(t+" is not undefined. It has changed"),a[t]=e[t].currentValue):"dataSaver"===t&&a.isObject(e[t])&&(a.buttonClassName=e[t].currentValue.buttonClassName,a.placeholderClassName=e[t].currentValue.placeholderClassName)},a=this;for(var s in e)t(s);this.setUp()},e.prototype.insertInput=function(){console.log("Config options",this.options),this.isUndefined(this.fetchOnDemand)&&(this.fetchOnDemand=this.options.fetchOnDemand),this.isUndefined(this.placeholderClassName)&&(this.placeholderClassName=this.options.placeholderClassName),this.isUndefined(this.dataSaver)&&(this.dataSaver=this.options.dataSaver),this.isUndefined(this.className)&&(this.className=this.options.className),this.isObject(this.dataSaver)?(this.buttonClassName=this.dataSaver.buttonClassName,this.wrapperClassName=this.dataSaver.wrapperClassName):(this.buttonClassName=this.options.buttonClassName,this.wrapperClassName=this.options.wrapperClassName)},e.prototype.setUp=function(){this.dataSaver?this.delayed=!0:this.fetchOnDemand?(this.loading=!0,this.setFetchOnDemand()):(this.fetchImage(),console.log("Fetching image, due to config",this.dataSaver)),this.src&&this.src.includes("cloudinary")&&(this.placeholder=this.placeholder||this.src.replace("/upload/","/upload/c_thumb,w_30/")),this.classes=this.className+" "+this.placeholderClassName},e.decorators=[{type:a.Component,args:[{selector:"angular-pimg",template:'<div [ngClass]="wrapperClassName" *ngIf="(dataSaver && loading) || delayed; else loadingContent">\n <img [ngClass]="classes" [ngStyle]="style" [src]="placeholder" />\n <button [ngClass]="buttonClassName" (click)="fetchImage()">\n Load image\n </button>\n</div>\n<ng-template #loadingContent>\n <img *ngIf="loading; else otherContent" [ngClass]="placeholderClassName" [ngStyle]="style" [src]="placeholder" />\n <ng-template #otherContent>\n <img [ngStyle]="style" [ngClass]="classes" [src]="blob" />\n </ng-template>\n</ng-template>',styles:[]}]}],e.ctorParameters=function(){return[{type:a.ElementRef},{type:t.DomSanitizer},{type:s}]},e.propDecorators={dataSaver:[{type:a.Input}],src:[{type:a.Input}],fetchOnDemand:[{type:a.Input}],placeholder:[{type:a.Input}],placeholderClassName:[{type:a.Input}],className:[{type:a.Input}],style:[{type:a.Input}],fetched:[{type:a.Output}],error:[{type:a.Output}]},e}(),o=function(){function t(e){if(e)throw new Error("The Angular Pimg Module is already loaded. Import it only in your AppModule")}return t.forRoot=function(e){return{ngModule:t,providers:[s,{provide:"Options",useValue:e}]}},t.decorators=[{type:a.NgModule,args:[{imports:[n.CommonModule],declarations:[r],exports:[r]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:a.Optional},{type:a.SkipSelf}]}]},t}();e.AngularPimgService=s,e.AngularPimgComponent=r,e.AngularPimgModule=o,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser"),require("@angular/common")):"function"==typeof define&&define.amd?define("angular-pimg",["exports","@angular/core","@angular/platform-browser","@angular/common"],t):t(e["angular-pimg"]={},e.ng.core,e.ng.platformBrowser,e.ng.common)}(this,function(e,n,t,a){"use strict";var s=function(){function e(e){this._placeholderClassName="pimg__placeholder",this._fetchOnDemand=!1,this._buttonClassName="pimg_btn",this._wrapperClassName="pimg_wrapper",e&&this.setConfig(e)}return Object.defineProperty(e.prototype,"wrapperClassName",{get:function(){return this._wrapperClassName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buttonClassName",{get:function(){return this._buttonClassName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholderClassName",{get:function(){return this._placeholderClassName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSaver",{get:function(){return this._dataSaver},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fetchOnDemand",{get:function(){return this._fetchOnDemand},enumerable:!0,configurable:!0}),e.prototype.setConfig=function(e){var t=e.className,a=e.dataSaver,n=e.fetchOnDemand,s=e.placeholderClassName;console.log("setting config"),this._className=void 0!==t?t:this.className,this._fetchOnDemand=void 0!==n?n:this.fetchOnDemand,this._placeholderClassName=void 0!==s?s:this.placeholderClassName,void 0!==a&&("object"==typeof a&&(this._buttonClassName=a.buttonClassName,this._wrapperClassName=a.wrapperClassName),this._dataSaver=!0)},e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:n.Optional},{type:n.Inject,args:["Options"]}]}]},e.ngInjectableDef=n.defineInjectable({factory:function(){return new e(n.inject("Options",8))},token:e,providedIn:"root"}),e}(),r=function(){function e(e,t,a){this.el=e,this.domSanitizer=t,this.options=a,this.style={display:"block"},this.fetched=new n.EventEmitter,this.error=new n.EventEmitter,this.wrapperClassName="",this.buttonClassName="",this.blob="",this.isIntersecting=!1,this.isObject=function(e){return"object"==typeof e},this.isUndefined=function(e){return void 0===e},this.insertInput(),this.setUp()}return e.prototype.setFetchOnDemand=function(){var t=this,a=new IntersectionObserver(function(e){e[0].isIntersecting&&!t.isIntersecting&&(t.fetchImage(),t.isIntersecting=!0,t.delayed=!1,a.disconnect())});a.observe(this.el.nativeElement)},e.prototype.fetchImage=function(){var t=this;fetch(this.src).then(function(e){return e.blob()}).then(function(e){t.blob=t.domSanitizer.bypassSecurityTrustUrl(URL.createObjectURL(e)),t.loading=!1,t.isIntersecting=!1,t.delayed=!1,t.fetched.emit()})["catch"](function(e){t.error.emit(e)})},e.prototype.ngOnChanges=function(e){var a=["src","fetchOnDemand","placeholder","placeholderClassName","className","style"],t=function(t){0<a.findIndex(function(e){return e===t})&&!n.isUndefined(e[t].currentValue)?n[t]=e[t].currentValue:"dataSaver"===t&&n.isObject(e[t])&&(n.buttonClassName=e[t].currentValue.buttonClassName,n.placeholderClassName=e[t].currentValue.placeholderClassName)},n=this;for(var s in e)t(s);this.setUp()},e.prototype.insertInput=function(){this.isUndefined(this.fetchOnDemand)&&(this.fetchOnDemand=this.options.fetchOnDemand),this.isUndefined(this.placeholderClassName)&&(this.placeholderClassName=this.options.placeholderClassName),this.isUndefined(this.dataSaver)&&(this.dataSaver=this.options.dataSaver),this.isUndefined(this.className)&&(this.className=this.options.className),console.log("datasaver",this.dataSaver,this.options.dataSaver),this.isObject(this.dataSaver)?(this.dataSaver=!0,this.buttonClassName=this.dataSaver.buttonClassName,this.wrapperClassName=this.dataSaver.wrapperClassName):(this.buttonClassName=this.options.buttonClassName,this.wrapperClassName=this.options.wrapperClassName)},e.prototype.setUp=function(){this.dataSaver?this.delayed=!0:this.fetchOnDemand?(this.loading=!0,this.setFetchOnDemand()):this.fetchImage(),this.src&&this.src.includes("cloudinary")&&(this.placeholder=this.placeholder||this.src.replace("/upload/","/upload/c_thumb,w_30/")),this.classes=this.className+" "+this.placeholderClassName},e.decorators=[{type:n.Component,args:[{selector:"angular-pimg",template:'<div [ngClass]="wrapperClassName" *ngIf="(dataSaver && loading) || delayed; else loadingContent">\n <img [ngClass]="classes" [ngStyle]="style" [src]="placeholder" />\n <button [ngClass]="buttonClassName" (click)="fetchImage()">\n Load image\n </button>\n</div>\n<ng-template #loadingContent>\n <img *ngIf="loading; else otherContent" [ngClass]="placeholderClassName" [ngStyle]="style" [src]="placeholder" />\n <ng-template #otherContent>\n <img [ngStyle]="style" [ngClass]="classes" [src]="blob" />\n </ng-template>\n</ng-template>',styles:[]}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:t.DomSanitizer},{type:s}]},e.propDecorators={dataSaver:[{type:n.Input}],src:[{type:n.Input}],fetchOnDemand:[{type:n.Input}],placeholder:[{type:n.Input}],placeholderClassName:[{type:n.Input}],className:[{type:n.Input}],style:[{type:n.Input}],fetched:[{type:n.Output}],error:[{type:n.Output}]},e}(),o=function(){function t(e){if(e)throw new Error("The Angular Pimg Module is already loaded. Import it only in your AppModule")}return t.forRoot=function(e){return{ngModule:t,providers:[s,{provide:"Options",useValue:e}]}},t.decorators=[{type:n.NgModule,args:[{imports:[a.CommonModule],declarations:[r],exports:[r]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},t}();e.AngularPimgService=s,e.AngularPimgComponent=r,e.AngularPimgModule=o,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=angular-pimg.umd.min.js.map

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

this.isIntersecting = true;
console.log('Called by intersection API');
this.delayed = false;

@@ -54,3 +53,2 @@ observer.disconnect();

.then(res => {
console.log(res);
this.blob = this.domSanitizer.bypassSecurityTrustUrl(URL.createObjectURL(res));

@@ -75,3 +73,2 @@ this.loading = false;

if (props.findIndex(val => val === prop) > 0 && !this.isUndefined(changes[prop].currentValue)) {
console.log(`${prop} is not undefined. It has changed`);
this[prop] = changes[prop].currentValue;

@@ -100,3 +97,2 @@ }

// Called on initialization; Set the default configuration options if option is not present
console.log('Config options', this.options);
if (this.isUndefined(this.fetchOnDemand)) {

@@ -114,4 +110,6 @@ this.fetchOnDemand = this.options.fetchOnDemand;

}
console.log('datasaver', this.dataSaver, this.options.dataSaver);
if (this.isObject(this.dataSaver)) {
// set buttonClassName and wrapperClassName
this.dataSaver = true;
this.buttonClassName = this.dataSaver.buttonClassName;

@@ -138,3 +136,2 @@ this.wrapperClassName = this.dataSaver.wrapperClassName;

this.fetchImage();
console.log('Fetching image, due to config', this.dataSaver);
}

@@ -237,2 +234,2 @@ if (this.src && this.src.includes('cloudinary')) {

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1waW1nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItcGltZy8iLCJzb3VyY2VzIjpbImxpYi9hbmd1bGFyLXBpbWcuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQ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ldEZldGNoT25EZW1hbmQoKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5mZXRjaEltYWdlKCk7XG4gICAgfVxuICAgIGlmICh0aGlzLnNyYyAmJiB0aGlzLnNyYy5pbmNsdWRlcygnY2xvdWRpbmFyeScpKSB7XG4gICAgICB0aGlzLnBsYWNlaG9sZGVyID1cbiAgICAgICAgdGhpcy5wbGFjZWhvbGRlciB8fCB0aGlzLnNyYy5yZXBsYWNlKCcvdXBsb2FkLycsICcvdXBsb2FkL2NfdGh1bWIsd18zMC8nKTtcbiAgICB9XG4gICAgdGhpcy5jbGFzc2VzID0gYCR7dGhpcy5jbGFzc05hbWV9ICR7dGhpcy5wbGFjZWhvbGRlckNsYXNzTmFtZX1gO1xuICB9XG5cbiAgaXNPYmplY3QgPSB4ID0+IHR5cGVvZiB4ID09PSAnb2JqZWN0JztcbiAgaXNVbmRlZmluZWQgPSB4ID0+IHR5cGVvZiB4ID09PSAndW5kZWZpbmVkJztcblxufVxuIl19

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

setConfig({ className, dataSaver, fetchOnDemand, placeholderClassName }) {
console.log('setting config');
this._className = typeof className !== 'undefined' ? className : this.className;

@@ -72,5 +73,3 @@ this._fetchOnDemand = typeof fetchOnDemand !== 'undefined' ? fetchOnDemand : this.fetchOnDemand;

}
else {
this._dataSaver = true; // dataSaver is true
}
this._dataSaver = true; // dataSaver is true
}

@@ -110,2 +109,2 @@ }

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1waW1nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyLXBpbWcvIiwic291cmNlcyI6WyJsaWIvYW5ndWxhci1waW1nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FB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TtcbiAgICB9XG4gICAgdGhpcy5fZGF0YVNhdmVyID0gdHJ1ZTsgLy8gZGF0YVNhdmVyIGlzIHRydWVcbiAgfVxuXG59XG4iXX0=

@@ -21,3 +21,3 @@ /**

placeholderClassName: 'pimg__placeholder',
fetchOnDemand: true,
fetchOnDemand: false,
dataSaver: false,

@@ -28,2 +28,2 @@ buttonClassName: 'pimg_btn',

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLW9wdGlvbnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyLXBpbWcvIiwic291cmNlcyI6WyJsaWIvY29uZmlnLW9wdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBT0EsTUFBTSxDQUFDLHVCQUFNLGNBQWMsR0FBRztJQUM1QixvQkFBb0IsRUFBRSxtQkFBbUI7SUFDekMsYUFBYSxFQUFFLElBQUk7SUFDbkIsU0FBUyxFQUFFLEtBQUs7SUFDaEIsZUFBZSxFQUFFLFVBQVU7SUFDM0IsZ0JBQWdCLEVBQUUsY0FBYztDQUNqQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBBbmd1bGFyUGltZ09wdGlvbnMge1xuICBwbGFjZWhvbGRlckNsYXNzTmFtZTogc3RyaW5nO1xuICBjbGFzc05hbWU6IHN0cmluZztcbiAgZmV0Y2hPbkRlbWFuZDogYm9vbGVhbjtcbiAgZGF0YVNhdmVyOiBmYWxzZSB8IHsgd3JhcHBlckNsYXNzTmFtZTogc3RyaW5nLCBidXR0b25DbGFzc05hbWU6IHN0cmluZyB9O1xufVxuXG5leHBvcnQgY29uc3QgZGVmYXVsdE9wdGlvbnMgPSB7XG4gIHBsYWNlaG9sZGVyQ2xhc3NOYW1lOiAncGltZ19fcGxhY2Vob2xkZXInLFxuICBmZXRjaE9uRGVtYW5kOiB0cnV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LFxuICB3cmFwcGVyQ2xhc3NOYW1lOiAncGltZ193cmFwcGVyJyxcbn07XG4iXX0=

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

_this.isIntersecting = true;
console.log('Called by intersection API');
_this.delayed = false;

@@ -57,3 +56,2 @@ observer.disconnect();

.then(function (res) {
console.log(res);
_this.blob = _this.domSanitizer.bypassSecurityTrustUrl(URL.createObjectURL(res));

@@ -82,3 +80,2 @@ _this.loading = false;

if (props.findIndex(function (val) { return val === prop; }) > 0 && !this_1.isUndefined(changes[prop].currentValue)) {
console.log(prop + " is not undefined. It has changed");
this_1[prop] = changes[prop].currentValue;

@@ -114,3 +111,2 @@ }

// Called on initialization; Set the default configuration options if option is not present
console.log('Config options', this.options);
if (this.isUndefined(this.fetchOnDemand)) {

@@ -128,4 +124,6 @@ this.fetchOnDemand = this.options.fetchOnDemand;

}
console.log('datasaver', this.dataSaver, this.options.dataSaver);
if (this.isObject(this.dataSaver)) {
// set buttonClassName and wrapperClassName
this.dataSaver = true;
this.buttonClassName = this.dataSaver.buttonClassName;

@@ -155,3 +153,2 @@ this.wrapperClassName = this.dataSaver.wrapperClassName;

this.fetchImage();
console.log('Fetching image, due to config', this.dataSaver);
}

@@ -245,2 +242,2 @@ if (this.src && this.src.includes('cloudinary')) {

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1waW1nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItcGltZy8iLCJzb3VyY2VzIjpbImxpYi9hbmd1bGFyLXBpbWcuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUE0QixVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDN0csT0FBTyxFQUFFLFlBQVksRUFBVyxNQUFNLDJCQUEyQixDQU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tcbiAgICAgIHRoaXMubG9hZGluZyA9IHRydWU7XG4gICAgICB0aGlzLnNldEZldGNoT25EZW1hbmQoKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5mZXRjaEltYWdlKCk7XG4gICAgfVxuICAgIGlmICh0aGlzLnNyYyAmJiB0aGlzLnNyYy5pbmNsdWRlcygnY2xvdWRpbmFyeScpKSB7XG4gICAgICB0aGlzLnBsYWNlaG9sZGVyID1cbiAgICAgICAgdGhpcy5wbGFjZWhvbGRlciB8fCB0aGlzLnNyYy5yZXBsYWNlKCcvdXBsb2FkLycsICcvdXBsb2FkL2NfdGh1bWIsd18zMC8nKTtcbiAgICB9XG4gICAgdGhpcy5jbGFzc2VzID0gYCR7dGhpcy5jbGFzc05hbWV9ICR7dGhpcy5wbGFjZWhvbGRlckNsYXNzTmFtZX1gO1xuICB9XG5cbiAgaXNPYmplY3QgPSB4ID0+IHR5cGVvZiB4ID09PSAnb2JqZWN0JztcbiAgaXNVbmRlZmluZWQgPSB4ID0+IHR5cGVvZiB4ID09PSAndW5kZWZpbmVkJztcblxufVxuIl19

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

var className = _a.className, dataSaver = _a.dataSaver, fetchOnDemand = _a.fetchOnDemand, placeholderClassName = _a.placeholderClassName;
console.log('setting config');
this._className = typeof className !== 'undefined' ? className : this.className;

@@ -98,5 +99,3 @@ this._fetchOnDemand = typeof fetchOnDemand !== 'undefined' ? fetchOnDemand : this.fetchOnDemand;

}
else {
this._dataSaver = true; // dataSaver is true
}
this._dataSaver = true; // dataSaver is true
};

@@ -138,2 +137,2 @@ AngularPimgService.decorators = [

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1waW1nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyLXBpbWcvIiwic291cmNlcyI6WyJsaWIvYW5ndWxhci1waW1nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBw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NzTmFtZSA9IHR5cGVvZiBwbGFjZWhvbGRlckNsYXNzTmFtZSAhPT0gJ3VuZGVmaW5lZCcgPyBwbGFjZWhvbGRlckNsYXNzTmFtZSA6IHRoaXMucGxhY2Vob2xkZXJDbGFzc05hbWU7XG4gICAgaWYgKHR5cGVvZiBkYXRhU2F2ZXIgPT09ICd1bmRlZmluZWQnKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIGlmICh0eXBlb2YgZGF0YVNhdmVyID09PSAnb2JqZWN0Jykge1xuICAgICAgdGhpcy5fYnV0dG9uQ2xhc3NOYW1lID0gZGF0YVNhdmVyLmJ1dHRvbkNsYXNzTmFtZTtcbiAgICAgIHRoaXMuX3dyYXBwZXJDbGFzc05hbWUgPSBkYXRhU2F2ZXIud3JhcHBlckNsYXNzTmFtZTtcbiAgICB9XG4gICAgdGhpcy5fZGF0YVNhdmVyID0gdHJ1ZTsgLy8gZGF0YVNhdmVyIGlzIHRydWVcbiAgfVxuXG59XG4iXX0=

@@ -21,3 +21,3 @@ /**

placeholderClassName: 'pimg__placeholder',
fetchOnDemand: true,
fetchOnDemand: false,
dataSaver: false,

@@ -28,2 +28,2 @@ buttonClassName: 'pimg_btn',

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLW9wdGlvbnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyLXBpbWcvIiwic291cmNlcyI6WyJsaWIvY29uZmlnLW9wdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBT0EsTUFBTSxDQUFDLHFCQUFNLGNBQWMsR0FBRztJQUM1QixvQkFBb0IsRUFBRSxtQkFBbUI7SUFDekMsYUFBYSxFQUFFLElBQUk7SUFDbkIsU0FBUyxFQUFFLEtBQUs7SUFDaEIsZUFBZSxFQUFFLFVBQVU7SUFDM0IsZ0JBQWdCLEVBQUUsY0FB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GltZ09wdGlvbnMge1xuICBwbGFjZWhvbGRlckNsYXNzTmFtZTogc3RyaW5nO1xuICBjbGFzc05hbWU6IHN0cmluZztcbiAgZmV0Y2hPbkRlbWFuZDogYm9vbGVhbjtcbiAgZGF0YVNhdmVyOiBmYWxzZSB8IHsgd3JhcHBlckNsYXNzTmFtZTogc3RyaW5nLCBidXR0b25DbGFzc05hbWU6IHN0cmluZyB9O1xufVxuXG5leHBvcnQgY29uc3QgZGVmYXVsdE9wdGlvbnMgPSB7XG4gIHBsYWNlaG9sZGVyQ2xhc3NOYW1lOiAncGltZ19fcGxhY2Vob2xkZXInLFxuICBmZXRjaE9uRGVtYW5kOiBmYWxzZSxcbiAgZGF0YVNhdmVyOiBmYWxzZSxcbiAgYnV0dG9uQ2xhc3NOYW1lOiAncGltZ19idG4nLFxuICB3cmFwcGVyQ2xhc3NOYW1lOiAncGltZ193cmFwcGVyJyxcbn07XG4iXX0=

@@ -63,2 +63,3 @@ import { Injectable, Optional, Inject, NgModule, SkipSelf, Component, Input, Output, EventEmitter, ElementRef, defineInjectable, inject } from '@angular/core';

setConfig({ className, dataSaver, fetchOnDemand, placeholderClassName }) {
console.log('setting config');
this._className = typeof className !== 'undefined' ? className : this.className;

@@ -74,5 +75,3 @@ this._fetchOnDemand = typeof fetchOnDemand !== 'undefined' ? fetchOnDemand : this.fetchOnDemand;

}
else {
this._dataSaver = true; // dataSaver is true
}
this._dataSaver = true; // dataSaver is true
}

@@ -126,3 +125,2 @@ }

this.isIntersecting = true;
console.log('Called by intersection API');
this.delayed = false;

@@ -141,3 +139,2 @@ observer.disconnect();

.then(res => {
console.log(res);
this.blob = this.domSanitizer.bypassSecurityTrustUrl(URL.createObjectURL(res));

@@ -161,3 +158,2 @@ this.loading = false;

if (props.findIndex(val => val === prop) > 0 && !this.isUndefined(changes[prop].currentValue)) {
console.log(`${prop} is not undefined. It has changed`);
this[prop] = changes[prop].currentValue;

@@ -186,3 +182,2 @@ }

// Called on initialization; Set the default configuration options if option is not present
console.log('Config options', this.options);
if (this.isUndefined(this.fetchOnDemand)) {

@@ -200,4 +195,6 @@ this.fetchOnDemand = this.options.fetchOnDemand;

}
console.log('datasaver', this.dataSaver, this.options.dataSaver);
if (this.isObject(this.dataSaver)) {
// set buttonClassName and wrapperClassName
this.dataSaver = true;
this.buttonClassName = this.dataSaver.buttonClassName;

@@ -224,3 +221,2 @@ this.wrapperClassName = this.dataSaver.wrapperClassName;

this.fetchImage();
console.log('Fetching image, due to config', this.dataSaver);
}

@@ -323,2 +319,2 @@ if (this.src && this.src.includes('cloudinary')) {

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1waW1nLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9hbmd1bGFyLXBpbWcvbGliL2FuZ3VsYXItcGltZy5zZXJ2aWNlLnRzIiwibmc6Ly9hbmd1bGFyLXBpbWcvbGliL2FuZ3VsYXItcGltZy5jb21wb25lbnQudHMiLCJuZzovL2FuZ3VsYXItcGltZy9saWIvYW5ndWxhci1waW1nLm1vZHVsZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlLCBPcHRpb25hbCwgSW5qZWN0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBBbmd1bGFyUGltZ09wdGlvbnMgfSBmcm9tICcuL2NvbmZpZy1vcHRpb25zJztcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgQW5ndWxhclBpbWdTZXJ2aWNlIHtcbiAgcHJpdmF0ZSBfY2xhc3NOYW1lOiBzdHJpbmc7XG4gIHByaXZhdGUgX3BsYWNlaG9sZGVyQ2xhc3NOYW1lID0gJ3BpbWdfX3BsYWNlaG9sZGVyJztcbiAgcHJpdmF0ZSBfZmV0Y2hPbkRlbWFuZCA9IGZhbHNlO1xuICBwcml2YXR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NMLEtBQUs7d0JBQ0wsTUFBTTtzQkFDTixNQUFNOzs7Ozs7O0FDOUJUOzs7O0lBY0UsWUFBb0M7UUFDbEMsSUFBSSxZQUFZLEVBQUU7WUFDaEIsTUFBTSxJQUFJLEtBQUssQ0FBQyw2RUFBNkUsQ0FBQyxDQUFDO1NBQ2hHO0tBQ0Y7Ozs7O0lBQ0QsT0FBTyxPQUFPLENBQUMsT0FBcUM7UUFDbEQsT0FBTztZQUNMLFFBQVEsRUFBRSxpQkFBaUI7WUFDM0IsU0FBUyxFQUFFO2dCQUNULGtCQUFrQjtnQkFDbEIsRUFBRSxPQUFPLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRSxPQUFPLEVBQUU7YUFDMUM7U0FDRixDQUFDO0tBQ0g7OztZQXJCRixRQUFRLFNBQUM7Z0JBQ1IsT0FBTyxFQUFFO29CQUNQLFlBQVk7aUJBQ2I7Z0JBQ0QsWUFBWSxFQUFFLENBQUMsb0JBQW9CLENBQUM7Z0JBQ3BDLE9BQU8sRUFBRSxDQUFDLG9CQUFvQixDQUFDO2FBQ2hDOzs7O1lBQ1ksaUJBQWlCLHVCQUNmLFFBQVEsWUFBSSxRQUFROzs7Ozs7Ozs7Ozs7Ozs7In0=

@@ -89,2 +89,3 @@ import { Injectable, Optional, Inject, NgModule, SkipSelf, Component, Input, Output, EventEmitter, ElementRef, defineInjectable, inject } from '@angular/core';

var className = _a.className, dataSaver = _a.dataSaver, fetchOnDemand = _a.fetchOnDemand, placeholderClassName = _a.placeholderClassName;
console.log('setting config');
this._className = typeof className !== 'undefined' ? className : this.className;

@@ -100,5 +101,3 @@ this._fetchOnDemand = typeof fetchOnDemand !== 'undefined' ? fetchOnDemand : this.fetchOnDemand;

}
else {
this._dataSaver = true; // dataSaver is true
}
this._dataSaver = true; // dataSaver is true
};

@@ -152,3 +151,2 @@ AngularPimgService.decorators = [

_this.isIntersecting = true;
console.log('Called by intersection API');
_this.delayed = false;

@@ -171,3 +169,2 @@ observer.disconnect();

.then(function (res) {
console.log(res);
_this.blob = _this.domSanitizer.bypassSecurityTrustUrl(URL.createObjectURL(res));

@@ -195,3 +192,2 @@ _this.loading = false;

if (props.findIndex(function (val) { return val === prop; }) > 0 && !this_1.isUndefined(changes[prop].currentValue)) {
console.log(prop + " is not undefined. It has changed");
this_1[prop] = changes[prop].currentValue;

@@ -227,3 +223,2 @@ }

// Called on initialization; Set the default configuration options if option is not present
console.log('Config options', this.options);
if (this.isUndefined(this.fetchOnDemand)) {

@@ -241,4 +236,6 @@ this.fetchOnDemand = this.options.fetchOnDemand;

}
console.log('datasaver', this.dataSaver, this.options.dataSaver);
if (this.isObject(this.dataSaver)) {
// set buttonClassName and wrapperClassName
this.dataSaver = true;
this.buttonClassName = this.dataSaver.buttonClassName;

@@ -268,3 +265,2 @@ this.wrapperClassName = this.dataSaver.wrapperClassName;

this.fetchImage();
console.log('Fetching image, due to config', this.dataSaver);
}

@@ -359,2 +355,2 @@ if (this.src && this.src.includes('cloudinary')) {

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1waW1nLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9hbmd1bGFyLXBpbWcvbGliL2FuZ3VsYXItcGltZy5zZXJ2aWNlLnRzIiwibmc6Ly9hbmd1bGFyLXBpbWcvbGliL2FuZ3VsYXItcGltZy5jb21wb25lbnQudHMiLCJuZzovL2FuZ3VsYXItcGltZy9saWIvYW5ndWxhci1waW1nLm1vZHVsZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlLCBPcHRpb25hbCwgSW5qZWN0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBBbmd1bGFyUGltZ09wdGlvbnMgfSBmcm9tICcuL2NvbmZpZy1vcHRpb25zJztcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHB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BQUMsNkVBQTZFLENBQUMsQ0FBQztTQUNoRztLQUNGOzs7OztJQUNNLHlCQUFPOzs7O0lBQWQsVUFBZSxPQUFxQztRQUNsRCxPQUFPO1lBQ0wsUUFBUSxFQUFFLGlCQUFpQjtZQUMzQixTQUFTLEVBQUU7Z0JBQ1Qsa0JBQWtCO2dCQUNsQixFQUFFLE9BQU8sRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE9BQU8sRUFBRTthQUMxQztTQUNGLENBQUM7S0FDSDs7Z0JBckJGLFFBQVEsU0FBQztvQkFDUixPQUFPLEVBQUU7d0JBQ1AsWUFBWTtxQkFDYjtvQkFDRCxZQUFZLEVBQUUsQ0FBQyxvQkFBb0IsQ0FBQztvQkFDcEMsT0FBTyxFQUFFLENBQUMsb0JBQW9CLENBQUM7aUJBQ2hDOzs7O2dCQUNZLGlCQUFpQix1QkFDZixRQUFRLFlBQUksUUFBUTs7NEJBZG5DOzs7Ozs7Ozs7Ozs7Ozs7In0=
{
"name": "angular-pimg",
"version": "0.0.3",
"version": "0.0.4",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^6.0.0-rc.0 || ^6.0.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