Compare commits

...
11 Commits
Author SHA1 Message Date
Fosco Marotto 7c88d16ef0 Updated to 2.0.1 2016-01-29 12:51:11 -08:00
Fosco Marotto d2fbb7c4f6 Merge pull request #23 from allevo/allevo-patch-1
Use test instead of match
2016-01-29 12:48:27 -08:00
Fosco Marotto 82309f7b66 Merge pull request #46 from ParsePlatform/fosco.dev
Added engines tag to package.json
2016-01-29 11:52:15 -08:00
Fosco Marotto 66184ed645 Added engines tag to package.json 2016-01-29 11:51:34 -08:00
Fosco Marotto 67340f1353 Merge pull request #44 from ParsePlatform/fosco.dev
Added _email_verify_token to ignored fields in transform.js
2016-01-29 10:51:46 -08:00
Fosco Marotto dfe68237a2 Added _email_verify_token to ignored fields in transform.js 2016-01-29 10:51:13 -08:00
Tommaso Allevi 49acd65520 Use test instead of match
For spead reason
2016-01-29 10:46:29 +01:00
Fosco Marotto a9aed0cacd Update README.md 2016-01-28 22:33:37 -08:00
Fosco Marotto ec8ce3c479 Merge pull request #2 from TylerBrock/patch-2
Add JS Syntax Highlighting to README.md code block
2016-01-28 15:26:42 -08:00
Tyler Brock 2f2a8062ce Add JS Syntax Highlighting to README.md code block 2016-01-28 15:23:30 -08:00
Fosco Marotto 0bad16d34c Updated README 2016-01-28 15:04:21 -08:00
4 changed files with 17 additions and 5 deletions
+4 -2
View File
@@ -44,14 +44,16 @@ ExportAdapter.prototype.connect = function() {
// Returns a promise for a Mongo collection.
// Generally just for internal use.
var joinRegex = /^_Join:[A-Za-z0-9_]+:[A-Za-z0-9_]+/;
var otherRegex = /^[A-Za-z][A-Za-z0-9_]*$/;
ExportAdapter.prototype.collection = function(className) {
if (className !== '_User' &&
className !== '_Installation' &&
className !== '_Session' &&
className !== '_SCHEMA' &&
className !== '_Role' &&
!className.match(/^_Join:[A-Za-z0-9_]+:[A-Za-z0-9_]+/) &&
!className.match(/^[A-Za-z][A-Za-z0-9_]*$/)) {
!joinRegex.test(className) &&
!otherRegex.test(className)) {
throw new Parse.Error(Parse.Error.INVALID_CLASS_NAME,
'invalid className: ' + className);
}
+8 -2
View File
@@ -2,6 +2,12 @@
A Parse.com API compatible router package for Express
Read the announcement blog post here: http://blog.parse.com/announcements/introducing-parse-server-and-the-database-migration-tool/
Read the migration guide here: https://parse.com/docs/server/guide#migrating
There is a development wiki here on GitHub: https://github.com/ParsePlatform/parse-server/wiki
---
#### Basic options:
@@ -32,7 +38,7 @@ The client keys used with Parse are no longer necessary with parse-server. If y
You can create an instance of ParseServer, and mount it on a new or existing Express website:
```
```js
var express = require('express');
var ParseServer = require('parse-server').ParseServer;
@@ -81,4 +87,4 @@ You can also set up an app on Parse, providing the connection string for your mo
### Not supported
* Push - We did not rebuild a new push delivery system for parse-server, but we are open to working on one together with the community.
* Push - We did not rebuild a new push delivery system for parse-server, but we are open to working on one together with the community.
+4 -1
View File
@@ -1,6 +1,6 @@
{
"name": "parse-server",
"version": "2.0.0",
"version": "2.0.1",
"description": "An express module providing a Parse-compatible API server",
"main": "index.js",
"repository": {
@@ -25,5 +25,8 @@
},
"scripts": {
"test": "TESTING=1 jasmine"
},
"engines": {
"node": ">=4.1"
}
}
+1
View File
@@ -628,6 +628,7 @@ function untransformObject(schema, className, mongoObject) {
restObject['password'] = mongoObject[key];
break;
case '_acl':
case '_email_verify_token':
case '_perishable_token':
break;
case '_session_token':