mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
verup adds \n at the end of JSON files
This commit is contained in:
parent
d1a18c6ff1
commit
32db7bfb97
@ -40,4 +40,4 @@
|
||||
"Sandro Sonntag <sandro.sonntag@adorsys.de>"
|
||||
],
|
||||
"dependencies": {}
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@
|
||||
*
|
||||
*
|
||||
* @author Dumitru Uzun (DUzun.Me)
|
||||
* @version 1.0.0
|
||||
* @version 1.1.0
|
||||
*/
|
||||
|
||||
var path = require('path');
|
||||
@ -68,6 +68,7 @@ if ( over ) {
|
||||
var buf = JSON.stringify(packo, null, 2);
|
||||
|
||||
if ( buf && over != nver ) {
|
||||
buf += "\n";
|
||||
fs.writeFileSync(packFile, buf);
|
||||
}
|
||||
|
||||
@ -82,6 +83,9 @@ if ( over ) {
|
||||
var packo = JSON.parse(cnt);
|
||||
packo.version = nver;
|
||||
buf = JSON.stringify(packo, null, 2);
|
||||
if ( buf ) {
|
||||
buf += "\n";
|
||||
}
|
||||
} break;
|
||||
|
||||
default: {
|
||||
|
@ -21,4 +21,4 @@
|
||||
"visionmedia/mocha": "*",
|
||||
"mishoo/uglifyjs2": "*"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -72,4 +72,4 @@
|
||||
"src": "src",
|
||||
"test": "test"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@
|
||||
"bugs": "https://github.com/faisalman/ua-parser-js/issues",
|
||||
"docs": "https://github.com/faisalman/ua-parser-js",
|
||||
"download": "https://raw.github.com/faisalman/ua-parser-js/master/dist/ua-parser.min.js"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user