properties-file
Advanced tools
Comparing version 2.1.31 to 2.1.32
@@ -15,5 +15,3 @@ "use strict"; | ||
var getProperties = function (filePath, encoding) { | ||
if (!(0, node_fs_1.existsSync)(filePath)) { | ||
throw new Error("file not found at ".concat(filePath)); | ||
} | ||
// No need to check if the file exists first since this will already throw an error. | ||
return (0, content_1.getProperties)((0, node_fs_1.readFileSync)(filePath, encoding !== null && encoding !== void 0 ? encoding : 'utf8')); | ||
@@ -20,0 +18,0 @@ }; |
{ | ||
"name": "properties-file", | ||
"version": "2.1.31", | ||
"version": "2.1.32", | ||
"description": ".properties file parser, JSON converter and Webpack loader.", | ||
@@ -56,5 +56,5 @@ "keywords": [ | ||
"@release-it/conventional-changelog": "^5.1.1", | ||
"@types/jest": "^29.4.0", | ||
"@typescript-eslint/eslint-plugin": "^5.54.1", | ||
"@typescript-eslint/parser": "^5.54.1", | ||
"@types/jest": "^29.5.0", | ||
"@typescript-eslint/eslint-plugin": "^5.55.0", | ||
"@typescript-eslint/parser": "^5.55.0", | ||
"dotenv-cli": "^7.1.0", | ||
@@ -76,6 +76,6 @@ "eslint": "^8.36.0", | ||
"prettier-plugin-sh": "^0.12.8", | ||
"release-it": "^15.8.0", | ||
"release-it": "^15.9.0", | ||
"ts-jest": "^29.0.5", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.5" | ||
"typescript": "^5.0.2" | ||
}, | ||
@@ -82,0 +82,0 @@ "engines": { |
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
40644
668