Socket
Socket
Sign inDemoInstall

@npmcli/fs

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/fs - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

lib/cp/index.js

3

lib/common/file-url-to-path/polyfill.js

@@ -32,3 +32,4 @@ const { URL, domainToUnicode } = require('url')

constructor (name, actual) {
super(`The "${name}" argument must be one of type string or an instance of URL. Received type ${typeof actual} ${actual}`)
super(`The "${name}" argument must be one of type string or an instance ` +
`of URL. Received type ${typeof actual} ${actual}`)
this.code = 'ERR_INVALID_ARG_TYPE'

@@ -35,0 +36,0 @@ }

module.exports = {
...require('./fs.js'),
copyFile: require('./copy-file.js'),
cp: require('./cp/index.js'),
mkdir: require('./mkdir/index.js'),

@@ -5,0 +6,0 @@ mkdtemp: require('./mkdtemp.js'),

@@ -59,3 +59,4 @@ // this file is a modified version of the code in node core >=14.14.0

this.path = path
this.message = `Path is a directory: ${this.syscall} returned ${this.info.code} (is a directory) ${path}`
this.message = `Path is a directory: ${this.syscall} returned ` +
`${this.info.code} (is a directory) ${path}`
}

@@ -62,0 +63,0 @@

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

<!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
ISC License

@@ -2,0 +4,0 @@

{
"name": "@npmcli/fs",
"version": "1.0.0",
"version": "1.1.0",
"description": "filesystem utilities for the npm cli",
"main": "lib/index.js",
"files": [
"lib",
"bin"
"bin",
"lib"
],

@@ -17,6 +17,7 @@ "scripts": {

"npmclilint": "npmcli-lint",
"lint": "npm run npmclilint -- \"lib/**/*.*js\" \"test/**/*.*js\"",
"lint": "eslint '**/*.js'",
"lintfix": "npm run lint -- --fix",
"posttest": "npm run lint --",
"postsnap": "npm run lintfix --"
"posttest": "npm run lint",
"postsnap": "npm run lintfix --",
"postlint": "npm-template-check"
},

@@ -30,3 +31,3 @@ "keywords": [

"devDependencies": {
"@npmcli/lint": "^1.0.1",
"@npmcli/template-oss": "^2.3.1",
"tap": "^15.0.9"

@@ -37,3 +38,7 @@ },

"semver": "^7.3.5"
},
"templateVersion": "2.3.1",
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16"
}
}

@@ -15,2 +15,3 @@ # @npmcli/fs

- `fs.withTempDir` added
- `fs.cp` polyfill for node < 16.7.0

@@ -17,0 +18,0 @@ ## The `owner` option

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