webext-schema 5.1.5 → 5.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -967,7 +967,7 @@ export const highlightTab = async (index, windowId) => {
967
967
  * move tab
968
968
  *
969
969
  * @param {number|Array} tabId - tab ID
970
- * @param {object} opt - options
970
+ * @param {object} [opt] - options
971
971
  * @returns {Promise.<?Array>} - array of tabs.Tab
972
972
  */
973
973
  export const moveTab = async (tabId, opt) => {
@@ -978,7 +978,7 @@ export const moveTab = async (tabId, opt) => {
978
978
  if (arr && !Array.isArray(arr)) {
979
979
  arr = [arr];
980
980
  }
981
- return arr ?? null;
981
+ return arr || null;
982
982
  };
983
983
 
984
984
  /**
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "devDependencies": {
26
26
  "c8": "^7.13.0",
27
27
  "chai": "^4.3.7",
28
- "eslint": "^8.34.0",
28
+ "eslint": "^8.35.0",
29
29
  "eslint-config-standard": "^17.0.0",
30
30
  "eslint-plugin-import": "^2.27.5",
31
31
  "eslint-plugin-jsdoc": "^40.0.0",
@@ -55,5 +55,5 @@
55
55
  "update-mail": "node index update --channel=mail -i",
56
56
  "update-release": "node index update --channel=release -i"
57
57
  },
58
- "version": "5.1.5"
58
+ "version": "5.1.6"
59
59
  }
@@ -45,7 +45,7 @@ export function getAllTabsInWindow(windowId?: number): Promise<any[] | null>;
45
45
  export function getHighlightedTab(windowId?: number): Promise<any[] | null>;
46
46
  export function getTab(tabId: number): Promise<object>;
47
47
  export function highlightTab(index: number | any[], windowId?: number): Promise<object>;
48
- export function moveTab(tabId: number | any[], opt: object): Promise<any[] | null>;
48
+ export function moveTab(tabId: number | any[], opt?: object): Promise<any[] | null>;
49
49
  export function reloadTab(tabId: number, opt: object): Promise<void>;
50
50
  export function removeTab(arg: number | any[]): Promise<void>;
51
51
  export function updateTab(tabId: number, opt: object): Promise<object>;