Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

stent

Package Overview
Dependencies
0
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.6.5 to 3.6.6

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 3.6.6
Updates in the DevTools middleware.
## 3.6.5

@@ -2,0 +6,0 @@

12

lib/middlewares/__tests__/DevTools.spec.js

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

pageRefresh: true,
machines: []
state: []
});

@@ -119,3 +119,3 @@ });

meta: { middlewares: 1 },
machines: [{ name: "Foo", state: { name: "idle" } }],
state: [{ name: "Foo", state: { name: "idle" } }],
machine: {

@@ -374,3 +374,3 @@ "name": "Foo",

type: 'onMachineConnected',
machines: [sinon.match({ name: 'Foo' }), sinon.match({ name: 'Bar' })],
state: [sinon.match({ name: 'Foo' }), sinon.match({ name: 'Bar' })],
meta: { machines: [sinon.match({ name: 'Foo' })], middlewares: 2 }

@@ -388,3 +388,3 @@ }));

type: 'onMachineDisconnected',
machines: [sinon.match({ name: 'Foo' }), sinon.match({ name: 'Bar' })],
state: [sinon.match({ name: 'Foo' }), sinon.match({ name: 'Bar' })],
meta: { machines: [sinon.match({ name: 'Foo' })], middlewares: 2 }

@@ -423,3 +423,3 @@ }));

type: 'onMachineConnected',
machines: [sinon.match({ name: 'Foo' })],
state: [sinon.match({ name: 'Foo' })],
meta: { middlewares: 2, component: 'XXX' }

@@ -432,3 +432,3 @@ }));

type: 'onMachineDisconnected',
machines: [sinon.match({ name: 'Foo' })],
state: [sinon.match({ name: 'Foo' })],
meta: { middlewares: 2, component: 'XXX' }

@@ -435,0 +435,0 @@ }));

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

uid: uid,
machines: machines
state: machines
}, data), '*');

@@ -36,0 +36,0 @@ } else {

{
"name": "stent",
"version": "3.6.5",
"version": "3.6.6",
"description": "Stent is combining the ideas of redux with the concept of state machines",

@@ -5,0 +5,0 @@ "main": "lib",

@@ -40,3 +40,3 @@ import { Machine } from '../../';

pageRefresh: true,
machines: []
state: []
});

@@ -72,3 +72,3 @@ });

meta: { middlewares: 1 },
machines: [{ name: "Foo", state: { name: "idle" } }],
state: [{ name: "Foo", state: { name: "idle" } }],
machine: {

@@ -256,3 +256,3 @@ "name": "Foo",

type: 'onMachineConnected',
machines: [ sinon.match({ name: 'Foo' }), sinon.match({ name: 'Bar' }) ],
state: [ sinon.match({ name: 'Foo' }), sinon.match({ name: 'Bar' }) ],
meta: { machines: [ sinon.match({ name: 'Foo' })], middlewares: 2 }

@@ -270,3 +270,3 @@ }));

type: 'onMachineDisconnected',
machines: [ sinon.match({ name: 'Foo' }), sinon.match({ name: 'Bar' }) ],
state: [ sinon.match({ name: 'Foo' }), sinon.match({ name: 'Bar' }) ],
meta: { machines: [ sinon.match({ name: 'Foo' })], middlewares: 2 }

@@ -298,3 +298,3 @@ }));

type: 'onMachineConnected',
machines: [ sinon.match({ name: 'Foo' }) ],
state: [ sinon.match({ name: 'Foo' }) ],
meta: { middlewares: 2, component: 'XXX' }

@@ -307,3 +307,3 @@ }));

type: 'onMachineDisconnected',
machines: [ sinon.match({ name: 'Foo' }) ],
state: [ sinon.match({ name: 'Foo' }) ],
meta: { middlewares: 2, component: 'XXX' }

@@ -310,0 +310,0 @@ }));

@@ -17,3 +17,3 @@ import { stringify } from '../helpers/vendors/CircularJSON';

uid,
machines,
state: machines,
...data

@@ -20,0 +20,0 @@ }, '*');

