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

create-react-admin

Package Overview
Dependencies
Maintainers
0
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-react-admin - npm Package Compare versions

Comparing version 5.6.0 to 5.6.1

19

lib/cli.js

@@ -40,2 +40,3 @@ #!/usr/bin/env node

console.warn('Providing an auth-provider when using ra-supabase is not supported. It will be ignored.');
return 'none';
}

@@ -50,10 +51,10 @@ if (flags.authProvider)

};
const getDefaultInstaller = (processExec) => {
if (processExec.includes('yarn'))
return 'yarn';
if (processExec.includes('bun'))
return 'bun';
return 'npm';
const getDefaultInstaller = (userAgent) => {
if (!userAgent)
return 'npm';
const pkgSpec = userAgent.split(' ')[0];
const pkgSpecArr = pkgSpec.split('/');
return pkgSpecArr[0];
};
const getInstall = (flags, processExec) => {
const getInstall = (flags, userAgent) => {
if (flags.install)

@@ -63,3 +64,3 @@ return flags.install;

return undefined;
return getDefaultInstaller(processExec);
return getDefaultInstaller(userAgent);
};

@@ -130,3 +131,3 @@ const getResources = (flags) => {

const authProvider = getAuthProvider(cli.flags);
const install = getInstall(cli.flags, process.execPath);
const install = getInstall(cli.flags, process.env.npm_config_user_agent);
const resources = getResources(cli.flags);

@@ -133,0 +134,0 @@ render(React.createElement(App, { name: name, dataProvider: dataProvider, authProvider: authProvider, resources: resources, install: install }));

{
"name": "create-react-admin",
"description": "A CLI to quickly start a new react-admin project",
"version": "5.6.0",
"version": "5.6.1",
"license": "MIT",

@@ -37,3 +37,3 @@ "bin": "lib/cli.js",

},
"gitHead": "91258c82c8b4a827f199ad98fc73316c53fbe51a"
"gitHead": "734f7ae3347f2334a1c5d75585b94d1489ce2884"
}

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