New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-repackager

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-repackager - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

24

package.json
{
"name": "react-native-repackager",
"version": "0.1.3",
"version": "0.1.4",
"description": "Custom extension for react-native packager",
"license": "MIT",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"bin": {
"repackager": "./repackager.js",
"repackager-sourcemap": "./repackagerSourcemap.js",
"repackager-e2e": "./repackagerE2E.js"
},
"main": "index.js",
"scripts": {
"test": ":"
},
"repository": {

@@ -25,7 +17,15 @@ "type": "git",

],
"license": "MIT",
"bugs": {
"url": "https://github.com/wix/react-native-repackager/issues"
},
"homepage": "https://github.com/wix/react-native-repackager#readme"
"homepage": "https://github.com/wix/react-native-repackager#readme",
"main": "index.js",
"scripts": {
"test": ":",
"postinstall": "node ./repackager.js"
},
"dependencies": {
"shell-utils": "1.x.x",
"lodash": "4.x.x"
}
}

@@ -1,4 +0,8 @@

#!/usr/bin/env node
const exec = require('shell-utils').exec;
const fs = require('fs');
const _ = require('lodash');
const cp = require('child_process');
const rootDir = process.cwd();
const scriptDir = __dirname;
const reactNativeDir = `${rootDir}/node_modules/react-native`;

@@ -8,6 +12,12 @@ run();

function run() {
console.log(`applying repackager patch to react-native 0.44`);
console.log(`support for --customExtensions`);
console.log(`${process.cwd()}`);
cp.execSync(`git apply --verbose --no-index --directory ../../node_modules/react-native rn44PackagerCustomExtensions.patch`);
assertRN44();
console.log(`injecting support for --customExtensions`);
exec.execSync(`git apply --verbose --no-index --directory ${reactNativeDir} ${scriptDir}/rn44PackagerCustomExtensions.patch`);
}
function assertRN44() {
const rnPackageJson = JSON.parse(fs.readFileSync(`${reactNativeDir}/package.json`));
if (!_.startsWith(rnPackageJson, '0.44')) {
throw new Error(`Only react-native 0.44.x is supported currently`);
}
}
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