Files
meteor/packages/http/package.js
Ben Newman 21275011bd Remove underscore from http package, and use modules.
I replaced the ecmascript package with just the modules package so that
ecmascript and its dependencies can depend on http without creating
package dependency cycles.

I also took this opportunity to upgrade the `request` npm dependency to
its latest version (2.83.0), and removed the `deprecated.js` file, which
used to define `Meteor.http`.
2017-11-16 19:49:05 -05:00

40 lines
965 B
JavaScript

Package.describe({
summary: "Make HTTP calls to remote servers",
version: '1.4.0'
});
Npm.depends({
request: "2.83.0"
});
Package.onUse(function (api) {
api.use([
'url',
// This package intentionally does not depend on ecmascript, so that
// ecmascript and its dependencies can depend on http without creating
// package dependency cycles.
'modules'
]);
api.mainModule('httpcall_client.js', 'client');
api.mainModule('httpcall_server.js', 'server');
api.export('HTTP');
api.export('HTTPInternals', 'server');
});
Package.onTest(function (api) {
api.use('ecmascript');
api.use('webapp', 'server');
api.use('underscore');
api.use('random');
api.use('http', ['client', 'server']);
api.use('tinytest');
api.use('test-helpers', ['client', 'server']);
api.addFiles('test_responder.js', 'server');
api.addFiles('httpcall_tests.js', ['client', 'server']);
api.addAssets('test_static.serveme', 'client');
});