Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "gps2json", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "CLI to pull photo meta GPS data into a JSON file", | ||
@@ -23,3 +23,2 @@ "main": "src/gps2json.js", | ||
"dependencies": { | ||
"app-root-path": "^2.1.0", | ||
"exif": "^0.6.0" | ||
@@ -26,0 +25,0 @@ }, |
@@ -6,3 +6,2 @@ #!/usr/bin/env node | ||
const process = require( "process" ); | ||
const app_root = require('app-root-path').path; | ||
const ExifImage = require('exif').ExifImage; | ||
@@ -13,4 +12,4 @@ const args = process.argv.filter((itm)=> { return !/\/bin\/gps2json/g.test(itm) && !/\/bin\/node/g.test(itm) ? itm : undefined}); | ||
name: 'metadata', | ||
folder: app_root, | ||
output: app_root | ||
folder: process.env.PWD, | ||
output: process.env.PWD | ||
} | ||
@@ -27,3 +26,3 @@ | ||
})[0].split('=')[1]; | ||
options[option] = options[option].indexOf('./') > -1 ? path.join(app_root, options[option]) : options[option]; | ||
options[option] = options[option].indexOf('./') > -1 ? path.join(process.env.PWD, options[option]) : options[option]; | ||
} | ||
@@ -30,0 +29,0 @@ } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1
25041372
8
46
4
- Removedapp-root-path@^2.1.0
- Removedapp-root-path@2.2.1(transitive)