Socket
Socket
Sign inDemoInstall

@ui5/fs

Package Overview
Dependencies
9
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.5 to 2.0.6

9

CHANGELOG.md

@@ -5,4 +5,10 @@ # Changelog

A list of unreleased changes can be found [here](https://github.com/SAP/ui5-fs/compare/v2.0.5...HEAD).
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-fs/compare/v2.0.6...HEAD).
<a name="v2.0.6"></a>
## [v2.0.6] - 2020-12-17
### Bug Fixes
- **fsInterface on Windows:** Correctly handle project paths containing non-ASCII characters [`6bb44be`](https://github.com/SAP/ui5-fs/commit/6bb44be7c13f6b5c66855d3343694f42f9bdfe0e)
<a name="v2.0.5"></a>

@@ -126,2 +132,3 @@ ## [v2.0.5] - 2020-11-06

[v2.0.6]: https://github.com/SAP/ui5-fs/compare/v2.0.5...v2.0.6
[v2.0.5]: https://github.com/SAP/ui5-fs/compare/v2.0.4...v2.0.5

@@ -128,0 +135,0 @@ [v2.0.4]: https://github.com/SAP/ui5-fs/compare/v2.0.3...v2.0.4

3

lib/DuplexCollection.js

@@ -17,3 +17,4 @@ const AbstractReaderWriter = require("./AbstractReaderWriter");

* @param {module:@ui5/fs.AbstractReader} parameters.reader Single reader or collection of readers
* @param {module:@ui5/fs.AbstractReaderWriter} parameters.writer A ReaderWriter instance which is only used for writing files
* @param {module:@ui5/fs.AbstractReaderWriter} parameters.writer
* A ReaderWriter instance which is only used for writing files
* @param {string} [parameters.name=""] The collection name

@@ -20,0 +21,0 @@ */

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

function toPosix(inputPath) {
return inputPath.replace(/\\/g, "/");
}
/**

@@ -15,3 +19,2 @@ * Wraps readers to access them through a [Node.js fs]{@link https://nodejs.org/api/fs.html} styled interface.

module.exports = (reader) => {
const slash = require("slash");
return {

@@ -26,3 +29,3 @@ readFile(fsPath, options, callback) {

}
const posixPath = slash(fsPath);
const posixPath = toPosix(fsPath);
reader.byPath(posixPath, {

@@ -52,3 +55,3 @@ nodir: false

stat(fsPath, callback) {
const posixPath = slash(fsPath);
const posixPath = toPosix(fsPath);
reader.byPath(posixPath, {

@@ -67,3 +70,3 @@ nodir: false

readdir(fsPath, callback) {
let posixPath = slash(fsPath);
let posixPath = toPosix(fsPath);
if (!posixPath.match(/\/$/)) {

@@ -70,0 +73,0 @@ // Add trailing slash if not present

{
"name": "@ui5/fs",
"version": "2.0.5",
"version": "2.0.6",
"description": "UI5 Tooling - File System Abstraction",

@@ -25,4 +25,4 @@ "author": {

"scripts": {
"test": "npm run lint && npm run jsdoc-generate && npm run coverage",
"test-azure": "npm run lint && npm run jsdoc-generate && npm run coverage-xunit",
"test": "npm run lint && npm run jsdoc-generate && npm run coverage && npm run depcheck",
"test-azure": "npm run coverage-xunit",
"lint": "eslint ./",

@@ -44,3 +44,3 @@ "unit": "rimraf test/tmp && ava",

"release-note": "git-chglog -c .chglog/release-config.yml v$npm_package_version",
"report-coveralls": "nyc report --reporter=text-lcov | COVERALLS_PARALLEL=true coveralls"
"depcheck": "depcheck --ignores docdash"
},

@@ -116,16 +116,15 @@ "files": [

"pretty-hrtime": "^1.0.3",
"random-int": "^2.0.1",
"slash": "^3.0.0"
"random-int": "^2.0.1"
},
"devDependencies": {
"ava": "^3.13.0",
"ava": "^3.14.0",
"chai": "^4.1.2",
"chai-fs": "^2.0.0",
"chokidar-cli": "^2.1.0",
"coveralls": "^3.1.0",
"cross-env": "^7.0.2",
"cross-env": "^7.0.3",
"depcheck": "^1.3.1",
"docdash": "^1.2.0",
"eslint": "^7.12.1",
"eslint": "^7.15.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-jsdoc": "^30.7.5",
"eslint-plugin-jsdoc": "^30.7.8",
"jsdoc": "^3.6.6",

@@ -136,3 +135,3 @@ "mock-require": "^3.0.3",

"rimraf": "^3.0.2",
"sinon": "^9.2.1",
"sinon": "^9.2.2",
"tap-nyan": "^1.1.0",

@@ -139,0 +138,0 @@ "tap-xunit": "^2.4.1"

@@ -11,4 +11,2 @@ ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-tooling/master/docs/images/UI5_logo_wide.png)

[![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-fs/badge.svg)](https://coveralls.io/github/SAP/ui5-fs)
[![Dependency Status](https://david-dm.org/SAP/ui5-fs/master.svg)](https://david-dm.org/SAP/ui5-fs/master)
[![devDependency Status](https://david-dm.org/SAP/ui5-fs/master/dev-status.svg)](https://david-dm.org/SAP/ui5-fs/master#info=devDependencies)

@@ -59,3 +57,5 @@ ## Documentation

Please report issues in the main [UI5 Tooling](https://github.com/SAP/ui5-tooling) repository.
## Release History
See [CHANGELOG.md](CHANGELOG.md).
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc