New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eroc/core

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eroc/core - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

2

dist/core.es.js

@@ -1,2 +0,2 @@

/* @eroc/core v4.0.2 2021-08-19T15:46:49.985Z licensed MIT */
/* @eroc/core v4.0.3 2021-08-20T11:41:40.035Z licensed MIT */
const startEventRecorder = (core) => {

@@ -3,0 +3,0 @@ const events = [];

@@ -1,2 +0,2 @@

/* @eroc/core v4.0.2 2021-08-19T15:46:49.985Z licensed MIT */
/* @eroc/core v4.0.3 2021-08-20T11:41:40.035Z licensed MIT */
var Core = (function (exports) {

@@ -3,0 +3,0 @@ 'use strict';

{
"name": "@eroc/core",
"version": "4.0.2",
"version": "4.0.3",
"description": "Lightweight framework for scalable applications",

@@ -5,0 +5,0 @@ "license": "MIT",

# 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)
__core__ is a concept introduced by Nicholas C. Zakas in this [video](https://www.youtube.com/watch?v=b5pFv9NB9fs)
It helps you create scalable applications written in Javascript, giving you some structure and patterns to keep everything separated.
core.js helps you create scalable applications written in JavaScript, giving you structure and patterns needed to keep everything separated, have loading, saving, replaying events and logging.
By following the pattern, you will have loading, saving state, and replaying events for free.
__core__ is a concept introduced by Nicholas C. Zakas in this [video](https://www.youtube.com/watch?v=b5pFv9NB9fs)
## The Idea

@@ -44,3 +42,3 @@

With old NodeJs or Browserify
With old Node.js or Browserify

@@ -98,3 +96,3 @@ `const { createCore, ALL, ERROR } = require("@eroc/core/dist/core.umd.cjs");`

Modules can only communicate via messages with other modules with the emitter received when start is called. It garantees that if a module tries to call something that doesn't exists or is broken, it won't break the module itself.
Modules can only communicate via messages with other modules with the emitter received when start is called. It guarantees that if a module tries to call something that doesn't exists or is broken, it won't break the module itself.

@@ -123,5 +121,5 @@ ```js

### Comunicating between modules
### Communicating between modules
Now, thinking about Twitter, everytime you tweet something, it should appear on your tweet list right? but since our modules don't talk directly to each other, let's use the emitter.
Now, thinking about Twitter, every time you tweet something, it should appear on your tweet list right? But since our modules don't talk directly to each other, let's use the emitter.

@@ -351,3 +349,3 @@ Our `tweet` module should notify other modules that something has happened.

* eventPlayer, eventRecorder optionals are importable directly from the core
* eventPlayer, eventRecorder extras are importable directly from the core

@@ -354,0 +352,0 @@ ### 2.0.0

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