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

@braintree/event-emitter

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@braintree/event-emitter - npm Package Versions

2.0.1

Diff

braintree
published 2.0.0 •

Changelog

Source

2.0.0

  • BREAKING CHANGES

    • Update to node v18
  • Dev Dependency Updates

    • Update eslint to v8.47.0
    • Update eslint-plugin-prettier to v5
    • Update jest to v29.5.0
    • Update prettier to v3
    • Update typescript to v5.1.65
braintree
published 1.0.2 •

Changelog

Source

1.0.2

  • Revert incorrect Typescript typing where callback function for on
braintree
published 1.0.1 •

Changelog

Source

1.0.1

  • Correct Typescript typing where callback function for on does not require an argument
braintree
published 1.0.0 •

Changelog

Source

1.0.0

  • in Typescript, on can specify event payload type as a Generic

    type EventPayload = {
      foo: string;
    };
    
    emitter.on<EventPayload>("event-name", (payload) => {
      // payload is of type EventPayload
    });
    

Breaking Changes

  • remove createChild helper
  • _emit has been renamed to emit
  • emit now only takes one event payload argument instead of any number of arguments
braintree
published 0.4.1 •

Changelog

Source

0.4.1

  • Add missing type defs to package
braintree
published 0.4.0 •

Changelog

Source

0.4.0

  • Add typescript types
braintree
published 0.3.0 •

Changelog

Source

0.3.0

  • Fix issue where off would throw an error if no events existed for named event
  • Add hasListener method
braintree
published 0.2.0 •

Changelog

Source

0.2.0

  • Add off method
braintree
published 0.1.0 •

Changelog

Source

0.1.0

  • Initial release
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