in src/index.js [40:58]
make(callback, onError) {
const $this = this;
onError = typeof onError === 'function' ? onError :
(e) => {
throw new Error(e);
}
this.copy().then(() => {
$this.handle().then(() => {
const msg = $this.target.includes('test_lambda') ?
'Test Successful' :
`Edge Lambda Build Successful with Asset Path "${$this.target}"`;
console.log(msg);
if (typeof callback === 'function') {
callback.call($this, $this.target, `index.${this.handler}`);
}
}).catch(onError)
}).catch(onError);
return this;
}