Comments (7)
I am unable to reproduce this, there are a few possibilities. 1) not all my code is committed properly (I've been traveling while working on this), 2) I've not published latest to npm (or you need to update from npm), 3) make sure you git pull from head. Let me know
from eventemitter2.
I see...
I'm using the latest 'master' commit 9757112
fyi.
from eventemitter2.
Hmmm, also the cases above works for the latest npm version.
If you work with a dirty HEAD beyond npm releases, please omit this, otherwise i think that is a problem to fix :)
fyi, again...
from eventemitter2.
looking at this now that im back.
from eventemitter2.
Issue 1 resolved. Working on issue 2.
from eventemitter2.
Heh. Issue 2 is expected behavior.
['foo','bar','baz'] !== ['foo','*']
['foo','bar','baz'] === ['foo','*','*']
I am lead to believe that you desire the wild card to mean "everything after, unconditionally". The current behavior models the unix file-system wild-card style, its segment explicit, rather than arbitrary. I'm open to changing this if people want it.
from eventemitter2.
Hi, issue1 seems to be solved, thanks!
Personally if we talk about the 'namespace' concept, i expect the wildcard matches 'everything after, unconditionally'. And i suppose that we are talking about 'Namespaced events' in a programmatic manner imho.
But of course, your choice is your flavor all time.
from eventemitter2.
Related Issues (20)
- a typo in `toObject` HOT 1
- Make it more ESM module friendly HOT 4
- addListener types definition missing options parameter HOT 1
- Why not Promise.allSettled instead of Promise.all?
- Graceful Shutdown HOT 1
- Feature Request: await emitter.onAny() HOT 1
- Export interface WaitForFilter HOT 1
- An index signature parameter type must be either 'string', 'symbol' or 'number' HOT 10
- [QUESTION]How to on many eventNames when wildcard is true
- logPossibleMemoryLeak throws an error when event name is a Symbol
- EventEmitter2 is not handling throw exception and closing app HOT 4
- [request] Add method to add an EventEmitter to class that already extends another class
- How to obtain eventemitter2.min.js
- EventEmitter in JavaScript can cause out of memory
- Not compatible with strict CSP due to `new Function(..)`
- Is there a way of configuring anctions to be ran before and after the handle of an event?
- Listener execution order regarding wildcards HOT 1
- offAny typings must support no arguments
- Rejection in async listener results in Node process crash HOT 1
- Remove specific listener
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventemitter2.