Package.describe({ name: 'nimble:restivus', summary: 'Create authenticated REST APIs in Meteor via HTTP/HTTPS. (Vendored fork: precompiled JS, accounts-password 2.x compatible.)', version: '0.8.12', git: 'https://github.com/kahmali/meteor-restivus.git' }); /* * Vendored fork of nimble:restivus@0.8.12. * * Why: the published Atmosphere package pins accounts-password@1.3.3, which * conflicts with Meteor 2.x (accounts-password 2.0). The upstream source is * CoffeeScript, and the coffeescript build plugin crashes this build machine * (node_contextify assertion). So the .coffee sources were precompiled to plain * JS (lib/restivus-all.js) and this package.js drops the coffeescript build * dependency and loosens the accounts-password constraint to 2.x. * * The REST behavior is unchanged — verified by the REST smoke test. */ Package.onUse(function (api) { api.versionsFrom('METEOR@2.3'); api.use('check'); api.use('underscore'); api.use('accounts-password@2.0.0 || 3.0.0'); api.use('simple:json-routes'); // iron-router error helper defines the `ironRouterSendErrorToResponse` global // used by the routes, so it must load first. api.addFiles('lib/iron-router-error-to-response.js', 'server'); api.addFiles('lib/restivus-all.js', 'server'); api.export('Restivus', 'server'); });