@todesktop/client-active-win
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -1,2 +0,2 @@ | ||
import { GetActiveWin } from "./generated/plugin"; | ||
export declare const getActiveWin: GetActiveWin; | ||
import type { getActiveWin as _getActiveWin } from "./generated/plugin"; | ||
export declare const getActiveWin: typeof _getActiveWin; |
@@ -13,3 +13,3 @@ "use strict"; | ||
exports.getActiveWin = void 0; | ||
const getActiveWin = (options) => __awaiter(void 0, void 0, void 0, function* () { return yield window.td.getActiveWin(options); }); | ||
const getActiveWin = (options) => __awaiter(void 0, void 0, void 0, function* () { return yield window.td.activeWin.getActiveWin(options); }); | ||
exports.getActiveWin = getActiveWin; |
{ | ||
"name": "@todesktop/client-active-win", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "rm -f ./dist/* && tsc --module commonjs", | ||
"build": "rm -f ./dist/* && tsc", | ||
"prepublishOnly": "npm run build", | ||
@@ -12,2 +12,5 @@ "release:minor": "npm version minor && npm publish", | ||
}, | ||
"devDependencies": { | ||
"typescript": "^4.4.4" | ||
}, | ||
"keywords": [], | ||
@@ -14,0 +17,0 @@ "author": "", |
@@ -91,5 +91,2 @@ interface Options { | ||
declare enum WindowActions { | ||
getActiveWin = "getActiveWin" | ||
} | ||
declare type GetActiveWin = (options: Options) => Promise<Result | undefined>; | ||
@@ -99,3 +96,5 @@ declare global { | ||
td: { | ||
getActiveWin: GetActiveWin; | ||
activeWin: { | ||
getActiveWin: GetActiveWin; | ||
}; | ||
}; | ||
@@ -111,2 +110,2 @@ } | ||
export { GetActiveWin, WindowActions, config, getActiveWin }; | ||
export { config, getActiveWin }; |
@@ -1,4 +0,4 @@ | ||
import { GetActiveWin } from "./generated/plugin"; | ||
import type { getActiveWin as _getActiveWin } from "./generated/plugin"; | ||
export const getActiveWin: GetActiveWin = async (options) => | ||
await window.td.getActiveWin(options); | ||
export const getActiveWin: typeof _getActiveWin = async (options) => | ||
await window.td.activeWin.getActiveWin(options); |
@@ -5,5 +5,6 @@ { | ||
"outDir": "./dist", | ||
"rootDir": "./src" | ||
"rootDir": "./src", | ||
"module": "commonjs" | ||
}, | ||
"exclude": ["node_modules", "dist"] | ||
} |
4214
1