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

node-raspberrypi-usbboot

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-raspberrypi-usbboot - npm Package Compare versions

Comparing version 1.1.0-build-aethernet-allow-custom-sb-assets-c574fba2a75f33bbef731acb50d62dfb6ffead79-1 to 1.1.0

17

build/index.js

@@ -260,2 +260,7 @@ "use strict";

}
}
catch (e) {
// no data
}
try {
const folder = device.deviceDescriptor.idProduct === USB_PRODUCT_ID_BCM2711_BOOT

@@ -379,2 +384,3 @@ ? 'cm4'

// Prepare already connected devices
// eslint-disable-next-line @typescript-eslint/no-floating-promises
usb_1.usb.getDeviceList().map(this.boundAttachDevice);

@@ -388,4 +394,3 @@ // At this point all devices from `usg.getDeviceList()` above

usb_1.usb.on('detach', this.boundDetachDevice);
// ts-ignore because of a confusion between NodeJS.Timer and number
// @ts-ignore
// @ts-expect-error because of a confusion between NodeJS.Timer and number
this.interval = setInterval(() => {

@@ -441,3 +446,3 @@ // usb.getDeviceList().forEach(this.boundAttachDevice);

let forceSecondstage = false;
if (device.deviceDescriptor.iSerialNumber == (usbbootDevice === null || usbbootDevice === void 0 ? void 0 : usbbootDevice.last_serial)) {
if (device.deviceDescriptor.iSerialNumber === (usbbootDevice === null || usbbootDevice === void 0 ? void 0 : usbbootDevice.last_serial)) {
if (usbbootDevice.step > 0) {

@@ -456,3 +461,3 @@ forceSecondstage = true;

}
debug('Found serial number', device.deviceDescriptor.iSerialNumber, `${forceSecondstage ? " => Forced second stage" : ""}`);
debug('Found serial number', device.deviceDescriptor.iSerialNumber, `${forceSecondstage ? ' => Forced second stage' : ''}`);
debug('port id', devicePortId(device));

@@ -463,3 +468,4 @@ try {

if ((device.deviceDescriptor.iSerialNumber === 0 ||
device.deviceDescriptor.iSerialNumber === 3) && !forceSecondstage) {
device.deviceDescriptor.iSerialNumber === 3) &&
!forceSecondstage) {
debug('Sending bootcode.bin', devicePortId(device));

@@ -505,2 +511,3 @@ this.step(device, 0);

async fileServer(device, endpoint, step, extraFolder) {
// eslint-disable-next-line no-constant-condition
while (true) {

@@ -507,0 +514,0 @@ let data;

@@ -11,2 +11,3 @@ # Change Log

* minor: allow passing custom assets to start SB protected CM4 [Edwin Joassart]
* patch: fix linter, formatting and old errors [Edwin Joassart]

@@ -13,0 +14,0 @@ # v1.0.8

{
"name": "node-raspberrypi-usbboot",
"version": "1.1.0-build-aethernet-allow-custom-sb-assets-c574fba2a75f33bbef731acb50d62dfb6ffead79-1",
"version": "1.1.0",
"description": "Transforms Raspberry Pi Compute Modules and Zeros to mass storage devices.",

@@ -8,3 +8,3 @@ "main": "build/index.js",

"scripts": {
"prettier": "balena-lint --fix --typescript lib/*.ts",
"prettier": "balena-lint --fix --typescript typings lib",
"lint": "balena-lint --typescript lib/*.ts",

@@ -43,4 +43,4 @@ "build": "npm run lint && rimraf build && tsc",

"versionist": {
"publishedAt": "2024-06-07T08:58:43.884Z"
"publishedAt": "2024-06-07T11:45:41.285Z"
}
}

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