<commit_before>Package.describe({
  summary: "Stop IronRouter from navigating until all beforeLeavePrevious functions return true",
  version: "1.0.0",
  git: "https://github.com/ephemer/meteor-before-leave-previous"
});

Package.onUse(function(api) {
  api.versionsFrom('METEOR@0.9.0');
  api.use(['iron:router@0.9.0', 'underscore'], 'client');
  api.addFiles('ephemer:before-leave-previous.js');
});
<commit_msg>Ensure beforeLeavePrevious only runs on client<commit_after>Package.describe({
  summary: "Stop IronRouter from navigating until all beforeLeavePrevious functions return true",
  version: "1.0.1",
  git: "https://github.com/ephemer/meteor-before-leave-previous"
});

Package.onUse(function(api) {
  api.versionsFrom('METEOR@0.9.0');
  api.use(['iron:router@0.9.0', 'underscore'], 'client');
  api.addFiles('ephemer:before-leave-previous.js', 'client');
});

{'fraction_non_alphanumeric': 0.17795637198622274, 'fraction_numerical': 0.02066590126291619, 'mean_word_length': 5.866141732283465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '555649', 'n_tokens_mistral': 304, 'n_tokens_neox': 292, 'n_words': 50}