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.4 to 2.0.0-alpha.6

test/fixtures/my-cool-api-no-rebuild.json

3

lib/spec.js

@@ -51,3 +51,4 @@ 'use strict';

license: pkg.license,
prune: getValueFromSpec(pkg.spec, 'prune', true)
prune: getValueFromSpec(pkg.spec, 'prune', true),
rebuild: getValueFromSpec(pkg.spec, 'rebuild', true)
},

@@ -54,0 +55,0 @@ getExecutableFiles(pkg),

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

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

@@ -85,2 +85,12 @@ # speculate

If for some reason you do not want to rebuild your native modules, you can explicity tell speculate not to rebuild by adding the following to your `package.json`:
```json
{
"spec": {
"rebuild": false
}
}
```
A typical speculate build looks like this:

@@ -87,0 +97,0 @@

@@ -32,2 +32,10 @@ 'use strict';

it('removes the rebuild step when specified', () => {
const pkg = require('./fixtures/my-cool-api-no-rebuild');
const expected = loadFixture('my-cool-api-no-rebuild.spec');
const spec = createSpecFile(pkg);
assert.equal(spec, expected);
});
it('sets the release number when specified', () => {

@@ -34,0 +42,0 @@ const releaseNumber = 7;

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