fs-tree-diff
Advanced tools
Comparing version 0.5.0 to 0.5.1
'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 @@ |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
39751
214
0
3
+ Addedheimdalljs-logger@^0.1.6
+ Addedheimdalljs@0.2.6(transitive)
+ Addedheimdalljs-logger@0.1.10(transitive)
+ Addedrsvp@3.2.1(transitive)