@wordpress/html-entities
Advanced tools
Comparing version 2.6.0 to 2.7.0
@@ -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 @@ |
{ | ||
"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
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
218894
14
212
Updated@babel/runtime@^7.9.2