Socket
Socket
Sign inDemoInstall

@twilio/declarative-type-validator

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/declarative-type-validator - npm Package Compare versions

Comparing version 0.1.9-rc.6 to 0.1.9-rc.7

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

### [0.1.9-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/declarative-type-validator@0.1.9-rc.6...@twilio/declarative-type-validator@0.1.9-rc.7) (2021-09-12)
**Note:** Version bump only for package @twilio/declarative-type-validator
### [0.1.9-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/declarative-type-validator@0.1.9-rc.5...@twilio/declarative-type-validator@0.1.9-rc.6) (2021-09-12)

@@ -8,0 +16,0 @@

9

dist/postinstall.js

@@ -10,3 +10,4 @@ // Return if monorepo install.

// Change the "browser" property to "./dist/react-native.js" if React Native
// is detected.
const fs = require("fs");

@@ -16,12 +17,8 @@

const mainProjectPackageJson = require(mainProjectPackageJsonPath);
const dependencyPackageJsonPath = "../package.json";
const dependencyPackageJsonPath = `${__dirname}/../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(dependencyPackageJson.name, "No React Native detected.");
{
"name": "@twilio/declarative-type-validator",
"version": "0.1.9-rc.6",
"version": "0.1.9-rc.7",
"description": "Declarative runtime type validator for JavaScript",

@@ -5,0 +5,0 @@ "main": "./dist/lib.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