Socket
Socket
Sign inDemoInstall

@ui5/fs

Package Overview
Dependencies
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui5/fs - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

11

CHANGELOG.md

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

A list of unreleased changes can be found [here](https://github.com/SAP/ui5-fs/compare/v2.0.2...HEAD).
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-fs/compare/v2.0.3...HEAD).
<a name="v2.0.3"></a>
## [v2.0.3] - 2020-08-12
### Bug Fixes
- **ResourceTagCollection:** Do not validate class of resource [`c52c9f7`](https://github.com/SAP/ui5-fs/commit/c52c9f71e4f868cfa8ae5daf5eede9272654b187)
<a name="v2.0.2"></a>
## [v2.0.2] - 2020-07-20
## [v2.0.2] - 2020-07-30
### Bug Fixes

@@ -108,2 +114,3 @@ - TypeScript type definition support ([#252](https://github.com/SAP/ui5-fs/issues/252)) [`f379094`](https://github.com/SAP/ui5-fs/commit/f37909483b2740219da36c7e0931f7824d51e1a3)

[v2.0.3]: https://github.com/SAP/ui5-fs/compare/v2.0.2...v2.0.3
[v2.0.2]: https://github.com/SAP/ui5-fs/compare/v2.0.1...v2.0.2

@@ -110,0 +117,0 @@ [v2.0.1]: https://github.com/SAP/ui5-fs/compare/v2.0.0...v2.0.1

@@ -23,2 +23,3 @@ const log = require("@ui5/logger").getLogger("resources:adapters:AbstractAdapter");

* @param {string[]} [parameters.excludes] List of glob patterns to exclude
* @param {object} [parameters.project] Experimental, internal parameter. Do not use
*/

@@ -25,0 +26,0 @@ constructor({virBasePath, excludes = [], project}) {

@@ -25,2 +25,3 @@ const log = require("@ui5/logger").getLogger("resources:adapters:FileSystem");

* @param {string[]} [parameters.excludes] List of glob patterns to exclude
* @param {object} [parameters.project] Experimental, internal parameter. Do not use
*/

@@ -27,0 +28,0 @@ constructor({virBasePath, project, fsBasePath, excludes}) {

@@ -21,2 +21,3 @@ const log = require("@ui5/logger").getLogger("resources:adapters:Memory");

* @param {string[]} [parameters.excludes] List of glob patterns to exclude
* @param {object} [parameters.project] Experimental, internal parameter. Do not use
*/

@@ -23,0 +24,0 @@ constructor({virBasePath, project, excludes}) {

@@ -41,2 +41,3 @@ const stream = require("stream");

* In some cases this is the most memory-efficient way to supply resource content
* @param {object} [parameters.project] Experimental, internal parameter. Do not use
*/

@@ -43,0 +44,0 @@ constructor({path, statInfo, buffer, string, createStream, stream, project}) {

10

lib/resourceFactory.js

@@ -55,2 +55,3 @@ const log = require("@ui5/logger").getLogger("resources:resourceFactory");

* Callback to retrieve a prefix for a given virtual base path of a project if required
* @param {object} [parameters.virtualReaders] Experimental, internal parameter. Do not use
* @returns {object} Object containing <code>source</code> and <code>dependencies</code> resource readers

@@ -61,3 +62,3 @@ */

} = {}) {
// TODO 2.0: virtualReaders is private API. The virtual reader of a project should be stored on the
// TODO 3.0: virtualReaders is private API. The virtual reader of a project should be stored on the
// project itself. This requires projects to become objects independent from the dependency tree.

@@ -232,2 +233,3 @@ // Also see: https://github.com/SAP/ui5-project/issues/122

* @param {string[]} [parameters.excludes] List of glob patterns to exclude
* @param {object} [parameters.project] Experimental, internal parameter. Do not use
* @returns {module:@ui5/fs.adapters.FileSystem|module:@ui5/fs.adapters.Memory} File System- or Virtual Adapter

@@ -259,3 +261,3 @@ */

* A workspace is a DuplexCollection which reads from the project sources. It is used during the build process
* to write modified files into a seperate writer, this is usually a Memory adapter. If a file already exists it is
* to write modified files into a separate writer, this is usually a Memory adapter. If a file already exists it is
* fetched from the memory to work on it in further build steps.

@@ -265,3 +267,5 @@ *

* @param {object} parameters
* @param {module:@ui5/fs.AbstractReader} parameters.reader The reader
* @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. If not supplied, a Memory adapter will be created.
* @param {string} [parameters.name="vir & fs source"] Name of the collection

@@ -268,0 +272,0 @@ * @param {string} [parameters.virBasePath="/"] Virtual base path

const tagNamespaceRegExp = new RegExp("^[a-z][a-z0-9]*$"); // part before the colon
const tagNameRegExp = new RegExp("^[A-Z][A-Za-z0-9]+$"); // part after the colon
const Resource = require("./Resource");
class ResourceTagCollection {

@@ -50,4 +48,5 @@ constructor({allowedTags}) {

_validateResource(resource) {
if (!(resource instanceof Resource)) {
throw new Error(`Invalid Resource: Must be instance of @ui5/fs.Resource`);
const path = resource.getPath();
if (!path) {
throw new Error(`Invalid Resource: Resource path must not be empty`);
}

@@ -54,0 +53,0 @@ }

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

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

"test/**",
".eslintrc.js"
".eslintrc.js",
"jsdoc-plugin.js"
],

@@ -113,3 +114,3 @@ "check-coverage": true,

"devDependencies": {
"ava": "^3.10.1",
"ava": "^3.11.1",
"chai": "^4.1.2",

@@ -121,5 +122,5 @@ "chai-fs": "^2.0.0",

"docdash": "^1.2.0",
"eslint": "^6.8.0",
"eslint": "^7.6.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-jsdoc": "^24.0.6",
"eslint-plugin-jsdoc": "^30.2.1",
"jsdoc": "^3.6.5",

@@ -126,0 +127,0 @@ "nyc": "^15.1.0",

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