@ecomfe/san-devhook
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -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 @@ ------- |
{ | ||
"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": { |
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
141269
3741
74
1
8