@twilio/operation-retrier
Advanced tools
Comparing version 4.0.5-rc.7 to 4.0.5-rc.8
@@ -6,2 +6,10 @@ # Change Log | ||
### [4.0.5-rc.8](https://github.com/twilio/operation-retrier.ts/compare/@twilio/operation-retrier@4.0.5-rc.7...@twilio/operation-retrier@4.0.5-rc.8) (2021-09-12) | ||
**Note:** Version bump only for package @twilio/operation-retrier | ||
### [4.0.5-rc.7](https://github.com/twilio/operation-retrier.ts/compare/@twilio/operation-retrier@4.0.5-rc.6...@twilio/operation-retrier@4.0.5-rc.7) (2021-09-12) | ||
@@ -8,0 +16,0 @@ |
@@ -10,12 +10,17 @@ // Return if monorepo install. | ||
const pkgJsonPath = require.main.paths[0].split("node_modules")[0] + "package.json"; | ||
const json = require(pkgJsonPath); | ||
const packageJson = require("../package.json"); | ||
const monorepoPackageJson = require('../../../package.json') | ||
if (typeof json?.dependencies?.["react-native"] !== "undefined") { | ||
console.log(packageJson.name, "React native detected."); | ||
const fs = require("fs"); | ||
const mainProjectPackageJsonPath = require.main.paths[0].split("node_modules")[0] + "package.json"; | ||
const mainProjectPackageJson = require(mainProjectPackageJsonPath); | ||
const dependencyPackageJsonPath = "../package.json"; | ||
const dependencyPackageJson = require(dependencyPackageJsonPath); | ||
if (typeof mainProjectPackageJson?.dependencies?.["react-native"] !== "undefined") { | ||
console.log(dependencyPackageJson.name, "React Native detected."); | ||
dependencyPackageJson["browser"] = "./dist/react-native.js"; | ||
fs.writeFileSync(dependencyPackageJsonPath, JSON.stringify(dependencyPackageJson, null, 2)); | ||
return; | ||
} | ||
console.log(packageJson.name, "No react native detected."); | ||
console.log(dependencyPackageJson.name, "No React Native detected."); |
{ | ||
"name": "@twilio/operation-retrier", | ||
"version": "4.0.5-rc.7", | ||
"version": "4.0.5-rc.8", | ||
"description": "RTD retrier", | ||
@@ -5,0 +5,0 @@ "author": "Sergei Chertkov", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
262368
4490
3