Nick Martin
4e922fd709
remove ie8 hack from tests. for some reason it is no longer needed.
2013-10-08 21:30:39 -07:00
Nick Martin
9b8d72392c
Change the part of the app html that the http tests look for. test-in-console doesn't set a title.
2013-08-19 19:18:26 -07:00
David Glasser
4b3cb9d305
Rename api.exportSymbol -> api.export.
2013-07-25 18:54:43 -07:00
David Glasser
a5c061ecde
Rename Meteor.http to HTTP. Backwards compatible.
2013-07-25 18:54:42 -07:00
David Glasser
060151dd81
test-packages now has no immediate server-side errors (client-side, sure)
...
eliminate accounts-urls package
2013-07-25 18:54:40 -07:00
David Glasser
9f38258b54
Drop all @export lines. Add api.exportSymbol instead.
2013-07-25 18:54:40 -07:00
Geoff Schmidt
3d1c09794f
Comprehensive namespace cleanup.
2013-07-25 18:54:40 -07:00
David Glasser
6a1b5d3032
Consistently use fut['return']() in package code.
...
Some package code is loaded in browsers, which may fail to parse code which uses
'return' or 'throw' as a method name. We used to inconsistently use fut.ret for
this purpose; instead, just consistently use fut['return'] and fut['throw']. We
don't bother to do this in tools code which is definitely never run outside of
Node.
Also remove some unused requires.
Fixes #1222 .
2013-07-15 21:39:03 -07:00
David Glasser
89e2fb1df1
Fix static file serving tests now that we've changed how static files are
...
served.
Some things that used to serve 403s now serve app HTML. Some paths with ..'s
that used to resolve to actual app resources now don't.
2013-07-12 10:11:31 -07:00
Emily Stark
4a93bdae68
Remove numRequiredArgs argument.
2013-07-08 09:48:47 -07:00
Emily Stark
71af4bc490
Use wrapAsync in some call sites
2013-07-08 09:47:21 -07:00
David Glasser
053db8e9e9
Begin to refactor webapp package.
...
Move stuff from __meteor_bootstrap__ to WebApp exported symbol.
Note that the WebApp API continues to be subject to change.
2013-07-02 16:15:12 -07:00
David Glasser
f1aaa5227a
Add a bunch of 'vars' found by looking at built packages.
2013-07-01 22:50:58 -07:00
David Glasser
7dcb53c4bd
Merge branch 'devel' into linker
2013-06-17 18:19:39 -07:00
David Glasser
0bf4594a20
Make new test pass with --production.
2013-06-17 18:12:32 -07:00
Nick Martin
f060d1808a
add unit test for serving static paths.
2013-06-17 15:41:05 -07:00
David Glasser
34c42d76b5
Upgrade Connect to 2.x.
...
Set $NODE_ENV appropriately (to 'development' in 'meteor run' and 'production'
otherwise) so that connect doesn't send stack traces over the network in
production.
2013-05-28 12:23:11 -07:00
David Glasser
6299f69754
Upgrade Connect to 2.x.
...
Set $NODE_ENV appropriately (to 'development' in 'meteor run' and 'production'
otherwise) so that connect doesn't send stack traces over the network in
production.
2013-05-28 12:14:11 -07:00
David Glasser
fbaa8bf845
Fix a couple places that assumed 'connect' was in the dev bundle.
...
Always parse HTTP query strings, instead of only doing it if oauth packages are used.
2013-05-15 19:14:43 -07:00
David Glasser
2d827e74fc
Factor webapp-specific stuff (and keepalive) out of boot.js into webapp package.
...
Replace type: "bare" with type: "server" in attributes.json. This now just
means "only make one server process" rather than controlling the boot script.
Programs that are type: "traditional" that want to be a webapp now need to
explicitly depend on the webapp package.
2013-05-13 11:58:58 -07:00
David Glasser
6b48e8bd8a
stuff that doesn't have conflicts
2013-05-13 11:51:50 -07:00
David Glasser
8dbee56e77
Add .gitignore to package directories to match linker branch.
...
This way switching between linker and devel doesn't leave you with lots of junk
in git status.
2013-05-13 10:57:37 -07:00
Avital Oliver
be8dc47113
Better error rethrowing
2013-04-30 11:43:30 -07:00
Avital Oliver
5d04576b91
HTTP error messages don't have newlines
2013-04-30 11:43:30 -07:00
Avital Oliver
c69ab5d350
Include response in HTTP 4xx/5xx error messages
2013-04-30 11:43:30 -07:00
Avital Oliver
fe57ab10c7
Simplify server http code by using future.resolver()
2013-04-22 16:04:23 -07:00
Avital Oliver
6e924979be
More http sync
...
- improve docs
- add tests for sync case
- modify http tests so that they now pass
- Still TODO: Update call sites (oauth)
2013-04-22 15:39:53 -07:00
Avital Oliver
03085e8842
New HTTP sync API
2013-04-22 15:39:41 -07:00
Avital Oliver
66d4bbc428
Include HTTP error code in Meteor.http error message
2013-04-13 20:16:28 -07:00
David Glasser
5a5204e3a4
Remove closures around package files. (hint: git blame -w)
...
The bundler now adds closures around client files and the server adds closures
around server files.
2013-03-19 15:13:53 -07:00
Avital Oliver
78ca755d3d
Npm.require unified requireNpm and __meteor_bootstrap__.require
2013-03-19 15:11:04 -07:00
David Glasser
d2ae5f7e1c
Replace almost all uses of Meteor.uuid with Random.id.
2013-02-12 23:55:19 -08:00
Nick Martin
448da70a58
Workaround weird header issue in firefox. Fixes #553 .
2013-01-11 18:32:52 -08:00
David Glasser
fd13a9b899
http: Fix incorrect use of self in param encoding.
2013-01-03 14:56:45 -08:00
David Glasser
25af4e5cdb
http: Fix test failure on FF caused by 3bada2a.
2013-01-03 14:56:02 -08:00
David Glasser
3bada2a9f9
If Meteor.http.call JSON-ifies the request body, default the Content-Type to
...
application/json.
This matches our heuristic for deciding whether to parse responses as JSON.
2012-12-28 15:58:41 -08:00
Avital Oliver
7cd4082457
Remove arguably unhelpful check
2012-12-27 01:00:17 -08:00
Tim Haines
b5ae25ac3f
Encode ! and other special characters in params for Meteor.http.call and oauth1 methods
2012-12-27 01:00:17 -08:00
David Glasser
11fe37a007
Wrap mongo_driver.js in anonymous function call.
...
This has the side effect of forcing several other files to pull in the Fiber
symbol explicitly.
2012-11-14 18:15:25 -08:00
David Glasser
4b8a688000
Change some test names to make it easier to search output for failures.
...
We should eventually improve test output in more sophisticated ways (eg,
failures could show up sorted at the top, or be duplicated in a second column),
but this is a simple start.
2012-09-20 12:05:51 -07:00
David Glasser
5e622215ba
Change all publicly documented APIs to use camelCase.
...
For now, the old names still work as well.
This includes:
- Meteor.isServer/isClient
- this.isSimulation in methods
- Context.onInvalidate
- Meteor.status().retryCount/retryTime
Remove old backwards-compatibility "Sky" alias for "Meteor".
Update all examples in the docs to use camelCase.
Delete unused docs/client/projects.html file.
2012-09-17 14:26:45 -07:00
Tom Coleman
e655492f70
Fix problem with content-type on POST requests ( close #172 )
2012-06-05 17:09:29 -07:00
David Greenspan
6a9e8f33cd
comment
2012-06-05 16:52:23 -07:00
David Greenspan
80bef5ea9b
allow semicolon in JSON Content-Type
2012-06-05 16:46:50 -07:00
David Greenspan
a1ec3937fc
break out httpcall timeout test
2012-05-24 20:42:15 -07:00
David Greenspan
0815cc11e9
revert Chrome auth test workaround (Chrome works again; broke IE7)
2012-05-24 20:07:49 -07:00
David Greenspan
ac487445f5
tests don't prompt for auth in Chrome
2012-05-17 12:00:24 -07:00
David Greenspan
201d146816
make test_responder password checker explicit
2012-05-16 13:20:42 -07:00
David Greenspan
7b5990090e
private scope for http tests
2012-05-01 17:00:06 -07:00
David Greenspan
54adb858d0
test_responder -> http_test_responder
2012-05-01 17:00:06 -07:00