Socket
Socket
Sign inDemoInstall

@pixi/runner

Package Overview
Dependencies
Maintainers
3
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/runner - npm Package Compare versions

Comparing version 7.0.0-beta.3 to 7.0.0-beta.4

4

dist/cjs/runner.js
/*!
* @pixi/runner - v7.0.0-beta.3
* Compiled Thu, 13 Oct 2022 15:35:43 UTC
* @pixi/runner - v7.0.0-beta.4
* Compiled Thu, 20 Oct 2022 19:45:44 UTC
*

@@ -5,0 +5,0 @@ * @pixi/runner is licensed under the MIT License.

"use strict";/*!
* @pixi/runner - v7.0.0-beta.3
* Compiled Thu, 13 Oct 2022 15:35:43 UTC
* @pixi/runner - v7.0.0-beta.4
* Compiled Thu, 20 Oct 2022 19:45:44 UTC
*

@@ -5,0 +5,0 @@ * @pixi/runner is licensed under the MIT License.

@@ -5,16 +5,16 @@ /**

*
* Like a signal:
*
* like a signal..
* ```
* ```js
* import { Runner } from '@pixi/runner';
*
* const myObject = {
* loaded: new Runner('loaded')
* }
* loaded: new Runner('loaded'),
* };
*
* const listener = {
* loaded: function(){
* // thin
* loaded: function() {
* // Do something when loaded
* }
* }
* };
*

@@ -26,15 +26,16 @@ * myObject.loaded.add(listener);

*
* Or for handling calling the same function on many items
* ```
* Or for handling calling the same function on many items:
*
* ```js
* import { Runner } from '@pixi/runner';
*
* const myGame = {
* update: new Runner('update')
* }
* update: new Runner('update'),
* };
*
* const gameObject = {
* update: function(time){
* // update my gamey state
* }
* }
* update: function(time) {
* // Update my gamey state
* },
* };
*

@@ -68,5 +69,5 @@ * myGame.update.add(gameObject);

*
* Eg A listener passed to this Runner will require a 'complete' function.
* E.g. A listener passed to this Runner will require a 'complete' function.
*
* ```
* ```js
* import { Runner } from '@pixi/runner';

@@ -73,0 +74,0 @@ *

{
"name": "@pixi/runner",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"main": "dist/cjs/runner.js",

@@ -53,3 +53,3 @@ "module": "dist/esm/runner.mjs",

],
"gitHead": "8055ae1c16d4c0f8dabda86cafd8e68c356450e8"
"gitHead": "a4581e4a49d23afc98fcf726765c9d54e51c3c39"
}

@@ -20,6 +20,6 @@ # @pixi/runner

//listenerObject needs to have a 'onComplete' function
// listenerObject needs to have a 'onComplete' function
onComplete.add(listenerObject);
//emit and all listeners will have their 'onComplete' functions called
// emit() and all listeners will have their 'onComplete' functions called
onComplete.emit(data);

@@ -40,3 +40,3 @@ ```

// update game elements..
// Update game elements...
updateRunner.emit();

@@ -43,0 +43,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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