Socket
Socket
Sign inDemoInstall

usergrid

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

usergrid - npm Package Compare versions

Comparing version 0.10.7 to 0.10.8

28

package.json
{
"name": "usergrid",
"version": "0.10.7",
"description": "A Node.js module for making API calls to App Services (Usergrid) from within Node.js",
"version": "0.10.8",
"description": "A Node.js module for making API calls to Usergrid from within Node.js",
"main": "./lib/usergrid.js",
"dependencies": {
"request": "2.12.x"
"request": "2.12.x",
"inflection": "1.3.x"
},

@@ -19,6 +20,6 @@ "devDependencies": {

"type": "git",
"url": "git://github.com/apigee/usergrid-node-module.git"
"url": "git://github.com/rodsimpson/usergrid-node-module.git"
},
"bugs": {
"url": "http://github.com/apigee/usergrid-node-module.git/issues"
"url": "http://usergrid.incubator.apache.org/"
},

@@ -28,3 +29,2 @@ "keywords": [

"Usergrid",
"Apigee",
"API"

@@ -34,12 +34,10 @@ ],

"usergrid",
"API",
"Apigee"
"API"
],
"author": {
"name": "Rod Simpson",
"email": "rod@rodsimpson.com",
"url" : "http://rodsimpson.com"
},
"license": "Apache 2.0"
"author": "Rod Simpson <rod@rodsimpson.com> (http://rodsimpson.com)",
"license": "Apache 2.0",
"homepage": "https://github.com/rodsimpson/usergrid-node-module",
"directories": {
"test": "test"
}
}
##Version
Current Version: **0.10.7**
Current Version: **0.10.8**

@@ -5,0 +5,0 @@ See change log:

@@ -0,1 +1,18 @@

//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
/**

@@ -26,21 +43,10 @@ * Test suite for all the examples in the readme

var client = new usergrid.client({
orgName:'yourorgname',
appName:'yourappname',
authType:usergrid.AUTH_CLIENT_ID,
clientId:'<your client id>',
clientSecret:'<your client secret>',
logging: false, //optional - turn on logging, off by default
buildCurl: false //optional - turn on curl commands, off by default
});
var client = new usergrid.client({
orgName:'yourorgname',
appName:'sandbox',
logging: true, //optional - turn on logging, off by default
buildCurl: true //optional - turn on curl commands, off by default
});
var client = new usergrid.client({
orgName:'yourorgname',
appName:'sandbox',
logging: true, //optional - turn on logging, off by default
buildCurl: true //optional - turn on curl commands, off by default
});
//call the runner function to start the process

@@ -190,2 +196,22 @@ client.logout();

break;
case 35:
notice('-----running step '+step+': create counter');
counterCreate(step, arg);
break;
case 36:
notice('-----running step '+step+': reset counter');
counterReset(step, arg);
break;
case 37:
notice('-----running step '+step+': increment counter');
counterIncrement(step, arg);
break;
case 38:
notice('-----running step '+step+': decrement counter');
counterDecrement(step, arg);
break;
case 34:
notice('-----running step '+step+': fetch counter data');
counterFetch(step, arg);
break;
default:

@@ -1003,1 +1029,52 @@ notice('-----test complete!-----');

}
//var counter;
function counterCreate(step){
var counter = new usergrid.counter({client:client, data:{category:'mocha_test', timestamp:0, name:"test", counters:{test:0,test_counter:0}}}, function(err, data){
if (err) {
error('counter not removed');
} else {
success('counter created');
}
});
runner(step, counter);
}
function counterReset(step, counter){
counter.reset({name:'test'}, function(err, data){
if (err) {
error('counter not reset');
} else {
success('counter reset');
}
runner(step, counter);
});
}
function counterIncrement(step, counter){
counter.increment({name:'test', value:1}, function(err, data){
if (err) {
error('counter not incremented');
} else {
success('counter incremented');
}
runner(step, counter);
});
}
function counterDecrement(step, counter){
counter.decrement({name:'test', value:1}, function(err, data){
if (err) {
error('counter not decremented');
} else {
success('counter decremented');
}
runner(step, counter);
});
}
function counterFetch(step, counter){
counter.getData({resolution:'all', counters:['test', 'test_counter']}, function(err, data){
if (err) {
error('counter not fetched');
} else {
success('counter fetched');
}
runner(step, counter);
});
}

@@ -0,1 +1,19 @@

//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
/**

@@ -2,0 +20,0 @@ * Test suite for Client object

@@ -0,1 +1,18 @@

//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
/**

@@ -2,0 +19,0 @@ * Test suite for Collection object

@@ -0,1 +1,18 @@

//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
/**

@@ -2,0 +19,0 @@ * Test suite for Entity object

Sorry, the diff of this file is not supported yet

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc