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

@magnetarjs/core

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magnetarjs/core - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

4

package.json
{
"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 @@ /**

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