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

rap-esp32

Package Overview
Dependencies
Maintainers
5
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rap-esp32 - npm Package Compare versions

Comparing version 0.4.12 to 0.4.13

src/commands/parameters.js

2

package.json
{
"name": "rap-esp32",
"version": "0.4.12",
"version": "0.4.13",
"description": "Rap extension for esp32",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -9,2 +9,4 @@ 'use strict';

const parametersJS = require('./parameters.js');
const { spawn, spawnSync } = require('child_process');

@@ -22,3 +24,4 @@ const { Promise } = require('thenfail');

.option('--package [path]', 'create the deployment package')
.option('--port [port]', 'designate port');
.option('--parameters [port=<port>]', 'designate port')
.option('--session-parameters []', 'use rap session mechanism');

@@ -31,2 +34,5 @@ trace.push(action);

var parameters = parametersJS.getParameters(rap, program);
program.port = parameters.port;
// TODO(Young): copied from rap-tm4c1294, shoule have no side effect on rap-esp32

@@ -33,0 +39,0 @@ let alignment = Number.parseInt(program.align) || 4 * 1024;

'use strict';
const chalk = require('chalk');
const parametersJS = require('./parameters.js');

@@ -8,3 +9,4 @@ exports.log = function (rap, program, trace) {

.description('stream system and application logs to output')
.option('--port [port]', 'designate port');
.option('--parameters [port=<port>]', 'designate port')
.option('--session-parameters []', 'use rap session mechanism');

@@ -17,2 +19,5 @@ trace.push(action);

var parameters = parametersJS.getParameters(rap, program);
program.port = parameters.port;
var path;

@@ -19,0 +24,0 @@ switch (process.platform) {

'use strict';
const parametersJS = require('./parameters.js');
const { Promise } = require('thenfail');

@@ -10,6 +11,10 @@ const { flash } = require('../lib/flash');

.description('upgrade ruff firmware')
.option('--port [port]', 'designate port')
.option('--parameters [port=<port>]', 'designate port')
.option('--session-parameters []', 'use rap session mechanism')
.action((binPath, program) => {
trace.push('upgrade');
var parameters = parametersJS.getParameters(rap, program);
program.port = parameters.port;
const fs = require('fs');

@@ -72,2 +77,4 @@ const os = require('os');

.option('-P, --application', 'erase only the application flash region')
.option('--parameters [port=<port>]', 'designate port')
.option('--session-parameters []', 'use rap session mechanism')
.description('erase flash')

@@ -77,2 +84,5 @@ .action((program) => {

var parameters = parametersJS.getParameters(program);
program.port = parameters.port;
var cp;

@@ -79,0 +89,0 @@

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