New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

electget

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electget - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

7

dist/cjs/index.js

@@ -6,3 +6,3 @@ "use strict";

exports.__esModule = true;
exports.getHWnd = exports.readBufferByOS = exports.SWP_NOSIZE = exports.SWP_NOMOVE = exports.HWND_BOTTOM = exports.WM_WINDOWPOSCHANGING = exports.SWP_NOZORDER = exports.WINDOWPOS = exports.DWMWA_EXCLUDED_FROM_PEEK = void 0;
exports.getHWnd = exports.readBufferByOS = exports.SWP_NOSIZE = exports.SWP_NOMOVE = exports.HWND_BOTTOM = exports.WM_WINDOWPOSCHANGING = exports.SWP_NOZORDER = exports.WINDOWPOS = exports.GWLP_HWNDPARENT = exports.DWMWA_EXCLUDED_FROM_PEEK = void 0;
var ref_napi_1 = __importDefault(require("ref-napi"));

@@ -14,2 +14,3 @@ var ffi_napi_1 = __importDefault(require("ffi-napi"));

exports.DWMWA_EXCLUDED_FROM_PEEK = 12;
exports.GWLP_HWNDPARENT = -8;
var StructType = ref_struct_di_1["default"](ref_napi_1["default"]);

@@ -91,3 +92,3 @@ exports.WINDOWPOS = StructType({

return false;
(_g = this.user32) === null || _g === void 0 ? void 0 : _g.SetWindowLongPtrA(hWnd, -8, defView);
(_g = this.user32) === null || _g === void 0 ? void 0 : _g.SetWindowLongPtrA(hWnd, exports.GWLP_HWNDPARENT, defView);
return true;

@@ -99,3 +100,3 @@ };

var hWnd = getHWnd(win);
this.user32.SetWindowLongPtrA(hWnd, -8, this.user32.GetDesktopWindow());
this.user32.SetWindowLongPtrA(hWnd, exports.GWLP_HWNDPARENT, this.user32.GetDesktopWindow());
};

@@ -102,0 +103,0 @@ Electget.prototype.preventChangeZOrder = function (browserWindow) {

@@ -7,2 +7,3 @@ import ref from 'ref-napi';

export var DWMWA_EXCLUDED_FROM_PEEK = 12;
export var GWLP_HWNDPARENT = -8;
var StructType = di(ref);

@@ -82,3 +83,3 @@ export var WINDOWPOS = StructType({

return false;
(_g = this.user32) === null || _g === void 0 ? void 0 : _g.SetWindowLongPtrA(hWnd, -8, defView);
(_g = this.user32) === null || _g === void 0 ? void 0 : _g.SetWindowLongPtrA(hWnd, GWLP_HWNDPARENT, defView);
return true;

@@ -90,3 +91,3 @@ };

var hWnd = getHWnd(win);
this.user32.SetWindowLongPtrA(hWnd, -8, this.user32.GetDesktopWindow());
this.user32.SetWindowLongPtrA(hWnd, GWLP_HWNDPARENT, this.user32.GetDesktopWindow());
};

@@ -93,0 +94,0 @@ Electget.prototype.preventChangeZOrder = function (browserWindow) {

@@ -7,2 +7,3 @@ /// <reference types="node" />

export declare const DWMWA_EXCLUDED_FROM_PEEK = 12;
export declare const GWLP_HWNDPARENT = -8;
export declare const WINDOWPOS: di.StructType<{

@@ -9,0 +10,0 @@ hwnd: ref.Type<number>;

{
"name": "electget",
"version": "0.0.1",
"version": "0.0.2",
"description": "Electron tools for creating Windows widgets that are fixed to desktop.",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -16,3 +16,5 @@ # Electget

`npm i electget`
```
npm i electget
```

@@ -19,0 +21,0 @@ ## Usage

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc