Commit Graph

1826 Commits

Author SHA1 Message Date
Rand McKinney 58f32dd70e Update loopback.js
Update comment line that was creating invalid info in API docs.
2016-04-18 09:42:56 -07:00
Rand McKinney 88d41f84fd Merge pull request #2155 from sghung/master
Fix inconsistencies in JSDoc
2016-04-06 16:01:31 -07:00
Miroslav Bajtoš a9c7801380 Merge pull request #2108 from benkroeger/hotfix/issue-2106
Allow built-in token middleware to run repeatedly
2016-04-06 15:45:21 +02:00
Benjamin Kröger 9e0405de9f Allow built-in token middleware to run repeatedly
Add two new options:

  - When `enableDoublecheck` is true, the middleware will run
    even if a previous middleware has already set `req.accessToken`
    (possibly to `null` for anonymous requests)

  - When `overwriteExistingToken` is true (and `enableDoublecheck` too),
    the middleware will overwrite `req.accessToken` set by a previous
    middleware instances.
2016-04-06 15:44:20 +02:00
Miroslav Bajtoš 1e7adb21ae Merge pull request #2193 from strongloop/feature/eslint
Use eslint with loopback config
2016-04-06 13:05:01 +02:00
Miroslav Bajtoš f9702b0ace Use eslint with loopback config
Drop jshint and jscs in favour of eslint.

Fix style violations.

While we are at this, reduce the max line length from 150 to 100.
2016-04-06 10:45:30 +02:00
Janny 2a86e9535b Merge pull request #2040 from strongloop/feature/add-promise-doc
Feature/add promise doc
2016-04-05 01:39:08 +08:00
Jue Hou eb09681f21 promise docs
Add promise jsdoc in loopback
2016-04-04 12:35:35 -04:00
sghung@ca.ibm.com d69ab1e411 Update JSDoc 2016-04-01 14:00:01 -04:00
Candy 982b8ac228 Merge pull request #2174 from strongloop/change_remote_method
Remove constraint making isStatic required
2016-03-31 09:59:53 -04:00
Candy b5b900e0ff Remove constraint making isStatic required 2016-03-30 11:16:32 -04:00
Simon Ho b4e230389d Merge pull request #1780 from linguofeng/patch-1
Update persisted-model.js
2016-03-22 16:10:22 -07:00
sghung@ca.ibm.com 3302391ac7 Fix inconsistencies in JSDoc 2016-03-17 23:55:12 -04:00
Miroslav Bajtoš 913dd3a188 Merge pull request #2105 from strongloop/fix/err-msg-on-connector-error
Improve error message on connector init error
2016-03-02 13:17:59 +01:00
Miroslav Bajtoš 93d487ffc0 Improve error message on connector init error 2016-02-26 14:46:26 +01:00
Miroslav Bajtoš 05f35731b9 Merge pull request #2088 from strongloop/fix-cannont-misspelling
application: correct spelling of "cannont"
2016-02-19 13:12:12 +01:00
Sam Roberts b9acace932 application: correct spelling of "cannont" 2016-02-18 20:36:07 -08:00
Candy 804265b801 Remove sl-blip from dependency 2016-02-18 10:38:54 -05:00
Candy 632bbeec8f Merge pull request #2039 from strongloop/remote_method
Use new strong-remoting API
2016-02-08 09:13:18 -05:00
Candy 0e637962d5 Use new strong-remoting API 2016-02-05 11:11:38 -05:00
Miroslav Bajtoš 782e89758e test: remove forgotten console.trace logs 2016-02-05 12:39:47 +01:00
Miroslav Bajtoš 21ec3c8899 Merge pull request #2036 from strongloop/fix/ci-3.0
Fix race conditions in unit tests
2016-02-05 12:37:50 +01:00
Miroslav Bajtoš 91c1df96f0 Fix race condition in replication tests 2016-02-05 12:24:27 +01:00
Miroslav Bajtoš e7f49af7f4 Fix race condition in error handler test 2016-02-05 09:21:47 +01:00
Miroslav Bajtoš 7ed5cf88ca Merge pull request #2035 from strongloop/clean-xunit
test: remove errant console.log from test
2016-02-05 09:14:15 +01:00
Janny f86ee167c1 Merge pull request #1999 from strongloop/promisify-change
Promisify change
2016-02-04 15:50:19 -05:00
Ryan Graham ab5254fcba test: remove errant console.log from test
Using console.log like this can result in invalid xml when the xunit
reporter is used.
2016-02-04 08:35:37 -08:00
Jue Hou d26d6ff3ed Promisify Model Change
* Change.diff
* Change.findOrCreateChange
* Change.rectifyModelChanges
* Change.prototype.currentRevision
* Change.prototype.rectify
2016-02-04 11:05:23 -05:00
Miroslav Bajtoš 524058d8fc Travis: drop iojs, add v4.x and v5.x 2016-02-04 16:45:28 +01:00
Miroslav Bajtoš cd9e5d4173 Merge pull request #2030 from strongloop/safer-tests-step1
Safer tests - step 1
2016-02-04 16:09:11 +01:00
Ryan Graham b0959b7ad8 test: use ephemeral port for e2e server 2016-02-04 15:35:19 +01:00
Ryan Graham ef9ad587c8 test: fail on error instead of crash
If the supertest request fails its basic assertions, there may not even
be a body to perform checks against, so bail early when possible.
2016-02-04 15:35:19 +01:00
Ryan Graham c317204c74 ensure app is booted before integration tests 2016-02-04 15:35:19 +01:00
Miroslav Bajtoš 0ad150cb6e Merge pull request #1851 from gausie/patch-4
Hide verificationToken from JSON output
2016-01-25 14:23:52 +01:00
Miroslav Bajtoš 18da6993d9 Merge pull request #1988 from strongloop/feature/remove-data-model
[SEMVER-MAJOR] Remove "loopback.DataModel"
2016-01-25 10:21:07 +01:00
Miroslav Bajtoš 804c71d7c6 Remove "loopback.DataModel"
The model was just a temporary alias to simplify migration of code
based on <=2.0.0-beta3
2016-01-25 10:17:45 +01:00
Simon Ho 76bd587198 Merge pull request #1983 from noderat/patch-1
Correct JSDoc findOrCreate() callback in PersistedModel
2016-01-22 10:21:17 -08:00
Chris Coggburn 7252c7686c Correct JSDoc findOrCreate() callback in PersistedModel
Update PersistedModel.findOrCreate() JSDoc to reflect the callback accepts an additional created boolean parameter.
2016-01-21 20:40:19 -07:00
Candy 77eee6a817 Merge pull request #1957 from strongloop/start-3.0
Start development of 3.0
2016-01-20 11:43:16 -05:00
Amir-61 c9be67e4d3 Merge pull request #1908 from strongloop/checkpoint_speedup
Checkpoint speedup
2016-01-19 10:25:15 -05:00
Miroslav Bajtoš e06bd1a8b0 Fix typo in package.json (publishConfig) 2016-01-19 14:49:23 +01:00
Candy 492e7da3e9 Start development of 3.0 2016-01-13 16:38:37 -05:00
Janny 27c9e263e0 Merge pull request #1953 from strongloop/doc/user-hasPassword
Fix description for User.prototype.hasPassword
2016-01-13 03:14:18 +08:00
Samuel Gaus 2741d50342 Hide verificationToken
We should never be showing this publically.

Adds unit test for hiding verification token.
2016-01-12 15:48:03 +00:00
Simon Ho f1f0100311 Merge pull request #1944 from strongloop/remove-unused-code
Remove unused code from loopback-testing-helper
2016-01-11 12:11:30 -08:00
Jue Hou 865789017d Fix description for User.prototype.hasPassword 2016-01-11 14:28:10 -05:00
Amir Jafarian 08a2786b04 Checkpoint speedup 2016-01-09 01:56:13 -05:00
Janny 70984bd5c0 Merge pull request #1896 from strongloop/feature/upgrade-to-bluebird
[SEMVER-MAJOR] Always use bluebird as promise library
2016-01-09 03:31:32 +08:00
Jue Hou 889c561ed3 Always use bluebird as promise library
Replace `global.Promise` with `bluebird`
2016-01-08 13:58:12 -05:00
Simon Ho 4b30c27fa2 Remove unused code from loopback-testing-helper 2016-01-06 18:07:33 -08:00