Skip to content

Commit

Permalink
Merge pull request #29 from ifwe/update-npm-deps
Browse files Browse the repository at this point in the history
Upgrade various npm dependencies of this project
  • Loading branch information
TysonAndre authored Feb 13, 2018
2 parents 3b5c0c5 + de02584 commit 44bc04d
Show file tree
Hide file tree
Showing 12 changed files with 10,618 additions and 10,410 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js:
- 6
- 8
before_script:
- npm install -g grunt-cli
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ module.exports = function(grunt) {
angular: {
entry: './lib/angular.js',
output: {
path: './',
path: __dirname,
filename: 'monocle-client-angular.js'
},
stats: {
Expand All @@ -146,7 +146,7 @@ module.exports = function(grunt) {
jquery: {
entry: './lib/jquery.js',
output: {
path: './',
path: __dirname,
filename: 'monocle-client-jquery.js'
},
stats: {
Expand All @@ -158,7 +158,7 @@ module.exports = function(grunt) {
vanilla: {
entry: './lib/vanilla.js',
output: {
path: './',
path: __dirname,
filename: 'monocle-client.js'
},
stats: {
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ To make a request with the node adapter or with the monocle client
```js
// FOR GET
//The second parameter takes an optional object where props or query can be passed in
monocleProvider.get('/enpoint', {props: PROPS, query: QUERY);
monocleProvider.get('/endpoint', {props: PROPS, query: QUERY);

//FOR POST, PUT, PATCH OR DELETE
//The second parameter takes an optional object where the body of the request can be passed in
//Note: Currently the node adapter does not support the body parameter to be passed in
monocleProvider.post('/enpoint', {body: {param: 'param1'});
monocleProvider.patch('/enpoint', {body: {param: 'param1'});
monocleProvider.put('/enpoint', {body: {param: 'param1'});
monocleProvider.delete('/enpoint');
monocleProvider.post('/endpoint', {body: {param: 'param1'});
monocleProvider.patch('/endpoint', {body: {param: 'param1'});
monocleProvider.put('/endpoint', {body: {param: 'param1'});
monocleProvider.delete('/endpoint');

//Examples:
monocleProvider.get('/users/123', {props: ['name'], query: {new: false}});
Expand Down
4 changes: 2 additions & 2 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var Promise = require('bluebird');
var Monocle = require('monocle-api');
var Resource = Monocle.Resource;
var Symlink = Monocle.Symlink;
var Collection = Monocle.Collection;
var OffsetPaginator = Monocle.OffsetPaginator;

/*** Set up simple HTTP server ***/

Expand Down Expand Up @@ -74,7 +74,7 @@ api.route('/users', {
users.push(new Symlink('/users/' + userId));
}
}
return new Collection('/users', users, 10000);
return new OffsetPaginator('/users', users, 10000);
}
});

Expand Down
3 changes: 1 addition & 2 deletions monocle-client-angular-min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 44bc04d

Please sign in to comment.