mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-03-29 01:31:35 +00:00
fixes
This commit is contained in:
5
node_modules/async-neocities-tmp/index.js
generated
vendored
5
node_modules/async-neocities-tmp/index.js
generated
vendored
@@ -3,7 +3,6 @@ const fetch = require('node-fetch')
|
|||||||
const { URL } = require('url')
|
const { URL } = require('url')
|
||||||
const qs = require('qs')
|
const qs = require('qs')
|
||||||
const os = require('os')
|
const os = require('os')
|
||||||
const path = require('path')
|
|
||||||
const { createReadStream } = require('fs')
|
const { createReadStream } = require('fs')
|
||||||
const FormData = require('form-data')
|
const FormData = require('form-data')
|
||||||
const { handleResponse } = require('fetch-errors')
|
const { handleResponse } = require('fetch-errors')
|
||||||
@@ -100,9 +99,11 @@ class NeocitiesAPIClient {
|
|||||||
*/
|
*/
|
||||||
upload (files) {
|
upload (files) {
|
||||||
const formEntries = files.map(({ name, path }) => {
|
const formEntries = files.map(({ name, path }) => {
|
||||||
|
const streamCtor = (next) => next(createReadStream(path))
|
||||||
|
streamCtor.path = path
|
||||||
return {
|
return {
|
||||||
name,
|
name,
|
||||||
value: createReadStream(path)
|
value: streamCtor
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
20
node_modules/async-neocities-tmp/package.json
generated
vendored
20
node_modules/async-neocities-tmp/package.json
generated
vendored
@@ -1,26 +1,26 @@
|
|||||||
{
|
{
|
||||||
"_from": "async-neocities-tmp@0.0.8",
|
"_from": "async-neocities-tmp@0.0.9",
|
||||||
"_id": "async-neocities-tmp@0.0.8",
|
"_id": "async-neocities-tmp@0.0.9",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-7WRDMN4/h+OkOiTzX7NC9pmx8OJL2e/bwwAH6EUHAQLhled7a9NrIXw1hV+sZMVWH3NhmpPxWr6nfGEqmtE2GA==",
|
"_integrity": "sha512-UsiA33DKOX5ZwoxiAveXpua+RDPI8TXoxZOcHpLnb7tTGvXDvcwcEUIF5kPfhD7wT1tnISyUT+rVh0cER0gxIA==",
|
||||||
"_location": "/async-neocities-tmp",
|
"_location": "/async-neocities-tmp",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "async-neocities-tmp@0.0.8",
|
"raw": "async-neocities-tmp@0.0.9",
|
||||||
"name": "async-neocities-tmp",
|
"name": "async-neocities-tmp",
|
||||||
"escapedName": "async-neocities-tmp",
|
"escapedName": "async-neocities-tmp",
|
||||||
"rawSpec": "0.0.8",
|
"rawSpec": "0.0.9",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "0.0.8"
|
"fetchSpec": "0.0.9"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/async-neocities-tmp/-/async-neocities-tmp-0.0.8.tgz",
|
"_resolved": "https://registry.npmjs.org/async-neocities-tmp/-/async-neocities-tmp-0.0.9.tgz",
|
||||||
"_shasum": "9b7a2a7bd8df8fc1c868f5a69013b4125b247b5d",
|
"_shasum": "9039cc16e7185cd9861ba4a1a881d0e99bc91995",
|
||||||
"_spec": "async-neocities-tmp@0.0.8",
|
"_spec": "async-neocities-tmp@0.0.9",
|
||||||
"_where": "/Users/bret/repos/deploy-to-neocities",
|
"_where": "/Users/bret/repos/deploy-to-neocities",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Bret Comnes",
|
"name": "Bret Comnes",
|
||||||
@@ -68,5 +68,5 @@
|
|||||||
"dist"
|
"dist"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"version": "0.0.8"
|
"version": "0.0.9"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.2.2",
|
"@actions/core": "1.2.2",
|
||||||
"@actions/github": "2.1.0",
|
"@actions/github": "2.1.0",
|
||||||
"async-neocities-tmp": "0.0.8"
|
"async-neocities-tmp": "0.0.9"
|
||||||
},
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
|
|||||||
Reference in New Issue
Block a user