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

@twilio/operation-retrier

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twilio/operation-retrier - npm Package Compare versions

Comparing version 4.0.5-rc.7 to 4.0.5-rc.8

8

CHANGELOG.md

@@ -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 @@

19

dist/postinstall.js

@@ -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",

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