Comparing version 2.0.2 to 2.1.0
@@ -131,2 +131,4 @@ The API consists of two classes, `File` and `Defiler`. | ||
Returns a `Promise` resolving when the file has been completely processed. (However, there is generally not a need to wait for this `Promise` to resolve. Processing the added files will proceed in parallel, and dependence relationships between files will be maintained.) | ||
The object does not need to be a `File` instance, and in fact there is no benefit to doing so. A new `File` instance is always created with properties `Object.assign`ed from `file`. | ||
@@ -133,0 +135,0 @@ |
@@ -0,1 +1,5 @@ | ||
# v2.1.0 | ||
- Return a `Promise` from `defiler.add(file)` indicating when processing is complete | ||
# v2.0.2 | ||
@@ -2,0 +6,0 @@ |
@@ -328,3 +328,3 @@ 'use strict'; | ||
this._orig_data.set(file.path, file); | ||
this._process_file(file, 'add'); | ||
return this._process_file(file, 'add'); | ||
} | ||
@@ -331,0 +331,0 @@ resolve(path) { |
@@ -324,3 +324,3 @@ import { AsyncLocalStorage } from 'async_hooks'; | ||
this._orig_data.set(file.path, file); | ||
this._process_file(file, 'add'); | ||
return this._process_file(file, 'add'); | ||
} | ||
@@ -327,0 +327,0 @@ resolve(path) { |
{ | ||
"name": "defiler", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "A small, strange building block", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
143939