Comparing version 0.6.0 to 0.6.1
@@ -0,1 +1,5 @@ | ||
# v0.6.1 | ||
- Add second argument to transform and generator callbacks which is a convenience function calling `defiler.get` with the appropriate `dependent`. | ||
# v0.6.0 | ||
@@ -2,0 +6,0 @@ |
@@ -134,3 +134,3 @@ 'use strict'; | ||
this._processing = true; | ||
this._ready = new Promise(async res => { | ||
this._ready = (async () => { | ||
await Promise.all(this._gazePromises); | ||
@@ -179,4 +179,3 @@ this._gazePromises = null; | ||
this._processing = false; | ||
res(); | ||
}); | ||
})(); | ||
@@ -291,3 +290,3 @@ return this | ||
if (!if_ || (await if_.call(this, file))) { | ||
await transform.call(this, file); | ||
await transform.call(this, file, dependency => this.get(dependency, path$$1)); | ||
} | ||
@@ -304,3 +303,3 @@ } | ||
file = new File(path$$1); | ||
await this._customGenerators.get(path$$1).call(this, file); | ||
await this._customGenerators.get(path$$1).call(this, file, dependency => this.get(dependency, path$$1)); | ||
await this.addFile(file); | ||
@@ -307,0 +306,0 @@ } catch (err) { |
@@ -130,3 +130,3 @@ import EventEmitter from 'events'; | ||
this._processing = true; | ||
this._ready = new Promise(async res => { | ||
this._ready = (async () => { | ||
await Promise.all(this._gazePromises); | ||
@@ -175,4 +175,3 @@ this._gazePromises = null; | ||
this._processing = false; | ||
res(); | ||
}); | ||
})(); | ||
@@ -287,3 +286,3 @@ return this | ||
if (!if_ || (await if_.call(this, file))) { | ||
await transform.call(this, file); | ||
await transform.call(this, file, dependency => this.get(dependency, path$$1)); | ||
} | ||
@@ -300,3 +299,3 @@ } | ||
file = new File(path$$1); | ||
await this._customGenerators.get(path$$1).call(this, file); | ||
await this._customGenerators.get(path$$1).call(this, file, dependency => this.get(dependency, path$$1)); | ||
await this.addFile(file); | ||
@@ -303,0 +302,0 @@ } catch (err) { |
{ | ||
"name": "defiler", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "A small, strange building block", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js", |
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
56347
543