Commit Graph

2440 Commits

Author SHA1 Message Date
Guido Ruiz
bf033becbd Properly handle return values in beforeSave (#5228)
* added failing test case to CloudCode.spec.js

a possible bug found where beforeSave does not apply changes to request
object if the beforeSave hook ends with 'true' returned

* moddified triggers to return null when beforeSave
also changed test cases to be more descriptive + added extra test case that returns promise in the beforeSave

* address original issue

* Revert "address original issue"

This reverts commit e01c57d1de5c4b2fe21e9ebd590211d21330cdda.

* fix promises and tests

* Add a test to verify that a failed beforeChange hook will
prevent updating the object.
2019-03-14 13:17:29 -05:00
Diamond Lewis
8622e5c378 Prevent Stalebot from closing PRs (#5416) 2019-03-11 19:24:11 -05:00
FatBat
bcda96be51 Fixes #5354. (#5396) 2019-03-11 17:13:07 -07:00
greenkeeper[bot]
01e8e5d827 Update pg-promise to the latest version 🚀 (#5415)
* fix(package): update pg-promise to version 8.6.3

* chore(package): update lockfile package-lock.json
2019-03-07 19:05:16 +00:00
greenkeeper[bot]
8d2514571c Update ws to the latest version 🚀 (#5414)
* fix(package): update ws to version 6.2.0

* chore(package): update lockfile package-lock.json
2019-03-06 08:22:18 +00:00
greenkeeper[bot]
3b96ccb03c Update pg-promise to the latest version 🚀 (#5413)
* fix(package): update pg-promise to version 8.6.2

* chore(package): update lockfile package-lock.json
2019-03-05 15:34:06 +00:00
greenkeeper[bot]
a452488d61 Update eslint to the latest version 🚀 (#5412)
* chore(package): update eslint to version 5.15.1

* chore(package): update lockfile package-lock.json
2019-03-05 05:40:39 +00:00
greenkeeper[bot]
378f8d28e1 Update pg-promise to the latest version 🚀 (#5410)
* fix(package): update pg-promise to version 8.6.1

* chore(package): update lockfile package-lock.json
2019-03-04 21:02:48 +00:00
greenkeeper[bot]
f798a60475 Update pg-promise to the latest version 🚀 (#5408)
* fix(package): update pg-promise to version 8.6.0

* chore(package): update lockfile package-lock.json
2019-03-02 22:23:21 +00:00
greenkeeper[bot]
92eb2656e0 Update eslint to the latest version 🚀 (#5407)
* chore(package): update eslint to version 5.15.0

* chore(package): update lockfile package-lock.json
2019-03-02 07:13:30 +00:00
greenkeeper[bot]
2266976296 Update lint-staged to the latest version 🚀 (#5406)
* chore(package): update lint-staged to version 8.1.5

* chore(package): update lockfile package-lock.json
2019-03-01 17:17:32 +00:00
dependabot[bot]
ad506280b2 Bump jasmine-spec-reporter from 4.1.0 to 4.2.1 (#5405)
Bumps [jasmine-spec-reporter](https://github.com/bcaudan/jasmine-spec-reporter) from 4.1.0 to 4.2.1.
- [Release notes](https://github.com/bcaudan/jasmine-spec-reporter/releases)
- [Changelog](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcaudan/jasmine-spec-reporter/compare/v4.1.0...v4.2.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-01 10:56:16 +00:00
dependabot[bot]
1aecd18a72 Bump uuid from 3.1.0 to 3.3.2 (#5404)
Bumps [uuid](https://github.com/kelektiv/node-uuid) from 3.1.0 to 3.3.2.
- [Release notes](https://github.com/kelektiv/node-uuid/releases)
- [Changelog](https://github.com/kelektiv/node-uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kelektiv/node-uuid/compare/v3.1.0...v3.3.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-01 10:46:26 +00:00
greenkeeper[bot]
56b0786379 Update flow-bin to the latest version 🚀 (#5402)
* chore(package): update flow-bin to version 0.94.0

* chore(package): update lockfile package-lock.json
2019-03-01 03:33:59 +00:00
pateldharad
6eaefd95ae Password requirement custom message (#5399)
* Added validationError(custom message) for Password requirement fail

* Changed validationError from valodationError in README.md
2019-02-28 13:17:31 -08:00
Diamond Lewis
1e7cc7ba00 Revert uws to 10.148.1 (#5398)
https://www.reddit.com/r/node/comments/91kgte/uws_has_been_deprecated/

The release 100.0.1 was a blank project again.

I've pinned all the packages.

This package has been moved to https://github.com/uNetworking/uWebSockets.js

We should consider migrating to it.
2019-02-28 14:12:33 -06:00
dependabot[bot]
e0db6eb2ea Bump eslint from 5.14.0 to 5.14.1 (#5377)
Bumps [eslint](https://github.com/eslint/eslint) from 5.14.0 to 5.14.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.14.0...v5.14.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-25 22:35:41 +00:00
greenkeeper[bot]
8d284cd967 Update babel7 to the latest version 🚀 (#5395)
* chore(package): update @babel/core to version 7.3.4

* chore(package): update @babel/plugin-proposal-object-rest-spread to version 7.3.4

* chore(package): update @babel/plugin-transform-flow-strip-types to version 7.3.4

* chore(package): update @babel/preset-env to version 7.3.4

* chore(package): update lockfile package-lock.json
2019-02-25 22:13:30 +00:00
awgeorge
86e9351cd0 Reverse update. 2019-02-23 07:28:39 -08:00
awgeorge
c5a5f57451 Updates based on review 2019-02-23 07:28:39 -08:00
awgeorge
ff33c9939c Use ES6 code 2019-02-23 07:28:39 -08:00
awgeorge
1420df7d7a Update based on @milesrichardson comment https://github.com/parse-community/parse-server/pull/5334#discussion_r252693409 2019-02-23 07:28:39 -08:00
awgeorge
ede262c109 Fix linter errors 2019-02-23 07:28:39 -08:00
awgeorge
0dec4931a0 Add filter sensitive fields logic that apply CLPs\nAdd protectedFields CLP\nAdd defaults for protectedFields CLP\nFix tests 2019-02-23 07:28:39 -08:00
awgeorge
b343de0c70 Set default protectedFields and remove previous filter logic 2019-02-23 07:28:39 -08:00
awgeorge
95831a5b22 Add new definition and update tests to reflect 2019-02-23 07:28:39 -08:00
awgeorge
493fc99bcb Fix tests to catch errors 2019-02-23 07:28:39 -08:00
awgeorge
c69130e0e0 Added negative scenarios for #5301.
- Public read ACL should never expose PII to authenticated and non-authenticated
    - Explicit ACL like custom user Role should be able to read PII
2019-02-23 07:28:39 -08:00
awgeorge
7a6dc3ff29 Add tests to prove a user with valid read ACLs still can't read PII data. 2019-02-23 07:28:39 -08:00
greenkeeper[bot]
b246c4ed90 Update parse to the latest version 🚀 (#5385)
* fix(package): update parse to version 2.2.1

* chore(package): update lockfile package-lock.json
2019-02-22 19:00:30 +00:00
dependabot[bot]
9710c755c5 Bump uws from 10.148.1 to 100.0.1 (#5382)
Bumps [uws](https://github.com/uNetworking/uWebSockets.js) from 10.148.1 to 100.0.1.
- [Release notes](https://github.com/uNetworking/uWebSockets.js/releases)
- [Commits](https://github.com/uNetworking/uWebSockets.js/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-21 10:36:19 +00:00
greenkeeper[bot]
7d0d4cea33 Update pg-promise to the latest version 🚀 (#5381)
* fix(package): update pg-promise to version 8.5.6

* chore(package): update lockfile package-lock.json
2019-02-20 23:20:31 +00:00
dependabot[bot]
95870f4ecc Bump eslint-plugin-flowtype from 3.4.1 to 3.4.2 (#5375)
Bumps [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype) from 3.4.1 to 3.4.2.
- [Release notes](https://github.com/gajus/eslint-plugin-flowtype/releases)
- [Commits](https://github.com/gajus/eslint-plugin-flowtype/compare/v3.4.1...v3.4.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-18 10:55:38 +00:00
dependabot[bot]
852cd6a179 Bump @babel/core from 7.2.2 to 7.3.3 (#5374)
Bumps [@babel/core](https://github.com/babel/babel) from 7.2.2 to 7.3.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.2.2...v7.3.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-18 10:45:40 +00:00
dependabot[bot]
2a2130f85a Bump eslint from 5.13.0 to 5.14.0 (#5373)
Bumps [eslint](https://github.com/eslint/eslint) from 5.13.0 to 5.14.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.13.0...v5.14.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-18 10:36:03 +00:00
greenkeeper[bot]
416c190993 Update ws to the latest version 🚀 (#5369)
* fix(package): update ws to version 6.1.4

* chore(package): update lockfile package-lock.json
2019-02-16 17:37:09 +00:00
dependabot[bot]
8bfccf1d4e Bump nyc from 13.2.0 to 13.3.0 (#5367)
Bumps [nyc](https://github.com/istanbuljs/nyc) from 13.2.0 to 13.3.0.
- [Release notes](https://github.com/istanbuljs/nyc/releases)
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/nyc/compare/v13.2.0...v13.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-15 10:43:04 +00:00
dependabot[bot]
99943ff52b Bump lint-staged from 8.1.3 to 8.1.4 (#5366)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.1.3 to 8.1.4.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.1.3...v8.1.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-15 10:33:23 +00:00
greenkeeper[bot]
bc05d71824 Update deepcopy to the latest version 🚀 (#5364)
* fix(package): update deepcopy to version 2.0.0

* chore(package): update lockfile package-lock.json
2019-02-14 17:37:10 +00:00
dependabot[bot]
dc76a3ad41 [Security] Bump handlebars from 4.0.12 to 4.1.0 (#5362)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.1.0. **This update includes security fixes.**
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/v4.1.0/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.12...v4.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-14 04:59:23 +00:00
greenkeeper[bot]
226234e6bc Update parse to the latest version 🚀 (#5361)
* fix(package): update parse to version 2.2.0

* chore(package): update lockfile package-lock.json
2019-02-14 03:03:32 +00:00
greenkeeper[bot]
2be5a784e4 Update flow-bin to the latest version 🚀 (#5360)
* chore(package): update flow-bin to version 0.93.0

* chore(package): update lockfile package-lock.json
2019-02-14 00:18:21 +00:00
greenkeeper[bot]
7bb94c8560 Update follow-redirects to the latest version 🚀 (#5359)
* fix(package): update follow-redirects to version 1.7.0

* chore(package): update lockfile package-lock.json
2019-02-13 23:47:11 +00:00
dependabot[bot]
61d8516eb3 Bump eslint-plugin-flowtype from 3.2.1 to 3.4.1 (#5356)
Bumps [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype) from 3.2.1 to 3.4.1.
- [Release notes](https://github.com/gajus/eslint-plugin-flowtype/releases)
- [Commits](https://github.com/gajus/eslint-plugin-flowtype/compare/v3.2.1...v3.4.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-13 10:34:35 +00:00
greenkeeper[bot]
4d07f0274a Update bcrypt to the latest version 🚀 (#5351)
* chore(package): update bcrypt to version 3.0.4

* chore(package): update lockfile package-lock.json
2019-02-06 23:22:21 +00:00
dependabot[bot]
db0ac480af Bump nyc from 13.1.0 to 13.2.0 (#5346)
Bumps [nyc](https://github.com/istanbuljs/nyc) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/istanbuljs/nyc/releases)
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/nyc/compare/v13.1.0...v13.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-05 10:38:54 +00:00
greenkeeper[bot]
5b21a056d8 Update flow-bin to the latest version 🚀 (#5345)
* chore(package): update flow-bin to version 0.92.1

* chore(package): update lockfile package-lock.json
2019-02-05 06:42:54 +00:00
greenkeeper[bot]
8d60726a15 Update babel7 to the latest version 🚀 (#5344)
* chore(package): update @babel/plugin-proposal-object-rest-spread to version 7.3.2

* chore(package): update lockfile package-lock.json
2019-02-05 01:11:33 +00:00
dependabot[bot]
400ff4a750 Bump lint-staged from 8.1.1 to 8.1.3 (#5343)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.1.1 to 8.1.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.1.1...v8.1.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-04 11:01:22 +00:00
dependabot[bot]
e9f8c616dd Bump prettier from 1.16.3 to 1.16.4 (#5342)
Bumps [prettier](https://github.com/prettier/prettier) from 1.16.3 to 1.16.4.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.16.3...1.16.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-04 10:36:59 +00:00