Comparing version 2.15.1031 to 2.16.430
20
index.js
'use strict'; | ||
var v = process.version.match(/(\d+\.)(\d+)\./); | ||
if (v[1] === '0.') { | ||
v[2] = parseInt(v[2]); | ||
if (v[2] % 2) { | ||
v[2]++; | ||
if (process.platform === 'win32') { | ||
var v = process.version.match(/(\d+\.)(\d+)\./); | ||
if (v[1] === '0.') { | ||
v[2] = parseInt(v[2]); | ||
if (v[2] % 2) { | ||
v[2]++; | ||
} | ||
} else { | ||
v[2] = 'x'; | ||
} | ||
module.exports = require('./' + v[1] + v[2] + '.x' + '/' + process.arch + '/fswin.node'); | ||
} else { | ||
v[2] = 'x'; | ||
} | ||
module.exports = require('./' + v[1] + v[2] + '.x' + '/' + process.arch + '/fswin.node'); | ||
throw 'this module only works on window'; | ||
} |
{ | ||
"name": "fswin", | ||
"version": "2.15.1031", | ||
"version": "2.16.430", | ||
"description": "nodejs fs extensions for windows", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2443499
17
14
0