Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

usergrid

Package Overview
Dependencies
7
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.9 to 0.10.11

84

package.json
{
"name": "usergrid",
"version": "0.10.9",
"description": "A Node.js module for making API calls to Usergrid from within Node.js",
"main": "./lib/usergrid.js",
"dependencies": {
"request": "2.12.x",
"inflection": "1.3.x"
},
"devDependencies": {
"mocha": "1.7.x",
"should": "1.2.1"
},
"scripts": {
"test": "mocha",
"start": "node example/server.js"
},
"repository": {
"type": "git",
"url": "git://github.com/rodsimpson/usergrid-node-module.git"
},
"bugs": {
"url": "http://usergrid.incubator.apache.org/"
},
"keywords": [
"Node",
"Usergrid",
"API"
],
"tags": [
"usergrid",
"API"
],
"author": "Rod Simpson <rod@rodsimpson.com> (http://rodsimpson.com)",
"license": "Apache 2.0",
"homepage": "https://github.com/rodsimpson/usergrid-node-module",
"directories": {
"test": "test"
}
}
"author": "Rod Simpson <rsimpson@apigee.com>",
"bugs": {
"url": "http://usergrid.incubator.apache.org/"
},
"contributors": [
{
"email": "brandon@apige.ecom",
"name": "Brandon Shelley"
}
],
"dependencies": {
"inflection": "1.3.x",
"request": "2.12.x"
},
"description": "A Node.js module for making API calls to Usergrid from within Node.js. This is an alternate location to retrieve the package.",
"devDependencies": {
"mocha": "1.7.x",
"should": "1.2.1"
},
"directories": {
"test": "test"
},
"homepage": "https://github.com/r3mus/usergrid-nodejs-module",
"keywords": [
"Node",
"Usergrid",
"API"
],
"license": "Apache 2.0",
"main": "./lib/usergrid.js",
"name": "usergrid",
"repository": {
"type": "git",
"url": "git://github.com/r3mus/usergrid-nodejs-module.git"
},
"scripts": {
"start": "node example/server.js",
"test": "mocha"
},
"tags": [
"usergrid",
"API"
],
"version": "0.10.11"
}

@@ -1,4 +0,4 @@

##Version
## Version
Current Version: **0.10.8**
Current Version: **0.10.11**

@@ -10,3 +10,3 @@ See change log:

##Overview
## Overview
This Node.js module, which simplifies the process of making API calls to Usergrid from within Node.js, is part of the Apache Usergrid project <http://usergrid.incubator.apache.org/>. We welcome your contributions and suggestions. The official repository is located here:

@@ -22,3 +22,3 @@

##Client side Javascript
## Client side Javascript
Want to make calls to App Services (Usergrid) client-side? No problem - just head over to the Usergrid Javascript SDK:

@@ -31,3 +31,3 @@

##Installing
## Installing
Use npm:

@@ -38,3 +38,3 @@

##Getting started
## Getting started
Include the module:

@@ -73,3 +73,3 @@

##About the samples
## About the samples
All of the samples provided in this readme file come from unit tests in the test.js which is located in the root of this project.

@@ -90,3 +90,3 @@

##Entities and Collections
## Entities and Collections
Usergrid stores its data as "Entities" in "Collections". Entities are essentially JSON objects and Collections are just like folders for storing these objects. You can learn more about Entities and Collections in the App Services docs:

@@ -97,3 +97,3 @@

##Entities
## Entities
This module provides an easy way to make new entities. Here is a simple example that shows how to create a new object of type "dogs":

@@ -236,3 +236,3 @@

##The Collection object
## The Collection object
The Collection object models Collections in the database. Once you start programming your app, you will likely find that this is the most useful method of interacting with the database. Creating a collection will automatically populate the object with entities from the collection. The following example shows how to create a Collection object, then how to use entities once the Collection has been populated with entities from the server:

@@ -285,3 +285,3 @@

##Collection iteration and paging
## Collection iteration and paging
The Collection object works in Pages of data. This means that at any given time, the Collection object will have one page of data loaded. You can iterate across all the entities in the current page of data by using the following pattern:

@@ -363,3 +363,3 @@

###Custom Queries
### Custom Queries
A custom query allows you to tell the API that you want your results filtered or altered in some way. To specify that the query results should be ordered by creation date, add the qs parameter to the options object:

@@ -398,3 +398,3 @@

##Modeling users with the Entity object
## Modeling users with the Entity object
There is no specific User object in the module. Instead, you simply need to use the Entity object, specifying a type of "users". Here is an example:

@@ -455,3 +455,3 @@

###Making connections
### Making connections
Connections are a way to connect to entities with some verb. This is called an entity relationship. For example, if you have a user entity with username of marty, and a dog entity with a name of einstein, then using our RESTful API, you could make a call like this:

@@ -514,3 +514,3 @@

###To log a user in
### To log a user in
Up to this point, we have shown how you can use the client secret / client id combination to authenticate your calls against the API. For a server-side Node.js app, this may be all you need. However, if you do find that your app requires that you authenticate an individual user, you have several options.

@@ -594,3 +594,3 @@

###To log a user out
### To log a user out
To log the user out, call:

@@ -606,6 +606,6 @@

##Groups
## Groups
This module provides an easy way to make new groups. They follow the same syntax as Entities
##Making generic calls
## Making generic calls
If you find that you need to make calls to the API that fall outside of the scope of the Entity and Collection objects, you can use the following format to make any REST calls against the API:

@@ -689,3 +689,3 @@

###cURL
### cURL
[cURL](http://curl.haxx.se/) is an excellent way to make calls directly against the API. As mentioned in the **Getting started** section of this guide, one of the parameters you can add to the new client options object is **buildCurl**:

@@ -719,3 +719,3 @@

##More information
## More information
For more information on Usergrid, see <http://usergrid.incubator.apache.org/>

@@ -732,2 +732,2 @@

See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc