Socket
Socket
Sign inDemoInstall

thsq-agent

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thsq-agent - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "thsq-agent",
"version": "1.0.0",
"version": "1.0.1",
"description": "Thingsquare agent for Linux gateways",

@@ -17,2 +17,4 @@ "main": "thsq-agent.js",

"dependencies": {
"console-stamp": "^0.2.9",
"getopts": "^2.2.5",
"thsq": "^1.4.4",

@@ -19,0 +21,0 @@ "wireless-tools": "^0.19.0"

@@ -14,8 +14,39 @@ #!/usr/bin/env node

var statefilename = 'thsq-agent.json';
var getopts = require('getopts');
require('console-stamp')(console, { pattern : 'HH:MM:ss.l' });
function run(options, callback) {
var statefilename = 'thsq-agent.json';
var callbackcalled = false;
function usage() {
console.info('usage: node thsq-agent.js');
console.info('optional: -f <frontend> -b <backend>');
process.exit(1);
}
var cmdlineoptions = getopts(process.argv.slice(2), {
alias: {
frontend: 'f',
backend: 'b',
help: 'h',
},
default: {
frontend: '0ac48bf3-9fab-4bad-8455-e394808eda6b',
backend: 'developer.thingsquare.com',
}
});
if (cmdlineoptions.help) {
usage();
}
if (options === undefined) {
options = { server: cmdlineoptions.backend, frontend: cmdlineoptions.frontend };
}
thsq.init(options, function () {

@@ -22,0 +53,0 @@ var cookie;

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