Comparing version 0.31.1 to 0.32.0
@@ -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.'); | ||
} |
14
index.js
@@ -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 | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
21006326
0
0
10
69
0
1
38
- Removedbin-wrapper@^3.0.2
- Removedlogalot@^2.0.0
- Removedansi-gray@0.1.1(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedansi-wrap@0.1.0(transitive)
- Removedarchive-type@3.2.0(transitive)
- Removedarr-diff@2.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarray-differ@1.0.0(transitive)
- Removedarray-find-index@1.0.2(transitive)
- Removedarray-uniq@1.0.3(transitive)
- Removedarray-unique@0.2.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbeeper@1.1.1(transitive)
- Removedbin-check@2.0.0(transitive)
- Removedbin-version@1.0.4(transitive)
- Removedbin-version-check@2.1.0(transitive)
- Removedbin-wrapper@3.0.2(transitive)
- Removedbl@1.2.3(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@1.8.5(transitive)
- Removedbuffer-alloc@1.2.0(transitive)
- Removedbuffer-alloc-unsafe@1.1.0(transitive)
- Removedbuffer-crc32@0.2.13(transitive)
- Removedbuffer-fill@1.0.0(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedbuffer-to-vinyl@1.1.0(transitive)
- Removedcamelcase@2.1.1(transitive)
- Removedcamelcase-keys@2.1.0(transitive)
- Removedcapture-stack-trace@1.0.2(transitive)
- Removedcaw@1.2.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedclone@0.2.01.0.4(transitive)
- Removedclone-stats@0.0.1(transitive)
- Removedco@3.1.0(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removedcommander@2.20.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedconsole-stream@0.1.1(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcreate-error-class@3.0.2(transitive)
- Removedcurrently-unhandled@0.4.1(transitive)
- Removeddateformat@2.2.0(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddecompress@3.0.0(transitive)
- Removeddecompress-tar@3.1.0(transitive)
- Removeddecompress-tarbz2@3.1.0(transitive)
- Removeddecompress-targz@3.1.0(transitive)
- Removeddecompress-unzip@3.4.0(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddownload@4.4.3(transitive)
- Removedduplexer2@0.0.20.1.4(transitive)
- Removedduplexify@3.7.1(transitive)
- Removedeach-async@1.1.1(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedexecutable@1.1.0(transitive)
- Removedexpand-brackets@0.1.5(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextend-shallow@2.0.1(transitive)
- Removedextglob@0.3.2(transitive)
- Removedfancy-log@1.3.3(transitive)
- Removedfd-slicer@1.1.0(transitive)
- Removedfigures@1.7.0(transitive)
- Removedfile-type@3.9.0(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfilename-reserved-regex@1.0.0(transitive)
- Removedfilenamify@1.2.1(transitive)
- Removedfill-range@2.2.4(transitive)
- Removedfind-up@1.1.2(transitive)
- Removedfind-versions@1.2.1(transitive)
- Removedfirst-chunk-stream@1.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedfs-constants@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-proxy@1.1.0(transitive)
- Removedget-stdin@4.0.1(transitive)
- Removedglob@5.0.15(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.03.1.0(transitive)
- Removedglob-stream@5.3.5(transitive)
- Removedglogg@1.0.2(transitive)
- Removedgot@5.7.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedgulp-decompress@1.2.0(transitive)
- Removedgulp-rename@1.4.0(transitive)
- Removedgulp-sourcemaps@1.6.0(transitive)
- Removedgulp-util@3.0.8(transitive)
- Removedgulplog@1.0.0(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-gulplog@0.1.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedindent-string@2.1.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedini@1.3.8(transitive)
- Removedis-absolute@0.1.7(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-bzip2@1.0.0(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extendable@0.1.1(transitive)
- Removedis-extglob@1.0.02.1.1(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedis-glob@2.0.13.1.0(transitive)
- Removedis-gzip@1.0.0(transitive)
- Removedis-natural-number@2.1.1(transitive)
- Removedis-number@2.1.04.0.0(transitive)
- Removedis-obj@1.0.1(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedis-redirect@1.0.0(transitive)
- Removedis-relative@0.1.3(transitive)
- Removedis-retry-allowed@1.2.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedis-tar@1.0.0(transitive)
- Removedis-url@1.2.4(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedis-valid-glob@0.3.0(transitive)
- Removedis-zip@1.0.0(transitive)
- Removedisarray@0.0.11.0.0(transitive)
- Removedisobject@2.1.0(transitive)
- Removedjson-stable-stringify-without-jsonify@1.0.1(transitive)
- Removedkind-of@3.2.26.0.3(transitive)
- Removedlazy-req@1.1.0(transitive)
- Removedlazystream@1.0.1(transitive)
- Removedload-json-file@1.1.0(transitive)
- Removedlodash._basecopy@3.0.1(transitive)
- Removedlodash._basetostring@3.0.1(transitive)
- Removedlodash._basevalues@3.0.0(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash._isiterateecall@3.0.9(transitive)
- Removedlodash._reescape@3.0.0(transitive)
- Removedlodash._reevaluate@3.0.0(transitive)
- Removedlodash._reinterpolate@3.0.0(transitive)
- Removedlodash._root@3.0.1(transitive)
- Removedlodash.escape@3.2.0(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.isequal@4.5.0(transitive)
- Removedlodash.keys@3.1.2(transitive)
- Removedlodash.restparam@3.6.1(transitive)
- Removedlodash.template@3.6.2(transitive)
- Removedlodash.templatesettings@3.1.1(transitive)
- Removedlogalot@2.1.0(transitive)
- Removedlongest@1.0.1(transitive)
- Removedloud-rejection@1.6.0(transitive)
- Removedlowercase-keys@1.0.1(transitive)
- Removedlpad-align@1.1.2(transitive)
- Removedmap-obj@1.0.1(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmeow@3.7.0(transitive)
- Removedmerge-stream@1.0.1(transitive)
- Removedmicromatch@2.3.11(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedmultipipe@0.1.2(transitive)
- Removednode-status-codes@1.0.0(transitive)
- Removednormalize-package-data@2.5.0(transitive)
- Removednormalize-path@2.1.1(transitive)
- Removedobject-assign@2.1.13.0.04.1.1(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedonetime@1.1.0(transitive)
- Removedordered-read-streams@0.3.0(transitive)
- Removedos-filter-obj@1.0.3(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedparse-node-version@1.0.1(transitive)
- Removedpath-dirname@1.0.2(transitive)
- Removedpath-exists@2.1.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@1.1.0(transitive)
- Removedpend@1.2.0(transitive)
- Removedpify@2.3.0(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedprepend-http@1.0.4(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedrc@1.2.8(transitive)
- Removedread-all-stream@3.1.0(transitive)
- Removedread-pkg@1.1.0(transitive)
- Removedread-pkg-up@1.0.1(transitive)
- Removedreadable-stream@1.0.341.1.142.3.83.6.2(transitive)
- Removedredent@1.0.0(transitive)
- Removedregex-cache@0.4.4(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedrepeating@2.0.1(transitive)
- Removedreplace-ext@0.0.1(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsafe-buffer@5.1.25.2.1(transitive)
- Removedseek-bzip@1.0.6(transitive)
- Removedsemver@4.3.65.7.2(transitive)
- Removedsemver-regex@1.0.0(transitive)
- Removedsemver-truncate@1.1.2(transitive)
- Removedset-immediate-shim@1.0.1(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsparkles@1.0.1(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.20(transitive)
- Removedsqueak@1.3.0(transitive)
- Removedstat-mode@0.2.2(transitive)
- Removedstream-combiner2@1.1.1(transitive)
- Removedstream-shift@1.0.3(transitive)
- Removedstring_decoder@0.10.311.1.11.3.0(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedstrip-bom@2.0.0(transitive)
- Removedstrip-bom-stream@1.0.0(transitive)
- Removedstrip-dirs@1.1.1(transitive)
- Removedstrip-indent@1.0.1(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedstrip-outer@1.0.1(transitive)
- Removedsum-up@1.0.3(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtar-stream@1.6.2(transitive)
- Removedthrough2@0.6.52.0.54.0.2(transitive)
- Removedthrough2-filter@2.0.03.1.0(transitive)
- Removedtime-stamp@1.1.0(transitive)
- Removedtimed-out@3.1.3(transitive)
- Removedto-absolute-glob@0.1.1(transitive)
- Removedto-buffer@1.1.1(transitive)
- Removedtrim-newlines@1.0.0(transitive)
- Removedtrim-repeated@1.0.0(transitive)
- Removedtunnel-agent@0.4.3(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedunique-stream@2.3.1(transitive)
- Removedunzip-response@1.0.2(transitive)
- Removedurl-parse-lax@1.0.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removeduuid@2.0.3(transitive)
- Removedvali-date@1.0.0(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedvinyl@0.4.60.5.31.2.0(transitive)
- Removedvinyl-assign@1.2.1(transitive)
- Removedvinyl-fs@2.4.4(transitive)
- Removedware@1.3.0(transitive)
- Removedwrap-fn@0.1.5(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)
- Removedyauzl@2.10.0(transitive)