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

microcosm

Package Overview
Dependencies
Maintainers
1
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microcosm - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1

4

CHANGELOG.md
# Changelog
### 6.2.1
- Externalize some methods to fix extension
### 6.2.0

@@ -4,0 +8,0 @@

2

package.json
{
"name": "microcosm",
"version": "6.2.0",
"version": "6.2.1",
"description": "A functional flux architecture",

@@ -5,0 +5,0 @@ "main": "dist/Microcosm.js",

@@ -49,5 +49,5 @@ import Action from './fixtures/Action'

describe('Microcosm::_commit', function() {
describe('Microcosm::commit', function() {
it ('assigns new state', function() {
app._commit({ foo: 'bar' })
app.commit({ foo: 'bar' })
app.pull('foo').should.equal('bar')

@@ -58,3 +58,3 @@ })

app.listen(done)
app._commit('test')
app.commit('test')
})

@@ -83,5 +83,5 @@ })

it ('sends a messages to the dispatcher', function() {
sinon.spy(app, '_dispatch')
sinon.spy(app, 'dispatch')
app.push(Action)
app._dispatch.should.have.been.calledWith(Action, true)
app.dispatch.should.have.been.calledWith(Action, true)
})

@@ -92,6 +92,6 @@

sinon.spy(app, '_dispatch')
sinon.spy(app, 'dispatch')
app.push(Async).then(function() {
app._dispatch.should.have.been.calledWith(Async, true)
app.dispatch.should.have.been.calledWith(Async, true)
done()

@@ -110,3 +110,3 @@ })

describe('Microcosm::_dispatch', function() {
describe('Microcosm::dispatch', function() {
let local;

@@ -125,3 +125,3 @@

local._dispatch(Action)
local.dispatch(Action)
})

@@ -131,3 +131,3 @@

local.listen(done)
local._dispatch('respond')
local.dispatch('respond')
})

@@ -204,3 +204,3 @@

it ('can turn into a flat object', function() {
app._commit(Object.create({ foo: 'bar' }))
app.commit(Object.create({ foo: 'bar' }))
app.toObject().should.have.property('foo', 'bar')

@@ -207,0 +207,0 @@ })

@@ -36,6 +36,6 @@ /**

if (request instanceof Promise) {
return request.then(body => this._dispatch(signal, body))
return request.then(body => this.dispatch(signal, body))
}
return this._dispatch(signal, request)
return this.dispatch(signal, request)
}

@@ -54,6 +54,6 @@

replace(data) {
this._commit(this.deserialize(data))
this.commit(this.deserialize(data))
}
_commit(next) {
commit(next) {
this._state = next

@@ -63,3 +63,3 @@ this.emit()

_dispatch(action, body) {
dispatch(action, body) {
let actors = remapIf(this._stores, store => action in store)

@@ -71,3 +71,3 @@

this._commit(staged)
this.commit(staged)
}

@@ -74,0 +74,0 @@

@@ -36,3 +36,3 @@ var Webpack = require('webpack')

query : {
stage: 0,
stage: 1,
loose: true

@@ -39,0 +39,0 @@ }

@@ -55,3 +55,3 @@ var Webpack = require('webpack')

exclude : /node_modules/,
loader : 'react-hot!babel?experimental&loose'
loader : 'react-hot!babel?stage=1&loose'
},

@@ -58,0 +58,0 @@ {

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