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

create-react-native-library

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-react-native-library - npm Package Compare versions

Comparing version 0.18.0 to 0.18.1

8

CHANGELOG.md

@@ -6,4 +6,12 @@ # Change Log

## [0.18.1](https://github.com/callstack/react-native-builder-bob/compare/create-react-native-library@0.18.0...create-react-native-library@0.18.1) (2021-03-03)
**Note:** Version bump only for package create-react-native-library
# 0.18.0 (2021-03-02)
**Note:** Version bump only for package create-react-native-library

24

lib/index.js

@@ -25,5 +25,2 @@ "use strict";

// eslint-disable-next-line import/no-commonjs
const pack = require('../package.json');
const BINARIES = /(gradlew|\.(jar|keystore|png|jpg|gif))$/;

@@ -221,6 +218,23 @@

const project = slug.replace(/^(react-native-|@[^/]+\/)/, '');
const moduleType = type === 'native-view' || type === 'native-view-swift' ? 'view' : 'module';
const moduleType = type === 'native-view' || type === 'native-view-swift' ? 'view' : 'module'; // Get latest version of Bob from NPM
let version;
try {
version = await Promise.race([new Promise(resolve => setTimeout(() => resolve(version), 1000)), new Promise((resolve, reject) => {
var _npm$stdout, _npm$stderr;
const npm = (0, _crossSpawn.default)('npm', ['view', 'react-native-builder-bob', 'dist-tags.latest']);
(_npm$stdout = npm.stdout) === null || _npm$stdout === void 0 ? void 0 : _npm$stdout.on('data', data => resolve(data.toString().trim()));
(_npm$stderr = npm.stderr) === null || _npm$stderr === void 0 ? void 0 : _npm$stderr.on('data', data => reject(data.toString().trim()));
npm.on('error', err => reject(err));
})]);
} catch (e) {
// Fallback to a known version if we couldn't fetch
version = '0.18.0';
}
const options = {
bob: {
version: pack.version
version
},

@@ -227,0 +241,0 @@ project: {

{
"name": "create-react-native-library",
"version": "0.18.0",
"version": "0.18.1",
"description": "CLI to scaffold React Native libraries",

@@ -72,3 +72,3 @@ "keywords": [

},
"gitHead": "6108d38923806d96ecddb33390f11310878ca7f5"
"gitHead": "733d2cc3468513995bb2b48550ca6849f0f19e71"
}

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