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

bitecs

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitecs - npm Package Compare versions

Comparing version 0.2.10 to 0.2.11

2

package.json
{
"name": "bitecs",
"version": "0.2.10",
"version": "0.2.11",
"description": "Tiny, data-driven, high performance ECS library written in Javascript",

@@ -5,0 +5,0 @@ "license": "MPL-2.0",

@@ -30,5 +30,7 @@ import { performance} from'perf_hooks'

const Velocity = defineComponent(Vector2)
registerComponents(world, [Position, Velocity])
const a = defineComponent(new Map())
registerComponents(world, [Position, Velocity, a])
const query = defineQuery([Changed(Position),Velocity])
const queryA = defineQuery([a])
const serialize = defineSerializer([Changed(Position)])

@@ -42,2 +44,3 @@ const deserialize = defineDeserializer([Position,Velocity])

addComponent(world, Velocity, eid)
addComponent(world, a, eid)
Position.x[eid]++

@@ -47,2 +50,5 @@ Position.y[eid]++

console.log(queryA(world))
let then

@@ -49,0 +55,0 @@

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