react-native-update-cli 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/package.js CHANGED
@@ -254,7 +254,7 @@ const packageCommands = {
254
254
  appId
255
255
  }));
256
256
  }
257
- const selectedPackage = allPkgs.find((pkg)=>pkg.version === packageVersion);
257
+ const selectedPackage = allPkgs.find((pkg)=>pkg.name === packageVersion);
258
258
  if (!selectedPackage) {
259
259
  throw new Error((0, _i18n.t)('packageNotFound', {
260
260
  packageVersion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update-cli",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "command line tool for react-native-update (remote updates for react native)",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/package.ts CHANGED
@@ -232,7 +232,7 @@ export const packageCommands = {
232
232
  if (!allPkgs) {
233
233
  throw new Error(t('noPackagesFound', { appId }));
234
234
  }
235
- const selectedPackage = allPkgs.find((pkg) => pkg.version === packageVersion);
235
+ const selectedPackage = allPkgs.find((pkg) => pkg.name === packageVersion);
236
236
  if (!selectedPackage) {
237
237
  throw new Error(t('packageNotFound', { packageVersion }));
238
238
  }