@sprucelabs/sprucebot-node
Advanced tools
Comparing version 6.65.2-pre-1acdd36.0 to 6.65.2
@@ -6,13 +6,11 @@ # Change Log | ||
## [6.65.2-pre-1acdd36.0](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v6.65.1...v6.65.2-pre-1acdd36.0) (2018-08-29) | ||
<a name="6.65.2"></a> | ||
## [6.65.2](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v6.65.1...v6.65.2) (2018-08-30) | ||
**Note:** Version bump only for package @sprucelabs/sprucebot-node | ||
### Features | ||
* send version information to api on skill boot ([384ae74](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/commit/384ae74)) | ||
<a name="6.65.1"></a> | ||
@@ -19,0 +17,0 @@ ## [6.65.1](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v6.65.0...v6.65.1) (2018-08-29) |
const url = require('../utilities/url') | ||
const https = require('https') | ||
var debug = require('debug')('@sprucelabs/sprucebot-node') | ||
var debug = require('debug')('sprucebot-node') | ||
@@ -5,0 +5,0 @@ module.exports = class Https { |
14
index.js
@@ -25,5 +25,3 @@ const Https = require('./https') | ||
dbEnabled = false, | ||
eventContract = required('eventContract'), | ||
version = 'unknown', | ||
skillsKitVersion = 'unknown' | ||
eventContract = required('eventContract') | ||
}) { | ||
@@ -46,5 +44,3 @@ const hostMatches = host.match(/^(https?\:\/\/|)([^\/:?#]+)(?:[\/:?#]|$)/i) | ||
this.version = version // skill version | ||
this.skillsKitVersion = skillsKitVersion // skills kit version | ||
this.apiVersion = '1.0' // maybe pull from package.json? | ||
this.version = '1.0' // maybe pull from package.json? | ||
@@ -56,3 +52,3 @@ // Setup http(s) class with everything it needs to talk to api | ||
id, | ||
version: this.apiVersion, | ||
version: this.version, | ||
allowSelfSignedCerts | ||
@@ -85,5 +81,3 @@ }) | ||
publicUrl: this.publicUrl, | ||
eventContract: this.eventContract, | ||
version: this.version, | ||
skillsKitVersion: this.skillsKitVersion | ||
eventContract: this.eventContract | ||
} | ||
@@ -90,0 +84,0 @@ const results = await this.https.patch('/', data) |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "6.65.2-pre-1acdd36.0", | ||
"version": "6.65.2", | ||
"description": "Jam with the Sprucebot API in your favorite scripting language. 🤓", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "1acdd3698f1219765e29716e76824f79983f99ae" | ||
"gitHead": "6ae01a14075c735f3ef6c2db84b1428ad3d5c26b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
383010
33
8347
1