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.5 to 0.0.6

8

CHANGELOG.md

@@ -5,2 +5,10 @@ ChangeLog

0.0.6
-------
- [ADD]
- CNode class for component tree in `__san_devtool__`.
- New San listener.
- Customized key for component tree.
0.0.4

@@ -7,0 +15,0 @@ -------

5

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

@@ -17,5 +17,6 @@ "keywords": [

"test": "",
"dev": "cross-env NODE_ENV=develop webpack --progress --hide-modules",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"chrome": "cross-env NODE_ENV=chrome_ext webpack --hide-modules --progress && node ./tests/run_chrome_ext.js",
"browser": "cross-env NODE_ENV=production webpack --hide-modules --progress && node ./tests/browser.js"
"browser": "cross-env NODE_ENV=develop webpack --hide-modules --progress && node ./tests/browser.js"
},

@@ -22,0 +23,0 @@ "devDependencies": {

24

README.md

@@ -29,13 +29,15 @@ # San-DevHook

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: () => {}, // Append customized data for generating component tree.
beforeSanEventListener: () => {}, // Do something before a San event.
onSanMessage: () => {}, // 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, 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.
};
// The last argument called *config* is the configuration of san-devhook in all listeners.
initHook(config);

@@ -57,5 +59,5 @@ ```

- `__SAN_COMPONENT__`: The component instance for current DOM.
- `__SAN_COMPONENT__`: The component instance of current DOM object.
- `__SAN_DATA__`: The component data.
- `__SAN_INFO__`: Basic component info.
- `__SAN_CNODE__`: A CNode instance of component acts as a serializable object.
- `__SAN_PATH__`: Ancestor component ID list.

@@ -62,0 +64,0 @@

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