Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cerebral

Package Overview
Dependencies
Maintainers
5
Versions
638
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cerebral - npm Package Compare versions

Comparing version 5.0.0-1533748944448 to 5.0.0-1536860800024

2

es/devtools/index.js

@@ -63,3 +63,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

_this.version = "5.0.0-1533748944448";
_this.version = "5.0.0-1536860800024";
_this.debuggerWatchMap = {};

@@ -66,0 +66,0 @@ _this.debuggerComputedMap = {};

@@ -25,2 +25,3 @@ import * as tags from './tags';

export var state = tagsVar.state;
export var string = tagsVar.string;
export var sequences = tagsVar.sequences;

@@ -40,3 +41,3 @@ export var computed = tagsVar.computed;

export { sequence, parallel } from 'function-tree';
export { sequence, parallel, createTemplateTag, extractValueWithPath, resolveObject, ResolveValue, Tag } from 'function-tree';

@@ -43,0 +44,0 @@ export function Controller(rootModule, options) {

@@ -31,2 +31,6 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

value: function onUpdate(changes, force) {
if (!this.subscribers) {
// It has been deleted before in this batch: ignore.
return;
}
this.subscribers.forEach(function (subscription) {

@@ -33,0 +37,0 @@ subscription.cb(changes, force);

@@ -38,1 +38,8 @@ export { debounce } from 'function-tree/factories'

): Function
export function when<A, B, C, D>(
value1: A,
value2: B,
value3: C,
value4: D,
check: (value1: A, value2: B, value3: C, value4: D) => boolean
): Function

@@ -1,13 +0,14 @@

import { DevTools } from './devtools'
import {
IContext as IFunctionTreeContext,
FunctionTree,
Provider as FunctionTreeProvider,
IContext as IFunctionTreeContext,
Primitive,
ResolveValue,
TFunctionTreeExecutable,
Primitive,
} from 'function-tree'
import { DevTools } from './devtools'
export { sequence, parallel } from 'function-tree'
export type Sequence = TFunctionTreeExecutable
export type Sequence = Function
export {

@@ -22,9 +23,17 @@ IBranchContext,

*/
export const props: any
export const string: any
export const path: any
export const state: any
export const sequences: any
export const moduleState: any
export const moduleSequences: any
type TaggedTemplate = (strings: TemplateStringsArray, ...values: any[]) => any
export const props: TaggedTemplate
export const string: TaggedTemplate
export const path: any // ??
export const state: TaggedTemplate
export const sequences: TaggedTemplate
export const moduleState: TaggedTemplate
export const moduleSequences: TaggedTemplate
export {
createTemplateTag,
extractValueWithPath,
resolveObject,
ResolveValue,
Tag,
} from 'function-tree'

@@ -68,3 +77,4 @@ /*

export interface IContext<TProps> extends IFunctionTreeContext<TProps> {
export interface IContext<TProps={}> extends IFunctionTreeContext<TProps> {
app: ControllerClass
store: Store

@@ -71,0 +81,0 @@ get: Get

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

_this.version = "5.0.0-1533748944448";
_this.version = "5.0.0-1536860800024";
_this.debuggerWatchMap = {};

@@ -84,0 +84,0 @@ _this.debuggerComputedMap = {};

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

});
exports.throwError = exports.createDummyController = exports.View = exports.Reaction = exports.Compute = exports.Provider = exports.CerebralError = exports.parallel = exports.sequence = exports.ChainSequenceWithPropsFactory = exports.ChainSequenceFactory = exports.BaseControllerClass = exports.ProviderClass = exports.ControllerClass = exports.ModuleClass = exports.moduleComputed = exports.moduleSequences = exports.moduleState = exports.computed = exports.sequences = exports.state = exports.path = exports.props = undefined;
exports.throwError = exports.createDummyController = exports.View = exports.Reaction = exports.Compute = exports.Provider = exports.CerebralError = exports.Tag = exports.ResolveValue = exports.resolveObject = exports.extractValueWithPath = exports.createTemplateTag = exports.parallel = exports.sequence = exports.ChainSequenceWithPropsFactory = exports.ChainSequenceFactory = exports.BaseControllerClass = exports.ProviderClass = exports.ControllerClass = exports.ModuleClass = exports.moduleComputed = exports.moduleSequences = exports.moduleState = exports.computed = exports.sequences = exports.string = exports.state = exports.path = exports.props = undefined;

@@ -74,2 +74,32 @@ var _Module = require('./Module');

});
Object.defineProperty(exports, 'createTemplateTag', {
enumerable: true,
get: function get() {
return _functionTree.createTemplateTag;
}
});
Object.defineProperty(exports, 'extractValueWithPath', {
enumerable: true,
get: function get() {
return _functionTree.extractValueWithPath;
}
});
Object.defineProperty(exports, 'resolveObject', {
enumerable: true,
get: function get() {
return _functionTree.resolveObject;
}
});
Object.defineProperty(exports, 'ResolveValue', {
enumerable: true,
get: function get() {
return _functionTree.ResolveValue;
}
});
Object.defineProperty(exports, 'Tag', {
enumerable: true,
get: function get() {
return _functionTree.Tag;
}
});
exports.Controller = Controller;

@@ -171,2 +201,3 @@ exports.UniversalController = UniversalController;

var state = exports.state = tagsVar.state;
var string = exports.string = tagsVar.string;
var sequences = exports.sequences = tagsVar.sequences;

@@ -173,0 +204,0 @@ var computed = exports.computed = tagsVar.computed;

@@ -37,2 +37,6 @@ 'use strict';

value: function onUpdate(changes, force) {
if (!this.subscribers) {
// It has been deleted before in this batch: ignore.
return;
}
this.subscribers.forEach(function (subscription) {

@@ -39,0 +43,0 @@ subscription.cb(changes, force);

{
"name": "cerebral",
"version": "5.0.0-1533748944448",
"version": "5.0.0-1536860800024",
"description": "A state controller with its own debugger",

@@ -24,3 +24,3 @@ "main": "index.js",

"es6-error": "^4.0.2",
"function-tree": "^3.3.0-1533748944448"
"function-tree": "^3.3.0-1536860800024"
},

@@ -27,0 +27,0 @@ "scripts": {

@@ -8,1 +8,8 @@ export const props: any

export const moduleSequences: any
export {
createTemplateTag,
extractValueWithPath,
resolveObject,
ResolveValue,
Tag,
} from 'function-tree'

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