mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
I've reverted match properties that return class instances back to normal functions, so that they can be called as constructors. Also, I added tests to make sure we catch this issue if someone else gets the same idea that I had!
21 lines
412 B
JavaScript
21 lines
412 B
JavaScript
Package.describe({
|
|
summary: 'Check whether a value matches a pattern',
|
|
version: '1.3.1',
|
|
});
|
|
|
|
Package.onUse(api => {
|
|
api.use('ecmascript');
|
|
api.use('ejson');
|
|
|
|
api.mainModule('match.js');
|
|
|
|
api.export('check');
|
|
api.export('Match');
|
|
});
|
|
|
|
Package.onTest(api => {
|
|
api.use(['check', 'tinytest', 'ejson', 'ecmascript'], ['client', 'server']);
|
|
|
|
api.addFiles('match_test.js', ['client', 'server']);
|
|
});
|