Socket
Socket
Sign inDemoInstall

@ui5/fs

Package Overview
Dependencies
11
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

11

CHANGELOG.md

@@ -5,6 +5,12 @@ # Changelog

A list of unreleased changes can be found [here](https://github.com/SAP/ui5-fs/compare/v1.1.0...HEAD).
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-fs/compare/v1.1.1...HEAD).
<a name="v1.1.1"></a>
## [v1.1.1] - 2019-06-18
### Bug Fixes
- **fsInterface:** Handle non-POSIX paths correctly ([#147](https://github.com/SAP/ui5-fs/issues/147)) [`1ad0cc8`](https://github.com/SAP/ui5-fs/commit/1ad0cc8fdbcf74452ebfcebb23bd659faa956e54)
<a name="v1.1.0"></a>
## [v1.1.0] - 2019-04-28
## [v1.1.0] - 2019-06-03
### Features

@@ -58,2 +64,3 @@ - **AbstractAdapter:** Add excludes option ([#140](https://github.com/SAP/ui5-fs/issues/140)) [`daef31f`](https://github.com/SAP/ui5-fs/commit/daef31f4fb22405e8fa889615b1f3545099eb186)

[v1.1.1]: https://github.com/SAP/ui5-fs/compare/v1.1.0...v1.1.1
[v1.1.0]: https://github.com/SAP/ui5-fs/compare/v1.0.2...v1.1.0

@@ -60,0 +67,0 @@ [v1.0.2]: https://github.com/SAP/ui5-fs/compare/v1.0.1...v1.0.2

22

lib/fsInterface.js

@@ -15,4 +15,5 @@ /**

module.exports = (reader) => {
const slash = require("slash");
return {
readFile(path, options, callback) {
readFile(fsPath, options, callback) {
if (typeof options === "function") {

@@ -25,3 +26,4 @@ callback = options;

}
reader.byPath(path, {
const posixPath = slash(fsPath);
reader.byPath(posixPath, {
nodir: false

@@ -49,4 +51,5 @@ }).then(function(resource) {

},
stat(path, callback) {
reader.byPath(path, {
stat(fsPath, callback) {
const posixPath = slash(fsPath);
reader.byPath(posixPath, {
nodir: false

@@ -63,8 +66,9 @@ }).then(function(resource) {

},
readdir(path, callback) {
if (!path.match(/\/$/)) {
readdir(fsPath, callback) {
let posixPath = slash(fsPath);
if (!posixPath.match(/\/$/)) {
// Add trailing slash if not present
path += "/";
posixPath += "/";
}
reader.byGlob(path + "*", {
reader.byGlob(posixPath + "*", {
nodir: false

@@ -78,3 +82,3 @@ }).then((resources) => {

},
mkdir(path, callback) {
mkdir(fsPath, callback) {
setTimeout(callback, 0);

@@ -81,0 +85,0 @@ }

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

@@ -22,2 +22,3 @@ "author": "SAP SE (https://www.sap.com)",

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

@@ -28,4 +29,6 @@ "unit": "rimraf test/tmp && ava",

"unit-nyan": "rimraf test/tmp && ava --tap | tnyan",
"unit-xunit": "rimraf test/tmp && ava --tap | tap-xunit --dontUseCommentsAsTestNames=true > test-results.xml",
"unit-inspect": "cross-env UI5_LOG_LVL=verbose node --inspect-brk node_modules/ava/profile.js",
"coverage": "nyc npm run unit",
"coverage-xunit": "nyc --reporter=text --reporter=text-summary --reporter=cobertura npm run unit-xunit",
"jsdoc": "npm run jsdoc-generate && opn jsdocs/index.html",

@@ -49,3 +52,3 @@ "jsdoc-generate": "node_modules/.bin/jsdoc -c ./jsdoc.json ./lib/ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",

],
"source": [
"sources": [
"lib/**/*.js",

@@ -108,9 +111,10 @@ "test/lib/**/*.js"

"pretty-hrtime": "^1.0.3",
"random-int": "^2.0.0"
"random-int": "^2.0.0",
"slash": "^3.0.0"
},
"devDependencies": {
"ava": "^0.25.0",
"ava": "^2.1.0",
"chai": "^4.1.2",
"chai-fs": "^2.0.0",
"coveralls": "^3.0.3",
"coveralls": "^3.0.4",
"cross-env": "^5.1.1",

@@ -126,7 +130,5 @@ "docdash": "^1.1.1",

"sinon": "^7.3.2",
"tap-nyan": "^1.1.0"
},
"resolutions": {
"dir-glob": "2.0.0"
"tap-nyan": "^1.1.0",
"tap-xunit": "^2.4.1"
}
}

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

[![Travis CI Build Status](https://travis-ci.org/SAP/ui5-fs.svg?branch=master)](https://travis-ci.org/SAP/ui5-fs)
[![Build Status](https://dev.azure.com/sap/opensource/_apis/build/status/SAP.ui5-fs?branchName=master)](https://dev.azure.com/sap/opensource/_build/latest?definitionId=36&branchName=master)
[![npm Package Version](https://badge.fury.io/js/%40ui5%2Ffs.svg)](https://www.npmjs.com/package/@ui5/fs)

@@ -10,0 +10,0 @@ [![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-fs/badge.svg)](https://coveralls.io/github/SAP/ui5-fs)

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