Commit Graph

2504 Commits

Author SHA1 Message Date
Nick Martin
57c87a403d OCD 2013-10-08 20:03:02 -07:00
Nick Martin
93c23470aa make a bunch of packages internal.
please remember to set this when making new packages.
2013-10-08 19:58:48 -07:00
Nick Martin
9f2188b5da Not sure why, but opera is better now (including old versions). I guess one of the minimongo changes caused the ordering to be different. 2013-10-08 00:42:52 -07:00
Nick Martin
28082f33e1 Fix issue where login callbacks could be called multiple times on reconnect. 2013-10-08 00:10:33 -07:00
Nick Martin
e5dd8f4f8e Better error handling if resetPassword fails. Also, handle setLoginToken(null) better. 2013-10-07 23:33:04 -07:00
Nick Martin
b09f206753 Specify userId in one other expireTokens call. Add a check to make sure we don't do it again. 2013-10-07 21:53:57 -07:00
Nick Martin
468eb6a1bf Fix typo in index name. We were not indexing password reset tokens correctly. 2013-10-07 21:53:57 -07:00
Nick Martin
9bad3afcfb Fix reset email test. NOTE: still needs work on error handling. 2013-10-07 21:53:57 -07:00
Nick Martin
f9504f215e Add test parameter so we only expire tokens for our user, not everyone. 2013-10-07 21:53:57 -07:00
Nick Martin
bc8406d8a0 add XXX note 2013-10-07 21:53:56 -07:00
Nick Martin
2deb0e9b62 break 'long series' test into smaller tests. 2013-10-07 21:53:56 -07:00
Nick Martin
6ca55ec189 Remember to call this._setLoginToken the other places we call this.setUserId
This makes me feel that this._setLoginToken is the wrong pattern even more strongly.
2013-10-07 21:53:56 -07:00
Slava Kim
799dd35319 Merge branch 'minimongo-near' into devel
Conflicts:
	History.md
	LICENSE.txt
2013-10-07 16:55:10 -07:00
Slava Kim
24b3ca13e1 Another test for minimongo $near inside $and clause
It throws no matter how deep is $near.
2013-10-07 16:50:27 -07:00
Slava Kim
d1518f4f17 Package wrapper for geojson-utils package to keep original code unchanged. 2013-10-07 16:07:45 -07:00
Slava Kim
7c9122ef09 Make geojson-utils a strong dependency of minimongo. 2013-10-07 14:30:54 -07:00
David Glasser
52e59350db Minor refactorings to restrictCreationByEmailDomain:
- test all emails if there is more than one (instead of relying on
  accounts-password to only set one)
