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

@lessondesk/marker-protocol

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lessondesk/marker-protocol - npm Package Compare versions

Comparing version 3.6.2 to 3.6.3

24

dist/index.js

@@ -1,7 +0,11 @@

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var EventEmitter = require('events');
var fs = require('fs');
var SerialPort = require('serialport');
var EventEmitter = _interopDefault(require('events'));
var fs = _interopDefault(require('fs'));
var SerialPort = _interopDefault(require('serialport'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var EventEmitter__default = /*#__PURE__*/_interopDefaultLegacy(EventEmitter);
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
var SerialPort__default = /*#__PURE__*/_interopDefaultLegacy(SerialPort);
const {

@@ -346,7 +350,7 @@ Transform

class MarkerProtocol extends EventEmitter {
class MarkerProtocol extends EventEmitter__default['default'] {
constructor(config = defaultConfig) {
super();
this.initialize = () => SerialPort.list().then(this.openAccessPoint).catch(console.error);
this.initialize = () => SerialPort__default['default'].list().then(this.openAccessPoint).catch(console.error);

@@ -403,11 +407,11 @@ this.acceptMarker = (port, serial) => {

if (usbDetected && usbDetected.path) {
if (fs.existsSync(usbDetected.path)) {
if (fs__default['default'].existsSync(usbDetected.path)) {
console.log("Receiever detected: ", usbDetected.path);
port = new SerialPort(usbDetected.path, this.config.serialport);
port = new SerialPort__default['default'](usbDetected.path, this.config.serialport);
} else {
console.log("Receiever path detected but failed to open path.");
}
} else if (fs.existsSync("/dev/ttyAMA0")) {
} else if (fs__default['default'].existsSync("/dev/ttyAMA0")) {
console.log("Receiever detected: /dev/ttyAMA0");
port = new SerialPort("/dev/ttyAMA0", this.config.serialport);
port = new SerialPort__default['default']("/dev/ttyAMA0", this.config.serialport);
} else {

@@ -414,0 +418,0 @@ console.log("Receiver not found... Retrying in 10s...");

{
"name": "@lessondesk/marker-protocol",
"version": "3.6.2",
"version": "3.6.3",
"description": "Lesson Desk Group marker protocol",

@@ -32,3 +32,3 @@ "source": "src/index.js",

"jest": "^26.6.3",
"microbundle": "^0.12.4",
"microbundle": "^0.13.0",
"prettier": "^1.18.2",

@@ -35,0 +35,0 @@ "prettier-eslint-cli": "^5.0.0"

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