Socket
Socket
Sign inDemoInstall

native-is-elevated

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

native-is-elevated - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

index.d.ts

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc