relay-compiler-experimental
Advanced tools
Comparing version 0.0.0-master-b70fd6c1 to 0.0.0-master-bbde6c36
10
cli.js
@@ -0,1 +1,2 @@ | ||
#!/usr/bin/env node | ||
/** | ||
@@ -7,6 +8,8 @@ * Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* @flow | ||
* @noflow | ||
* @format | ||
*/ | ||
'use strict'; | ||
var spawn = require('child_process').spawn; | ||
@@ -18,6 +21,5 @@ | ||
if (bin !== null) { | ||
spawn(bin, input, { stdio: 'inherit' }) | ||
.on('exit', process.exit); | ||
spawn(bin, input, {stdio: 'inherit'}).on('exit', process.exit); | ||
} else { | ||
throw new Error('Platform not supported.'); | ||
throw new Error('Platform not supported.'); | ||
} |
13
index.js
@@ -7,3 +7,3 @@ /** | ||
* | ||
* @flow | ||
* @noflow | ||
* @format | ||
@@ -16,12 +16,13 @@ */ | ||
let binary = null; | ||
let binary; | ||
if (process.platform === 'darwin') { | ||
binary = path.join(__dirname, 'macos', 'relay'); | ||
binary = path.join(__dirname, 'macos-x64', 'relay'); | ||
} else if (process.platform === 'linux' && process.arch === 'x64') { | ||
binary = path.join(__dirname, 'linux64', 'relay') | ||
binary = path.join(__dirname, 'linux-x64', 'relay'); | ||
} else if (process.platform === 'win32' && process.arch === 'x64') { | ||
binary = path.join(__dirname, 'relay-win64-v', 'relay.exe') | ||
binary = path.join(__dirname, 'win-x64', 'relay.exe'); | ||
} else { | ||
binary = null; | ||
} | ||
module.exports = binary; |
{ | ||
"name": "relay-compiler-experimental", | ||
"description": "Experimental version of the Relay Compiler", | ||
"version": "0.0.0-master-b70fd6c1", | ||
"version": "0.0.0-master-bbde6c36", | ||
"keywords": [ | ||
@@ -14,5 +14,3 @@ "graphql", | ||
"main": "index.js", | ||
"bin": { | ||
"relay-compiler": "cli.js" | ||
} | ||
"bin": "cli.js" | ||
} |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances 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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22456383
41
3