Socket
Socket
Sign inDemoInstall

@webharmony/web-lazy-img

Package Overview
Dependencies
3
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.3 to 1.2.5

16

gulpfile.js
const gulp = require('gulp');
const uglify = require('gulp-uglify-es').default;
const spawn = require('child_process').spawn;
const rollup = require('rollup');
const rollupTypescript = require('rollup-plugin-typescript');
const ts = require('gulp-typescript');
const project = ts.createProject("tsconfig.json");
gulp.task('serve', () => {

@@ -30,2 +35,11 @@ const spawnOptions = {

})
})
gulp.task('default', ()=>{
return project.src()
.pipe(project())
.pipe(uglify({
}))
.pipe(gulp.dest("lib"))
});

@@ -41,2 +41,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

display:block;
max-width:100%;
max-height: 100%;
}

@@ -67,2 +69,4 @@

}
this.style.width = this.width;
this.style.height = this.height;
}

@@ -69,0 +73,0 @@ render() {

7

package.json
{
"name": "@webharmony/web-lazy-img",
"version": "1.2.3",
"version": "1.2.5",
"description": "Custom element for handle lazy load images with placeholder img and blur effect",

@@ -11,3 +11,3 @@ "main": "lib/web-lazy-img.js",

"tsc:watch": "tsc --watch",
"serve": "gulp serve",
"start": "gulp serve",
"test": "echo \"Error: no test specified\" && exit 1",

@@ -32,2 +32,5 @@ "lint": "tslint --project ./",

"gulp": "^4.0.0",
"gulp-typescript": "^5.0.1",
"gulp-uglify": "^3.0.2",
"gulp-uglify-es": "^1.0.4",
"gulpclass": "^0.2.0",

@@ -34,0 +37,0 @@ "rollup": "^1.10.0",

@@ -37,2 +37,4 @@ import { css, customElement, html, LitElement, property } from 'lit-element';

display:block;
max-width:100%;
max-height: 100%;
}

@@ -64,2 +66,4 @@

}
this.style.width = this.width;
this.style.height = this.height;
}

@@ -66,0 +70,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc