@@ -1,1 +0,1 @@ | ||
| {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/cpu-arch/src/lib/execSync.ts"],"sourcesContent":["import cp from 'child_process';\nimport { bindSync } from 'node-version-call-local';\nimport path from 'path';\nimport url from 'url';\n\nconst __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));\nconst workerPath = path.join(__dirname, '..', '..', 'cjs', 'lib', 'execSync.js');\n\nfunction run(cmd: string, options: { encoding?: BufferEncoding } = {}): string {\n return cp.execSync(cmd, options) as unknown as string;\n}\n\n// execSync was added in Node 0.12\n// spawnOptions: false - no node/npm spawn (shell commands only)\nconst worker = typeof cp.execSync === 'function' ? run : bindSync('>=0.12', workerPath, { spawnOptions: false });\n\nexport default function execSync(cmd: string, options: { encoding?: BufferEncoding } = {}): string {\n return worker(cmd, options) as string;\n}\n"],"names":["execSync","__dirname","path","dirname","__filename","url","fileURLToPath","workerPath","join","run","cmd","options","cp","worker","bindSync","spawnOptions"],"mappings":";;;;+BAgBA;;;eAAwBA;;;oEAhBT;oCACU;2DACR;0DACD;;;;;;AAEhB,IAAMC,YAAYC,aAAI,CAACC,OAAO,CAAC,OAAOC,eAAe,cAAcA,aAAaC,YAAG,CAACC,aAAa,CAAC;AAClG,IAAMC,aAAaL,aAAI,CAACM,IAAI,CAACP,WAAW,MAAM,MAAM,OAAO,OAAO;AAElE,SAASQ,IAAIC,GAAW;QAAEC,UAAAA,iEAAyC,CAAC;IAClE,OAAOC,sBAAE,CAACZ,QAAQ,CAACU,KAAKC;AAC1B;AAEA,kCAAkC;AAClC,gEAAgE;AAChE,IAAME,SAAS,OAAOD,sBAAE,CAACZ,QAAQ,KAAK,aAAaS,MAAMK,IAAAA,8BAAQ,EAAC,UAAUP,YAAY;IAAEQ,cAAc;AAAM;AAE/F,SAASf,SAASU,GAAW;QAAEC,UAAAA,iEAAyC,CAAC;IACtF,OAAOE,OAAOH,KAAKC;AACrB"} | ||
| {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/cpu-arch/src/lib/execSync.ts"],"sourcesContent":["import cp from 'child_process';\nimport { bindSync } from 'node-version-call-local';\nimport path from 'path';\nimport url from 'url';\n\nconst __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));\nconst workerPath = path.join(__dirname, '..', '..', 'cjs', 'lib', 'execSync.js');\n\nfunction run(cmd: string, options: { encoding?: BufferEncoding } = {}): string {\n return cp.execSync(cmd, options) as unknown as string;\n}\n\ntype execSyncFunction = (cmd: string, options?: { encoding?: BufferEncoding }) => string;\n\n// execSync was added in Node 0.12\n// spawnOptions: false - no node/npm spawn (shell commands only)\nconst worker = (typeof cp.execSync === 'function' ? run : bindSync('>=0.12', workerPath, { spawnOptions: false })) as execSyncFunction;\n\nexport default function execSync(cmd: string, options: { encoding?: BufferEncoding } = {}): string {\n return worker(cmd, options) as string;\n}\n"],"names":["execSync","__dirname","path","dirname","__filename","url","fileURLToPath","workerPath","join","run","cmd","options","cp","worker","bindSync","spawnOptions"],"mappings":";;;;+BAkBA;;;eAAwBA;;;oEAlBT;oCACU;2DACR;0DACD;;;;;;AAEhB,IAAMC,YAAYC,aAAI,CAACC,OAAO,CAAC,OAAOC,eAAe,cAAcA,aAAaC,YAAG,CAACC,aAAa,CAAC;AAClG,IAAMC,aAAaL,aAAI,CAACM,IAAI,CAACP,WAAW,MAAM,MAAM,OAAO,OAAO;AAElE,SAASQ,IAAIC,GAAW;QAAEC,UAAAA,iEAAyC,CAAC;IAClE,OAAOC,sBAAE,CAACZ,QAAQ,CAACU,KAAKC;AAC1B;AAIA,kCAAkC;AAClC,gEAAgE;AAChE,IAAME,SAAU,OAAOD,sBAAE,CAACZ,QAAQ,KAAK,aAAaS,MAAMK,IAAAA,8BAAQ,EAAC,UAAUP,YAAY;IAAEQ,cAAc;AAAM;AAEhG,SAASf,SAASU,GAAW;QAAEC,UAAAA,iEAAyC,CAAC;IACtF,OAAOE,OAAOH,KAAKC;AACrB"} |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/cpu-arch/src/lib/execSync.ts"],"sourcesContent":["import cp from 'child_process';\nimport { bindSync } from 'node-version-call-local';\nimport path from 'path';\nimport url from 'url';\n\nconst __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));\nconst workerPath = path.join(__dirname, '..', '..', 'cjs', 'lib', 'execSync.js');\n\nfunction run(cmd: string, options: { encoding?: BufferEncoding } = {}): string {\n return cp.execSync(cmd, options) as unknown as string;\n}\n\n// execSync was added in Node 0.12\n// spawnOptions: false - no node/npm spawn (shell commands only)\nconst worker = typeof cp.execSync === 'function' ? run : bindSync('>=0.12', workerPath, { spawnOptions: false });\n\nexport default function execSync(cmd: string, options: { encoding?: BufferEncoding } = {}): string {\n return worker(cmd, options) as string;\n}\n"],"names":["cp","bindSync","path","url","__dirname","dirname","__filename","fileURLToPath","workerPath","join","run","cmd","options","execSync","worker","spawnOptions"],"mappings":"AAAA,OAAOA,QAAQ,gBAAgB;AAC/B,SAASC,QAAQ,QAAQ,0BAA0B;AACnD,OAAOC,UAAU,OAAO;AACxB,OAAOC,SAAS,MAAM;AAEtB,MAAMC,YAAYF,KAAKG,OAAO,CAAC,OAAOC,eAAe,cAAcA,aAAaH,IAAII,aAAa,CAAC,YAAYJ,GAAG;AACjH,MAAMK,aAAaN,KAAKO,IAAI,CAACL,WAAW,MAAM,MAAM,OAAO,OAAO;AAElE,SAASM,IAAIC,GAAW,EAAEC,UAAyC,CAAC,CAAC;IACnE,OAAOZ,GAAGa,QAAQ,CAACF,KAAKC;AAC1B;AAEA,kCAAkC;AAClC,gEAAgE;AAChE,MAAME,SAAS,OAAOd,GAAGa,QAAQ,KAAK,aAAaH,MAAMT,SAAS,UAAUO,YAAY;IAAEO,cAAc;AAAM;AAE9G,eAAe,SAASF,SAASF,GAAW,EAAEC,UAAyC,CAAC,CAAC;IACvF,OAAOE,OAAOH,KAAKC;AACrB"} | ||
| {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/cpu-arch/src/lib/execSync.ts"],"sourcesContent":["import cp from 'child_process';\nimport { bindSync } from 'node-version-call-local';\nimport path from 'path';\nimport url from 'url';\n\nconst __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));\nconst workerPath = path.join(__dirname, '..', '..', 'cjs', 'lib', 'execSync.js');\n\nfunction run(cmd: string, options: { encoding?: BufferEncoding } = {}): string {\n return cp.execSync(cmd, options) as unknown as string;\n}\n\ntype execSyncFunction = (cmd: string, options?: { encoding?: BufferEncoding }) => string;\n\n// execSync was added in Node 0.12\n// spawnOptions: false - no node/npm spawn (shell commands only)\nconst worker = (typeof cp.execSync === 'function' ? run : bindSync('>=0.12', workerPath, { spawnOptions: false })) as execSyncFunction;\n\nexport default function execSync(cmd: string, options: { encoding?: BufferEncoding } = {}): string {\n return worker(cmd, options) as string;\n}\n"],"names":["cp","bindSync","path","url","__dirname","dirname","__filename","fileURLToPath","workerPath","join","run","cmd","options","execSync","worker","spawnOptions"],"mappings":"AAAA,OAAOA,QAAQ,gBAAgB;AAC/B,SAASC,QAAQ,QAAQ,0BAA0B;AACnD,OAAOC,UAAU,OAAO;AACxB,OAAOC,SAAS,MAAM;AAEtB,MAAMC,YAAYF,KAAKG,OAAO,CAAC,OAAOC,eAAe,cAAcA,aAAaH,IAAII,aAAa,CAAC,YAAYJ,GAAG;AACjH,MAAMK,aAAaN,KAAKO,IAAI,CAACL,WAAW,MAAM,MAAM,OAAO,OAAO;AAElE,SAASM,IAAIC,GAAW,EAAEC,UAAyC,CAAC,CAAC;IACnE,OAAOZ,GAAGa,QAAQ,CAACF,KAAKC;AAC1B;AAIA,kCAAkC;AAClC,gEAAgE;AAChE,MAAME,SAAU,OAAOd,GAAGa,QAAQ,KAAK,aAAaH,MAAMT,SAAS,UAAUO,YAAY;IAAEO,cAAc;AAAM;AAE/G,eAAe,SAASF,SAASF,GAAW,EAAEC,UAAyC,CAAC,CAAC;IACvF,OAAOE,OAAOH,KAAKC;AACrB"} |
+1
-1
| { | ||
| "name": "cpu-arch", | ||
| "version": "1.1.0", | ||
| "version": "1.1.1", | ||
| "description": "Detect CPU architecture (handles WoW64, Rosetta 2, ARM64)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
30722
0.75%