New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

realpath-native

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

realpath-native - npm Package Compare versions

Comparing version

to
2.0.0

6

index.js
'use strict';
const fs = require('fs');
const promisify = require('util.promisify');
const util = require('util');
const promisiedFsRealpath = promisify(fs.realpath);
const promisiedFsRealpath = util.promisify(fs.realpath);
function realpath(filepath) {
if (typeof fs.realpath.native === 'function') {
return promisify(fs.realpath.native)(filepath);
return util.promisify(fs.realpath.native)(filepath);
}

@@ -12,0 +12,0 @@ const fsBinding = process.binding('fs');

{
"name": "realpath-native",
"version": "1.1.0",
"version": "2.0.0",
"main": "index.js",

@@ -18,3 +18,3 @@ "types": "index.d.ts",

"engines": {
"node": ">=4"
"node": ">=8"
},

@@ -25,15 +25,12 @@ "scripts": {

},
"dependencies": {
"util.promisify": "^1.0.0"
},
"devDependencies": {
"@commitlint/cli": "^6.0.2",
"@commitlint/config-conventional": "^6.0.2",
"ava": "^0.25.0",
"eslint": "^4.13.1",
"eslint-config-simenb-base": "^14.0.0",
"eslint-config-simenb-node": "^0.4.11",
"husky": "^0.14.3",
"lint-staged": "^6.0.0",
"prettier": "^1.16.4"
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"ava": "^2.4.0",
"eslint": "^6.8.0",
"eslint-config-simenb-base": "^15.0.1",
"eslint-config-simenb-node": "^2.0.0",
"husky": "^3.1.0",
"lint-staged": "^9.5.0",
"prettier": "^1.19.1"
},

@@ -40,0 +37,0 @@ "commitlint": {

@@ -17,3 +17,3 @@ # realpath-native

On node 4 the function uses the old `fs.realpath` function.
On node 8 the function uses the old `fs.realpath` function.

@@ -20,0 +20,0 @@ ## Install