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

@javelin/ecs

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@javelin/ecs - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

dist/filter.d.ts

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## 0.4.1 (2020-06-16)
**Note:** Version bump only for package @javelin/ecs
# 0.4.0 (2020-06-14)

@@ -8,0 +16,0 @@

1

dist/world.d.ts

@@ -23,2 +23,3 @@ import { Component } from "./component";

registerComponentFactory(factory: ComponentFactoryLike): void;
registeredComponentFactories: ComponentFactoryLike[];
};

@@ -25,0 +26,0 @@ export declare type System<T> = (data: T, world: World<T>) => void;

@@ -17,2 +17,3 @@ "use strict";

const destroyed = new Set();
const registeredComponentFactories = [];
let nextEntity = 0;

@@ -95,3 +96,7 @@ function tick(data) {

}
const { addTag, removeTag, hasTag, registerComponentFactory } = storage;
function registerComponentFactory(factory) {
storage.registerComponentFactory(factory);
registeredComponentFactories.push(factory);
}
const { addTag, removeTag, hasTag } = storage;
const world = {

@@ -113,2 +118,3 @@ create,

registerComponentFactory,
registeredComponentFactories,
};

@@ -115,0 +121,0 @@ return world;

5

package.json
{
"name": "@javelin/ecs",
"version": "0.4.0",
"version": "0.4.1",
"main": "dist/index.js",

@@ -20,4 +20,3 @@ "license": "MIT",

"networking"
],
"gitHead": "3c726284a729eacb771e7a09c672d0b2f44c6ab7"
]
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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