js-properties-to-json
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "js-properties-to-json", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Convert a Java properties file to JSON (with JavaScript).", | ||
"types": "./dist/types/index.d.ts", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/mjs/index.js", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"exports": { | ||
"require": "./dist/cjs/index.js", | ||
"import": "./dist/mjs/index.js" | ||
".": { | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.mjs" | ||
} | ||
}, | ||
"type":"module", | ||
"files": [ | ||
@@ -18,4 +19,4 @@ "dist/" | ||
"serve": "serve ./", | ||
"build": "tsc", | ||
"test": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json", | ||
"build": "rollup --config && tsc --emitDeclarationOnly", | ||
"test": "node ./test/test.js && node ./test/test.mjs", | ||
"watch": "onchange \"src/**/*.*\" -v -- npm run buildTest", | ||
@@ -42,5 +43,7 @@ "buildTest": "npm run build && npm run test", | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^8.3.3", | ||
"@types/node": "^17.0.23", | ||
"gh-pages": "^3.2.3", | ||
"onchange": "^7.1.0", | ||
"rollup": "^2.77.0", | ||
"serve": "^13.0.2", | ||
@@ -47,0 +50,0 @@ "tslib": "^2.3.1", |
@@ -25,3 +25,3 @@ Convert Java `.properties` files to JSON (using JavaScript). | ||
const filePath = path.join(__dirname, 'sample.properties'); | ||
const propertiesToJSON = require('properties-to-json').default;; | ||
const propertiesToJSON = require('properties-to-json');; | ||
@@ -28,0 +28,0 @@ fs.readFile(filePath, { encoding: 'utf-8' }, (err, data) => { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15460
8
264
No