@magnetarjs/core
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "@magnetarjs/core", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"sideEffects": false, | ||
@@ -69,3 +69,3 @@ "description": "Magnetar core library.", | ||
}, | ||
"gitHead": "f2d156e39a115edd592224622a41968f0b141314" | ||
"gitHead": "085e52703851556d457b74fdf2b65a4682ae16d3" | ||
} |
@@ -79,3 +79,3 @@ import { O } from 'ts-toolbelt' | ||
for (const modifyFn of modifyPayloadFnsMap[actionName]) { | ||
payload = modifyFn(payload) | ||
payload = modifyFn(payload, docId) | ||
} | ||
@@ -82,0 +82,0 @@ |
@@ -61,3 +61,3 @@ import { O } from 'ts-toolbelt' | ||
for (const modifyFn of modifyPayloadFnsMap['stream']) { | ||
payload = modifyFn(payload) | ||
payload = modifyFn(payload, docId) | ||
} | ||
@@ -64,0 +64,0 @@ |
@@ -6,3 +6,6 @@ import { O } from 'ts-toolbelt' | ||
*/ | ||
export type ModifyWritePayload = (payload: Record<string, any>) => Record<string, any> | ||
export type ModifyWritePayload = ( | ||
payload: Record<string, any>, | ||
docId?: string | void | ||
) => Record<string, any> | ||
/** | ||
@@ -15,3 +18,6 @@ * This function will be executed everytime BEFORE the related action is triggered. The function defined will receive the payload of the action. You can then modify and return this payload. | ||
*/ | ||
export type ModifyReadPayload = (payload: Record<string, any> | void) => Record<string, any> | void | ||
export type ModifyReadPayload = ( | ||
payload: Record<string, any> | void, | ||
docId?: string | void | ||
) => Record<string, any> | void | ||
@@ -18,0 +24,0 @@ /** |
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
236807
5383