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

iobroker.amazon-dash

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iobroker.amazon-dash - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

2

io-package.json
{
"common": {
"name": "amazon-dash",
"version": "0.1.2",
"version": "0.2.0",
"title": "Amazon Dash-Button",

@@ -6,0 +6,0 @@ "desc": {

@@ -8,5 +8,19 @@ /* jshint -W097 */// jshint strict:false

var int_array_to_hex = require('./helpers.js').int_array_to_hex;
var manufacturer_directory = require('./manufacturer.js').manufacturer_directory;
var pcap = require('pcap');
var MACs = [
"747548",
"F0D2F1",
"8871E5",
"74C246",
"F0272D",
"34D270",
"0C47C9",
"A002DC",
"AC63BE",
"44650D",
"50F5DA",
"84D6D0"
];
String.prototype.replaceAll = function (search, replacement) {

@@ -17,2 +31,6 @@ var target = this;

Array.prototype.contains = function(element){
return this.indexOf(element) > -1;
};
// is called when adapter shuts down - callback has to be called under any circumstances!

@@ -46,6 +64,5 @@ adapter.on('unload', function (callback) {

var nice_mac = mac.replaceAll(":", "-");
var needle = mac.slice(0, 8).toString().toUpperCase().split(':').join('');
var manufacturer = manufacturer_directory[mac.slice(0, 8).toString().toUpperCase().split(':').join('')];
if (manufacturer === "Amazon Technologies Inc.") {
if (MACs.contains(needle)) {
adapter.setObjectNotExists(nice_mac + ".pressed", {

@@ -101,2 +118,2 @@ type: "state",

});
});
});
{
"name": "iobroker.amazon-dash",
"version": "0.1.2",
"version": "0.2.0",
"description": "ioBroker amazon-dash Adapter",

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

@@ -13,3 +13,3 @@ ![Logo](admin/amazon-dash.png)

##Steps
## Steps
1. Install libpcap-dev

@@ -29,2 +29,5 @@

### 0.2.0
+ (PArns) Simplified MAC lookup (thx to GermanBluefox)
### 0.1.2

@@ -59,3 +62,3 @@ + (PArns) Added new Amazon MAC family

Copyright (c) 2016 Patrick Arns <npm@patrick-arns.de>
Copyright (c) 2016-2017 Patrick Arns <npm@patrick-arns.de>

@@ -62,0 +65,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

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