@wordpress/token-list
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -35,4 +35,4 @@ import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
return (_this$_valueAsArray = this._valueAsArray)[fn].apply(_this$_valueAsArray, arguments); | ||
}.bind(_this); | ||
return (_this$_valueAsArray = _this._valueAsArray)[fn].apply(_this$_valueAsArray, arguments); | ||
}; | ||
}); | ||
@@ -99,3 +99,3 @@ } | ||
* | ||
* @return {?string} Token at index. | ||
* @return {string|undefined} Token at index. | ||
*/ | ||
@@ -165,4 +165,4 @@ | ||
* | ||
* @param {string} token Token to toggle. | ||
* @param {?boolean} force Presence to force. | ||
* @param {string} token Token to toggle. | ||
* @param {boolean} [force] Presence to force. | ||
* | ||
@@ -169,0 +169,0 @@ * @return {boolean} Whether token is present after toggle. |
@@ -45,4 +45,4 @@ "use strict"; | ||
return (_this$_valueAsArray = this._valueAsArray)[fn].apply(_this$_valueAsArray, arguments); | ||
}.bind(_this); | ||
return (_this$_valueAsArray = _this._valueAsArray)[fn].apply(_this$_valueAsArray, arguments); | ||
}; | ||
}); | ||
@@ -109,3 +109,3 @@ } | ||
* | ||
* @return {?string} Token at index. | ||
* @return {string|undefined} Token at index. | ||
*/ | ||
@@ -175,4 +175,4 @@ | ||
* | ||
* @param {string} token Token to toggle. | ||
* @param {?boolean} force Presence to force. | ||
* @param {string} token Token to toggle. | ||
* @param {boolean} [force] Presence to force. | ||
* | ||
@@ -179,0 +179,0 @@ * @return {boolean} Whether token is present after toggle. |
{ | ||
"name": "@wordpress/token-list", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "Constructable, plain JavaScript DOMTokenList implementation, supporting non-browser runtimes.", | ||
@@ -29,3 +29,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "52bfe7deb90fe2b6df7f1a0a92f89cc69462a491" | ||
"gitHead": "cc8b3fde75738a15c6152d18458eb5078a620cbe" | ||
} |
@@ -21,5 +21,3 @@ /** | ||
[ 'entries', 'forEach', 'keys', 'values' ].forEach( ( fn ) => { | ||
this[ fn ] = ( function() { | ||
return this._valueAsArray[ fn ]( ...arguments ); | ||
} ).bind( this ); | ||
this[ fn ] = ( ...args ) => this._valueAsArray[ fn ]( ...args ); | ||
} ); | ||
@@ -93,3 +91,3 @@ } | ||
* | ||
* @return {?string} Token at index. | ||
* @return {string|undefined} Token at index. | ||
*/ | ||
@@ -143,4 +141,4 @@ item( index ) { | ||
* | ||
* @param {string} token Token to toggle. | ||
* @param {?boolean} force Presence to force. | ||
* @param {string} token Token to toggle. | ||
* @param {boolean} [force] Presence to force. | ||
* | ||
@@ -147,0 +145,0 @@ * @return {boolean} Whether token is present after toggle. |
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
62933
860