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

@boost/event

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boost/event - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

res/errors.json

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

## 1.1.0 - 2019-08-03
#### 🚀 Updates
- Migrate to new RuntimeError layer. ([0793ffd](https://github.com/milesj/boost/tree/master/packages/event/commit/0793ffd))
**Note:** Version bump only for package @boost/event
### 1.0.3 - 2019-08-01

@@ -8,0 +20,0 @@

5

lib/BaseEvent.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const internal_1 = require("@boost/internal");
const constants_1 = require("./constants");

@@ -67,3 +68,3 @@ class BaseEvent {

if (typeof listener !== 'function') {
throw new TypeError(`Invalid event listener for "${this.name}", must be a function.`);
throw new internal_1.RuntimeError('event', 'EV_INVALID_LISTENER', [this.name]);
}

@@ -80,3 +81,3 @@ return listener;

if (!name.match(constants_1.EVENT_NAME_PATTERN)) {
throw new Error(`Invalid event ${type} "${name}". May only contain dashes, periods, and lowercase characters.`);
throw new internal_1.RuntimeError('event', 'EV_INVALID_NAME', [type, name]);
}

@@ -83,0 +84,0 @@ return name;

7

package.json
{
"name": "@boost/event",
"version": "1.0.3",
"version": "1.1.0",
"description": "A type-safe event system. Designed for Boost applications.",

@@ -21,2 +21,5 @@ "keywords": [

},
"dependencies": {
"@boost/internal": "^1.0.0"
},
"tsconfig": {

@@ -27,3 +30,3 @@ "exclude": [

},
"gitHead": "cf50d411c778a661520be41b0ea1042b31ce900d"
"gitHead": "df95147bce94ffa5bdddd011edf3d4261255f094"
}

Sorry, the diff of this file is not supported yet

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