mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
You can still include them on the client, but they don’t work in Safari 4 and IE 8 because semver.js uses ES 5 methods including String#trim, Array#map/filter/forEach, and possibly others. This should fix any unit test failures in these packages.
18 lines
432 B
JavaScript
18 lines
432 B
JavaScript
Package.describe({
|
|
summary: "Parses Meteor Smart Package version strings",
|
|
version: "3.0.0"
|
|
});
|
|
|
|
Package.onUse(function (api) {
|
|
api.export('PackageVersion');
|
|
api.use('underscore');
|
|
api.addFiles(['semver410.js',
|
|
'package-version-parser.js']);
|
|
});
|
|
|
|
Package.onTest(function (api) {
|
|
api.use('package-version-parser');
|
|
api.use(['tinytest']);
|
|
api.addFiles('package-version-parser-tests.js', 'server');
|
|
});
|