Skip to content

Commit

Permalink
handle v1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed May 15, 2023
1 parent 1b1af6d commit c211874
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scriptlets/trusted-click-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
/* eslint-disable max-len */
/**
* @trustedScriptlet trusted-click-element
*
* @description
* Clicks selected elements in a strict sequence, ordered by selectors passed, and waiting for them to render in the DOM first.
* Deactivates after all elements have been clicked or by 10s timeout.
Expand Down Expand Up @@ -72,6 +73,8 @@ import {
* ```
* example.com#%#//scriptlet('trusted-click-element', 'button[name="agree"]', '!cookie:cmpconsent, !localStorage:promo')
* ```
*
* @added v1.7.3.
*/
/* eslint-enable max-len */
export function trustedClickElement(source, selectors, extraMatch = '', delay = NaN) {
Expand Down
3 changes: 3 additions & 0 deletions src/scriptlets/trusted-replace-fetch-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
/* eslint-disable max-len */
/**
* @trustedScriptlet trusted-replace-fetch-response
*
* @description
* Replaces response text content of `fetch` requests if **all** given parameters match.
*
Expand Down Expand Up @@ -73,6 +74,8 @@ import {
* ```
* example.org#%#//scriptlet('trusted-replace-fetch-response', '*', '', 'example.com')
* ```
*
* @added v1.7.3.
*/
/* eslint-enable max-len */
export function trustedReplaceFetchResponse(source, pattern = '', replacement = '', propsToMatch = '') {
Expand Down
3 changes: 3 additions & 0 deletions src/scriptlets/trusted-replace-xhr-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
/* eslint-disable max-len */
/**
* @trustedScriptlet trusted-replace-xhr-response
*
* @description
* Replaces response content of `xhr` requests if **all** given parameters match.
*
Expand Down Expand Up @@ -68,6 +69,8 @@ import {
* ```
* example.org#%#//scriptlet('trusted-replace-xhr-response', '*', '', 'example.com')
* ```
*
* @added v1.7.3.
*/
/* eslint-enable max-len */
export function trustedReplaceXhrResponse(source, pattern = '', replacement = '', propsToMatch = '') {
Expand Down
3 changes: 3 additions & 0 deletions src/scriptlets/trusted-set-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
/* eslint-disable max-len */
/**
* @trustedScriptlet trusted-set-cookie
*
* @description
* Sets a cookie with arbitrary name and value,
* and with optional ability to offset cookie attribute 'expires' and set path.
Expand Down Expand Up @@ -65,6 +66,8 @@ import {
* ```
* example.org#%#//scriptlet('trusted-set-cookie', 'cmpconsent', 'decline', '', 'none')
* ```
*
* @added v1.7.3.
*/
/* eslint-enable max-len */

Expand Down
3 changes: 3 additions & 0 deletions src/scriptlets/trusted-set-local-storage-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
/* eslint-disable max-len */
/**
* @trustedScriptlet trusted-set-local-storage-item
*
* @description
* Adds item with arbitrary key and value to localStorage object, or updates the value of the key if it already exists.
* Scriptlet won't set item if storage is full.
Expand Down Expand Up @@ -50,6 +51,8 @@ import {
* ```
* example.org#%#//scriptlet('trusted-set-local-storage-item', 'ppu_main_none', '')
* ```
*
* @added v1.7.3.
*/
/* eslint-enable max-len */

Expand Down

0 comments on commit c211874

Please sign in to comment.