function-tree
Advanced tools
Comparing version 3.3.1-1562757238762 to 3.3.1-1570295904659
@@ -43,2 +43,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
} | ||
/* | ||
@@ -66,2 +67,3 @@ Sets up the listeners to Chrome Extension or remote debugger | ||
} | ||
/* | ||
@@ -99,2 +101,3 @@ The debugger might be ready or it might not. The initial communication | ||
} | ||
/* | ||
@@ -109,2 +112,3 @@ Sends message to chrome extension or remote debugger | ||
} | ||
/* | ||
@@ -129,2 +133,3 @@ Sends multiple message in one batch to debugger, causing debugger | ||
} | ||
/* | ||
@@ -131,0 +136,0 @@ Watches function tree for execution of signals. This is passed to |
@@ -27,3 +27,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.latestExecutionId = null; | ||
_this.version = "3.3.1-1562757238762"; | ||
_this.version = "3.3.1-1570295904659"; | ||
_this.init(); | ||
@@ -100,2 +100,3 @@ return _this; | ||
} | ||
/* | ||
@@ -102,0 +103,0 @@ Create the stringified message for the debugger. As we need to |
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
@@ -18,2 +21,3 @@ extendStatics(d, b); | ||
SequenceBuilder.prototype.action = function () { | ||
var _a; | ||
var action = []; | ||
@@ -30,3 +34,2 @@ for (var _i = 0; _i < arguments.length; _i++) { | ||
return new SequenceBuilder(this.sequenceArray); | ||
var _a; | ||
}; | ||
@@ -55,5 +58,5 @@ SequenceBuilder.prototype.branch = function (action) { | ||
SequenceBuilder.prototype.sequence = function (seq) { | ||
var _a; | ||
(_a = this.sequenceArray).push.apply(_a, seq); | ||
return new SequenceBuilder(this.sequenceArray); | ||
var _a; | ||
}; | ||
@@ -74,3 +77,3 @@ SequenceBuilder.prototype.when = function (callback) { | ||
? context.path[result]({}) | ||
: context.path.othersise({}); | ||
: context.path.otherwise({}); | ||
} | ||
@@ -91,3 +94,3 @@ return this.branch(equals); | ||
} | ||
ContinueSequenceBuilder.prototype.continue = function (arg) { | ||
ContinueSequenceBuilder.prototype.continue = function () { | ||
var builder = new SequenceBuilder([]); | ||
@@ -94,0 +97,0 @@ this.sequenceArray.push({ |
@@ -7,9 +7,9 @@ import * as assert from 'assert'; | ||
it('should return array', function () { | ||
function action1(context) { } | ||
function action1() { } | ||
var seq = Sequence(function (x) { return x.action(action1); }); | ||
assert.deepEqual(seq, [action1]); | ||
assert.deepStrictEqual(seq, [action1]); | ||
}); | ||
it('should return paths correctly', function () { | ||
function action1(context) { } | ||
function action2(context) { } | ||
function action1() { } | ||
function action2() { } | ||
function action3(context) { | ||
@@ -28,3 +28,3 @@ context.state.stateData = 'Something'; | ||
}); | ||
assert.deepEqual(seq, [ | ||
assert.deepStrictEqual(seq, [ | ||
action1, | ||
@@ -40,3 +40,3 @@ action3, | ||
it('should infer props on next inline action', function () { | ||
function action1(context) { | ||
function action1() { | ||
return { | ||
@@ -54,3 +54,3 @@ foo: 'bar', | ||
it('should infer props on next action with required props', function () { | ||
function action1(context) { | ||
function action1() { | ||
return { | ||
@@ -66,3 +66,3 @@ foo: 'bar', | ||
it('should infer promise props on actions', function () { | ||
function action1(context) { | ||
function action1() { | ||
return Promise.resolve({ | ||
@@ -69,0 +69,0 @@ foo: 'bar', |
@@ -28,2 +28,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; }; }(); | ||
} | ||
/* | ||
@@ -40,2 +41,3 @@ Returns all tags, also nested to identify nested state dependencies | ||
} | ||
/* | ||
@@ -65,2 +67,3 @@ Gets the path of the tag, where nested tags are evaluated | ||
} | ||
/* | ||
@@ -85,2 +88,3 @@ Grab nested tags from the tags current path | ||
} | ||
/* | ||
@@ -95,2 +99,3 @@ Produces a string representation of the tag | ||
} | ||
/* | ||
@@ -97,0 +102,0 @@ Produces a string representation of the path |
@@ -54,2 +54,3 @@ 'use strict'; | ||
} | ||
/* | ||
@@ -77,2 +78,3 @@ Sets up the listeners to Chrome Extension or remote debugger | ||
} | ||
/* | ||
@@ -110,2 +112,3 @@ The debugger might be ready or it might not. The initial communication | ||
} | ||
/* | ||
@@ -120,2 +123,3 @@ Sends message to chrome extension or remote debugger | ||
} | ||
/* | ||
@@ -140,2 +144,3 @@ Sends multiple message in one batch to debugger, causing debugger | ||
} | ||
/* | ||
@@ -142,0 +147,0 @@ Watches function tree for execution of signals. This is passed to |
@@ -48,3 +48,3 @@ 'use strict'; | ||
_this.latestExecutionId = null; | ||
_this.version = "3.3.1-1562757238762"; | ||
_this.version = "3.3.1-1570295904659"; | ||
_this.init(); | ||
@@ -121,2 +121,3 @@ return _this; | ||
} | ||
/* | ||
@@ -123,0 +124,0 @@ Create the stringified message for the debugger. As we need to |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
@@ -13,4 +16,4 @@ extendStatics(d, b); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var _1 = require("../../"); | ||
var _2 = require("../../factories/"); | ||
var __1 = require("../../"); | ||
var factories_1 = require("../../factories/"); | ||
var SequenceBuilder = /** @class */ (function () { | ||
@@ -21,2 +24,3 @@ function SequenceBuilder(sequenceArray) { | ||
SequenceBuilder.prototype.action = function () { | ||
var _a; | ||
var action = []; | ||
@@ -33,3 +37,2 @@ for (var _i = 0; _i < arguments.length; _i++) { | ||
return new SequenceBuilder(this.sequenceArray); | ||
var _a; | ||
}; | ||
@@ -54,9 +57,9 @@ SequenceBuilder.prototype.branch = function (action) { | ||
var name = typeof args[0] === 'string' ? args[0] : ''; | ||
this.sequenceArray.push(_1.parallel(name, result)); | ||
this.sequenceArray.push(__1.parallel(name, result)); | ||
return new SequenceBuilder(this.sequenceArray); | ||
}; | ||
SequenceBuilder.prototype.sequence = function (seq) { | ||
var _a; | ||
(_a = this.sequenceArray).push.apply(_a, seq); | ||
return new SequenceBuilder(this.sequenceArray); | ||
var _a; | ||
}; | ||
@@ -70,3 +73,3 @@ SequenceBuilder.prototype.when = function (callback) { | ||
SequenceBuilder.prototype.debounce = function (ms) { | ||
return this.branch(_2.debounce(ms)); | ||
return this.branch(factories_1.debounce(ms)); | ||
}; | ||
@@ -78,3 +81,3 @@ SequenceBuilder.prototype.equals = function (callback) { | ||
? context.path[result]({}) | ||
: context.path.othersise({}); | ||
: context.path.otherwise({}); | ||
} | ||
@@ -84,3 +87,3 @@ return this.branch(equals); | ||
SequenceBuilder.prototype.wait = function (ms) { | ||
this.sequenceArray.push(_2.wait(ms)); | ||
this.sequenceArray.push(factories_1.wait(ms)); | ||
return new ContinueSequenceBuilder(this.sequenceArray); | ||
@@ -96,3 +99,3 @@ }; | ||
} | ||
ContinueSequenceBuilder.prototype.continue = function (arg) { | ||
ContinueSequenceBuilder.prototype.continue = function () { | ||
var builder = new SequenceBuilder([]); | ||
@@ -99,0 +102,0 @@ this.sequenceArray.push({ |
@@ -9,9 +9,9 @@ "use strict"; | ||
it('should return array', function () { | ||
function action1(context) { } | ||
function action1() { } | ||
var seq = Sequence(function (x) { return x.action(action1); }); | ||
assert.deepEqual(seq, [action1]); | ||
assert.deepStrictEqual(seq, [action1]); | ||
}); | ||
it('should return paths correctly', function () { | ||
function action1(context) { } | ||
function action2(context) { } | ||
function action1() { } | ||
function action2() { } | ||
function action3(context) { | ||
@@ -30,3 +30,3 @@ context.state.stateData = 'Something'; | ||
}); | ||
assert.deepEqual(seq, [ | ||
assert.deepStrictEqual(seq, [ | ||
action1, | ||
@@ -42,3 +42,3 @@ action3, | ||
it('should infer props on next inline action', function () { | ||
function action1(context) { | ||
function action1() { | ||
return { | ||
@@ -56,3 +56,3 @@ foo: 'bar', | ||
it('should infer props on next action with required props', function () { | ||
function action1(context) { | ||
function action1() { | ||
return { | ||
@@ -68,3 +68,3 @@ foo: 'bar', | ||
it('should infer promise props on actions', function () { | ||
function action1(context) { | ||
function action1() { | ||
return Promise.resolve({ | ||
@@ -71,0 +71,0 @@ foo: 'bar', |
@@ -37,2 +37,3 @@ 'use strict'; | ||
} | ||
/* | ||
@@ -49,2 +50,3 @@ Returns all tags, also nested to identify nested state dependencies | ||
} | ||
/* | ||
@@ -74,2 +76,3 @@ Gets the path of the tag, where nested tags are evaluated | ||
} | ||
/* | ||
@@ -94,2 +97,3 @@ Grab nested tags from the tags current path | ||
} | ||
/* | ||
@@ -104,2 +108,3 @@ Produces a string representation of the tag | ||
} | ||
/* | ||
@@ -106,0 +111,0 @@ Produces a string representation of the path |
{ | ||
"name": "function-tree", | ||
"version": "3.3.1-1562757238762", | ||
"version": "3.3.1-1570295904659", | ||
"description": "When a function is not enough", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
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
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
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
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
366233
3863