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

raylib

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raylib - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

2

CMakeLists.txt

@@ -5,3 +5,3 @@ include(FetchContent)

project (node-raylib
VERSION 0.9.0
VERSION 0.9.1
DESCRIPTION "Node.js bindings for raylib"

@@ -8,0 +8,0 @@ HOMEPAGE_URL "https://github.com/RobLoach/node-raylib"

@@ -7,6 +7,6 @@ /**

const raylib = require('./src/generated/node-raylib.js')
const raylib = require('./src/generated/node-raylib')
const { format } = require('util')
const easings = require('./src/easings.js')
// Constants
raylib.MAX_GAMEPADS = 4

@@ -25,5 +25,3 @@ raylib.MAX_GAMEPAD_AXIS = 8

raylib.Easings = easings
// Export the bindings for the module.
module.exports = raylib
{
"name": "raylib",
"version": "0.9.0",
"version": "0.9.1",
"description": "Node.js bindings for raylib.",
"main": "index.js",
"types": "index.d.ts",
"types": "src/generated/node-raylib.d.ts",
"scripts": {
"start": "bin/node-raylib examples/core/core_basic_window.js",
"benchmark": "bin/node-raylib examples/textures/textures_bunnymark.js",
"test": "npx jest",
"posttest": "npx standard --fix",
"test": "jest",
"posttest": "standard tools test examples index.js",
"test:fix": "standard --fix",
"postinstall": "node tools/postinstall.js || npm run compile",
"clean": "rm -rf build",
"compile": "npm i --no-save node-addon-api cmake-js && cmake-js compile",
"precompile": "npm i --no-save node-addon-api cmake-js",
"compile": "cmake-js compile",
"prepkg": "npm run build",

@@ -48,10 +50,5 @@ "pkg": "node tools/pkg.js",

"src/*",
"src/lib/*",
"vendor/*",
"src/generated/*",
"CMakeLists.txt",
"index.js",
"index.d.ts",
"package.json",
"README.md",
"LICENSE.md",
"CHANGELOG.md",

@@ -69,5 +66,7 @@ "tools/postinstall.js"

"devDependencies": {
"archiver": "^5.3.0",
"pkg": "^5.2.1"
"archiver": "^5.3.1",
"jest": "^28.0.2",
"pkg": "^5.6.0",
"standard": "^17.0.0"
}
}

@@ -68,9 +68,9 @@ ![node-raylib Logo](logo/raylib-node_256x256.png)

# Unix
./node-raylib core_basic_window.js
./bin/node-raylib core_basic_window.js
# Windows
node-raylib.exe core_basic_window.js
node bin/node-raylib core_basic_window.js
```
The CLI can be installed with the [packaged releases](https://github.com/RobLoach/node-raylib/releases), or globally through `npm` or `npx` for no-install:
The CLI can be installed globally through `npm` or `npx` for no-install:

@@ -77,0 +77,0 @@ ``` bash

@@ -47,3 +47,8 @@ // this is run after npm install

try {
const data = await fetch(url).then(r => r.arrayBuffer())
const data = await fetch(url).then(r => {
if (r.status !== 200) {
throw new Error(`Status: ${r.status}`)
}
return r
}).then(r => r.arrayBuffer())
await fs.writeFile(targetPath, toBuffer(data))

@@ -53,3 +58,3 @@ console.log('Found on releases.')

} catch (e) {
console.error(e)
console.error(e.message)
}

@@ -56,0 +61,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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