Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sprucebot-node

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sprucebot-node - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

34

index.js

@@ -102,3 +102,3 @@ const Https = require('./https')

* @param {String} userId
* @param {Object} Optional query stirng to be added to the request
* @param {Object} Optional query string to be added to the request
*/

@@ -110,2 +110,34 @@ async globalUser(userId, query) {

/**
* Get all locations. GLOBAL SKILLS ONLY
*
* @param {Object} Optional query string to be added to the request
*/
async globalLocations(query) {
return this.https.get(`/ge/locations`, query)
}
/**
* Create a user
*
* @param {Object} values
* @returns {Promise}
*/
async createUser(values) {
return this.https.post('/ge/users', values)
}
/**
* Update a users role
*
* @param {String} locationId
* @param {String} userId
* @param {String} role
* @returns {Promise}
*/
async updateRole(locationId, userId, role) {
return this.https.patch(
`/ge/locations/${locationId}/users/${userId}/${role}`
)
}
/**
* Search for users who have been to this location

@@ -112,0 +144,0 @@ *

2

package.json
{
"name": "sprucebot-node",
"version": "1.1.0",
"version": "1.1.1",
"description": "Jam with the Sprucebot API in your favorite scripting language. 🤓",

@@ -5,0 +5,0 @@ "scripts": {

@@ -28,7 +28,6 @@ module.exports = {

if (query) {
pathWithQuery += '&' + this.serialize(query)
pathWithQuery += this.serialize(query)
}
return pathWithQuery
}
}

Sorry, the diff of this file is not supported yet

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