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

sprucebot-node

Package Overview
Dependencies
Maintainers
3
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 3.0.0 to 6.6.0-beta.34deaa7

CHANGELOG.md

55

index.js

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

this.iframeUrl = interfaceUrl || required('interfaceUrl')
this.publicUrl = (interfaceUrl || required('interfaceUrl')) + '/public'
this.marketingUrl =

@@ -54,4 +55,5 @@ (interfaceUrl || required('interfaceUrl')) + '/marketing'

console.log(
`🌲 Sprucebot🌲 Skills Kit API ${this
.version}\n\nhost : ${cleanedHost} \nid : ${id} \napiKey : ${apiKey.replace(
`🌲 Sprucebot🌲 Skills Kit API ${
this.version
}\n\nhost : ${cleanedHost} \nid : ${id} \napiKey : ${apiKey.replace(
/./g,

@@ -73,3 +75,4 @@ '*'

iframeUrl: this.iframeUrl,
marketingUrl: this.marketingUrl
marketingUrl: this.marketingUrl,
publicUrl: this.publicUrl
}

@@ -103,4 +106,4 @@ const results = await this.https.patch('/', data)

* Get a user without a location. GLOBAL SKILLS ONLY
*
* @param {String} userId
*
* @param {String} userId
* @param {Object} Optional query string to be added to the request

@@ -114,3 +117,3 @@ */

* Get all locations. GLOBAL SKILLS ONLY
*
*
* @param {Object} Optional query string to be added to the request

@@ -123,7 +126,7 @@ */

/**
* Create a user
*
* @param {Object} values
* @returns {Promise}
*/
* Create a user
*
* @param {Object} values
* @returns {Promise}
*/
async createUser(values) {

@@ -134,9 +137,9 @@ return this.https.post('/ge/users', values)

/**
* Update a users role
*
* @param {String} locationId
* @param {String} userId
* @param {String} role
* @returns {Promise}
*/
* Update a users role
*
* @param {String} locationId
* @param {String} userId
* @param {String} role
* @returns {Promise}
*/
async updateRole(locationId, userId, role) {

@@ -218,8 +221,8 @@ return this.https.patch(

/**
* ONLY APPLIES TO SKILLS THAT ARE GLOBAL (are not attached to a location).
* This allows Sprucebot to communicate to business owners without them
* actually needing any skills enabled. Core usage only.
*
* @param {String} userId
* @param {String} message
* ONLY APPLIES TO SKILLS THAT ARE GLOBAL (are not attached to a location).
* This allows Sprucebot to communicate to business owners without them
* actually needing any skills enabled. Core usage only.
*
* @param {String} userId
* @param {String} message
*/

@@ -292,4 +295,4 @@ async globalMessage(userId, message) {

* Get skill meta data by id
*
* @param {String} id
*
* @param {String} id
*/

@@ -296,0 +299,0 @@ async metaById(id, { locationId, userId } = {}) {

{
"name": "sprucebot-node",
"version": "3.0.0",
"version": "6.6.0-beta.34deaa7",
"description": "Jam with the Sprucebot API in your favorite scripting language. 🤓",
"keywords": [
"node",
"components",
"sprucebot",
"sprucelabs"
],
"homepage": "https://github.com/sprucelabsai/sprucebot-skills-kit",
"bugs": {
"url": "https://github.com/sprucelabsai/sprucebot-skills-kit/issues"
},
"scripts": {

@@ -27,3 +37,4 @@ "lint": "eslint '**/**/*{.js}'",

"collectCoverage": true
}
},
"gitHead": "34deaa729a1c5cd18b804e306feeddd634cd9bc2"
}
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