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

@wordpress/html-entities

Package Overview
Dependencies
Maintainers
14
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/html-entities - npm Package Compare versions

Comparing version 2.6.0 to 2.7.0

build-types/index.d.ts

24

build-module/index.js

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

/** @type {HTMLTextAreaElement} */
var _decodeTextArea;

@@ -35,4 +36,25 @@ /**

_decodeTextArea.innerHTML = '';
return decoded;
/**
* Cast to string, HTMLTextAreaElement should always have `string` textContent.
*
* > The `textContent` property of the `Node` interface represents the text content of the
* > node and its descendants.
* >
* > Value: A string or `null`
* >
* > * If the node is a `document` or a Doctype, `textContent` returns `null`.
* > * If the node is a CDATA section, comment, processing instruction, or text node,
* > textContent returns the text inside the node, i.e., the `Node.nodeValue`.
* > * For other node types, `textContent returns the concatenation of the textContent of
* > every child node, excluding comments and processing instructions. (This is an empty
* > string if the node has no children.)
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
*/
return (
/** @type {string} */
decoded
);
}
//# sourceMappingURL=index.js.map

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

/** @type {HTMLTextAreaElement} */
var _decodeTextArea;

@@ -43,4 +44,25 @@ /**

_decodeTextArea.innerHTML = '';
return decoded;
/**
* Cast to string, HTMLTextAreaElement should always have `string` textContent.
*
* > The `textContent` property of the `Node` interface represents the text content of the
* > node and its descendants.
* >
* > Value: A string or `null`
* >
* > * If the node is a `document` or a Doctype, `textContent` returns `null`.
* > * If the node is a CDATA section, comment, processing instruction, or text node,
* > textContent returns the text inside the node, i.e., the `Node.nodeValue`.
* > * For other node types, `textContent returns the concatenation of the textContent of
* > every child node, excluding comments and processing instructions. (This is an empty
* > string if the node has no children.)
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
*/
return (
/** @type {string} */
decoded
);
}
//# sourceMappingURL=index.js.map

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

## Master
## 2.7.0 (2020-04-15)
### New feature
- Include TypeScript type declarations ([#20669](https://github.com/WordPress/gutenberg/pull/20669))
## 2.0.2 (2018-12-12)

@@ -2,0 +10,0 @@

7

package.json
{
"name": "@wordpress/html-entities",
"version": "2.6.0",
"version": "2.7.0",
"description": "HTML entity utilities for WordPress.",

@@ -24,4 +24,5 @@ "author": "The WordPress Contributors",

"react-native": "src/index",
"types": "build-types",
"dependencies": {
"@babel/runtime": "^7.8.3"
"@babel/runtime": "^7.9.2"
},

@@ -31,3 +32,3 @@ "publishConfig": {

},
"gitHead": "41fc84af285da696c65c235331ee245dfe23971d"
"gitHead": "65dbf3a9503402ca3837090dc89d0207f7d96352"
}

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

/** @type {HTMLTextAreaElement} */
let _decodeTextArea;

@@ -39,3 +40,21 @@

_decodeTextArea.innerHTML = '';
return decoded;
/**
* Cast to string, HTMLTextAreaElement should always have `string` textContent.
*
* > The `textContent` property of the `Node` interface represents the text content of the
* > node and its descendants.
* >
* > Value: A string or `null`
* >
* > * If the node is a `document` or a Doctype, `textContent` returns `null`.
* > * If the node is a CDATA section, comment, processing instruction, or text node,
* > textContent returns the text inside the node, i.e., the `Node.nodeValue`.
* > * For other node types, `textContent returns the concatenation of the textContent of
* > every child node, excluding comments and processing instructions. (This is an empty
* > string if the node has no children.)
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
*/
return /** @type {string} */ ( decoded );
}

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