- simplify boolean logic
- typo fix
2013-10-04 12:47:16 -07:00
David Glasser
38ed624909 Don't do Google domain redirect if restrictCreationByEmailDomain is function. 2013-10-04 12:46:17 -07:00
David Glasser
6fcff6d85d Warn if Accounts.config is only called on the client. 2013-10-04 12:41:45 -07:00
David Glasser
94c7833c82 Delete unused JSAnalyze.findGlobalDottedRefs.
Because it is currently unused and was the only direct use of the 'estraverse'
module, it seems better to minimize the number of dependencies shipped with
Meteor. Admittedly, estraverse is still a dependency of escope, but if we
upgrade escope to a version that has a more specific version requirement for
estraverse that conflicts with our Npm.depends, we'll be shipping two copies for
no reason.
2013-10-04 09:46:48 -07:00
David Glasser
6a836cca94 Use escope's native implicit global variable search code instead of our own.
That code was buggy when we first wrote linker; we reported the bugs and the
maintainer fixed it. Yay!
2013-10-04 09:31:58 -07:00
David Glasser
14e93abce3 Use a fork of Uglify again. 2013-10-03 17:06:55 -07:00
David Glasser
6528f9eef7 Avoid calling _.each on numbers (Underscore 1.5.2 doesn't like it).
Simplify NaN detection.
2013-10-03 15:52:20 -07:00
David Glasser
ceb37b48c6 Shrinkwrap update. 2013-10-03 15:52:19 -07:00
David Glasser
85a42e908c remove outdated comment 2013-10-03 15:52:19 -07:00
David Glasser
26af82fcf0 Upgrade lots of package Npm dependencies. 2013-10-03 15:52:19 -07:00
David Glasser
c03879f780 Upgrade lots of dev bundle NPM modules.
Needs a license review.
2013-10-03 15:52:19 -07:00
Nick Martin
d0a6105272 Add USE_JSESSIONID environment variable to turn on jsessionid in sockjs. 2013-10-03 15:38:08 -07:00
Slava Kim
3b26a51296 Move url to summary 2013-10-03 14:13:51 -07:00
Slava Kim
43aa4de530 Tests for minimongo's restriction of $near to be inside $or/$and/$nor/$not 2013-10-03 14:11:29 -07:00
Emily Stark
3afe10d947 Move meteor_runtime_config.js pathname check first 2013-10-03 13:56:03 -07:00
Emily Stark
a7007ec12b Actually save csp in cachedCsp.
Also rename ensureDirective to prepareForCspDirective to make it clearer that it
clears cachedCsp.
2013-10-03 13:56:03 -07:00
Emily Stark
6f94e8dbd0 Cache csp instead of constructing it each request. 2013-10-03 13:56:03 -07:00
Emily Stark
b5286b941a Separate browser policy functions into two packages.
* browser-policy uses browser-policy-framing and browser-policy-content, both of
  which set default policies when they are used. This way you get a default
  policy when you add a browser policy package, but you can pick and choose
  different packages if you only want to think about one of them.
* The two packages use different namespaces: BrowserPolicy.framing and
  BrowserPolicy.content, which meant some functions got renamed (e.g. not using
  "framing" or "content in the function name when it's already in the
  namespace).
2013-10-03 13:56:03 -07:00
Emily Stark
d5159ae81b Rename BrowserPolicy framing functions.
Orient them around the default policy, which is app can be framed by any origin.
2013-10-03 13:56:03 -07:00
Slava Kim
cd500b036c Dissallow $near to be inside $or/$and/$nor/$not 2013-10-03 13:43:13 -07:00
Emily Stark
a39ff3cc14 Add comment about doing real upsert for mongo id generation 2013-10-03 10:00:08 -07:00
Emily Stark
5f84141145 Only use mongoOpts when passed into mongo API 2013-10-03 08:38:10 -07:00
Emily Stark
d3ec00c3ef Fix collection driver upsert callbacks.
Run a bunch of upsert tests on the direct collections (LocalCollection and
MongoConnection). Revealed a weirdness with MongoConnection.upsert(); if there
is no id from the selector or modifier, then mongo ends up generating one and we
don't return it.
2013-10-02 23:00:23 -07:00
Emily Stark
c20db8d328 Remove $'s in selector when upserting new minimongo doc.
Plus test for it.
2013-10-02 21:21:10 -07:00
Slava Kim
0e2d56d382 Glasser's comments on restrictCreationByEmailDomain in Accounts 2013-10-02 20:28:07 -07:00
Slava Kim
b58c85f323 Glasser's comments 2013-10-02 19:19:51 -07:00
Slava Kim
1e103b8e46 Modify test data so the result order is obvious. 2013-10-02 19:12:35 -07:00
Slava Kim
aacd87505e Put generated tests in more readable form. 2013-10-02 16:39:41 -07:00
Slava Kim
9e898fe1e9 Add a link to the original geojson-utils
and add the copyright notice to LICENSE
2013-10-02 15:48:01 -07:00
Slava Kim
56aeac63dd Typo in NOTES. 2013-10-02 15:48:01 -07:00
Slava Kim
f902d6f55e Don't have to ensure index to distinguish 2d vs 2dsphere queries. 2013-10-02 15:48:01 -07:00
Slava Kim
638dd0566b More tests. And weakly depend, not imply! 2013-10-02 15:48:00 -07:00
Slava Kim
3e6da8b266 Don't mess the sorting unless it's a geo query 2013-10-02 15:48:00 -07:00
Slava Kim
3f976e874f Let _compileSort handle empty sorting rules. So the line that says: "sort by distance by default" will work 2013-10-02 15:48:00 -07:00