mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Changes to packages/callback-hook:
- Add bindEnvironment option to Hook constructor (defaults to true).
- Add internal helper function dontBindEnvironment() which does all the
error handling stuff like Meteor.bindEnvironment() but doesn't change
the environment.
- Use dontBindEnvironment() instead of Meteor.bindEnvironment() when
bindEnvironment option is false.
- Add tests.
Changes to packages/accounts-base:
- Create hooks with { bindEnvironment: false }
- Add test for whether Meteor.userId() is available in login callbacks.
19 lines
382 B
JavaScript
19 lines
382 B
JavaScript
Package.describe({
|
|
summary: "Register callbacks on a hook",
|
|
version: '1.0.4-plugins.0'
|
|
});
|
|
|
|
Package.onUse(function (api) {
|
|
api.use('underscore', ['client', 'server']);
|
|
|
|
api.export('Hook');
|
|
|
|
api.addFiles('hook.js', ['client', 'server']);
|
|
});
|
|
|
|
Package.onTest(function (api) {
|
|
api.use('callback-hook');
|
|
api.use('tinytest');
|
|
api.addFiles('hook_tests.js', 'server');
|
|
});
|