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.12.2 to 0.14.0

drm/index.js

4

CMakeLists.txt

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

# version doesn't seem to pick correct version
#find_package(raylib 4.2 QUIET EXACT)
#find_package(raylib 4.5 QUIET EXACT)
if (NOT raylib_FOUND)

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

GIT_REPOSITORY https://github.com/raysan5/raylib.git
GIT_TAG 4.2.0
GIT_TAG 4.5.0
GIT_SHALLOW TRUE

@@ -36,0 +36,0 @@ )

@@ -17,2 +17,3 @@ /**

raylib.DEG2RAD = Math.PI / 180
// Wrapped Functions

@@ -36,3 +37,4 @@

}
// Export the bindings for the module.
module.exports = raylib
{
"name": "raylib",
"version": "0.12.2",
"version": "0.14.0",
"description": "Node.js bindings for raylib.",

@@ -17,2 +17,4 @@ "main": "index.js",

"compile": "cmake-js compile",
"precompile-drm": "npm i --no-save node-addon-api cmake-js",
"compile-drm": "cmake-js compile --CDPLATFORM=DRM",
"prepkg": "npm run build",

@@ -55,3 +57,4 @@ "pkg": "node tools/pkg.js",

"CHANGELOG.md",
"tools/postinstall.js"
"tools/postinstall.js",
"drm/*"
],

@@ -67,7 +70,7 @@ "bugs": {

"devDependencies": {
"@raylib/api": "^4.2.0",
"@raylib/api": "~4.5.0",
"archiver": "^5.3.1",
"jest": "^28.1.3",
"jsdoc-to-markdown": "^7.1.1",
"pkg": "^5.8.0",
"jest": "^29.5.0",
"jsdoc-to-markdown": "^8.0.0",
"pkg": "^5.8.1",
"standard": "^17.0.0"

@@ -74,0 +77,0 @@ },

@@ -80,2 +80,10 @@ ![node-raylib Logo](logo/raylib-node_256x256.png)

## DRM
On some ARM devices like Raspberry PI, raylib can be used in a DRM mode instead of rendering to an x11 window. This version requires a seperate
native addon, and on installation on ARM devices node-raylib will include both. To use the DRM mode, import `raylib/drm` instead.
```js
import * as rl from 'raylib/drm/index.js'
const rl = require('raylib/drm')
```
### CLI

@@ -82,0 +90,0 @@

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

const targetPath = path.join(__dirname, '..', 'build', 'Release', 'node-raylib.node')
let targetPath = path.join(__dirname, '..', 'build', 'Release', 'node-raylib.node')

@@ -35,3 +35,3 @@ function toBuffer (ab) {

const url = `https://github.com/RobLoach/node-raylib/releases/download/v${process.env.npm_package_version}/node-raylib-4.0-${process.platform}-${process.arch}.node`
let url = `https://github.com/RobLoach/node-raylib/releases/download/v${process.env.npm_package_version}/node-raylib-${process.platform}-${process.arch}.node`

@@ -48,2 +48,18 @@ console.log(`Checking for ${url}`)

if (process.platform === 'linux' && (process.arch === 'arm' || process.arch === 'arm64')) {
targetPath = path.join(__dirname, '..', 'build', 'Release', 'node-raylib-drm.node')
url = `https://github.com/RobLoach/node-raylib/releases/download/v${process.env.npm_package_version}/node-raylib-${process.platform}-${process.arch}-drm.node`
try {
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))
console.log('Found DRM on releases.')
} catch (e) {
}
}
try {

@@ -50,0 +66,0 @@ const data = await fetch(url).then(r => {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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