@eroc/core
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -1,2 +0,2 @@ | ||
/* @eroc/core v4.0.0 2021-08-17T18:13:54.055Z licensed MIT */ | ||
/* @eroc/core v4.0.1 2021-08-19T15:30:50.316Z licensed MIT */ | ||
const startEventRecorder = (core) => { | ||
@@ -84,9 +84,7 @@ const events = []; | ||
* cannot be used as a mixin for a constructor's prototype | ||
* without calling the constructor | ||
*/ | ||
function EventEmitter3(obj) { | ||
(obj || this)._callbacks = Object.create(null); | ||
if (obj) {return Object.assign(obj, EventEmitter3.prototype);} | ||
if (obj) return Object.assign(obj, EventEmitter3.prototype); | ||
} | ||
/** | ||
@@ -154,3 +152,3 @@ * Listen on the given `eventName` with `fn` | ||
const index = callbacks.findIndex(function (cb) { | ||
return (cb === fn || cb.fn === fn); | ||
return (cb === fn || cb.fn === fn) | ||
}); | ||
@@ -260,3 +258,3 @@ if (index > -1) { | ||
Date, RegExp, Set, Map, | ||
Uint8Array, Uint8ClampedArray, Uint16Array, Uint32Array, | ||
Uint8Array, Uint16Array, Uint32Array, | ||
Int8Array, Int16Array, Int32Array | ||
@@ -267,2 +265,3 @@ | ||
does not copy internal links | ||
*/ | ||
@@ -269,0 +268,0 @@ const deepCopyAdded = x => { |
@@ -1,2 +0,2 @@ | ||
/* @eroc/core v4.0.0 2021-08-17T18:13:54.055Z licensed MIT */ | ||
/* @eroc/core v4.0.1 2021-08-19T15:30:50.316Z licensed MIT */ | ||
var Core = (function (exports) { | ||
@@ -87,9 +87,7 @@ 'use strict'; | ||
* cannot be used as a mixin for a constructor's prototype | ||
* without calling the constructor | ||
*/ | ||
function EventEmitter3(obj) { | ||
(obj || this)._callbacks = Object.create(null); | ||
if (obj) {return Object.assign(obj, EventEmitter3.prototype);} | ||
if (obj) return Object.assign(obj, EventEmitter3.prototype); | ||
} | ||
/** | ||
@@ -157,3 +155,3 @@ * Listen on the given `eventName` with `fn` | ||
const index = callbacks.findIndex(function (cb) { | ||
return (cb === fn || cb.fn === fn); | ||
return (cb === fn || cb.fn === fn) | ||
}); | ||
@@ -263,3 +261,3 @@ if (index > -1) { | ||
Date, RegExp, Set, Map, | ||
Uint8Array, Uint8ClampedArray, Uint16Array, Uint32Array, | ||
Uint8Array, Uint16Array, Uint32Array, | ||
Int8Array, Int16Array, Int32Array | ||
@@ -270,2 +268,3 @@ | ||
does not copy internal links | ||
*/ | ||
@@ -466,6 +465,4 @@ const deepCopyAdded = x => { | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
return exports; | ||
}({})); |
{ | ||
"name": "@eroc/core", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Lightweight framework for scalable applications", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -7,4 +7,6 @@ # core [![Build Status](https://travis-ci.org/mauriciosoares/core.js.svg?branch=master)](https://travis-ci.org/mauriciosoares/core.js) [![Coverage Status](https://img.shields.io/coveralls/mauriciosoares/core.js.svg)](https://coveralls.io/r/mauriciosoares/core.js) [![Code Climate](https://codeclimate.com/github/mauriciosoares/core.js/badges/gpa.svg)](https://codeclimate.com/github/mauriciosoares/core.js) | ||
By following the pattern, you will have loading, saving state, and replaying events for free. | ||
## The Idea | ||
@@ -11,0 +13,0 @@ |
@@ -0,0 +0,0 @@ export { createCore, ALL, ERROR }; |
@@ -0,0 +0,0 @@ export { replayEvents }; |
@@ -0,0 +0,0 @@ export { useDefaultLogging }; |
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
62485
11
1453
376