File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ dir. Although the ordering will be safe, a specific order is not guaranteed.
24
24
A simple example:
25
25
26
26
``` js
27
- var FSTree = require (' fs-tree-diff' );
28
- var current = FSTree .fromPaths ([
27
+ const FSTree = require (' fs-tree-diff' );
28
+ const current = FSTree .fromPaths ([
29
29
' a.js'
30
30
]);
31
31
32
- var next = FSTree .fromPaths ([
32
+ const next = FSTree .fromPaths ([
33
33
' b.js'
34
34
]);
35
35
@@ -42,14 +42,14 @@ current.calculatePatch(next) === [
42
42
A slightly more complicated example:
43
43
44
44
``` js
45
- var FSTree = require (' fs-tree-diff' );
46
- var current = FSTree .fromPaths ([
45
+ const FSTree = require (' fs-tree-diff' );
46
+ const current = FSTree .fromPaths ([
47
47
' a.js' ,
48
48
' b/' ,
49
49
' b/f.js'
50
50
]);
51
51
52
- var next = FSTree .fromPaths ([
52
+ const next = FSTree .fromPaths ([
53
53
' b.js' ,
54
54
' b/' ,
55
55
' b/c/' ,
You can’t perform that action at this time.
0 commit comments