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

glfw-raub

Package Overview
Dependencies
Maintainers
0
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glfw-raub - npm Package Compare versions

Comparing version 6.0.0 to 6.1.0

2

core.js

@@ -12,3 +12,3 @@ 'use strict';

const core = require(`./${getBin()}/glfw`);
const core = require(`./${getBin()}/glfw.node`);

@@ -15,0 +15,0 @@

@@ -379,3 +379,3 @@ declare module "glfw-raub" {

*/
getKey(): number;
getKey(key: number): number;

@@ -387,3 +387,3 @@ /**

*/
getMouseButton(): number;
getMouseButton(button: number): number;

@@ -395,6 +395,6 @@ /**

*/
getWindowAttrib(): number;
getWindowAttrib(attrib: number): number;
/** Set input mode option. */
setInputMode(mode: number): void;
setInputMode(mode: number, value: number): void;

@@ -600,3 +600,3 @@ /** Swaps the front and back buffers of the window. */

/** Draws a test scene, used in examples here. */
const testScene: TCbVoid;
const testScene: (w: number, h: number, z: number) => void;

@@ -682,4 +682,4 @@ /** Draws a test scene, that reacts to a joystick. */

const setWindowShouldClose: (window: TWindowPtr, shouldClose: number) => void;
const getWindowAttrib: (window: TWindowPtr) => number;
const setWindowAttrib: (window: TWindowPtr, value: number) => void;
const getWindowAttrib: (window: TWindowPtr, attrib: number) => number;
const setWindowAttrib: (window: TWindowPtr, attrib: number, value: number) => void;
const setInputMode: (window: TWindowPtr, mode: number, value: number) => void;

@@ -718,2 +718,4 @@ const getInputMode: (window: TWindowPtr, mode: number) => number;

const platformDevice: (window: TWindowPtr) => number;
const getPlatform: () => number;
const platformSupported: (platform: number) => number;
const getJoystickGUID: (id: number) => (null | string);

@@ -955,2 +957,6 @@

const NO_WINDOW_CONTEXT: number;
const CURSOR_UNAVAILABLE: number;
const FEATURE_UNAVAILABLE: number;
const FEATURE_UNIMPLEMENTED: number;
const PLATFORM_UNAVAILABLE: number;
const FOCUSED: number;

@@ -968,2 +974,5 @@ const ICONIFIED: number;

const FOCUS_ON_SHOW: number;
const MOUSE_PASSTHROUGH: number;
const POSITION_X: number;
const POSITION_Y: number;
const RED_BITS: number;

@@ -991,2 +1000,3 @@ const GREEN_BITS: number;

const OPENGL_FORWARD_COMPAT: number;
const CONTEXT_DEBUG: number;
const OPENGL_DEBUG_CONTEXT: number;

@@ -998,2 +1008,3 @@ const OPENGL_PROFILE: number;

const SCALE_TO_MONITOR: number;
const SCALE_FRAMEBUFFER: number;
const COCOA_RETINA_FRAMEBUFFER: number;

@@ -1021,2 +1032,16 @@ const COCOA_FRAME_NAME: number;

const CURSOR_DISABLED: number;
const CURSOR_CAPTURED: number;
const ARROW_CURSOR: number;
const IBEAM_CURSOR: number;
const CROSSHAIR_CURSOR: number;
const HAND_CURSOR: number;
const HRESIZE_CURSOR: number;
const VRESIZE_CURSOR: number;
const POINTING_HAND_CURSOR: number;
const RESIZE_EW_CURSOR: number;
const RESIZE_NS_CURSOR: number;
const RESIZE_NWSE_CURSOR: number;
const RESIZE_NESW_CURSOR: number;
const RESIZE_ALL_CURSOR: number;
const NOT_ALLOWED_CURSOR: number;
const ANY_RELEASE_BEHAVIOR: number;

@@ -1028,8 +1053,24 @@ const RELEASE_BEHAVIOR_FLUSH: number;

const OSMESA_CONTEXT_API: number;
const ARROW_CURSOR: number;
const IBEAM_CURSOR: number;
const CROSSHAIR_CURSOR: number;
const HAND_CURSOR: number;
const HRESIZE_CURSOR: number;
const VRESIZE_CURSOR: number;
const WIN32_KEYBOARD_MENU: number;
const WIN32_SHOWDEFAULT: number;
const WAYLAND_APP_ID: number;
const ANGLE_PLATFORM_TYPE_NONE: number;
const ANGLE_PLATFORM_TYPE_OPENGL: number;
const ANGLE_PLATFORM_TYPE_OPENGLES: number;
const ANGLE_PLATFORM_TYPE_D3D9: number;
const ANGLE_PLATFORM_TYPE_D3D11: number;
const ANGLE_PLATFORM_TYPE_VULKAN: number;
const ANGLE_PLATFORM_TYPE_METAL: number;
const WAYLAND_PREFER_LIBDECOR: number;
const WAYLAND_DISABLE_LIBDECOR: number;
const ANGLE_PLATFORM_TYPE: number;
const PLATFORM: number;
const X11_XCB_VULKAN_SURFACE: number;
const WAYLAND_LIBDECOR: number;
const ANY_PLATFORM: number;
const PLATFORM_WIN32: number;
const PLATFORM_COCOA: number;
const PLATFORM_WAYLAND: number;
const PLATFORM_X11: number;
const PLATFORM_NULL: number;
const CONNECTED: number;

@@ -1041,3 +1082,4 @@ const DISCONNECTED: number;

const DONT_CARE: number;
const ANY_POSITION: number;
/**

@@ -1044,0 +1086,0 @@ * Human-readable names for keyboard keys.

@@ -7,4 +7,4 @@ 'use strict';

const prefix = 'https://github.com/node-3d/glfw-raub/releases/download';
const tag = '6.0.0';
const tag = '6.1.0';
install(`${prefix}/${tag}`);

@@ -50,3 +50,3 @@ 'use strict';

this._msaa = opts.msaa === undefined ? 2 : opts.msaa;
this._msaa = opts.msaa || 0;

@@ -223,7 +223,5 @@ this._resizable = opts.resizable === false ? false : true;

} else if (this._mode === 'borderless') {
const monitor = this._monitors[this._display];
glfw.setWindowPos(this._window, monitor.pos_x, monitor.pos_y);
glfw.setWindowSize(this._window, monitor.width, monitor.height);
}

@@ -561,5 +559,7 @@

_requestAnimationFrame(cb) {
this.swapBuffers();
glfw.pollEvents();
return setImmediate(() => cb(Date.now()));
return setImmediate(() => {
glfw.pollEvents();
cb(Date.now());
this.swapBuffers();
});
}

@@ -566,0 +566,0 @@

{
"author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "glfw-raub",
"version": "6.0.0",
"version": "6.1.0",
"description": "GLFW for Node.js",

@@ -51,5 +51,5 @@ "license": "MIT",

"devDependencies": {
"@types/node": "^22.7.9",
"@eslint/js": "^9.13.0",
"eslint": "^9.13.0",
"@types/node": "^22.10.5",
"@eslint/js": "^9.17.0",
"eslint": "^9.17.0",
"node-addon-api": "^8.2.1",

@@ -56,0 +56,0 @@ "typescript": "^5.6.3"

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