useragent-ng
Advanced tools
Comparing version
## Version 2.0 | ||
- **v2.4.4** | ||
- Resolve issues with permissions & moving files between filesystems ([#7](https://github.com/schmod/useragent-ng/pull/7) - [@johnou](https://github.com/johnou)) | ||
- Correctly list `tmp` as a non-dev dependency ([#5] - [@xwiz](https://github.com/xwiz)) | ||
- **v2.4.3** | ||
- Slimmed down the size/complexity of the built regexps.js file. The regexps are now stored in a normal array. | ||
- Slimmed down the size/complexity of the built regexps.js file. The regexps are now stored in a normal array. | ||
- **v2.4.0** | ||
@@ -8,0 +13,0 @@ |
@@ -61,3 +61,3 @@ 'use strict'; | ||
fs.readFile(pathToYaml, 'utf8', function loading(err, remote) { | ||
// request(exports.remote, function downloading(err, res, remote) { | ||
// request(exports.remote, function downloading(err, res, remote) { | ||
if (err) return callback(err); | ||
@@ -78,3 +78,3 @@ | ||
// | ||
tmp.file(function (err, tempFilePath) { | ||
tmp.file({ mode: 0o644 }, function (err, tempFilePath) { | ||
if (err) return; | ||
@@ -84,3 +84,8 @@ fs.writeFile(tempFilePath, source, function idk(err) { | ||
fs.rename(tempFilePath, exports.output, function(err) { | ||
if (err) { | ||
fs.copyFile(tempFilePath, exports.output, function(err) { | ||
if (err) return; | ||
fs.unlink(tempFilePath, function() {}); | ||
}); | ||
} | ||
}); | ||
@@ -87,0 +92,0 @@ }); |
{ | ||
"name": "useragent-ng", | ||
"version": "2.4.3", | ||
"version": "2.4.4", | ||
"description": "Fast & effecient user agent string parser. Uses uap-core (Browserscope) data for parsing. Drop-in replacement for useragent", | ||
@@ -44,4 +44,3 @@ "author": "Arnout Kazemier & Andrew Schmadel", | ||
"pre-commit": "1.2.x", | ||
"semver": "5.5.x", | ||
"tmp": "^0.2.1" | ||
"semver": "5.5.x" | ||
}, | ||
@@ -60,2 +59,3 @@ "pre-commit": [ | ||
"lru-cache": "^7.14.0", | ||
"tmp": "^0.2.1", | ||
"uap-core": "^0.16.0", | ||
@@ -62,0 +62,0 @@ "yamlparser": "0.0.2" |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
151343
0.35%4
-20%2273
0.26%7
-12.5%4
33.33%+ Added
+ Added