diff --git a/build.js b/build.js index c4b42638..25b4acac 100644 --- a/build.js +++ b/build.js @@ -8,7 +8,7 @@ const PW_BUILD_DATA_DIR = "./.hoppscotch" // const IS_DEV_MODE = process.argv.includes("--dev") try { - ;(async () => { + (async () => { // Create the build data directory if it does not exist. if (!fs.existsSync(PW_BUILD_DATA_DIR)) { fs.mkdirSync(PW_BUILD_DATA_DIR) diff --git a/components/collections/import-export-collections.vue b/components/collections/import-export-collections.vue index 5fb2423c..4b4100d8 100644 --- a/components/collections/import-export-collections.vue +++ b/components/collections/import-export-collections.vue @@ -320,10 +320,10 @@ export default { return items }, hasFolder(item) { - return item.hasOwnProperty("item") + return Object.prototype.hasOwnProperty.call(item, "item") }, isSubFolder(item) { - return item.hasOwnProperty("_postman_isSubFolder") && item._postman_isSubFolder + return Object.prototype.hasOwnProperty.call(item, "_postman_isSubFolder") && item._postman_isSubFolder }, flattenPostmanItem(subFolder, subFolderGlue = " -- ") { delete subFolder._postman_isSubFolder diff --git a/components/graphql/queryeditor.vue b/components/graphql/queryeditor.vue index 1940c475..efb97ff9 100644 --- a/components/graphql/queryeditor.vue +++ b/components/graphql/queryeditor.vue @@ -36,6 +36,7 @@ export default { theme: { type: String, required: false, + default: null, }, onRunGQLQuery: { type: Function, diff --git a/components/layout/pw-header.vue b/components/layout/pw-header.vue index 3209b3ab..1cd43186 100644 --- a/components/layout/pw-header.vue +++ b/components/layout/pw-header.vue @@ -312,7 +312,6 @@ import { hasFirefoxExtensionInstalled, } from "~/helpers/strategies/ExtensionStrategy" import { getPlatformSpecialKey } from "~/helpers/platformutils" -import firebase from "firebase/app" import { fb } from "~/helpers/fb" import closeIcon from "~/static/icons/close-24px.svg?inline" diff --git a/components/ui/ace-editor.vue b/components/ui/ace-editor.vue index 1be631a1..618c1ce5 100644 --- a/components/ui/ace-editor.vue +++ b/components/ui/ace-editor.vue @@ -33,6 +33,7 @@ export default { theme: { type: String, required: false, + default: null, }, lang: { type: String, diff --git a/components/ui/js-editor.vue b/components/ui/js-editor.vue index 81b284eb..94931e3e 100644 --- a/components/ui/js-editor.vue +++ b/components/ui/js-editor.vue @@ -21,7 +21,6 @@