@phx-hook/focus-list
Advanced tools
+16
| #!/usr/bin/env node | ||
| const PACKAGE = "focus-list"; | ||
| const LOCAL_PATH = "assets/js/hooks"; | ||
| const fs = require("fs"); | ||
| const path = require("path"); | ||
| const sourceFile = path.join(__dirname, "src/index.js"); | ||
| const vendorDir = path.resolve(process.cwd(), LOCAL_PATH); | ||
| const vendorFile = path.join(vendorDir, `${PACKAGE}.js`); | ||
| fs.mkdirSync(vendorDir, { recursive: true }); | ||
| fs.copyFileSync(sourceFile, vendorFile); | ||
| console.log(`Added @phx-hook/${PACKAGE} to ./${LOCAL_PATH}/${PACKAGE}.js`); |
+5
-2
| { | ||
| "name": "@phx-hook/focus-list", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "description": "Focus items in a list with keyboard shortcuts", | ||
@@ -20,2 +20,5 @@ "keywords": [ | ||
| ], | ||
| "bin": { | ||
| "vendor": "./vendor.js" | ||
| }, | ||
| "scripts": { | ||
@@ -31,3 +34,3 @@ "format": "prettier src --write" | ||
| }, | ||
| "gitHead": "1af7e8526f5b932d3b6598ae97bf995a3f02f8db" | ||
| "gitHead": "a140ca78f55f780aadfeb74a9c2a8c62dffc8f8d" | ||
| } |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
7000
8.19%4
33.33%88
14.29%1
Infinity%