You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

depcheck-detector-execa

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depcheck-detector-execa - npm Package Compare versions

Comparing version

to
4.0.1

19

dist/index.js

@@ -5,11 +5,18 @@ import { compact, filter, flatMap, flatten, groupBy, join, keys, map, mapValues, split, uniq } from '@dword-design/functions';

const getSegments = node => {
var _node$arguments$0$val, _ref, _ref2, _ref3, _node$arguments$0$qua;
if (node.callee?.object?.name === 'execa' && ['command', 'commandSync'].includes(node.callee?.property?.name) || ['execaCommand', 'execaCommandSync'].includes(node.callee?.name)) {
switch (node.arguments[0].type) {
case 'StringLiteral':
return _node$arguments$0$val = node.arguments[0].value, split(' ')(_node$arguments$0$val);
{
var _node$arguments$0$val;
return _node$arguments$0$val = node.arguments[0].value, split(' ')(_node$arguments$0$val);
}
case 'TemplateLiteral':
return _ref = (_ref2 = (_ref3 = (_node$arguments$0$qua = node.arguments[0].quasis, map('value.raw')(_node$arguments$0$qua)), join(' ')(_ref3)), split(' ')(_ref2)), compact(_ref);
{
var _ref, _ref2, _ref3, _node$arguments$0$qua;
return _ref = (_ref2 = (_ref3 = (_node$arguments$0$qua = node.arguments[0].quasis, map('value.raw')(_node$arguments$0$qua)), join(' ')(_ref3)), split(' ')(_ref2)), compact(_ref);
}
default:
return [];
{
return [];
}
}

@@ -25,3 +32,3 @@ }

};
export default ((node, deps) => {
export default (node, deps) => {
if (node.type === 'CallExpression') {

@@ -48,2 +55,2 @@ const segments = getSegments(node);

return [];
});
};

@@ -17,6 +17,15 @@ # License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
{
"name": "depcheck-detector-execa",
"version": "4.0.0",
"version": "4.0.1",
"description": "Detector for depcheck that finds dependencies in execa calls.",

@@ -31,3 +31,3 @@ "repository": "dword-design/depcheck-detector-execa",

"devDependencies": {
"@dword-design/base": "^11.1.1",
"@dword-design/base": "^12.0.12",
"@dword-design/tester": "^2.0.4",

@@ -38,2 +38,3 @@ "@dword-design/tester-plugin-tmp-dir": "^2.0.3",

},
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977",
"engines": {

@@ -40,0 +41,0 @@ "node": ">=18"