Socket
Socket
Sign inDemoInstall

happy-dom

Package Overview
Dependencies
3
Maintainers
1
Versions
558
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 13.7.6 to 13.7.7

6

cjs/nodes/html-image-element/HTMLImageElement.d.ts

@@ -43,2 +43,8 @@ import HTMLElement from '../html-element/HTMLElement.cjs';

/**
* Sets loading.
*
* @param loading Loading.
*/
set loading(loading: string);
/**
* Returns x.

@@ -45,0 +51,0 @@ */

@@ -43,2 +43,8 @@ import HTMLElement from '../html-element/HTMLElement.js';

/**
* Sets loading.
*
* @param loading Loading.
*/
set loading(loading: string);
/**
* Returns x.

@@ -45,0 +51,0 @@ */

11

lib/nodes/html-image-element/HTMLImageElement.js

@@ -51,5 +51,14 @@ var _a, _b, _c, _d, _e, _f, _g;

get loading() {
return this[PropertySymbol.loading];
const loading = this.getAttribute('loading');
return loading === 'eager' || loading === 'lazy' ? loading : 'auto';
}
/**
* Sets loading.
*
* @param loading Loading.
*/
set loading(loading) {
this.setAttribute('loading', loading);
}
/**
* Returns x.

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

2

lib/version.js

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

export default { version: '13.7.6' };
export default { version: '13.7.7' };
{
"name": "happy-dom",
"version": "13.7.6",
"version": "13.7.7",
"license": "MIT",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/capricorn86/happy-dom",

@@ -53,6 +53,16 @@ import HTMLElement from '../html-element/HTMLElement.js';

public get loading(): string {
return this[PropertySymbol.loading];
const loading = this.getAttribute('loading');
return loading === 'eager' || loading === 'lazy' ? loading : 'auto';
}
/**
* Sets loading.
*
* @param loading Loading.
*/
public set loading(loading: string) {
this.setAttribute('loading', loading);
}
/**
* Returns x.

@@ -59,0 +69,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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc