New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

self-tracing-hyperapp

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

self-tracing-hyperapp

Call __self-tracing-hyperapp__ with an additional truthy argument to enable real-time self-logging: ```js let main = app(state, actions, view, container, true); ``` This version of Hyperapp is non-breaking, you can swap it out in any existing V1 hyperapp

latest
npmnpm
Version
1.6.4
Version published
Maintainers
1
Created
Source

Self-Tracing Hyperapp

Call self-tracing-hyperapp with an additional truthy argument to enable real-time self-logging:

let main = app(state, actions, view, container, true);

This version of Hyperapp is non-breaking, you can swap it out in any existing V1 hyperapp project with no additional changes necessary.

npm install self-tracing-hyperapp

Additional Functionality

Additional Properties :

  • .log- Accumulates all acitons calls, parial states, and v-dom rerenders through the lifecycle of your application. Action calls and their direct downstream effects are logged under the same entry ID.
  • .log.actions - Stores a mirror of the application's actions with functions replaced by true/false to indicate if it is being tracked.

Additional Methods:

argsbehavior
.logActionsnothing, a string, or array of stringsprints all actions, a top-level action, or a nested action
.logStatenothing, a string, or array of stringprints full state, a top-level state property, or a nested state
.logVdomnothing, or a stringprints the whole v-dom, or the element with id matching your argument
.logIgnorea string, or array of stringswill exclude the designated top-level, or nested action from the log. the partial state and vdom from this action will also be ignored
.logTracka string, or array of stringswill include the designated top-level or nested action in the log. the partial state and vdom from this action will be logged
.logFlagstrings are best, but anything workspushes your arg into the log
.logConfig{ actions: boolean, state: boolean, vdom: boolean }globally tracks or ignores all actions, state changes, or vdom changes

FAQs

Package last updated on 20 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts