Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Sep 1, 2020
1 parent 2bfe851 commit bed7e5c
Showing 5 changed files with 253 additions and 109 deletions.
11 changes: 7 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@
"no-bitwise": "error",
"no-new-wrappers": "error",
"constructor-super": "error",
"no-redeclare": "error",
"no-eval": "error",
"no-template-curly-in-string": "error",
"no-return-await": "error",
@@ -28,9 +27,13 @@
"@typescript-eslint/strict-boolean-expressions": [
2,
{
"allowNullable": true,
"allowSafe": true,
"ignoreRhs": true
"allowString": false,
"allowNumber": false,
"allowNullableObject": true,
"allowNullableBoolean": false,
"allowNullableString": false,
"allowNullableNumber": false,
"allowAny": false
}
]
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -36,24 +36,24 @@
"memorize-decorator": "^0.2.2"
},
"devDependencies": {
"@microsoft/api-documenter": "^7.8.34",
"@microsoft/api-extractor": "^7.9.10",
"@microsoft/api-documenter": "^7.8.36",
"@microsoft/api-extractor": "^7.9.11",
"@rollup/plugin-replace": "^2.3.1",
"@types/jest": "^26.0.10",
"@types/jest": "^26.0.12",
"@types/lodash-es": "^4.1.4",
"@typescript-eslint/eslint-plugin": "^3.9.1",
"@typescript-eslint/parser": "^3.9.1",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"env-cmd": "^10.1.0",
"eslint": "^7.7.0",
"eslint": "^7.8.0",
"eslint-watch": "^7.0.0",
"jest": "^26.4.2",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.1",
"rollup": "^2.26.5",
"rollup": "^2.26.8",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-typescript2": "^0.27.2",
"ts-jest": "^26.2.0",
"ts-jest": "^26.3.0",
"ts-node": "^9.0.0",
"typescript": "^4.0.2",
"web-ext-types": "^3.2.1"
2 changes: 1 addition & 1 deletion src/DOM/Watcher.ts
Original file line number Diff line number Diff line change
@@ -402,7 +402,7 @@ export abstract class Watcher<T, Before extends Element, After extends Element,
this.singleModeHasLastValue = false
}
// ? Case: value is new
else if (!this.singleModeHasLastValue && firstValue) {
else if (!this.singleModeHasLastValue && Boolean(firstValue)) {
if (this.useForeachFn) {
if (firstValue instanceof Node) {
this.singleModeCallback = this.useForeachFn(
4 changes: 2 additions & 2 deletions src/Extension/MessageCenter.ts
Original file line number Diff line number Diff line change
@@ -53,13 +53,13 @@ export class MessageCenter<ITypedMessages> {
* This option cannot make your message safe!
*/
constructor(private sendToSelf: boolean, private instanceKey = '') {
if (typeof browser !== 'undefined' && browser?.runtime?.onMessage) {
try {
// Fired when a message is sent from either an extension process (by runtime.sendMessage)
// or a content script (by tabs.sendMessage).
browser.runtime.onMessage.addListener((e: any) => {
this.listener(e)
})
}
} catch {}
}
/**
* Listen to an event
Loading

0 comments on commit bed7e5c

Please sign in to comment.