Skip to content

Commit

Permalink
chore: ⬆️ Updates/Upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
tm1000 committed Jun 13, 2023
1 parent b2c49b5 commit bad006f
Show file tree
Hide file tree
Showing 8 changed files with 636 additions and 5,731 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
},
"prettier.prettierPath": "node_modules/prettier"
}
6,280 changes: 596 additions & 5,684 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webextension-toolbox/webpack-webextension-plugin",
"version": "3.0.0",
"version": "3.1.0",
"description": "Webpack plugin that compiles web-extension manifest.json files and adds smart auto reload",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -35,36 +35,36 @@
"test": "jest"
},
"dependencies": {
"@types/chrome": "^0.0.222",
"@types/chrome": "^0.0.237",

"@types/firefox-webext-browser": "^111.0.0",
"@types/firefox-webext-browser": "^111.0.1",
"ajv": "^6.12.6",
"mustache": "^4.2.0",
"webpack-sources": "^3.2.3",
"ws": "8.13.0"
},
"devDependencies": {
"@tsconfig/node14": "^1.0.3",
"@types/jest": "^29.4.0",
"@types/jest": "^29.5.2",
"@types/mustache": "^4.2.2",
"@types/webpack": "^5.28.0",
"@types/webpack": "^5.28.1",
"@types/webpack-sources": "^3.2.0",
"@types/ws": "^8.5.4",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"concurrently": "^7.6.0",
"eslint": "^8.36.0",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"concurrently": "^8.2.0",
"eslint": "^8.42.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.7.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"jest": "^29.5.0",
"prettier": "^2.8.4",
"ts-jest": "^29.0.5",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
"typescript-json-schema": "^0.55.0",
"webpack": "^5.76.1",
"webpack-cli": "^5.0.1"
"prettier": "^2.8.8",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"typescript": "^5.1.3",
"typescript-json-schema": "^0.57.0",
"webpack": "^5.86.0",
"webpack-cli": "^5.1.4"
},
"engines": {
"node": "^14.15.0 || >=16.0.0"
Expand Down
4 changes: 3 additions & 1 deletion src/plugin/__tests__/manifest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ it("should fail if author is a boolean not a string", () => {
const error = validateManifest(manifest);

expect(error !== null).toBeTruthy();
expect(error[0].message).toBe("should be string");
if (error !== null) {
expect(error[0].message).toBe("should be string");
}
});

it("should allow split in incognito", () => {
Expand Down
4 changes: 1 addition & 3 deletions src/plugin/browser.manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,7 @@
"properties": {
"events": {
"items": {
"enum": [
"startup"
],
"const": "startup",
"type": "string"
},
"type": "array"
Expand Down
6 changes: 2 additions & 4 deletions src/plugin/chrome.manifestv2.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "array"
},
"isBookmarked": {
"description": "Optional.\nSince Chrome 45. Warning: this is the current Beta channel. More information available on the API documentation pages.\nMatches if the bookmarked state of the page is equal to the specified value. Requres the bookmarks permission.",
"description": "Optional.\nSince Chrome 45. Warning: this is the current Beta channel. More information available on the API documentation pages.\nMatches if the bookmarked state of the page is equal to the specified value. Requires the bookmarks permission.",
"type": "boolean"
},
"pageUrl": {
Expand Down Expand Up @@ -563,9 +563,7 @@
"type": "string"
},
"manifest_version": {
"enum": [
2
],
"const": 2,
"type": "number"
},
"minimum_chrome_version": {
Expand Down
13 changes: 6 additions & 7 deletions src/plugin/chrome.manifestv3.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "array"
},
"isBookmarked": {
"description": "Optional.\nSince Chrome 45. Warning: this is the current Beta channel. More information available on the API documentation pages.\nMatches if the bookmarked state of the page is equal to the specified value. Requres the bookmarks permission.",
"description": "Optional.\nSince Chrome 45. Warning: this is the current Beta channel. More information available on the API documentation pages.\nMatches if the bookmarked state of the page is equal to the specified value. Requires the bookmarks permission.",
"type": "boolean"
},
"pageUrl": {
Expand Down Expand Up @@ -163,6 +163,8 @@
"desktopCapture",
"documentScan",
"downloads",
"downloads.shelf",
"downloads.ui",
"enterprise.deviceAttributes",
"enterprise.hardwarePlatform",
"enterprise.networkingAttributes",
Expand All @@ -182,6 +184,7 @@
"management",
"nativeMessaging",
"notifications",
"offscreen",
"pageCapture",
"platformKeys",
"power",
Expand Down Expand Up @@ -282,9 +285,7 @@
"type": "string"
},
"type": {
"enum": [
"module"
],
"const": "module",
"type": "string"
}
},
Expand Down Expand Up @@ -647,9 +648,7 @@
"type": "string"
},
"manifest_version": {
"enum": [
3
],
"const": 3,
"type": "number"
},
"minimum_chrome_version": {
Expand Down
21 changes: 8 additions & 13 deletions src/plugin/manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -908,9 +908,7 @@
"properties": {
"events": {
"items": {
"enum": [
"startup"
],
"const": "startup",
"type": "string"
},
"type": "array"
Expand Down Expand Up @@ -946,7 +944,7 @@
"type": "array"
},
"isBookmarked": {
"description": "Optional.\nSince Chrome 45. Warning: this is the current Beta channel. More information available on the API documentation pages.\nMatches if the bookmarked state of the page is equal to the specified value. Requres the bookmarks permission.",
"description": "Optional.\nSince Chrome 45. Warning: this is the current Beta channel. More information available on the API documentation pages.\nMatches if the bookmarked state of the page is equal to the specified value. Requires the bookmarks permission.",
"type": "boolean"
},
"pageUrl": {
Expand Down Expand Up @@ -1098,6 +1096,8 @@
"desktopCapture",
"documentScan",
"downloads",
"downloads.shelf",
"downloads.ui",
"enterprise.deviceAttributes",
"enterprise.hardwarePlatform",
"enterprise.networkingAttributes",
Expand All @@ -1117,6 +1117,7 @@
"management",
"nativeMessaging",
"notifications",
"offscreen",
"pageCapture",
"platformKeys",
"power",
Expand Down Expand Up @@ -1518,9 +1519,7 @@
"type": "string"
},
"manifest_version": {
"enum": [
2
],
"const": 2,
"type": "number"
},
"minimum_chrome_version": {
Expand Down Expand Up @@ -1751,9 +1750,7 @@
"type": "string"
},
"type": {
"enum": [
"module"
],
"const": "module",
"type": "string"
}
},
Expand Down Expand Up @@ -2116,9 +2113,7 @@
"type": "string"
},
"manifest_version": {
"enum": [
3
],
"const": 3,
"type": "number"
},
"minimum_chrome_version": {
Expand Down

0 comments on commit bad006f

Please # to comment.