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

@box2d/benchmark

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@box2d/benchmark - npm Package Compare versions

Comparing version

to
0.9.0

3

dist/tests/box2d-core.js

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

const core_1 = require("@box2d/core");
exports.box2dCoreFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const box2dCoreFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const world = core_1.b2World.Create(gravity);

@@ -33,1 +33,2 @@ const ground = world.CreateBody();

};
exports.box2dCoreFactory = box2dCoreFactory;

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

const box2d_js_1 = require("box2d.js");
exports.box2dJsFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const box2dJsFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const world = new box2d_js_1.b2World(new box2d_js_1.b2Vec2(gravity.x, gravity.y));

@@ -34,1 +34,2 @@ const ground = world.CreateBody(new box2d_js_1.b2BodyDef());

};
exports.box2dJsFactory = box2dJsFactory;

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

const box2d_1 = require("@flyover/box2d");
exports.flyoverBox2dFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const flyoverBox2dFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const world = new box2d_1.b2World(new box2d_1.b2Vec2(gravity.x, gravity.y));

@@ -30,1 +30,2 @@ const ground = world.CreateBody(new box2d_1.b2BodyDef());

};
exports.flyoverBox2dFactory = flyoverBox2dFactory;

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

const { b2World, b2Vec2, b2EdgeShape, b2PolygonShape, b2BodyDef, b2BodyType } = box2d_html5_1.box2d;
exports.html5Factory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const html5Factory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const world = new b2World(new b2Vec2(gravity.x, gravity.y));

@@ -33,1 +33,2 @@ const ground = world.CreateBody(new b2BodyDef());

};
exports.html5Factory = html5Factory;

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

const planck_js_1 = require("planck-js");
exports.planckFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const planckFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const world = new planck_js_1.World({

@@ -32,1 +32,2 @@ gravity: new planck_js_1.Vec2(gravity.x, gravity.y),

};
exports.planckFactory = planckFactory;

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

const { b2PolygonShape } = Box2dWeb_2_1_a_3_min_1.Box2D.Collision.Shapes;
exports.webFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const webFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const world = new b2World(new b2Vec2(gravity.x, gravity.y));

@@ -42,1 +42,2 @@ const ground = world.CreateBody(new b2BodyDef());

};
exports.webFactory = webFactory;
{
"name": "@box2d/benchmark",
"version": "0.8.0",
"version": "0.9.0",
"description": "A benchmark to compare various js/ts Box2D implementations",

@@ -38,12 +38,12 @@ "keywords": [

"dependencies": {
"@box2d/core": "^0.8.0",
"@box2d/core": "^0.9.0",
"@flyover/box2d": "^1.0.1",
"box2d.js": "^1.0.4",
"planck-js": "^0.3.22"
"planck-js": "^0.3.31"
},
"devDependencies": {
"parcel-bundler": "^1.12.4",
"parcel-bundler": "^1.12.5",
"rimraf": "^3.0.2",
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
"ts-node": "^10.2.1",
"typescript": "^4.4.3"
},

@@ -53,3 +53,3 @@ "publishConfig": {

},
"gitHead": "b4aefc12a63ad3684097ab975ad964494a428ad7"
"gitHead": "b2ab6ee4489e4f7ae35092349420198f9f4ea3e4"
}