Comparing version 0.3.8-a1 to 0.3.8-a2
@@ -93,5 +93,5 @@ declare module 'bitecs' { | ||
export function defineSystem(update: (world: IWorld, ...args: any[]) => IWorld): System | ||
export function defineSerializer(target: IWorld | Component | IComponentProp | QueryModifier, maxBytes?: number): (target: IWorld | number[]) => ArrayBuffer | ||
export function defineDeserializer(target: IWorld | Component | IComponentProp | QueryModifier): (world: IWorld, packet: ArrayBuffer) => void | ||
export function defineSerializer(target: IWorld | Component[] | IComponentProp[] | QueryModifier, maxBytes?: number): (target: IWorld | number[]) => ArrayBuffer | ||
export function defineDeserializer(target: IWorld | Component[] | IComponentProp[] | QueryModifier): (world: IWorld, packet: ArrayBuffer) => void | ||
export function pipe(...fns: ((...args: any[]) => any)[]): (input: any) => any | ||
} |
@@ -974,4 +974,5 @@ const TYPES_ENUM = { | ||
const pipe = (...fns) => input => { | ||
if (!input || Array.isArray(input) && input.length === 0) return; | ||
const pipe = (...fns) => (...args) => { | ||
const input = Array.isArray(args[0]) ? args[0] : args; | ||
if (!input || input.length === 0) return; | ||
fns = Array.isArray(fns[0]) ? fns[0] : fns; | ||
@@ -978,0 +979,0 @@ let tmp = input; |
@@ -978,4 +978,5 @@ 'use strict'; | ||
const pipe = (...fns) => input => { | ||
if (!input || Array.isArray(input) && input.length === 0) return; | ||
const pipe = (...fns) => (...args) => { | ||
const input = Array.isArray(args[0]) ? args[0] : args; | ||
if (!input || input.length === 0) return; | ||
fns = Array.isArray(fns[0]) ? fns[0] : fns; | ||
@@ -982,0 +983,0 @@ let tmp = input; |
@@ -93,5 +93,5 @@ declare module 'bitecs' { | ||
export function defineSystem(update: (world: IWorld, ...args: any[]) => IWorld): System | ||
export function defineSerializer(target: IWorld | Component | IComponentProp | QueryModifier, maxBytes?: number): (target: IWorld | number[]) => ArrayBuffer | ||
export function defineDeserializer(target: IWorld | Component | IComponentProp | QueryModifier): (world: IWorld, packet: ArrayBuffer) => void | ||
export function defineSerializer(target: IWorld | Component[] | IComponentProp[] | QueryModifier, maxBytes?: number): (target: IWorld | number[]) => ArrayBuffer | ||
export function defineDeserializer(target: IWorld | Component[] | IComponentProp[] | QueryModifier): (world: IWorld, packet: ArrayBuffer) => void | ||
export function pipe(...fns: ((...args: any[]) => any)[]): (input: any) => any | ||
} |
{ | ||
"name": "bitecs", | ||
"version": "0.3.8-a1", | ||
"version": "0.3.8-a2", | ||
"description": "Functional, minimal, data-driven, ultra-high performance ECS library written in Javascript", | ||
@@ -29,3 +29,5 @@ "license": "MPL-2.0", | ||
"docs": "node scripts/docs.js", | ||
"dist": "npm run test && npm run build && npm run docs" | ||
"dist": "npm run test && npm run build && npm run docs", | ||
"publish": "node ./scripts/remove-type-module.js && npm publish && node ./scripts/add-type-module.js ", | ||
"publish:alpha": "node ./scripts/remove-type-module.js && npm publish --tag alpha && node ./scripts/add-type-module.js " | ||
}, | ||
@@ -57,2 +59,2 @@ "devDependencies": { | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
268081
2235