Socket
Socket
Sign inDemoInstall

@wordpress/dom-ready

Package Overview
Dependencies
Maintainers
6
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/dom-ready - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

CHANGELOG.md

2

build-module/index.js

@@ -6,3 +6,3 @@ /**

*
* @returns {void}
* @return {void}
*/

@@ -9,0 +9,0 @@ var domReady = function domReady(callback) {

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

'use strict';
"use strict";

@@ -6,2 +6,4 @@ Object.defineProperty(exports, "__esModule", {

});
exports.default = void 0;
/**

@@ -12,3 +14,3 @@ * Specify a function to execute when the DOM is fully loaded.

*
* @returns {void}
* @return {void}
*/

@@ -23,2 +25,3 @@ var domReady = function domReady(callback) {

exports.default = domReady;
var _default = domReady;
exports.default = _default;
{
"name": "@wordpress/dom-ready",
"version": "1.0.4",
"version": "1.1.0",
"description": "Execute callback after the DOM is loaded.",
"author": "WordPress",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"keywords": [
"wordpress",
"dom-ready"
],
"homepage": "https://github.com/WordPress/packages/tree/master/packages/dom-ready/README.md",
"homepage": "https://github.com/WordPress/gutenberg/tree/master/packages/dom-ready/README.md",
"repository": {
"type": "git",
"url": "https://github.com/WordPress/packages.git"
"url": "https://github.com/WordPress/gutenberg.git"
},
"bugs": {
"url": "https://github.com/WordPress/packages/issues"
"url": "https://github.com/WordPress/gutenberg/issues"
},

@@ -22,3 +23,4 @@ "main": "build/index.js",

"access": "public"
}
},
"gitHead": "8827c049ec802471f51a5cb906d9096ffc1b4e48"
}

@@ -6,3 +6,3 @@ /**

*
* @returns {void}
* @return {void}
*/

@@ -9,0 +9,0 @@ const domReady = function( callback ) {

@@ -6,3 +6,3 @@ import domReady from '../';

it( 'should call the callback.', () => {
let callback = jest.fn( () => {} );
const callback = jest.fn( () => {} );

@@ -16,3 +16,3 @@ domReady( callback );

it( 'should add the callback as an event listener to the DOMContentLoaded event.', () => {
let addEventListener = jest.fn( () => {} );
const addEventListener = jest.fn( () => {} );

@@ -26,3 +26,3 @@ Object.defineProperty( document, 'readyState', {

let callback = jest.fn( () => {} );
const callback = jest.fn( () => {} );
domReady( callback );

@@ -29,0 +29,0 @@ expect( callback ).not.toHaveBeenCalled();

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