
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@mxenabled/widget-post-message-definitions
Advanced tools
Widget Post Message Definitions for use in SDKs
This project defines and implements all Post Message parsing and dispatching in TypeScript. This is for use in Widget SDKs. The majorify of this package was auto generated by the Widget Post Message Definitions project, and any modifications to a Post Message definition or handling should be done there.
You can install this package via npm:
npm install --save @mxenabled/widget-post-message-definitions
import { dispatchConnectLocationChangeEvent } from "@mxenabled/widget-post-message-definitions"
dispatchConnectLocationChangeEvent("mx://connect/memberDeleted?metadata=...", {
onMemberDeleted: (payload) => {
console.log(`${payload.member_guid} has been deleted`)
}
})
This package does not have any depedencies with the exception of the url
package, which you may need if you're parsing post message events from URL
change events.
The React Native SDK needs this package and has it as a dependency, but the Web SDK won't and we shouldn't install or import it. This allows us to keep both SDKs happy.
To install url
in your project so you can parse post messages in location
change events:
npm install --save url
FAQs
Widget Post Message Definitions for use in SDKs
The npm package @mxenabled/widget-post-message-definitions receives a total of 4,732 weekly downloads. As such, @mxenabled/widget-post-message-definitions popularity was classified as popular.
We found that @mxenabled/widget-post-message-definitions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 23 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.