fs-tree-diff
Advanced tools
Comparing version 1.0.0 to 1.0.1
# master | ||
# 1.0.1 | ||
* fix errors in type definitions thanks @dfreeman | ||
# 1.0.0 | ||
* no changes | ||
# v0.5.9 | ||
* publish typescript types thanks @amiller-gh | ||
# v0.5.8 | ||
* add typescript types thanks @amiller-gh | ||
# v0.5.7 | ||
@@ -4,0 +20,0 @@ |
// Type definitions for "fs-tree-diff" | ||
// Definitions by: Adam Miller <https://github.com/amiller-gh> | ||
import fs from "fs"; | ||
import { Stats } from "fs"; | ||
@@ -27,3 +27,3 @@ declare namespace FSTree { | ||
isFile(): boolean; | ||
static fromStat(relativePath: string, stat: fs.Stats): Entry; | ||
static fromStat(relativePath: string, stat: Stats): Entry; | ||
} | ||
@@ -40,14 +40,14 @@ | ||
declare class FSTree { | ||
constructor(options?: PartialFSTreeOptions): FSTree; | ||
calculatePatch(tree: FSTree, isEqual?: (a: FSTree, b: FSTree) => boolean): Patch[]; | ||
calculateAndApplyPatch(tree: FSTree, inputDir: string, outputDir: string, delegate?: FSTreeDelegates): void; | ||
addEntries(entries: Entry[], options?: PartialFSTreeOptions): void; | ||
addPaths(paths: string[], options?: PartialFSTreeOptions): void; | ||
forEach(cb: (entry: FSEntry) => void, context?: any): void; | ||
constructor(options?: FSTree.PartialFSTreeOptions); | ||
calculatePatch(tree: FSTree, isEqual?: (a: FSTree.Entry, b: FSTree.Entry) => boolean): FSTree.Patch[]; | ||
calculateAndApplyPatch(tree: FSTree, inputDir: string, outputDir: string, delegate?: FSTree.FSTreeDelegates): void; | ||
addEntries(entries: FSTree.Entry[], options?: FSTree.PartialFSTreeOptions): void; | ||
addPaths(paths: string[], options?: FSTree.PartialFSTreeOptions): void; | ||
forEach(cb: (entry: FSTree.Entry) => void, context?: any): void; | ||
static fromPaths(paths: string[]): FSTree; | ||
static fromEntries(entries: Entry[]): FSTree; | ||
static applyPatch(inputDir: string, outputDir: string, patch: Patch[]): void; | ||
static isEqual(a: FSTree, b: FSTree): boolean; | ||
static fromEntries(entries: FSTree.Entry[]): FSTree; | ||
static applyPatch(inputDir: string, outputDir: string, patch: FSTree.Patch[]): void; | ||
static defaultIsEqual(a: FSTree.Entry, b: FSTree.Entry): boolean; | ||
} | ||
export = FSTree; | ||
export default FSTree; |
{ | ||
"name": "fs-tree-diff", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Backs out file tree changes", | ||
@@ -11,3 +11,5 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"test": "mocha tests/", | ||
"test": "npm run test:js && npm run test:types", | ||
"test:js": "mocha tests/", | ||
"test:types": "tsc --noEmit tests.ts/index.ts", | ||
"test:debug": "mocha debug tests/" | ||
@@ -27,5 +29,7 @@ }, | ||
"devDependencies": { | ||
"@types/node": "^10.12.11", | ||
"chai": "^3.3.0", | ||
"fs-extra": "^1.0.0", | ||
"mocha": "^2.3.3", | ||
"typescript": "^3.2.1", | ||
"walk-sync": "^0.3.1" | ||
@@ -32,0 +36,0 @@ }, |
@@ -225,3 +225,3 @@ # fs-tree-diff [![Build Status](https://travis-ci.org/stefanpenner/fs-tree-diff.svg?branch=master)](https://travis-ci.org/stefanpenner/fs-tree-diff) [![Build status](https://ci.appveyor.com/api/projects/status/qmhx48hrquq08fam/branch/master?svg=true)](https://ci.appveyor.com/project/embercli/fs-tree-diff/branch/master) | ||
```js | ||
var defaultIsEqual = FSTtreeDiff.isEqual; | ||
var defaultIsEqual = FSTree.defaultIsEqual; | ||
@@ -228,0 +228,0 @@ function isEqualCheckingMeta(a, b) { |
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
23422
378
6