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

speculate

Package Overview
Dependencies
Maintainers
12
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speculate - npm Package Compare versions

Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2

24

lib/archiver.js
'use strict';
const _ = require('lodash');
const tar = require('tar-fs');

@@ -17,11 +16,18 @@ const fs = require('fs');

if (whitelist.files) {
const whitelistSections = _.pick(whitelist, ['main', 'files']);
const whitelistFromSections = _.reduce(whitelistSections, (whitelist, current) => {
if (current) {
return _.concat(whitelist, current);
}
// Extract the property from the whitelist
const { main, files } = whitelist;
const whitelistFromSections = [];
return whitelist;
}, []);
/*
* It flattens the content of both properties (main and files) in the
* "whitelistFromSections" array.
*/
if (main) {
whitelistFromSections.push(main);
}
if (files) {
whitelistFromSections.push(...files);
}
if (!whitelistFromSections.length) {

@@ -31,3 +37,3 @@ return;

return _.concat(REQUIRED_ENTRIES, whitelistFromSections);
return REQUIRED_ENTRIES.concat(whitelistFromSections);
}

@@ -34,0 +40,0 @@ }

{
"name": "speculate",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "Automatically generates an RPM Spec file for your Node.js project",

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

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