|
|
@ -4,7 +4,7 @@ import retry from './retry'; |
|
|
|
import bytes from 'bytes'; |
|
|
|
import Agent from './agent'; |
|
|
|
import EventEmitter from 'events'; |
|
|
|
import { resolve } from 'path'; |
|
|
|
import { basename, resolve } from 'path'; |
|
|
|
import { stat, readFile } from 'fs-promise'; |
|
|
|
|
|
|
|
// limit of size of files to find
|
|
|
@ -58,6 +58,8 @@ export default class Now extends EventEmitter { |
|
|
|
method: 'POST', |
|
|
|
body: { |
|
|
|
forceNew, |
|
|
|
name: pkg.name || basename(path), |
|
|
|
description: pkg.description, |
|
|
|
files: Array.from(this._files).map(([sha, { data, name }]) => { |
|
|
|
return { |
|
|
|
sha, |
|
|
|