Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fs-tree-diff

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-tree-diff - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

4

lib/index.js
'use strict';
var Entry = require('./entry');
var debug = require('debug')('fs-tree-diff:');
var logger = require('heimdalljs-logger')('fs-tree-diff:');
var util = require('./util');

@@ -142,3 +142,3 @@ var sortAndExpand = util.sortAndExpand;

if (!equal) {
debug('invalidation reason: \nbefore %o\n entryB %o', entryA, entryB);
logger.info('invalidation reason: \nbefore %o\n entryB %o', entryA, entryB);
}

@@ -145,0 +145,0 @@

{
"name": "fs-tree-diff",
"version": "0.5.0",
"version": "0.5.1",
"description": "Backs out file tree changes",

@@ -17,2 +17,3 @@ "main": "lib/index.js",

"debug": "^2.2.0",
"heimdalljs-logger": "^0.1.6",
"fast-ordered-set": "^1.0.2"

@@ -19,0 +20,0 @@ },

@@ -1,2 +0,2 @@

# fs-tree-diff [![Build Status](https://travis-ci.org/stefanpenner/fs-tree-diff.svg)](https://travis-ci.org/stefanpenner/fs-tree-diff)
# fs-tree-diff [![Build Status](https://travis-ci.org/stefanpenner/fs-tree-diff.svg?branch=master)](https://travis-ci.org/stefanpenner/fs-tree-diff)

@@ -74,6 +74,6 @@ FSTree provides the means to calculate a patch (set of operations) between one file system tree and another.

For this, FSTree supports more complex input structure. To demonstrate, We will
use the [walk-sync](https://github.com/joliss/node-walk-sync) module. Which
provides higher fidelity input, allowing FSTree to also detect changes. More on
what an [entry from walkSync.entries
is](https://github.com/joliss/node-walk-sync#entries)
use the [walk-sync](https://github.com/joliss/node-walk-sync) module.
**(note: `walk-sync >= 0.2.7` is required`)** Which provides higher fidelity
input, allowing FSTree to also detect changes. More on what an
[entry from walkSync.entries is](https://github.com/joliss/node-walk-sync#entries)

@@ -112,4 +112,4 @@ ```js

- `FSTree.fromPaths` initialize a tree from an array of string paths.
- `FSTree.fromEntries` initialize a tree from an object containing an `entries`
property. Each entry must have the following properties (but may have more):
- `FSTree.fromEntries` initialize a tree from an array of `Entry` objects.
Each entry must have the following properties (but may have more):

@@ -176,2 +176,12 @@ - `relativePath`

`FSTree.fromEntries` composes well with the output of `walkSync.entries`:
```js
var walkSync = require('walk-sync');
// path/to/root/foo.js
// path/to/root/bar.js
var current = FSTree.fromEntries(walkSync.entries('path/to/root'));
```
## Change Calculation

@@ -178,0 +188,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