native-is-elevated
Advanced tools
Comparing version 0.3.0 to 0.4.0
10
index.js
'use strict'; | ||
var lib = null; | ||
var tried = false; | ||
var returned = false; | ||
var retValue = false; | ||
let lib = null; | ||
let tried = false; | ||
let returned = false; | ||
let retValue = false; | ||
module.exports = function () { | ||
module.exports = function isElevated () { | ||
if (returned) { | ||
@@ -10,0 +10,0 @@ return retValue; |
{ | ||
"name": "native-is-elevated", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Native module for checking if the process is being run with elevated privileges", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"engine": { | ||
"node": ">=4.0.0" | ||
"node": ">=8.0.0" | ||
}, | ||
@@ -25,4 +26,4 @@ "scripts": { | ||
"devDependencies": { | ||
"ava": "^2.2.0" | ||
"ava": "^2.4.0" | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
var test = require('ava').serial; | ||
var isElevated = require('..'); | ||
const test = require('ava').serial; | ||
const isElevated = require('..'); | ||
@@ -4,0 +4,0 @@ // Note that 1 of the 2 tests will fail depending on if you're running |
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
4719
8