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

@react-native-windows/package-utils

Package Overview
Dependencies
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-windows/package-utils - npm Package Compare versions

Comparing version 0.0.0-canary.17 to 0.0.0-canary.18

37

CHANGELOG.json

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

{
"date": "Fri, 21 May 2021 05:14:43 GMT",
"date": "Thu, 03 Jun 2021 05:07:27 GMT",
"tag": "@react-native-windows/package-utils_v0.0.0-canary.18",
"version": "0.0.0-canary.18",
"comments": {
"prerelease": [
{
"comment": "Enable esModuleInterop Repo Wide",
"author": "ngerlem@microsoft.com",
"commit": "6c871e6ba27888804c776e5deeefbc7064e181d0",
"package": "@react-native-windows/package-utils"
}
],
"patch": [
{
"comment": "Bump @rnw-scripts/just-task to v2.1.2",
"author": "ngerlem@microsoft.com",
"commit": "b481f0a4ea68a8100860eb061902b715fca6652e",
"package": "@react-native-windows/package-utils"
},
{
"comment": "Bump @rnw-scripts/ts-config to v2.0.0",
"author": "ngerlem@microsoft.com",
"commit": "6c871e6ba27888804c776e5deeefbc7064e181d0",
"package": "@react-native-windows/package-utils"
},
{
"comment": "Bump @rnw-scripts/eslint-config to v1.1.7",
"author": "ngerlem@microsoft.com",
"commit": "b481f0a4ea68a8100860eb061902b715fca6652e",
"package": "@react-native-windows/package-utils"
}
]
}
},
{
"date": "Fri, 21 May 2021 05:17:18 GMT",
"tag": "@react-native-windows/package-utils_v0.0.0-canary.17",

@@ -8,0 +43,0 @@ "version": "0.0.0-canary.17",

# Change Log - @react-native-windows/package-utils
This log was last generated on Fri, 21 May 2021 05:14:43 GMT and should not be manually modified.
This log was last generated on Thu, 03 Jun 2021 05:07:27 GMT and should not be manually modified.
<!-- Start content -->
## 0.0.0-canary.18
Thu, 03 Jun 2021 05:07:27 GMT
### Patches
- Bump @rnw-scripts/just-task to v2.1.2 (ngerlem@microsoft.com)
- Bump @rnw-scripts/ts-config to v2.0.0 (ngerlem@microsoft.com)
- Bump @rnw-scripts/eslint-config to v1.1.7 (ngerlem@microsoft.com)
### Changes
- Enable esModuleInterop Repo Wide (ngerlem@microsoft.com)
## 0.0.0-canary.17
Fri, 21 May 2021 05:14:43 GMT
Fri, 21 May 2021 05:17:18 GMT

@@ -11,0 +25,0 @@ ### Patches

23

lib-commonjs/packageUtils.js

@@ -8,8 +8,11 @@ "use strict";

*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.findRepoPackage = exports.findPackage = exports.enumerateRepoPackages = exports.WritableNpmPackage = exports.NpmPackage = void 0;
const _ = require("lodash");
const fs = require("fs");
const path = require("path");
const find_repo_root_1 = require("@react-native-windows/find-repo-root");
const lodash_1 = __importDefault(require("lodash"));
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("path"));
const find_repo_root_1 = __importDefault(require("@react-native-windows/find-repo-root"));
const getMonorepoPackages = require('get-monorepo-packages');

@@ -34,3 +37,3 @@ /**

get json() {
return _.cloneDeep(this.pkgJson);
return lodash_1.default.cloneDeep(this.pkgJson);
}

@@ -47,5 +50,5 @@ }

static async fromPath(pkgPath) {
const jsonPath = path.join(pkgPath, 'package.json');
const jsonPath = path_1.default.join(pkgPath, 'package.json');
try {
const jsonBuffer = await fs.promises.readFile(jsonPath);
const jsonBuffer = await fs_1.default.promises.readFile(jsonPath);
return new WritableNpmPackage(pkgPath, JSON.parse(jsonBuffer.toString()));

@@ -67,3 +70,3 @@ }

async mergeProps(props) {
await this.setJson(_.merge(this.json, props));
await this.setJson(lodash_1.default.merge(this.json, props));
}

@@ -84,3 +87,3 @@ /**

this.pkgJson = jsonObj;
await fs.promises.writeFile(path.join(this.path, 'package.json'), JSON.stringify(this.json, null /*replacer*/, 2 /*space*/) + '\n');
await fs_1.default.promises.writeFile(path_1.default.join(this.path, 'package.json'), JSON.stringify(this.json, null /*replacer*/, 2 /*space*/) + '\n');
}

@@ -126,3 +129,3 @@ }

}
return new NpmPackage(path.dirname(pkgJsonPath), JSON.parse((await fs.promises.readFile(pkgJsonPath)).toString()));
return new NpmPackage(path_1.default.dirname(pkgJsonPath), JSON.parse((await fs_1.default.promises.readFile(pkgJsonPath)).toString()));
}

@@ -129,0 +132,0 @@ exports.findPackage = findPackage;

{
"name": "@react-native-windows/package-utils",
"version": "0.0.0-canary.17",
"version": "0.0.0-canary.18",
"license": "MIT",

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

"dependencies": {
"@react-native-windows/find-repo-root": "^0.0.0-canary.20",
"@react-native-windows/find-repo-root": "^0.0.0-canary.21",
"get-monorepo-packages": "^1.2.0",

@@ -20,5 +20,5 @@ "lodash": "^4.17.15"

"devDependencies": {
"@rnw-scripts/eslint-config": "1.1.6",
"@rnw-scripts/just-task": "2.1.1",
"@rnw-scripts/ts-config": "1.1.0",
"@rnw-scripts/eslint-config": "1.1.7",
"@rnw-scripts/just-task": "2.1.2",
"@rnw-scripts/ts-config": "2.0.0",
"@types/lodash": "^4.14.168",

@@ -25,0 +25,0 @@ "@types/node": "^14.14.22",

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