Skip to content

Commit

Permalink
Update libs
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed May 18, 2024
1 parent bb9981a commit ba157d8
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 32 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,35 @@
},
"type": "module",
"dependencies": {
"commander": "^12.0.0",
"dompurify": "^3.1.0",
"commander": "^12.1.0",
"dompurify": "^3.1.3",
"url-sanitizer": "^2.0.0",
"webext-schema": "^5.3.0",
"webextension-polyfill": "^0.11.0"
"webext-schema": "^5.3.2",
"webextension-polyfill": "^0.12.0"
},
"devDependencies": {
"addons-linter": "^6.25.0",
"@asamuzakjp/dom-selector": "^4.3.0",
"addons-linter": "^6.27.0",
"c8": "^9.1.0",
"chai": "^5.1.0",
"chai": "^5.1.1",
"copyfiles": "^2.4.1",
"esbuild": "^0.20.2",
"esbuild": "^0.21.3",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.3",
"eslint-plugin-jsdoc": "^48.2.5",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-regexp": "^2.5.0",
"eslint-plugin-unicorn": "^52.0.0",
"html-validate": "^8.18.1",
"eslint-plugin-unicorn": "^53.0.0",
"html-validate": "^8.18.2",
"jsdom": "^24.0.0",
"mocha": "^10.4.0",
"npm-run-all": "^4.1.5",
"selery": "^0.0.10",
"sinon": "^17.0.1",
"stylelint": "^16.3.1",
"sinon": "^18.0.0",
"stylelint": "^16.5.0",
"stylelint-config-standard": "^36.0.0",
"typescript": "^5.4.5",
"undici": "^6.13.0"
"undici": "^6.17.0"
},
"scripts": {
"bundle": "npm-run-all -s bundle-*",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/mozilla/browser-polyfill.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lib/mozilla/browser-polyfill.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/lib/mozilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
"url": "git+https://github.com/mozilla/webextension-polyfill.git"
},
"type": "commonjs",
"version": "0.11.0",
"version": "0.12.0",
"origins": [
{
"file": "LICENSE",
"cdn": "https://unpkg.com/webextension-polyfill@0.11.0/LICENSE"
"cdn": "https://unpkg.com/webextension-polyfill@0.12.0/LICENSE"
},
{
"file": "browser-polyfill.min.js",
"cdn": "https://unpkg.com/webextension-polyfill@0.11.0/dist/browser-polyfill.min.js"
"cdn": "https://unpkg.com/webextension-polyfill@0.12.0/dist/browser-polyfill.min.js"
},
{
"file": "browser-polyfill.min.js.map",
"cdn": "https://unpkg.com/webextension-polyfill@0.11.0/dist/browser-polyfill.min.js.map"
"cdn": "https://unpkg.com/webextension-polyfill@0.12.0/dist/browser-polyfill.min.js.map"
}
]
}
14 changes: 7 additions & 7 deletions src/lib/purify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
"type": "git",
"url": "git://github.com/cure53/DOMPurify.git"
},
"version": "3.1.0",
"version": "3.1.3",
"origins": [
{
"file": "LICENSE",
"raw": "https://raw.githubusercontent.com/cure53/DOMPurify/3.1.0/LICENSE",
"cdn": "https://unpkg.com/[email protected].0/LICENSE"
"raw": "https://raw.githubusercontent.com/cure53/DOMPurify/3.1.3/LICENSE",
"cdn": "https://unpkg.com/[email protected].3/LICENSE"
},
{
"file": "purify.min.js",
"raw": "https://raw.githubusercontent.com/cure53/DOMPurify/3.1.0/dist/purify.min.js",
"cdn": "https://unpkg.com/[email protected].0/dist/purify.min.js"
"raw": "https://raw.githubusercontent.com/cure53/DOMPurify/3.1.3/dist/purify.min.js",
"cdn": "https://unpkg.com/[email protected].3/dist/purify.min.js"
},
{
"file": "purify.min.js.map",
"raw": "https://raw.githubusercontent.com/cure53/DOMPurify/3.1.0/dist/purify.min.js.map",
"cdn": "https://unpkg.com/[email protected].0/dist/purify.min.js.map"
"raw": "https://raw.githubusercontent.com/cure53/DOMPurify/3.1.3/dist/purify.min.js.map",
"cdn": "https://unpkg.com/[email protected].3/dist/purify.min.js.map"
}
]
}
4 changes: 2 additions & 2 deletions src/lib/purify/purify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/lib/purify/purify.min.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions test/dom-util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
*/

/* api */
import selery from 'selery';
import { DOMSelector } from '@asamuzakjp/dom-selector';
//import selery from 'selery';
import sinon from 'sinon';
import { assert } from 'chai';
import { afterEach, beforeEach, describe, it } from 'mocha';
Expand Down Expand Up @@ -41,9 +42,11 @@ describe('dom util', () => {
beforeEach(() => {
const dom = createJsdom();
window = dom && dom.window;
const domSelector = new DOMSelector(window);
const closest = domSelector.closest.bind(domSelector);
// Overwrite Element.closest()
window.Element.prototype.closest = function (sel) {
return selery.closest(this, sel);
return closest(sel, this);
};
document = window && window.document;
if (typeof document.queryCommandValue !== 'function') {
Expand Down

0 comments on commit ba157d8

Please sign in to comment.