@npmcli/fs
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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 |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
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
41916
22
1156
61
1
1