New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodeku

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodeku - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

test/helpers/assets/active-app.xml

4

lib/device.js

@@ -33,3 +33,3 @@

.then(({ apps }) => {
// tidy up json data
// Tidy up json data
const installedApps = apps.app.map(a => {

@@ -50,3 +50,3 @@ return im.Map({

.then(json => {
// tidy up json data
// Tidy up json data
const activeApp = json['active-app'].app.map(app => {

@@ -53,0 +53,0 @@ return im.Map({

@@ -15,3 +15,3 @@

// check for mock ssdpclient, use if available
// Check for mock ssdpclient, use if available
if (self.hasOwnProperty('MockSSDPClient')) {

@@ -23,3 +23,3 @@ client = new this.MockSSDPClient();

// open the flood gates
// Open the flood gates
const intervalId = setInterval(() => {

@@ -29,3 +29,3 @@ client.search('ssdp:all');

// discovery timeout for roku device; default 10000ms
// Discovery timeout for roku device; default 10000ms
const timeoutId = setTimeout(() => {

@@ -43,3 +43,3 @@ clearInterval(intervalId);

// roku devices operate on PORT 8060
// Roku devices operate on PORT 8060
const ipAddress = /(\d+.*:8060)(?=\/)/.exec(headers.LOCATION);

@@ -46,0 +46,0 @@

{
"name": "nodeku",
"version": "1.0.9",
"version": "1.0.10",
"description": "",

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

@@ -10,3 +10,3 @@

const ssdpMock = require('./resources/ssdp-mock');
const ssdpMock = require('./helpers/ssdp-mock');
const discovery = require('../lib/discovery').bind({

@@ -13,0 +13,0 @@ MockSSDPClient: ssdpMock.Client

@@ -9,12 +9,10 @@

let Nodeku = require('../');
const utils = require('./resources/utils');
const utils = require('./helpers/utils');
/* mocks and fixtures */
const ssdpMock = require('./resources/ssdp-mock');
const ReqMockConfig = require('./resources/superagent-mock-config');
/* Mocks and fixtures */
const ssdpMock = require('./helpers/ssdp-mock');
const ReqMockConfig = require('./helpers/superagent-mock-config');
require('superagent-mock')(req, ReqMockConfig, utils.logger);
/* main star */
Nodeku = Nodeku.bind({

@@ -57,6 +55,6 @@ MockSSDPClient: ssdpMock.Client,

let containsOnlyObjects = apps.every(app => im.Map.isMap(app));
const containsOnlyObjects = apps.every(app => im.Map.isMap(app));
t.true(containsOnlyObjects, 'list contains maps');
let objectsHaveCorrectProps = isDeepEqual(apps, ['id', 'name', 'type', 'version']);
const objectsHaveCorrectProps = isDeepEqual(apps, ['id', 'name', 'type', 'version']);
t.true(objectsHaveCorrectProps, 'maps has correct props');

@@ -72,3 +70,3 @@ });

let objectsHaveCorrectProps = isDeepEqual(app, ['id', 'name', 'type', 'version']);
const objectsHaveCorrectProps = isDeepEqual(app, ['id', 'name', 'type', 'version']);
t.true(objectsHaveCorrectProps, 'maps has correct props');

@@ -105,4 +103,4 @@ });

.then(apps => {
let randomIndex = Math.floor(Math.random() * apps.size);
let appToLaunch = apps.toJS().splice(randomIndex, 1)[0];
const randomIndex = Math.floor(Math.random() * apps.size);
const appToLaunch = apps.toJS().splice(randomIndex, 1)[0];
return device.launch(appToLaunch.id);

@@ -109,0 +107,0 @@ })

Sorry, the diff of this file is too big to display

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