create-react-native-library
Advanced tools
Comparing version 0.18.0 to 0.18.1
@@ -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 |
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
323960
750
1