Comparing version 0.9.0 to 0.9.1
@@ -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 @@  | ||
# 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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
449073
8507
4
20