Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lr-core

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lr-core - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

4

line-rider-engine/Rider.js

@@ -54,3 +54,5 @@ 'use strict';

velocity: averageVectors(points.map(({ vel }) => vel)),
stateMap
get(id) {
return stateMap.get(id);
}
};

@@ -57,0 +59,0 @@ }

{
"name": "lr-core",
"version": "0.5.0",
"version": "0.6.0",
"description": "Line Rider core library",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -55,5 +55,5 @@ import test from 'tape'

let rider = engine.getRider(INDEX)
let shoulder = rider.stateMap.get('SHOULDER')
let butt = rider.stateMap.get('BUTT')
let nose = rider.stateMap.get('NOSE')
let shoulder = rider.get('SHOULDER')
let butt = rider.get('BUTT')
let nose = rider.get('NOSE')

@@ -173,3 +173,3 @@ t.ok(

.getRider(track.duration)
.stateMap.get('RIDER_MOUNTED')
.get('RIDER_MOUNTED')
.framesSinceUnbind

@@ -185,6 +185,6 @@ t.equal(track.duration - riderCrashed, 1 + track.duration, 'rider should not have crashed')

t.comment('Crashing at frame 433: order of lines is backwards')
t.equal(engine.getRider(416).stateMap.get('TAIL').pos.x, 804.1054060579701, 'frame 416 tail should be consistent')
t.equal(engine.getRider(416).stateMap.get('NOSE').pos.x, 813.3255772705486, 'frame 416 nose should be consistent')
t.equal(engine.getRider(417).stateMap.get('TAIL').pos.x, 797.8845320873339, 'frame 417 tail should be consistent')
t.equal(engine.getRider(417).stateMap.get('NOSE').pos.x, 810.0876743591476, 'frame 417 nose should be consistent')
t.equal(engine.getRider(416).get('TAIL').pos.x, 804.1054060579701, 'frame 416 tail should be consistent')
t.equal(engine.getRider(416).get('NOSE').pos.x, 813.3255772705486, 'frame 416 nose should be consistent')
t.equal(engine.getRider(417).get('TAIL').pos.x, 797.8845320873339, 'frame 417 tail should be consistent')
t.equal(engine.getRider(417).get('NOSE').pos.x, 810.0876743591476, 'frame 417 nose should be consistent')
// printSim(engine, 2, 416)

@@ -191,0 +191,0 @@ t.end()

@@ -35,5 +35,7 @@ import classicRiderBody from './rider-data'

velocity: averageVectors(points.map(({vel}) => vel)),
stateMap
get (id) {
return stateMap.get(id)
}
}
}
}
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