@ecomfe/san-devhook
Advanced tools
Comparing version 0.0.6 to 0.0.7
ChangeLog | ||
======== | ||
========= | ||
0.0.7 | ||
------- | ||
- [ADD] | ||
- Props in CNode. | ||
- [REMOVE] | ||
- All extension code. | ||
- `__SAN_INFO__` property. | ||
0.0.6 | ||
@@ -6,0 +15,0 @@ ------- |
{ | ||
"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
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
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
0
117582
3142
65