@@ -286,3 +286,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.stentDevTools = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

uid: uid,
machines: machines
state: machines
}, data), '*');

@@ -289,0 +289,0 @@ } else {

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

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.stentDevTools=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";exports.__esModule=true;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};var specialChar="~",safeSpecialChar="\\x"+("0"+specialChar.charCodeAt(0).toString(16)).slice(-2),escapedSafeSpecialChar="\\"+safeSpecialChar,specialCharRG=new RegExp(safeSpecialChar,"g"),safeSpecialCharRG=new RegExp(escapedSafeSpecialChar,"g"),safeStartWithSpecialCharRG=new RegExp("(?:^|([^\\\\]))"+escapedSafeSpecialChar),indexOf=[].indexOf||function(v){for(var i=this.length;i--&&this[i]!==v;){}return i},$String=String;function generateReplacer(value,replacer,resolve){var inspect=!!replacer,path=[],all=[value],seen=[value],mapp=[resolve?specialChar:"[Circular]"],last=value,lvl=1,i,fn;if(inspect){fn=(typeof replacer==="undefined"?"undefined":_typeof(replacer))==="object"?function(key,value){return key!==""&&replacer.indexOf(key)<0?void 0:value}:replacer}return function(key,value){if(inspect)value=fn.call(this,key,value);if(key!==""){if(last!==this){i=lvl-indexOf.call(all,this)-1;lvl-=i;all.splice(lvl,all.length);path.splice(lvl-1,path.length);last=this}if((typeof value==="undefined"?"undefined":_typeof(value))==="object"&&value){if(indexOf.call(all,value)<0){all.push(last=value)}lvl=all.length;i=indexOf.call(seen,value);if(i<0){i=seen.push(value)-1;if(resolve){path.push((""+key).replace(specialCharRG,safeSpecialChar));mapp[i]=specialChar+path.join(specialChar)}else{mapp[i]=mapp[0]}}else{value=mapp[i]}}else{if(typeof value==="string"&&resolve){value=value.replace(safeSpecialChar,escapedSafeSpecialChar).replace(specialChar,safeSpecialChar)}}}return value}}function retrieveFromPath(current,keys){for(var i=0,length=keys.length;i<length;current=current[keys[i++].replace(safeSpecialCharRG,specialChar)]){}return current}function generateReviver(reviver){return function(key,value){var isString=typeof value==="string";if(isString&&value.charAt(0)===specialChar){return new $String(value.slice(1))}if(key==="")value=regenerate(value,value,{});if(isString)value=value.replace(safeStartWithSpecialCharRG,"$1"+specialChar).replace(escapedSafeSpecialChar,safeSpecialChar);return reviver?reviver.call(this,key,value):value}}function regenerateArray(root,current,retrieve){for(var i=0,length=current.length;i<length;i++){current[i]=regenerate(root,current[i],retrieve)}return current}function regenerateObject(root,current,retrieve){for(var key in current){if(current.hasOwnProperty(key)){current[key]=regenerate(root,current[key],retrieve)}}return current}function regenerate(root,current,retrieve){return current instanceof Array?regenerateArray(root,current,retrieve):current instanceof $String?current.length?retrieve.hasOwnProperty(current)?retrieve[current]:retrieve[current]=retrieveFromPath(root,current.split(specialChar)):root:current instanceof Object?regenerateObject(root,current,retrieve):current}function stringifyRecursion(value,replacer,space,doNotResolve){return JSON.stringify(value,generateReplacer(value,replacer,!doNotResolve),space)}function parseRecursion(text,reviver){return JSON.parse(text,generateReviver(reviver))}exports.default={stringify:stringifyRecursion,parse:parseRecursion};module.exports=exports["default"]},{}],2:[function(require,module,exports){"use strict";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};module.exports=function(value){if((typeof value==="undefined"?"undefined":_typeof(value))==="object"){return destroyCircular(value,[])}if(typeof value==="function"){return"[Function: "+(value.name||"anonymous")+"]"}return value};function destroyCircular(from,seen){var to=Array.isArray(from)?[]:{};seen.push(from);for(var _iterator=Object.keys(from),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var key=_ref;var value=from[key];if(typeof value==="function"){continue}if(!value||(typeof value==="undefined"?"undefined":_typeof(value))!=="object"){to[key]=value;continue}if(seen.indexOf(from[key])===-1){to[key]=destroyCircular(from[key],seen.slice(0));continue}to[key]="[Circular]"}if(typeof from.name==="string"){to.name=from.name}if(typeof from.message==="string"){to.message=from.message}if(typeof from.stack==="string"){to.stack=from.stack}return to}},{}],3:[function(require,module,exports){"use strict";exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _CircularJSON=require("../helpers/vendors/CircularJSON");var _SerializeError=require("../helpers/vendors/SerializeError");var _SerializeError2=_interopRequireDefault(_SerializeError);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Machine,idx=0,uid;var getUID=function getUID(){return++idx};var message=function message(data){if(window&&window.top&&window.top.postMessage){var machines=Object.keys(Machine.machines).map(function(name){return{name:name,state:sanitize(Machine.machines[name].state)}});window.top.postMessage(_extends({source:"stent",time:(new Date).getTime(),uid:uid,machines:machines},data),"*")}else{console.error("There is no window.postMessage available")}};var formatYielded=function formatYielded(yielded){var y=yielded;if(yielded&&yielded.__type==="call"){var funcName=yielded.func.name;if(funcName===""){funcName="<anonymous>"}try{y=sanitize(yielded)}catch(error){y={__type:"call"}}y.func=funcName}return y};var sanitize=function sanitize(something){var showErrorInConsole=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var result;try{result=JSON.parse((0,_CircularJSON.stringify)(something,function(key,value){if(typeof value==="function"){return{__func:value.name===""?"<anonymous>":value.name}}if(value instanceof Error){return(0,_SerializeError2.default)(value)}return value}))}catch(error){if(showErrorInConsole){console.log(error)}result=null}return result};var getMetaInfo=function getMetaInfo(meta){return Object.assign({},meta,{middlewares:Machine.middlewares.length})};var DevTools={__sanitize:sanitize,__formatYielded:formatYielded,__message:message,__initialize:function __initialize(m,uniqueId){Machine=m;uid=uniqueId},onMachineCreated:function onMachineCreated(machine){message({type:"onMachineCreated",machine:sanitize(machine),meta:getMetaInfo()})},onActionDispatched:function onActionDispatched(actionName){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}message({type:"onActionDispatched",actionName:actionName,args:sanitize(args),machine:sanitize(this),meta:getMetaInfo()})},onActionProcessed:function onActionProcessed(actionName){for(var _len2=arguments.length,args=Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2]}message({type:"onActionProcessed",actionName:actionName,args:sanitize(args),machine:sanitize(this),meta:getMetaInfo()})},onStateWillChange:function onStateWillChange(){message({type:"onStateWillChange",machine:sanitize(this),meta:getMetaInfo()})},onStateChanged:function onStateChanged(){message({type:"onStateChanged",machine:sanitize(this),meta:getMetaInfo()})},onGeneratorStep:function onGeneratorStep(yielded){message({type:"onGeneratorStep",yielded:formatYielded(yielded),meta:getMetaInfo()})},onGeneratorEnd:function onGeneratorEnd(value){message({type:"onGeneratorEnd",value:sanitize(value),meta:getMetaInfo()})},onGeneratorResumed:function onGeneratorResumed(value){message({type:"onGeneratorResumed",value:sanitize(value),meta:getMetaInfo()})},onMachineConnected:function onMachineConnected(machines,meta){message({type:"onMachineConnected",meta:getMetaInfo(_extends({},meta,{machines:sanitize(machines)}))})},onMachineDisconnected:function onMachineDisconnected(machines,meta){message({type:"onMachineDisconnected",meta:getMetaInfo(_extends({},meta,{machines:sanitize(machines)}))})},onMiddlewareRegister:function onMiddlewareRegister(){message({pageRefresh:true})}};exports.default=DevTools;module.exports=exports["default"]},{"../helpers/vendors/CircularJSON":1,"../helpers/vendors/SerializeError":2}]},{},[3])(3)});
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.stentDevTools=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";exports.__esModule=true;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};var specialChar="~",safeSpecialChar="\\x"+("0"+specialChar.charCodeAt(0).toString(16)).slice(-2),escapedSafeSpecialChar="\\"+safeSpecialChar,specialCharRG=new RegExp(safeSpecialChar,"g"),safeSpecialCharRG=new RegExp(escapedSafeSpecialChar,"g"),safeStartWithSpecialCharRG=new RegExp("(?:^|([^\\\\]))"+escapedSafeSpecialChar),indexOf=[].indexOf||function(v){for(var i=this.length;i--&&this[i]!==v;){}return i},$String=String;function generateReplacer(value,replacer,resolve){var inspect=!!replacer,path=[],all=[value],seen=[value],mapp=[resolve?specialChar:"[Circular]"],last=value,lvl=1,i,fn;if(inspect){fn=(typeof replacer==="undefined"?"undefined":_typeof(replacer))==="object"?function(key,value){return key!==""&&replacer.indexOf(key)<0?void 0:value}:replacer}return function(key,value){if(inspect)value=fn.call(this,key,value);if(key!==""){if(last!==this){i=lvl-indexOf.call(all,this)-1;lvl-=i;all.splice(lvl,all.length);path.splice(lvl-1,path.length);last=this}if((typeof value==="undefined"?"undefined":_typeof(value))==="object"&&value){if(indexOf.call(all,value)<0){all.push(last=value)}lvl=all.length;i=indexOf.call(seen,value);if(i<0){i=seen.push(value)-1;if(resolve){path.push((""+key).replace(specialCharRG,safeSpecialChar));mapp[i]=specialChar+path.join(specialChar)}else{mapp[i]=mapp[0]}}else{value=mapp[i]}}else{if(typeof value==="string"&&resolve){value=value.replace(safeSpecialChar,escapedSafeSpecialChar).replace(specialChar,safeSpecialChar)}}}return value}}function retrieveFromPath(current,keys){for(var i=0,length=keys.length;i<length;current=current[keys[i++].replace(safeSpecialCharRG,specialChar)]){}return current}function generateReviver(reviver){return function(key,value){var isString=typeof value==="string";if(isString&&value.charAt(0)===specialChar){return new $String(value.slice(1))}if(key==="")value=regenerate(value,value,{});if(isString)value=value.replace(safeStartWithSpecialCharRG,"$1"+specialChar).replace(escapedSafeSpecialChar,safeSpecialChar);return reviver?reviver.call(this,key,value):value}}function regenerateArray(root,current,retrieve){for(var i=0,length=current.length;i<length;i++){current[i]=regenerate(root,current[i],retrieve)}return current}function regenerateObject(root,current,retrieve){for(var key in current){if(current.hasOwnProperty(key)){current[key]=regenerate(root,current[key],retrieve)}}return current}function regenerate(root,current,retrieve){return current instanceof Array?regenerateArray(root,current,retrieve):current instanceof $String?current.length?retrieve.hasOwnProperty(current)?retrieve[current]:retrieve[current]=retrieveFromPath(root,current.split(specialChar)):root:current instanceof Object?regenerateObject(root,current,retrieve):current}function stringifyRecursion(value,replacer,space,doNotResolve){return JSON.stringify(value,generateReplacer(value,replacer,!doNotResolve),space)}function parseRecursion(text,reviver){return JSON.parse(text,generateReviver(reviver))}exports.default={stringify:stringifyRecursion,parse:parseRecursion};module.exports=exports["default"]},{}],2:[function(require,module,exports){"use strict";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};module.exports=function(value){if((typeof value==="undefined"?"undefined":_typeof(value))==="object"){return destroyCircular(value,[])}if(typeof value==="function"){return"[Function: "+(value.name||"anonymous")+"]"}return value};function destroyCircular(from,seen){var to=Array.isArray(from)?[]:{};seen.push(from);for(var _iterator=Object.keys(from),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var key=_ref;var value=from[key];if(typeof value==="function"){continue}if(!value||(typeof value==="undefined"?"undefined":_typeof(value))!=="object"){to[key]=value;continue}if(seen.indexOf(from[key])===-1){to[key]=destroyCircular(from[key],seen.slice(0));continue}to[key]="[Circular]"}if(typeof from.name==="string"){to.name=from.name}if(typeof from.message==="string"){to.message=from.message}if(typeof from.stack==="string"){to.stack=from.stack}return to}},{}],3:[function(require,module,exports){"use strict";exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _CircularJSON=require("../helpers/vendors/CircularJSON");var _SerializeError=require("../helpers/vendors/SerializeError");var _SerializeError2=_interopRequireDefault(_SerializeError);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Machine,idx=0,uid;var getUID=function getUID(){return++idx};var message=function message(data){if(window&&window.top&&window.top.postMessage){var machines=Object.keys(Machine.machines).map(function(name){return{name:name,state:sanitize(Machine.machines[name].state)}});window.top.postMessage(_extends({source:"stent",time:(new Date).getTime(),uid:uid,state:machines},data),"*")}else{console.error("There is no window.postMessage available")}};var formatYielded=function formatYielded(yielded){var y=yielded;if(yielded&&yielded.__type==="call"){var funcName=yielded.func.name;if(funcName===""){funcName="<anonymous>"}try{y=sanitize(yielded)}catch(error){y={__type:"call"}}y.func=funcName}return y};var sanitize=function sanitize(something){var showErrorInConsole=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var result;try{result=JSON.parse((0,_CircularJSON.stringify)(something,function(key,value){if(typeof value==="function"){return{__func:value.name===""?"<anonymous>":value.name}}if(value instanceof Error){return(0,_SerializeError2.default)(value)}return value}))}catch(error){if(showErrorInConsole){console.log(error)}result=null}return result};var getMetaInfo=function getMetaInfo(meta){return Object.assign({},meta,{middlewares:Machine.middlewares.length})};var DevTools={__sanitize:sanitize,__formatYielded:formatYielded,__message:message,__initialize:function __initialize(m,uniqueId){Machine=m;uid=uniqueId},onMachineCreated:function onMachineCreated(machine){message({type:"onMachineCreated",machine:sanitize(machine),meta:getMetaInfo()})},onActionDispatched:function onActionDispatched(actionName){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}message({type:"onActionDispatched",actionName:actionName,args:sanitize(args),machine:sanitize(this),meta:getMetaInfo()})},onActionProcessed:function onActionProcessed(actionName){for(var _len2=arguments.length,args=Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2]}message({type:"onActionProcessed",actionName:actionName,args:sanitize(args),machine:sanitize(this),meta:getMetaInfo()})},onStateWillChange:function onStateWillChange(){message({type:"onStateWillChange",machine:sanitize(this),meta:getMetaInfo()})},onStateChanged:function onStateChanged(){message({type:"onStateChanged",machine:sanitize(this),meta:getMetaInfo()})},onGeneratorStep:function onGeneratorStep(yielded){message({type:"onGeneratorStep",yielded:formatYielded(yielded),meta:getMetaInfo()})},onGeneratorEnd:function onGeneratorEnd(value){message({type:"onGeneratorEnd",value:sanitize(value),meta:getMetaInfo()})},onGeneratorResumed:function onGeneratorResumed(value){message({type:"onGeneratorResumed",value:sanitize(value),meta:getMetaInfo()})},onMachineConnected:function onMachineConnected(machines,meta){message({type:"onMachineConnected",meta:getMetaInfo(_extends({},meta,{machines:sanitize(machines)}))})},onMachineDisconnected:function onMachineDisconnected(machines,meta){message({type:"onMachineDisconnected",meta:getMetaInfo(_extends({},meta,{machines:sanitize(machines)}))})},onMiddlewareRegister:function onMiddlewareRegister(){message({pageRefresh:true})}};exports.default=DevTools;module.exports=exports["default"]},{"../helpers/vendors/CircularJSON":1,"../helpers/vendors/SerializeError":2}]},{},[3])(3)});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc