Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-native-community/cli-tools

Package Overview
Dependencies
Maintainers
30
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-community/cli-tools - npm Package Compare versions

Comparing version 12.0.0-alpha.13 to 12.0.0-alpha.14

build/cacheManager.d.ts

2

build/index.d.ts

@@ -17,3 +17,5 @@ export { default as logger } from './logger';

export * from './port';
export { default as cacheManager } from './cacheManager';
export { default as runSudo } from './runSudo';
export * from './errors';
//# sourceMappingURL=index.d.ts.map

@@ -23,3 +23,5 @@ "use strict";

startServerInNewWindow: true,
handlePortUnavailable: true
handlePortUnavailable: true,
cacheManager: true,
runSudo: true
};

@@ -38,2 +40,8 @@ Object.defineProperty(exports, "Loader", {

});
Object.defineProperty(exports, "cacheManager", {
enumerable: true,
get: function () {
return _cacheManager.default;
}
});
Object.defineProperty(exports, "fetch", {

@@ -112,2 +120,8 @@ enumerable: true,

});
Object.defineProperty(exports, "runSudo", {
enumerable: true,
get: function () {
return _runSudo.default;
}
});
Object.defineProperty(exports, "startServerInNewWindow", {

@@ -160,2 +174,4 @@ enumerable: true,

});
var _cacheManager = _interopRequireDefault(require("./cacheManager"));
var _runSudo = _interopRequireDefault(require("./runSudo"));
var _errors = require("./errors");

@@ -162,0 +178,0 @@ Object.keys(_errors).forEach(function (key) {

12

build/releaseChecker/getLatestRelease.js

@@ -14,3 +14,3 @@ "use strict";

}
var _releaseCacheManager = _interopRequireDefault(require("./releaseCacheManager"));
var _cacheManager = _interopRequireDefault(require("../cacheManager"));
var _fetch = require("../fetch");

@@ -41,3 +41,3 @@ var _logger = _interopRequireDefault(require("../logger"));

}
const cachedLatest = _releaseCacheManager.default.get(name, 'latestVersion');
const cachedLatest = _cacheManager.default.get(name, 'latestVersion');
if (cachedLatest) {

@@ -47,3 +47,3 @@ _logger.default.debug(`Cached release version: ${cachedLatest}`);

_logger.default.debug('Checking for newer releases on GitHub');
const eTag = _releaseCacheManager.default.get(name, 'eTag');
const eTag = _cacheManager.default.get(name, 'eTag');
const {

@@ -111,4 +111,4 @@ stable,

_logger.default.debug(`Saving ${eTagHeader} to cache`);
_releaseCacheManager.default.set(name, 'eTag', eTagHeader);
_releaseCacheManager.default.set(name, 'latestVersion', result.stable);
_cacheManager.default.set(name, 'eTag', eTagHeader);
_cacheManager.default.set(name, 'latestVersion', result.stable);
}

@@ -123,3 +123,3 @@ return result;

if (status === 304) {
result.stable = _releaseCacheManager.default.get(name, 'latestVersion') ?? result.stable;
result.stable = _cacheManager.default.get(name, 'latestVersion') ?? result.stable;
}

@@ -126,0 +126,0 @@

@@ -16,3 +16,3 @@ "use strict";

var _logger = _interopRequireDefault(require("../logger"));
var _releaseCacheManager = _interopRequireDefault(require("./releaseCacheManager"));
var _cacheManager = _interopRequireDefault(require("../cacheManager"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -29,5 +29,5 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

_logger.default.info(`For more info, check out "${_chalk().default.dim.underline(link.docs('upgrading', 'none'))}".`);
_releaseCacheManager.default.set(name, 'lastChecked', new Date().toISOString());
_cacheManager.default.set(name, 'lastChecked', new Date().toISOString());
}
//# sourceMappingURL=printNewRelease.ts.map
{
"name": "@react-native-community/cli-tools",
"version": "12.0.0-alpha.13",
"version": "12.0.0-alpha.14",
"license": "MIT",

@@ -18,6 +18,7 @@ "main": "build/index.js",

"semver": "^7.5.2",
"shell-quote": "^1.7.3"
"shell-quote": "^1.7.3",
"sudo-prompt": "^9.0.0"
},
"devDependencies": {
"@react-native-community/cli-types": "12.0.0-alpha.13",
"@react-native-community/cli-types": "12.0.0-alpha.14",
"@types/lodash": "^4.14.149",

@@ -40,3 +41,3 @@ "@types/mime": "^2.0.1",

},
"gitHead": "fc87a75adfa86296da54915525eb0c809f25453e"
"gitHead": "e327e5972979f80dff6c2a4719d41df277446056"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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