Socket
Socket
Sign inDemoInstall

flow-bin

Package Overview
Dependencies
Maintainers
4
Versions
353
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flow-bin - npm Package Compare versions

Comparing version 0.31.1 to 0.32.0

flow-linux64-v0.32.0/flow

8

cli.js

@@ -16,3 +16,7 @@ #!/usr/bin/env node

spawn(bin, input, {stdio: 'inherit'})
.on('exit', process.exit);
if (bin !== null) {
spawn(bin, input, {stdio: 'inherit'})
.on('exit', process.exit);
} else {
throw new Error('Platform not supported.');
}

@@ -10,4 +10,14 @@ /**

'use strict';
var bin = require('./lib');
module.exports = bin.path();
var VERSION = require('./package.json').version;
var path = require('path');
module.exports =
process.platform === 'darwin'
? path.join(__dirname, 'flow-osx-v' + VERSION, 'flow') :
process.platform === 'linux' && process.arch === 'x64'
? path.join(__dirname, 'flow-linux64-v' + VERSION, 'flow') :
process.platform === 'win32' && process.arch === 'x64'
? path.join(__dirname, 'flow-win64-v' + VERSION, 'flow.exe') :
null;
{
"name": "flow-bin",
"version": "0.31.1",
"version": "0.32.0",
"description": "Binary wrapper for Flow - A static type checker for JavaScript",

@@ -16,4 +16,4 @@ "license": "MIT",

"scripts": {
"test": "npm run postinstall && xo && ava",
"postinstall": "node lib/install.js"
"test": "echo \"Error: Run 'make test' instead.\" && exit 1",
"verify": "shasum -c SHASUM256.txt"
},

@@ -24,5 +24,9 @@ "engines": {

"files": [
"flow-linux64-v*/flow",
"flow-osx-v*/flow",
"flow-win64-v*/flow.exe",
"vendor",
"cli.js",
"index.js",
"cli.js",
"lib"
"SHASUM256.txt"
],

@@ -43,12 +47,3 @@ "keywords": [

"wrapper"
],
"dependencies": {
"bin-wrapper": "^3.0.2",
"logalot": "^2.0.0"
},
"devDependencies": {
"ava": "*",
"bin-check": "^3.0.0",
"xo": "*"
}
]
}

@@ -38,1 +38,32 @@ # flow-bin [![Build Status](https://travis-ci.org/flowtype/flow-bin.svg?branch=master)](https://travis-ci.org/flowtype/flow-bin)

flow-bin is BSD-licensed. We also provide an additional patent grant.
## Releases
### New Release
1. Update the "version" in `package.json` to reflect the flow version to publish. (For now, `flow-bin`'s version is also the version of the `flow` binary).
2. Run `make`.
* There should be 2 uncommitted changes at this point: `SHASUM256.txt` and `package.json`.
3. Commit the changes with the message `Updated binary to v0.30.0`, with the correct version.
4. Push/merge to `master`.
5. Tag the update:
```sh
git checkout master &&
git pull &&
make test &&
git tag v$(node -p 'require("./package.json").version') &&
git push v$(node -p 'require("./package.json").version')
```
6. Publish to npm.
### Inspect a Release Before Publishing
```sh
npm pack
tar xf "flow-bin-$(node -p 'require("./package.json").version').tgz"
cd package
npm run verify
```
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