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

flipper-doctor

Package Overview
Dependencies
Maintainers
1
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flipper-doctor - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

44

lib/environmentInfo.js

@@ -48,3 +48,3 @@ "use strict";

var envinfo_1 = require("envinfo");
function getEnvInfo() {
function retrieveAndParseEnvInfo() {
return __awaiter(this, void 0, void 0, function () {

@@ -59,2 +59,3 @@ var _a, _b;

IDEs: ['Xcode'],
Languages: ['Java'],
}, { json: true, showNotFound: true })];

@@ -66,2 +67,43 @@ case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])];

}
// Temporary workaround for https://github.com/facebook/flipper/issues/667 until it properly fixed in 'envinfo'.
function workaroundForNewerJavaVersions(envInfo) {
return __awaiter(this, void 0, void 0, function () {
var majorVersion, e_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 3, , 4]);
if (!(envInfo.Languages.Java && envInfo.Languages.Java.version)) return [3 /*break*/, 2];
majorVersion = envInfo.Languages.Java.version
.split('.')
.slice(0, 1)
.map(function (x) { return parseInt(x, 10); })[0];
if (!(8 < majorVersion && majorVersion < 11)) return [3 /*break*/, 2];
process.env.JAVA_OPTS =
'-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee';
return [4 /*yield*/, retrieveAndParseEnvInfo()];
case 1: return [2 /*return*/, _a.sent()];
case 2: return [3 /*break*/, 4];
case 3:
e_1 = _a.sent();
console.error(e_1);
return [3 /*break*/, 4];
case 4: return [2 /*return*/, envInfo];
}
});
});
}
function getEnvInfo() {
return __awaiter(this, void 0, void 0, function () {
var _a;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
_a = workaroundForNewerJavaVersions;
return [4 /*yield*/, retrieveAndParseEnvInfo()];
case 1: return [2 /*return*/, _a.apply(void 0, [_b.sent()])];
}
});
});
}
exports.getEnvInfo = getEnvInfo;

2

package.json
{
"name": "flipper-doctor",
"version": "0.2.3",
"version": "0.2.4",
"description": "Utility for checking for issues with a flipper installation",

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

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