@boost/event
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -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 @@ |
"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; |
{ | ||
"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
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
19350
29
275
1
+ Added@boost/internal@^1.0.0
+ Added@boost/internal@1.2.0(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedsupports-color@7.2.0(transitive)