Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rnw-scripts/find-repo-root

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rnw-scripts/find-repo-root - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

CHANGELOG.json

@@ -5,3 +5,3 @@ {

{
"date": "Mon, 06 Jul 2020 23:10:11 GMT",
"date": "Mon, 06 Jul 2020 23:11:46 GMT",
"tag": "@rnw-scripts/find-repo-root_v0.0.3",

@@ -8,0 +8,0 @@ "version": "0.0.3",

@@ -9,11 +9,2 @@ "use strict";

*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -26,13 +17,13 @@ const findUp = require("find-up");

*/
exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
const root = yield findUp((dir) => __awaiter(void 0, void 0, void 0, function* () {
exports.default = async () => {
const root = await findUp(async (dir) => {
const packagePath = path.join(dir, 'package.json');
if (!(yield findUp.exists(packagePath))) {
if (!(await findUp.exists(packagePath))) {
return undefined;
}
const pkg = (yield fs.promises.readFile(packagePath)).toString();
const pkg = (await fs.promises.readFile(packagePath)).toString();
return JSON.parse(pkg).name === 'react-native-windows-repo'
? dir
: undefined;
}), { type: 'directory' });
}, { type: 'directory' });
if (!root) {

@@ -42,3 +33,3 @@ throw new Error('Unable to find the root of react-native-windows. Are you running within the repo?');

return root;
});
};
//# sourceMappingURL=findRepoRoot.js.map
{
"name": "@rnw-scripts/find-repo-root",
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",

@@ -19,3 +19,3 @@ "scripts": {

"@rnw-scripts/just-task": "0.0.2",
"@rnw-scripts/ts-config": "0.0.1",
"@rnw-scripts/ts-config": "0.1.0",
"@types/find-up": "^4.0.0",

@@ -22,0 +22,0 @@ "eslint": "6.7.0",

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