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

@ecomfe/san-devhook

Package Overview
Dependencies
Maintainers
8
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecomfe/san-devhook - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

11

CHANGELOG.md
ChangeLog
========
=========
0.0.7
-------
- [ADD]
- Props in CNode.
- [REMOVE]
- All extension code.
- `__SAN_INFO__` property.
0.0.6

@@ -6,0 +15,0 @@ -------

2

package.json
{
"name": "@ecomfe/san-devhook",
"version": "0.0.6",
"version": "0.0.7",
"description": "Hook for san-devtool.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -7,11 +7,2 @@ # San-DevHook

## Entries
* Browser context
- External script
- Module
* Extension context
- For San-DevTool
## Usage

@@ -30,14 +21,14 @@

const config = {
hookOnly: false, // Do not send any message to content script (Only for extension).
subKey: 'treeData', // Key for the array of sub component tree.
treeDataGenerator: (message, component) => {}, // Append customized data for generating component tree.
beforeSanEventListener: () => {}, // Do something before a San event.
onSanMessage: (message, component) => {}, // Do something when a San event triggering.
afterSanEventListener: () => {}, // Do something after a San event.
beforeStoreEventListener: () => {}, // Do something before a san-store event.
onStoreMessage: () => {}, // Do something when a san-store event triggering.
afterStoreEventListener: () => {} // Do something after a san-store event.
hookOnly: false, // Do not send any message to content script (Only for extension).
subKey: 'treeData', // Key for the array of sub component tree.
treeDataGenerator: (message, cnode, component) => {}, // Append customized data for generating component tree.
beforeSanEventListener: () => {}, // Do something before a San event.
onSanMessage: (message, cnode, component) => {}, // Do something when a San event triggering.
afterSanEventListener: () => {}, // Do something after a San event.
beforeStoreEventListener: () => {}, // Do something before a san-store event.
onStoreMessage: () => {}, // Do something when a san-store event triggering.
afterStoreEventListener: () => {} // Do something after a san-store event.
};
// The last argument called *config* is the configuration of san-devhook in all listeners.
// The last argument called *config* is the configuration of san-devhook in all callbacks.

@@ -44,0 +35,0 @@ initHook(config);

Sorry, the diff of this file is too big to display

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