David Greenspan
b1995fce13
Improve a “match” error message
2015-01-07 19:04:54 -08:00
David Glasser
2a2bf8a460
Improve comment and add History note
2014-12-03 14:46:05 -08:00
Matteo De Micheli
931edada9f
Do special argument check for NaN values
2014-12-03 14:44:08 -08:00
Slava Kim
44832cbbdc
Add return types and properties types in JSDoc to a lot of methods
2014-11-02 02:45:17 -08:00
Sashko Stubailo
1c308e0310
Improve documentation for check and Match
2014-09-03 10:32:26 -07:00
Sashko Stubailo
afef45585d
Improve docs for check, moving it to the Meteor.methods section
2014-09-02 20:16:15 -07:00
Sashko Stubailo
e0f96cce55
Improve documentation of check, add a link from Meteor.methods
2014-09-02 20:04:17 -07:00
Sashko Stubailo
33ddd230f7
Add jsdoc comment for 'check'
2014-09-02 19:55:31 -07:00
David Glasser
c5e5305a3b
Merge branch 'devel' into packaging
...
Conflicts:
tools/bundler.js
tools/packages.js
2014-06-11 12:02:57 -07:00
David Glasser
91aa5204ed
Allow check in non-Fiber server code
...
Fixes #2136 .
2014-05-21 14:12:58 -07:00
David Glasser
c268e36505
Implement matching literal numbers/strings
2014-03-05 23:33:06 -08:00
David Glasser
7ee9a90e8a
implement Match.ObjectWithValues
2014-03-05 23:33:06 -08:00
Slava Kim
2e7845af80
Path of error is escaped where needed and looks more like actual JS.
...
- Escape keys looking like something complex
- Check simple keys with simple regex, full story: http://stackoverflow.com/questions/1661197/valid-characters-for-javascript-variable-names
- Tests
2013-08-12 17:41:00 -07:00
Slava Kim
580de65f62
Grammar corrections. Comments moving.
2013-08-05 13:26:43 -07:00
Slava Kim
67129c7e70
Nick's comments.
...
Don't duplicate the logic.
2013-08-02 15:22:49 -07:00
Slava Kim
1023a97e07
Add Match.Integer match for 32-bit integers. #1171
2013-08-02 14:22:00 -07:00
Slava Kim
cd3d87625f
Remove duplication in error of unknown key.
...
"Unknown key in field Y" instead of "Unknown key Y in field Y"
2013-08-02 12:41:29 -07:00
Slava Kim
ec05981a1a
Improve comment. Cleaner way to construct path string.
2013-08-02 12:37:44 -07:00
Slava Kim
1cd8931eff
Nick's comments. One line Error message, comments.
2013-08-01 23:56:33 -07:00
Slava Kim
7db4b8eaf0
Check's error has path in the object tree.
2013-08-01 17:43:13 -07:00
David Glasser
9f38258b54
Drop all @export lines. Add api.exportSymbol instead.
2013-07-25 18:54:40 -07:00
David Glasser
36275c570c
Merge branch 'linker' into devel
...
some compatibility notes about packages:
- packages now have their own namespaces (rather than needing to
use the global namespace). symbols you want to share should
be declared with an @export comment
- this also means that missing dependencies can hurt you. so don't
leave them out.
- your app's packages (in the 'packages' directory in your app) are
not automatically included in your app; you need to explicitly
run "meteor add" for them. this means that, eg, you can have test
helper packages which are not directly used in your app, but just
used by other packages' tests. (before releasing this, we may
make 'meteor update' fix current apps.)
- the bundle ("star") format has changed
- packages are now built into the "unipackage" format. if this format changes
before we release this code (and commit to the definition of the initial
versions of the formats) you may need to run "meteor rebuild-all"
- __meteor_bootstrap__ has been stripped of everything not related to
executing JS code. Some of what used to be there is now on the WebApp
object.
more detailed docs are likely to come before the 0.6.5 release.
2013-07-12 13:38:05 -07:00
Avital Oliver
79f5671495
Minor improvement to error thrown by match()
2013-07-11 13:28:16 -07:00
David Glasser
8a7b1ddf35
Merge branch 'devel' into linker.
...
Conflicts:
meteor
packages/absolute-url/.gitignore
packages/accounts-base/package.js
packages/accounts-oauth/package.js
packages/audit-argument-checks/.gitignore
packages/coffeescript/.gitignore
packages/coffeescript/package.js
packages/localstorage-polyfill/.gitignore
packages/oauth1/package.js
packages/oauth2/package.js
packages/random/random.js
scripts/generate-dev-bundle.sh
tools/packages.js
tools/run.js
tools/server/server.js
2013-05-28 15:10:48 -07:00
Andrew Wilcox
46b75bcd18
explicitly don't match boxed versions of primitives
2013-05-22 21:30:02 -07:00
David Glasser
78d8f61564
Remove inaccurate comment and logging line.
...
(This function is not documented to users, but it's what the livedata package
uses to implement audit-check-coverage.)
2013-05-13 11:54:20 -07:00
Geoff Schmidt
1049c2d7d2
add missing dependencies (following rebase on devel)
2013-05-13 11:54:20 -07:00
David Glasser
f72a7223c5
More check docs
2013-04-18 19:17:53 -07:00
David Glasser
f67db983c3
New check library.
2013-04-18 19:17:53 -07:00