Comparing version 1.0.3 to 1.1.0
40
index.js
@@ -1,10 +0,32 @@ | ||
console.log('===================================================================='); | ||
const { spawn } = require('child_process'); | ||
const [_node, _bin, ...args] = process.argv; | ||
if (args.includes('--postinstall')) { | ||
console.log( | ||
'====================================================================' | ||
); | ||
console.log(''); | ||
console.log( | ||
' The `ember` node module is a placeholder, you may be looking for:' | ||
); | ||
console.log(''); | ||
console.log(' * `ember-cli` (the command line tool) '); | ||
console.log(' * `ember-source` (the framework code) '); | ||
console.log(''); | ||
console.log(' Visit https://emberjs.com/ for more details'); | ||
console.log(''); | ||
console.log( | ||
'====================================================================' | ||
); | ||
return; | ||
} | ||
console.log(''); | ||
console.log(' The `ember` node module is a placeholder, you may be looking for:'); | ||
console.log(''); | ||
console.log(' * `ember-cli` (the command line tool) '); | ||
console.log(' * `ember-source` (the framework code) '); | ||
console.log(''); | ||
console.log(' Visit http://emberjs.com/ for more details'); | ||
console.log(''); | ||
console.log('===================================================================='); | ||
console.log( | ||
` Forwarding request to ember-cli via \`npx ember-cli ${args.join(' ')}\`` | ||
); | ||
spawn('npx', ['ember-cli', ...args], { | ||
stdio: 'inherit', | ||
}).on('exit', code => process.exit(code)); |
{ | ||
"name": "ember", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "A framework for creating ambitious web applications.", | ||
"main": "index.js", | ||
"scripts": { | ||
"postinstall": "node ./index.js" | ||
"postinstall": "node ./index.js --postinstall", | ||
"test": "rm -rf ./my-app/; node ./index.js", | ||
"test:app": "npm run test -- new my-app --skip-git --skip-npm" | ||
}, | ||
@@ -9,0 +11,0 @@ "repository": { |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2211
28
2