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

@wordpress/dom

Package Overview
Dependencies
Maintainers
21
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/dom - npm Package Compare versions

Comparing version 2.13.1 to 2.13.2

build-module/safe-html.js

1

build-module/index.js

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

export * from './dom';
export { default as safeHTML } from './safe-html';
//# sourceMappingURL=index.js.map
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

@@ -9,4 +11,11 @@

var _exportNames = {
focus: true
focus: true,
safeHTML: true
};
Object.defineProperty(exports, "safeHTML", {
enumerable: true,
get: function get() {
return _safeHtml.default;
}
});
exports.focus = void 0;

@@ -31,2 +40,4 @@

var _safeHtml = _interopRequireDefault(require("./safe-html"));
/**

@@ -33,0 +44,0 @@ * Internal dependencies

4

package.json
{
"name": "@wordpress/dom",
"version": "2.13.1",
"version": "2.13.2",
"description": "DOM utilities module for WordPress.",

@@ -33,3 +33,3 @@ "author": "The WordPress Contributors",

},
"gitHead": "862bb53a4af8aa5852a22445b5d12591d5500e52"
"gitHead": "a04c5a93fd1120308e407d9d3d95a5bb71855a19"
}

@@ -242,2 +242,14 @@ # DOM

<a name="safeHTML" href="#safeHTML">#</a> **safeHTML**
Strips scripts and on\* attributes from HTML.
_Parameters_
- _html_ `string`: HTML to sanitize.
_Returns_
- `string`: The sanitized HTML.
<a name="unwrap" href="#unwrap">#</a> **unwrap**

@@ -244,0 +256,0 @@

@@ -14,1 +14,2 @@ /**

export * from './dom';
export { default as safeHTML } from './safe-html';

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