Socket
Socket
Sign inDemoInstall

fs-native-extensions

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-native-extensions - npm Package Compare versions

Comparing version 1.2.7 to 1.3.0

macros.h

2

binding.js

@@ -1,1 +0,1 @@

module.exports = require('node-gyp-build')(__dirname)
module.exports = require('load-addon')(__dirname)

@@ -6,46 +6,42 @@ cmake_minimum_required(VERSION 3.25)

include(bare)
include(napi)
bare_target(target)
add_bare_module(fs_native_extensions)
set(sources binding.c src/shared.c)
target_sources(
${fs_native_extensions}
INTERFACE
include/fs-ext.h
PRIVATE
binding.c
src/shared.c
)
if(NOT target MATCHES "win32")
target_sources(
${fs_native_extensions}
PRIVATE
src/posix.c
)
list(APPEND sources src/posix.c)
endif()
if(target MATCHES "darwin|ios")
target_sources(
${fs_native_extensions}
PRIVATE
src/mac.c
)
list(APPEND sources src/mac.c)
endif()
if(target MATCHES "linux|android")
target_sources(
${fs_native_extensions}
PRIVATE
src/linux.c
)
list(APPEND sources src/linux.c)
endif()
if(target MATCHES "win32")
target_sources(
${fs_native_extensions}
PRIVATE
src/win.c
)
list(APPEND sources src/win.c)
endif()
add_bare_module(fs_native_extensions_bare)
target_sources(
${fs_native_extensions_bare}
INTERFACE
include/fs-ext.h
PRIVATE
${sources}
)
add_napi_module(fs_native_extensions_node)
target_sources(
${fs_native_extensions_node}
INTERFACE
include/fs-ext.h
PRIVATE
${sources}
)

@@ -0,3 +1,3 @@

const { isWindows } = require('which-runtime')
const binding = require('./binding')
const IS_WIN = (typeof Bare !== 'undefined' ? global.Bare.platform : process.platform) === 'win32'

@@ -164,3 +164,3 @@ function onwork (err) {

// Short circuit on everything but Windows
if (!IS_WIN) return Promise.resolve()
if (!isWindows) return Promise.resolve()

@@ -167,0 +167,0 @@ const req = Buffer.alloc(binding.sizeof_fs_ext_napi_sparse_t)

{
"name": "fs-native-extensions",
"version": "1.2.7",
"version": "1.3.0",
"description": "Native file system extensions for advanced file operations",

@@ -8,15 +8,34 @@ "main": "index.js",

"index.js",
"macros.h",
"binding.c",
"binding.js",
"CMakeLists.txt",
"include",
"src",
"prebuilds",
"binding.c",
"binding.gyp",
"CMakeLists.txt"
"prebuilds"
],
"imports": {
"child_process": {
"bare": "bare-subprocess",
"default": "child_process"
},
"fs": {
"bare": "bare-fs",
"default": "fs"
},
"fs/*": {
"bare": "bare-fs/*",
"default": "fs/*"
},
"path": {
"bare": "bare-path",
"default": "path"
}
},
"addon": true,
"scripts": {
"test": "standard && brittle test/*.mjs",
"prebuild": "prebuildify",
"install": "node-gyp-build"
"test": "npm run lint && npm run test:bare && npm run test:node",
"test:bare": "bare test/all.mjs",
"test:node": "node test/all.mjs",
"lint": "standard"
},

@@ -34,12 +53,14 @@ "repository": {

"dependencies": {
"napi-macros": "^2.0.0",
"node-gyp-build": "^4.2.3"
"load-addon": "^1.0.0",
"which-runtime": "^1.2.0"
},
"devDependencies": {
"bare-fs": "^3.0.2",
"bare-path": "^3.0.0",
"bare-subprocess": "^4.0.1",
"brittle": "^3.1.1",
"minimist": "^1.2.6",
"prebuildify": "^6.0.0",
"standard": "^17.0.0",
"tempy": "^3.0.0"
"test-tmp": "^1.2.1"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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