mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
15 lines
486 B
JavaScript
15 lines
486 B
JavaScript
Package.describe({
|
|
summary: "Provides JSON.stringify and JSON.parse for older browsers",
|
|
version: '1.0.3'
|
|
});
|
|
|
|
// We need to figure out how to serve this file only to browsers that don't have
|
|
// JSON.stringify (eg, IE7 and earlier, and IE8 outside of "standards mode")
|
|
|
|
Package.onUse(function (api) {
|
|
// Node always has JSON; we only need this in some browsers.
|
|
api.export('JSON', 'client');
|
|
api.addFiles('json_native.js', 'client');
|
|
api.addFiles('json2.js', 'client');
|
|
});
|