@erickmerchant/framework
Advanced tools
Comparing version 12.1.2 to 12.2.0
10
main.js
@@ -6,2 +6,7 @@ const assert = require('assert') | ||
assert.equal(typeof store, 'function', 'store must be a function') | ||
assert.equal(typeof component, 'function', 'component must be a function') | ||
assert.equal(typeof diff, 'function', 'diff must be a function') | ||
assert.equal(typeof raf, 'function', 'raf must be a function') | ||
let rafCalled = false | ||
@@ -25,2 +30,4 @@ let initialized = false | ||
if (init != null) { | ||
assert.equal(typeof init, 'function', 'init must be a function') | ||
init({target, dispatch}) | ||
@@ -42,2 +49,3 @@ } else { | ||
assert.ok(initialized, 'trying to commit before the app is initialized') | ||
assert.equal(typeof current, 'function', 'current must be a function') | ||
@@ -64,4 +72,6 @@ state = current(state) | ||
function next (callback) { | ||
assert.equal(typeof callback, 'function', 'callback must be a function') | ||
process.nextTick(callback, {target, dispatch}) | ||
} | ||
} |
{ | ||
"name": "@erickmerchant/framework", | ||
"version": "12.1.2", | ||
"version": "12.2.0", | ||
"description": "A simple data down, actions up framework.", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
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
9559
164