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
192
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 3.1.2 to 3.1.4

build-module/dom/safe-html.js

1

build-module/dom/index.js

@@ -25,2 +25,3 @@ export { default as computeCaretRect } from './compute-caret-rect';

export { default as isRTL } from './is-rtl';
export { default as safeHTML } from './safe-html';
//# sourceMappingURL=index.js.map

@@ -25,2 +25,3 @@ export { default as computeCaretRect } from "./compute-caret-rect";

export { default as isRTL } from "./is-rtl";
export { default as safeHTML } from "./safe-html";
//# sourceMappingURL=index.d.ts.map

@@ -152,2 +152,8 @@ "use strict";

});
Object.defineProperty(exports, "safeHTML", {
enumerable: true,
get: function () {
return _safeHtml.default;
}
});

@@ -201,2 +207,4 @@ var _computeCaretRect = _interopRequireDefault(require("./compute-caret-rect"));

var _isRtl = _interopRequireDefault(require("./is-rtl"));
var _safeHtml = _interopRequireDefault(require("./safe-html"));
//# sourceMappingURL=index.js.map

4

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

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

},
"gitHead": "a39d5605fcea63a9e02a9ae9d3f3d4f1685df14e"
"gitHead": "42a6dbdbf9c981e71ea4752c94e5642d6f6cac1d"
}

@@ -351,2 +351,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**

@@ -353,0 +365,0 @@

@@ -25,1 +25,2 @@ export { default as computeCaretRect } from './compute-caret-rect';

export { default as isRTL } from './is-rtl';
export { default as safeHTML } from './safe-html';

@@ -12,5 +12,4 @@ /**

export const focus = { focusable, tabbable };
export * from './dom';
export * from './phrasing-content';
export * from './data-transfer';

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc