@wordpress/dom-ready
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -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(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3552
7
71
0