Compare commits

..

9 Commits

Author SHA1 Message Date
Bret Comnes
5761b44f4d More example comments 2025-02-13 09:50:17 -08:00
Bret Comnes
e062c69fd8 Add a note about settings locations 2025-02-13 09:48:26 -08:00
Bret Comnes
f0b7afe72c Merge pull request #213 from bcomnes/dependabot/npm_and_yarn/esbuild-0.25.0
chore(deps-dev): bump esbuild from 0.24.2 to 0.25.0
2025-02-10 09:58:09 -08:00
dependabot[bot]
6440dab52a chore(deps-dev): bump esbuild from 0.24.2 to 0.25.0
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.24.2 to 0.25.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.24.2...v0.25.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-10 03:49:40 +00:00
Bret Comnes
70b264bcb3 Merge pull request #211 from bcomnes/dependabot/npm_and_yarn/neostandard-0.12.0
chore(deps-dev): bump neostandard from 0.11.9 to 0.12.0
2024-12-10 10:34:17 -08:00
dependabot[bot]
75401fb61d chore(deps-dev): bump neostandard from 0.11.9 to 0.12.0
Bumps [neostandard](https://github.com/neostandard/neostandard) from 0.11.9 to 0.12.0.
- [Release notes](https://github.com/neostandard/neostandard/releases)
- [Changelog](https://github.com/neostandard/neostandard/blob/main/CHANGELOG.md)
- [Commits](https://github.com/neostandard/neostandard/compare/v0.11.9...v0.12.0)

---
updated-dependencies:
- dependency-name: neostandard
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-10 03:11:10 +00:00
bcomnes
60adbf96af 3.0.2 2024-12-09 18:00:43 +00:00
Bret Comnes
68d0158045 Merge pull request #210 from bcomnes/dependabot/npm_and_yarn/async-neocities-4.1.0
chore(deps): bump async-neocities from 4.0.4 to 4.1.0
2024-12-09 09:59:38 -08:00
dependabot[bot]
105af8d6d9 chore(deps): bump async-neocities from 4.0.4 to 4.1.0
Bumps [async-neocities](https://github.com/bcomnes/async-neocities) from 4.0.4 to 4.1.0.
- [Release notes](https://github.com/bcomnes/async-neocities/releases)
- [Changelog](https://github.com/bcomnes/async-neocities/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/async-neocities/compare/v4.0.4...v4.1.0)

---
updated-dependencies:
- dependency-name: async-neocities
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 03:53:22 +00:00
6 changed files with 124 additions and 141 deletions

View File

@@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [v3.0.1](https://github.com/bcomnes/deploy-to-neocities/compare/v3.0.0...v3.0.1) ## [v3.0.2](https://github.com/bcomnes/deploy-to-neocities/compare/v3.0.1...v3.0.2)
### Merged
- chore(deps): bump async-neocities from 4.0.4 to 4.1.0 [`#210`](https://github.com/bcomnes/deploy-to-neocities/pull/210)
## [v3.0.1](https://github.com/bcomnes/deploy-to-neocities/compare/v3.0.0...v3.0.1) - 2024-11-28
### Merged ### Merged

View File

@@ -32,9 +32,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# The checkout step copies your repo into the action runner. Important!
- uses: actions/checkout@v4 - uses: actions/checkout@v4
# Set up any tools and build steps here # Set up any tools and build steps here
# This example uses a Node.js toolchain to build a site # This example uses a Node.js toolchain to build a site
# If you don't need Node.js to build your site, you can omit this.
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
@@ -45,6 +47,7 @@ jobs:
npm i npm i
npm run build npm run build
# When the dist_dir is ready, deploy it to neocities # When the dist_dir is ready, deploy it to neocities
# Here we deploy the folder named `public`
- name: Deploy to neocities - name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v3 uses: bcomnes/deploy-to-neocities@v3
with: with:
@@ -66,7 +69,7 @@ You'll need the API token for your site. Go to:
https://neocities.org/settings/{{your-sitename}}#api_key https://neocities.org/settings/{{your-sitename}}#api_key
``` ```
Get your site's API token. In your GitHub repository, set a [secret][sec] called `NEOCITIES_API_TOKEN`. Set the `api_token` input on your `deploy-to-neocities` action to `${{ secrets.NEOCITIES_API_TOKEN }}` as in the example above. Retreive your site's API token from Neocities. In your GitHub repository, set a [secret][sec] called `NEOCITIES_API_TOKEN`. Set the `api_token` input on your `deploy-to-neocities` action to `${{ secrets.NEOCITIES_API_TOKEN }}` as in the example above. The setting (as of writing) lives in Repository > Settings > Security > Secrets and Variables > Actions > Repository secrets.
During your workflow, generate the files you want to deploy to [Neocities][nc] into a directory. Set this as the `dist_dir` directory in your workflow (the default is `public`). You can use any tools to generate your site that can be installed or brought into the Github actions environment. During your workflow, generate the files you want to deploy to [Neocities][nc] into a directory. Set this as the `dist_dir` directory in your workflow (the default is `public`). You can use any tools to generate your site that can be installed or brought into the Github actions environment.

189
dist/index.cjs vendored
View File

@@ -27178,7 +27178,6 @@ var require_client_h2 = __commonJS({
} = require_symbols6(); } = require_symbols6();
var kOpenStreams = Symbol("open streams"); var kOpenStreams = Symbol("open streams");
var extractBody; var extractBody;
var h2ExperimentalWarned = false;
var http2; var http2;
try { try {
http2 = require("node:http2"); http2 = require("node:http2");
@@ -27211,12 +27210,6 @@ var require_client_h2 = __commonJS({
} }
async function connectH2(client, socket) { async function connectH2(client, socket) {
client[kSocket] = socket; client[kSocket] = socket;
if (!h2ExperimentalWarned) {
h2ExperimentalWarned = true;
process.emitWarning("H2 support is experimental, expect them to change at any time.", {
code: "UNDICI-H2"
});
}
const session = http2.connect(client[kUrl], { const session = http2.connect(client[kUrl], {
createConnection: () => socket, createConnection: () => socket,
peerMaxConcurrentStreams: client[kMaxConcurrentStreams], peerMaxConcurrentStreams: client[kMaxConcurrentStreams],
@@ -31411,53 +31404,52 @@ var require_decorator_handler = __commonJS({
"node_modules/async-neocities/node_modules/undici/lib/handler/decorator-handler.js"(exports2, module2) { "node_modules/async-neocities/node_modules/undici/lib/handler/decorator-handler.js"(exports2, module2) {
"use strict"; "use strict";
var assert2 = require("node:assert"); var assert2 = require("node:assert");
var WrapHandler = require_wrap_handler();
module2.exports = class DecoratorHandler { module2.exports = class DecoratorHandler {
#handler; #handler;
#onCompleteCalled = false; #onCompleteCalled = false;
#onErrorCalled = false; #onErrorCalled = false;
#onResponseStartCalled = false;
constructor(handler) { constructor(handler) {
if (typeof handler !== "object" || handler === null) { if (typeof handler !== "object" || handler === null) {
throw new TypeError("handler must be an object"); throw new TypeError("handler must be an object");
} }
this.#handler = handler; this.#handler = WrapHandler.wrap(handler);
} }
onConnect(...args) { onRequestStart(...args) {
return this.#handler.onConnect?.(...args); this.#handler.onRequestStart?.(...args);
} }
onError(...args) { onRequestUpgrade(...args) {
this.#onErrorCalled = true;
return this.#handler.onError?.(...args);
}
onUpgrade(...args) {
assert2(!this.#onCompleteCalled); assert2(!this.#onCompleteCalled);
assert2(!this.#onErrorCalled); assert2(!this.#onErrorCalled);
return this.#handler.onUpgrade?.(...args); return this.#handler.onRequestUpgrade?.(...args);
} }
onResponseStarted(...args) { onResponseStart(...args) {
assert2(!this.#onCompleteCalled); assert2(!this.#onCompleteCalled);
assert2(!this.#onErrorCalled); assert2(!this.#onErrorCalled);
return this.#handler.onResponseStarted?.(...args); assert2(!this.#onResponseStartCalled);
this.#onResponseStartCalled = true;
return this.#handler.onResponseStart?.(...args);
} }
onHeaders(...args) { onResponseData(...args) {
assert2(!this.#onCompleteCalled); assert2(!this.#onCompleteCalled);
assert2(!this.#onErrorCalled); assert2(!this.#onErrorCalled);
return this.#handler.onHeaders?.(...args); return this.#handler.onResponseData?.(...args);
} }
onData(...args) { onResponseEnd(...args) {
assert2(!this.#onCompleteCalled);
assert2(!this.#onErrorCalled);
return this.#handler.onData?.(...args);
}
onComplete(...args) {
assert2(!this.#onCompleteCalled); assert2(!this.#onCompleteCalled);
assert2(!this.#onErrorCalled); assert2(!this.#onErrorCalled);
this.#onCompleteCalled = true; this.#onCompleteCalled = true;
return this.#handler.onComplete?.(...args); return this.#handler.onResponseEnd?.(...args);
} }
onBodySent(...args) { onResponseError(...args) {
assert2(!this.#onCompleteCalled); this.#onErrorCalled = true;
assert2(!this.#onErrorCalled); return this.#handler.onResponseError?.(...args);
return this.#handler.onBodySent?.(...args); }
/**
* @deprecated
*/
onBodySent() {
} }
}; };
} }
@@ -31643,49 +31635,46 @@ var require_redirect = __commonJS({
var require_response_error = __commonJS({ var require_response_error = __commonJS({
"node_modules/async-neocities/node_modules/undici/lib/interceptor/response-error.js"(exports2, module2) { "node_modules/async-neocities/node_modules/undici/lib/interceptor/response-error.js"(exports2, module2) {
"use strict"; "use strict";
var { parseHeaders } = require_util8();
var DecoratorHandler = require_decorator_handler(); var DecoratorHandler = require_decorator_handler();
var { ResponseError } = require_errors2(); var { ResponseError } = require_errors2();
var ResponseErrorHandler = class extends DecoratorHandler { var ResponseErrorHandler = class extends DecoratorHandler {
#handler;
#statusCode; #statusCode;
#contentType; #contentType;
#decoder; #decoder;
#headers; #headers;
#body; #body;
constructor(opts, { handler }) { constructor(_opts, { handler }) {
super(handler); super(handler);
this.#handler = handler;
} }
onConnect(abort) { #checkContentType(contentType) {
return this.#contentType.indexOf(contentType) === 0;
}
onRequestStart(controller, context) {
this.#statusCode = 0; this.#statusCode = 0;
this.#contentType = null; this.#contentType = null;
this.#decoder = null; this.#decoder = null;
this.#headers = null; this.#headers = null;
this.#body = ""; this.#body = "";
return this.#handler.onConnect(abort); return super.onRequestStart(controller, context);
} }
#checkContentType(contentType) { onResponseStart(controller, statusCode, headers, statusMessage) {
return this.#contentType.indexOf(contentType) === 0;
}
onHeaders(statusCode, rawHeaders, resume, statusMessage, headers = parseHeaders(rawHeaders)) {
this.#statusCode = statusCode; this.#statusCode = statusCode;
this.#headers = headers; this.#headers = headers;
this.#contentType = headers["content-type"]; this.#contentType = headers["content-type"];
if (this.#statusCode < 400) { if (this.#statusCode < 400) {
return this.#handler.onHeaders(statusCode, rawHeaders, resume, statusMessage, headers); return super.onResponseStart(controller, statusCode, headers, statusMessage);
} }
if (this.#checkContentType("application/json") || this.#checkContentType("text/plain")) { if (this.#checkContentType("application/json") || this.#checkContentType("text/plain")) {
this.#decoder = new TextDecoder("utf-8"); this.#decoder = new TextDecoder("utf-8");
} }
} }
onData(chunk2) { onResponseData(controller, chunk2) {
if (this.#statusCode < 400) { if (this.#statusCode < 400) {
return this.#handler.onData(chunk2); return super.onResponseData(controller, chunk2);
} }
this.#body += this.#decoder?.decode(chunk2, { stream: true }) ?? ""; this.#body += this.#decoder?.decode(chunk2, { stream: true }) ?? "";
} }
onComplete(rawTrailers) { onResponseEnd(controller, trailers) {
if (this.#statusCode >= 400) { if (this.#statusCode >= 400) {
this.#body += this.#decoder?.decode(void 0, { stream: false }) ?? ""; this.#body += this.#decoder?.decode(void 0, { stream: false }) ?? "";
if (this.#checkContentType("application/json")) { if (this.#checkContentType("application/json")) {
@@ -31705,13 +31694,13 @@ var require_response_error = __commonJS({
} finally { } finally {
Error.stackTraceLimit = stackTraceLimit; Error.stackTraceLimit = stackTraceLimit;
} }
this.#handler.onError(err); super.onResponseError(controller, err);
} else { } else {
this.#handler.onComplete(rawTrailers); super.onResponseEnd(controller, trailers);
} }
} }
onError(err) { onResponseError(err) {
this.#handler.onError(err); super.onResponseError(err);
} }
}; };
module2.exports = () => { module2.exports = () => {
@@ -31752,80 +31741,71 @@ var require_retry = __commonJS({
var require_dump = __commonJS({ var require_dump = __commonJS({
"node_modules/async-neocities/node_modules/undici/lib/interceptor/dump.js"(exports2, module2) { "node_modules/async-neocities/node_modules/undici/lib/interceptor/dump.js"(exports2, module2) {
"use strict"; "use strict";
var util = require_util8();
var { InvalidArgumentError, RequestAbortedError } = require_errors2(); var { InvalidArgumentError, RequestAbortedError } = require_errors2();
var DecoratorHandler = require_decorator_handler(); var DecoratorHandler = require_decorator_handler();
var DumpHandler = class extends DecoratorHandler { var DumpHandler = class extends DecoratorHandler {
#maxSize = 1024 * 1024; #maxSize = 1024 * 1024;
#abort = null;
#dumped = false; #dumped = false;
#aborted = false;
#size = 0; #size = 0;
#reason = null; #controller = null;
#handler = null; aborted = false;
constructor({ maxSize }, handler) { reason = false;
constructor({ maxSize, signal }, handler) {
if (maxSize != null && (!Number.isFinite(maxSize) || maxSize < 1)) { if (maxSize != null && (!Number.isFinite(maxSize) || maxSize < 1)) {
throw new InvalidArgumentError("maxSize must be a number greater than 0"); throw new InvalidArgumentError("maxSize must be a number greater than 0");
} }
super(handler); super(handler);
this.#maxSize = maxSize ?? this.#maxSize; this.#maxSize = maxSize ?? this.#maxSize;
this.#handler = handler;
} }
onConnect(abort) { #abort(reason) {
this.#abort = abort; this.aborted = true;
this.#handler.onConnect(this.#customAbort.bind(this)); this.reason = reason;
} }
#customAbort(reason) { onRequestStart(controller, context) {
this.#aborted = true; controller.abort = this.#abort.bind(this);
this.#reason = reason; this.#controller = controller;
return super.onRequestStart(controller, context);
} }
// TODO: will require adjustment after new hooks are out onResponseStart(controller, statusCode, headers, statusMessage) {
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
const headers = util.parseHeaders(rawHeaders);
const contentLength = headers["content-length"]; const contentLength = headers["content-length"];
if (contentLength != null && contentLength > this.#maxSize) { if (contentLength != null && contentLength > this.#maxSize) {
throw new RequestAbortedError( throw new RequestAbortedError(
`Response size (${contentLength}) larger than maxSize (${this.#maxSize})` `Response size (${contentLength}) larger than maxSize (${this.#maxSize})`
); );
} }
if (this.#aborted) { if (this.aborted === true) {
return true; return true;
} }
return this.#handler.onHeaders( return super.onResponseStart(controller, statusCode, headers, statusMessage);
statusCode,
rawHeaders,
resume,
statusMessage
);
} }
onError(err) { onResponseError(controller, err) {
if (this.#dumped) { if (this.#dumped) {
return; return;
} }
err = this.#reason ?? err; err = this.#controller.reason ?? err;
this.#handler.onError(err); super.onResponseError(controller, err);
} }
onData(chunk2) { onResponseData(controller, chunk2) {
this.#size = this.#size + chunk2.length; this.#size = this.#size + chunk2.length;
if (this.#size >= this.#maxSize) { if (this.#size >= this.#maxSize) {
this.#dumped = true; this.#dumped = true;
if (this.#aborted) { if (this.aborted === true) {
this.#handler.onError(this.#reason); super.onResponseError(controller, this.reason);
} else { } else {
this.#handler.onComplete([]); super.onResponseEnd(controller, {});
} }
} }
return true; return true;
} }
onComplete(trailers) { onResponseEnd(controller, trailers) {
if (this.#dumped) { if (this.#dumped) {
return; return;
} }
if (this.#aborted) { if (this.#controller.aborted === true) {
this.#handler.onError(this.reason); super.onResponseError(controller, this.reason);
return; return;
} }
this.#handler.onComplete(trailers); super.onResponseEnd(controller, trailers);
} }
}; };
function createDumpInterceptor({ maxSize: defaultMaxSize } = { function createDumpInterceptor({ maxSize: defaultMaxSize } = {
@@ -31834,10 +31814,7 @@ var require_dump = __commonJS({
return (dispatch) => { return (dispatch) => {
return function Intercept(opts, handler) { return function Intercept(opts, handler) {
const { dumpMaxSize = defaultMaxSize } = opts; const { dumpMaxSize = defaultMaxSize } = opts;
const dumpHandler = new DumpHandler( const dumpHandler = new DumpHandler({ maxSize: dumpMaxSize, signal: opts.signal }, handler);
{ maxSize: dumpMaxSize },
handler
);
return dispatch(opts, dumpHandler); return dispatch(opts, dumpHandler);
}; };
}; };
@@ -32025,24 +32002,24 @@ var require_dns = __commonJS({
#state = null; #state = null;
#opts = null; #opts = null;
#dispatch = null; #dispatch = null;
#handler = null;
#origin = null; #origin = null;
#controller = null;
constructor(state, { origin, handler, dispatch }, opts) { constructor(state, { origin, handler, dispatch }, opts) {
super(handler); super(handler);
this.#origin = origin; this.#origin = origin;
this.#handler = handler;
this.#opts = { ...opts }; this.#opts = { ...opts };
this.#state = state; this.#state = state;
this.#dispatch = dispatch; this.#dispatch = dispatch;
} }
onError(err) { onResponseError(controller, err) {
switch (err.code) { switch (err.code) {
case "ETIMEDOUT": case "ETIMEDOUT":
case "ECONNREFUSED": { case "ECONNREFUSED": {
if (this.#state.dualStack) { if (this.#state.dualStack) {
this.#state.runLookup(this.#origin, this.#opts, (err2, newOrigin) => { this.#state.runLookup(this.#origin, this.#opts, (err2, newOrigin) => {
if (err2) { if (err2) {
return this.#handler.onError(err2); super.onResponseError(controller, err2);
return;
} }
const dispatchOpts = { const dispatchOpts = {
...this.#opts, ...this.#opts,
@@ -32052,14 +32029,14 @@ var require_dns = __commonJS({
}); });
return; return;
} }
this.#handler.onError(err); super.onResponseError(controller, err);
return; break;
} }
case "ENOTFOUND": case "ENOTFOUND":
this.#state.deleteRecord(this.#origin); this.#state.deleteRecord(this.#origin);
// eslint-disable-next-line no-fallthrough // eslint-disable-next-line no-fallthrough
default: default:
this.#handler.onError(err); super.onResponseError(controller, err);
break; break;
} }
} }
@@ -39935,9 +39912,6 @@ var require_undici2 = __commonJS({
const SqliteCacheStore = require_sqlite_cache_store(); const SqliteCacheStore = require_sqlite_cache_store();
module2.exports.cacheStores.SqliteCacheStore = SqliteCacheStore; module2.exports.cacheStores.SqliteCacheStore = SqliteCacheStore;
} catch (err) { } catch (err) {
if (err.code !== "ERR_UNKNOWN_BUILTIN_MODULE") {
throw err;
}
} }
module2.exports.buildConnector = buildConnector; module2.exports.buildConnector = buildConnector;
module2.exports.errors = errors; module2.exports.errors = errors;
@@ -40043,7 +40017,7 @@ var require_package = __commonJS({
module2.exports = { module2.exports = {
name: "async-neocities", name: "async-neocities",
description: "A library and bin to deploy to neocities", description: "A library and bin to deploy to neocities",
version: "4.0.4", version: "4.1.0",
author: "Bret Comnes <bcomnes@gmail.com> (https://bret.io)", author: "Bret Comnes <bcomnes@gmail.com> (https://bret.io)",
type: "module", type: "module",
bin: { bin: {
@@ -50089,7 +50063,8 @@ async function previewDeployToNeocities({
directory, directory,
apiKey, apiKey,
includeUnsupportedFiles = false, includeUnsupportedFiles = false,
protectedFileFilter protectedFileFilter,
uploadSort
}) { }) {
const [localListing, neocitiesFiles] = await Promise.all([ const [localListing, neocitiesFiles] = await Promise.all([
import_async_folder_walker.default.allFiles(directory, { import_async_folder_walker.default.allFiles(directory, {
@@ -50106,6 +50081,9 @@ async function previewDeployToNeocities({
protectedFileFilter, protectedFileFilter,
includeUnsupportedFiles includeUnsupportedFiles
}); });
if (typeof uploadSort === "function") {
diff.filesToUpload.sort(uploadSort);
}
return diff; return diff;
} }
async function deployToNeocities({ async function deployToNeocities({
@@ -50113,18 +50091,17 @@ async function deployToNeocities({
apiKey, apiKey,
cleanup = false, cleanup = false,
includeUnsupportedFiles = false, includeUnsupportedFiles = false,
protectedFileFilter protectedFileFilter,
uploadSort
}) { }) {
const diff = await previewDeployToNeocities({ const diff = await previewDeployToNeocities({
directory, directory,
apiKey, apiKey,
includeUnsupportedFiles, includeUnsupportedFiles,
protectedFileFilter protectedFileFilter,
uploadSort
}); });
const { const { filesToUpload, filesToDelete } = diff;
filesToUpload,
filesToDelete
} = diff;
if (filesToUpload.length === 0 && (!cleanup || filesToDelete.length === 0)) { if (filesToUpload.length === 0 && (!cleanup || filesToDelete.length === 0)) {
return { return {
errors: [], errors: [],
@@ -50460,6 +50437,7 @@ var NeocitiesAPIClient = class {
* @param {boolean} [options.cleanup=false] Set cleanup to true to delete orphaned file. * @param {boolean} [options.cleanup=false] Set cleanup to true to delete orphaned file.
* @param {boolean} [options.includeUnsupportedFiles=false] Set to true to bypass file type restrictions. * @param {boolean} [options.includeUnsupportedFiles=false] Set to true to bypass file type restrictions.
* @param {(path: string) => boolean} [options.protectedFileFilter] A filter function to filter out file you want to ignore. * @param {(path: string) => boolean} [options.protectedFileFilter] A filter function to filter out file you want to ignore.
* @param {Endpoints.Comparator<FileUpload>} [options.uploadSort] A sort function that lets you sort file upload order prior to uploading. FileUpload.name is probably what you want to sort by.
* @return {ReturnType<typeof Endpoints.deployToNeocities>} The fetched site info * @return {ReturnType<typeof Endpoints.deployToNeocities>} The fetched site info
*/ */
async deploy(options) { async deploy(options) {
@@ -50475,6 +50453,7 @@ var NeocitiesAPIClient = class {
* @param {string} options.directory The path to the directory preview deploy. * @param {string} options.directory The path to the directory preview deploy.
* @param {boolean} [options.includeUnsupportedFiles=false] Set to true to bypass file type restrictions. * @param {boolean} [options.includeUnsupportedFiles=false] Set to true to bypass file type restrictions.
* @param {(path: string) => boolean} [options.protectedFileFilter] A filter function to filter out file you want to ignore. * @param {(path: string) => boolean} [options.protectedFileFilter] A filter function to filter out file you want to ignore.
* @param {Endpoints.Comparator<FileUpload>} [options.uploadSort] A sort function that lets you sort file upload order prior to uploading. FileUpload.name is probably what you want to sort by.
* @return {Promise<AsyncNeocitiesDiff>} * @return {Promise<AsyncNeocitiesDiff>}
*/ */
async previewDeploy(options) { async previewDeploy(options) {

4
dist/index.cjs.map vendored

File diff suppressed because one or more lines are too long

51
dist/meta.json vendored
View File

@@ -3535,7 +3535,7 @@
"format": "cjs" "format": "cjs"
}, },
"node_modules/async-neocities/node_modules/undici/lib/dispatcher/client-h2.js": { "node_modules/async-neocities/node_modules/undici/lib/dispatcher/client-h2.js": {
"bytes": 20132, "bytes": 19891,
"imports": [ "imports": [
{ {
"path": "node:assert", "path": "node:assert",
@@ -4382,12 +4382,17 @@
"format": "cjs" "format": "cjs"
}, },
"node_modules/async-neocities/node_modules/undici/lib/handler/decorator-handler.js": { "node_modules/async-neocities/node_modules/undici/lib/handler/decorator-handler.js": {
"bytes": 1458, "bytes": 1444,
"imports": [ "imports": [
{ {
"path": "node:assert", "path": "node:assert",
"kind": "require-call", "kind": "require-call",
"external": true "external": true
},
{
"path": "node_modules/async-neocities/node_modules/undici/lib/handler/wrap-handler.js",
"kind": "require-call",
"original": "./wrap-handler"
} }
], ],
"format": "cjs" "format": "cjs"
@@ -4435,13 +4440,8 @@
"format": "cjs" "format": "cjs"
}, },
"node_modules/async-neocities/node_modules/undici/lib/interceptor/response-error.js": { "node_modules/async-neocities/node_modules/undici/lib/interceptor/response-error.js": {
"bytes": 2347, "bytes": 2371,
"imports": [ "imports": [
{
"path": "node_modules/async-neocities/node_modules/undici/lib/core/util.js",
"kind": "require-call",
"original": "../core/util"
},
{ {
"path": "node_modules/async-neocities/node_modules/undici/lib/handler/decorator-handler.js", "path": "node_modules/async-neocities/node_modules/undici/lib/handler/decorator-handler.js",
"kind": "require-call", "kind": "require-call",
@@ -4467,13 +4467,8 @@
"format": "cjs" "format": "cjs"
}, },
"node_modules/async-neocities/node_modules/undici/lib/interceptor/dump.js": { "node_modules/async-neocities/node_modules/undici/lib/interceptor/dump.js": {
"bytes": 2514, "bytes": 2543,
"imports": [ "imports": [
{
"path": "node_modules/async-neocities/node_modules/undici/lib/core/util.js",
"kind": "require-call",
"original": "../core/util"
},
{ {
"path": "node_modules/async-neocities/node_modules/undici/lib/core/errors.js", "path": "node_modules/async-neocities/node_modules/undici/lib/core/errors.js",
"kind": "require-call", "kind": "require-call",
@@ -4488,7 +4483,7 @@
"format": "cjs" "format": "cjs"
}, },
"node_modules/async-neocities/node_modules/undici/lib/interceptor/dns.js": { "node_modules/async-neocities/node_modules/undici/lib/interceptor/dns.js": {
"bytes": 9338, "bytes": 9380,
"imports": [ "imports": [
{ {
"path": "node:net", "path": "node:net",
@@ -5507,7 +5502,7 @@
"format": "cjs" "format": "cjs"
}, },
"node_modules/async-neocities/node_modules/undici/index.js": { "node_modules/async-neocities/node_modules/undici/index.js": {
"bytes": 6440, "bytes": 6623,
"imports": [ "imports": [
{ {
"path": "node_modules/async-neocities/node_modules/undici/lib/dispatcher/client.js", "path": "node_modules/async-neocities/node_modules/undici/lib/dispatcher/client.js",
@@ -6081,7 +6076,7 @@
"format": "esm" "format": "esm"
}, },
"node_modules/async-neocities/lib/api-endpoints.js": { "node_modules/async-neocities/lib/api-endpoints.js": {
"bytes": 10433, "bytes": 10932,
"imports": [ "imports": [
{ {
"path": "node_modules/async-folder-walker/index.js", "path": "node_modules/async-folder-walker/index.js",
@@ -6148,7 +6143,7 @@
"format": "esm" "format": "esm"
}, },
"node_modules/async-neocities/index.js": { "node_modules/async-neocities/index.js": {
"bytes": 3926, "bytes": 4318,
"imports": [ "imports": [
{ {
"path": "node_modules/async-neocities/lib/api-endpoints.js", "path": "node_modules/async-neocities/lib/api-endpoints.js",
@@ -6313,7 +6308,7 @@
"imports": [], "imports": [],
"exports": [], "exports": [],
"inputs": {}, "inputs": {},
"bytes": 3264313 "bytes": 3264946
}, },
"dist/index.cjs": { "dist/index.cjs": {
"imports": [ "imports": [
@@ -8023,7 +8018,7 @@
"bytesInOutput": 39255 "bytesInOutput": 39255
}, },
"node_modules/async-neocities/node_modules/undici/lib/dispatcher/client-h2.js": { "node_modules/async-neocities/node_modules/undici/lib/dispatcher/client-h2.js": {
"bytesInOutput": 19035 "bytesInOutput": 18781
}, },
"node_modules/async-neocities/node_modules/undici/lib/dispatcher/client.js": { "node_modules/async-neocities/node_modules/undici/lib/dispatcher/client.js": {
"bytesInOutput": 17400 "bytesInOutput": 17400
@@ -8110,7 +8105,7 @@
"bytesInOutput": 931 "bytesInOutput": 931
}, },
"node_modules/async-neocities/node_modules/undici/lib/handler/decorator-handler.js": { "node_modules/async-neocities/node_modules/undici/lib/handler/decorator-handler.js": {
"bytesInOutput": 1815 "bytesInOutput": 1793
}, },
"node_modules/async-neocities/node_modules/undici/lib/handler/redirect-handler.js": { "node_modules/async-neocities/node_modules/undici/lib/handler/redirect-handler.js": {
"bytesInOutput": 6577 "bytesInOutput": 6577
@@ -8119,16 +8114,16 @@
"bytesInOutput": 891 "bytesInOutput": 891
}, },
"node_modules/async-neocities/node_modules/undici/lib/interceptor/response-error.js": { "node_modules/async-neocities/node_modules/undici/lib/interceptor/response-error.js": {
"bytesInOutput": 2783 "bytesInOutput": 2750
}, },
"node_modules/async-neocities/node_modules/undici/lib/interceptor/retry.js": { "node_modules/async-neocities/node_modules/undici/lib/interceptor/retry.js": {
"bytesInOutput": 626 "bytesInOutput": 626
}, },
"node_modules/async-neocities/node_modules/undici/lib/interceptor/dump.js": { "node_modules/async-neocities/node_modules/undici/lib/interceptor/dump.js": {
"bytesInOutput": 2969 "bytesInOutput": 2934
}, },
"node_modules/async-neocities/node_modules/undici/lib/interceptor/dns.js": { "node_modules/async-neocities/node_modules/undici/lib/interceptor/dns.js": {
"bytesInOutput": 9923 "bytesInOutput": 9967
}, },
"node_modules/async-neocities/node_modules/undici/lib/util/cache.js": { "node_modules/async-neocities/node_modules/undici/lib/util/cache.js": {
"bytesInOutput": 8751 "bytesInOutput": 8751
@@ -8227,7 +8222,7 @@
"bytesInOutput": 9996 "bytesInOutput": 9996
}, },
"node_modules/async-neocities/node_modules/undici/index.js": { "node_modules/async-neocities/node_modules/undici/index.js": {
"bytesInOutput": 6393 "bytesInOutput": 6311
}, },
"node_modules/async-neocities/package.json": { "node_modules/async-neocities/package.json": {
"bytesInOutput": 2326 "bytesInOutput": 2326
@@ -8296,7 +8291,7 @@
"bytesInOutput": 2882 "bytesInOutput": 2882
}, },
"node_modules/async-neocities/lib/api-endpoints.js": { "node_modules/async-neocities/lib/api-endpoints.js": {
"bytesInOutput": 6523 "bytesInOutput": 6644
}, },
"node_modules/async-neocities/lib/always-ignore.js": { "node_modules/async-neocities/lib/always-ignore.js": {
"bytesInOutput": 130 "bytesInOutput": 130
@@ -8317,7 +8312,7 @@
"bytesInOutput": 767 "bytesInOutput": 767
}, },
"node_modules/async-neocities/index.js": { "node_modules/async-neocities/index.js": {
"bytesInOutput": 3390 "bytesInOutput": 3782
}, },
"node_modules/@lukeed/ms/dist/index.mjs": { "node_modules/@lukeed/ms/dist/index.mjs": {
"bytesInOutput": 698 "bytesInOutput": 698
@@ -8347,7 +8342,7 @@
"bytesInOutput": 165 "bytesInOutput": 165
} }
}, },
"bytes": 1998745 "bytes": 1998876
} }
} }
} }

View File

@@ -1,14 +1,14 @@
{ {
"name": "deploy-to-neocities", "name": "deploy-to-neocities",
"description": "Github Action to deplpoy a folder to Neocities.org", "description": "Github Action to deplpoy a folder to Neocities.org",
"version": "3.0.1", "version": "3.0.2",
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io/)", "author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io/)",
"bugs": { "bugs": {
"url": "https://github.com/bcomnes/deploy-to-neocities/issues" "url": "https://github.com/bcomnes/deploy-to-neocities/issues"
}, },
"dependencies": { "dependencies": {
"@actions/core": "1.11.1", "@actions/core": "1.11.1",
"async-neocities": "4.0.4", "async-neocities": "4.1.0",
"minimatch": "10.0.1" "minimatch": "10.0.1"
}, },
"devDependencies": { "devDependencies": {
@@ -17,9 +17,9 @@
"auto-changelog": "^2.0.0", "auto-changelog": "^2.0.0",
"gh-release": "^7.0.0", "gh-release": "^7.0.0",
"npm-run-all2": "^7.0.0", "npm-run-all2": "^7.0.0",
"neostandard": "^0.11.8", "neostandard": "^0.12.0",
"c8": "^10.0.0", "c8": "^10.0.0",
"esbuild": "~0.24.0", "esbuild": "~0.25.0",
"typescript": "~5.7.2" "typescript": "~5.7.2"
}, },
"homepage": "https://github.com/bcomnes/deploy-to-neocities#readme", "homepage": "https://github.com/bcomnes/deploy-to-neocities#readme",