Comparing version 2.0.1 to 2.0.2
import { fileTypeFromBuffer } from 'file-type'; | ||
import fs from 'node:fs'; | ||
import path from 'node:path'; | ||
import path, { dirname } from 'node:path'; | ||
import { fileURLToPath } from 'url'; | ||
export function getPackageMeta() { | ||
const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8')); | ||
const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
const packagePath = path.join(__dirname, '../', 'package.json'); | ||
const packageJson = JSON.parse(fs.readFileSync(packagePath, 'utf8')); | ||
return { | ||
@@ -7,0 +10,0 @@ name: packageJson.name, |
{ | ||
"name": "imgup", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
946005
177