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

speculate

Package Overview
Dependencies
Maintainers
2
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 1.6.0 to 1.6.1

yarn.lock

5

lib/archiver.js
var tar = require('tar-fs');
var fs = require('fs');
var zlib = require('zlib');
var path = require('path');
var IGNORE_REGEX = /SOURCES|SPECS|RPMS|SRPMS|\.git/;
module.exports.compress = function (source, target, cb) {

@@ -10,3 +13,3 @@ var gzip = zlib.createGzip();

ignore: function (name) {
return /SOURCES|SPECS|RPMS|SRPMS/.test(name);
return IGNORE_REGEX.test(path.relative(source, name));
}

@@ -13,0 +16,0 @@ });

2

package.json
{
"name": "speculate",
"version": "1.6.0",
"version": "1.6.1",
"description": "Automatically generates an RPM Spec file for your Node.js project",

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

@@ -61,2 +61,3 @@ var _ = require('lodash');

assert.equal(ignore('SRPMS'), true);
assert.equal(ignore('.git/objects/00'), true);
done();

@@ -67,2 +68,13 @@ });

});
it('does not ignore all artifacts because of full path name', function (done) {
archiver.compress('/tmp/SOURCES', 'tmp.tar.gz', function (err) {
assert.ifError(err);
var ignore = tar.pack.getCall(0).args[1].ignore;
assert.equal(ignore('/tmp/SOURCES/cake/real_file_here'), false);
done();
});
writeStream.emit('close');
});
});
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