diff --git a/node_modules/async-neocities-tmp/index.js b/node_modules/async-neocities-tmp/index.js index d596d52..f517551 100644 --- a/node_modules/async-neocities-tmp/index.js +++ b/node_modules/async-neocities-tmp/index.js @@ -3,7 +3,6 @@ const fetch = require('node-fetch') const { URL } = require('url') const qs = require('qs') const os = require('os') -const path = require('path') const { createReadStream } = require('fs') const FormData = require('form-data') const { handleResponse } = require('fetch-errors') @@ -100,9 +99,11 @@ class NeocitiesAPIClient { */ upload (files) { const formEntries = files.map(({ name, path }) => { + const streamCtor = (next) => next(createReadStream(path)) + streamCtor.path = path return { name, - value: createReadStream(path) + value: streamCtor } }) diff --git a/node_modules/async-neocities-tmp/package.json b/node_modules/async-neocities-tmp/package.json index 81f9a55..827312f 100644 --- a/node_modules/async-neocities-tmp/package.json +++ b/node_modules/async-neocities-tmp/package.json @@ -1,26 +1,26 @@ { - "_from": "async-neocities-tmp@0.0.8", - "_id": "async-neocities-tmp@0.0.8", + "_from": "async-neocities-tmp@0.0.9", + "_id": "async-neocities-tmp@0.0.9", "_inBundle": false, - "_integrity": "sha512-7WRDMN4/h+OkOiTzX7NC9pmx8OJL2e/bwwAH6EUHAQLhled7a9NrIXw1hV+sZMVWH3NhmpPxWr6nfGEqmtE2GA==", + "_integrity": "sha512-UsiA33DKOX5ZwoxiAveXpua+RDPI8TXoxZOcHpLnb7tTGvXDvcwcEUIF5kPfhD7wT1tnISyUT+rVh0cER0gxIA==", "_location": "/async-neocities-tmp", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "async-neocities-tmp@0.0.8", + "raw": "async-neocities-tmp@0.0.9", "name": "async-neocities-tmp", "escapedName": "async-neocities-tmp", - "rawSpec": "0.0.8", + "rawSpec": "0.0.9", "saveSpec": null, - "fetchSpec": "0.0.8" + "fetchSpec": "0.0.9" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/async-neocities-tmp/-/async-neocities-tmp-0.0.8.tgz", - "_shasum": "9b7a2a7bd8df8fc1c868f5a69013b4125b247b5d", - "_spec": "async-neocities-tmp@0.0.8", + "_resolved": "https://registry.npmjs.org/async-neocities-tmp/-/async-neocities-tmp-0.0.9.tgz", + "_shasum": "9039cc16e7185cd9861ba4a1a881d0e99bc91995", + "_spec": "async-neocities-tmp@0.0.9", "_where": "/Users/bret/repos/deploy-to-neocities", "author": { "name": "Bret Comnes", @@ -68,5 +68,5 @@ "dist" ] }, - "version": "0.0.8" + "version": "0.0.9" } diff --git a/package.json b/package.json index b1e5e89..d3b9d88 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "dependencies": { "@actions/core": "1.2.2", "@actions/github": "2.1.0", - "async-neocities-tmp": "0.0.8" + "async-neocities-tmp": "0.0.9" }, "standard": { "ignore": [