mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-03-28 17:21:37 +00:00
1.1.12
This commit is contained in:
15
CHANGELOG.md
15
CHANGELOG.md
@@ -7,7 +7,20 @@ 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).
|
||||||
|
|
||||||
## [v1.1.11](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.10...v1.1.11)
|
## [v1.1.12](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.11...v1.1.12)
|
||||||
|
|
||||||
|
### Merged
|
||||||
|
|
||||||
|
- chore(deps-dev): bump @vercel/ncc from 0.34.0 to 0.36.0 [`#112`](https://github.com/bcomnes/deploy-to-neocities/pull/112)
|
||||||
|
- chore(deps): bump minimatch from 5.1.0 to 5.1.1 [`#111`](https://github.com/bcomnes/deploy-to-neocities/pull/111)
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- Update action to use node 16 [`b5e74f0`](https://github.com/bcomnes/deploy-to-neocities/commit/b5e74f0efddc239968a312e1bae4501d3e84f9a9)
|
||||||
|
- Merge pull request #113 from bcomnes/dependabot/npm_and_yarn/gh-release-7.0.0 [`1114060`](https://github.com/bcomnes/deploy-to-neocities/commit/1114060652dade40eaacdea104051d6e13a096a3)
|
||||||
|
- chore(deps-dev): bump gh-release from 6.0.4 to 7.0.0 [`e00b896`](https://github.com/bcomnes/deploy-to-neocities/commit/e00b89634371d88950fa4f3ec2a8892888bc98e2)
|
||||||
|
|
||||||
|
## [v1.1.11](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.10...v1.1.11) - 2022-11-07
|
||||||
|
|
||||||
### Merged
|
### Merged
|
||||||
|
|
||||||
|
|||||||
85
dist/index.js
vendored
85
dist/index.js
vendored
@@ -4834,6 +4834,7 @@ const EMPTY = ''
|
|||||||
const SPACE = ' '
|
const SPACE = ' '
|
||||||
const ESCAPE = '\\'
|
const ESCAPE = '\\'
|
||||||
const REGEX_TEST_BLANK_LINE = /^\s+$/
|
const REGEX_TEST_BLANK_LINE = /^\s+$/
|
||||||
|
const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/
|
||||||
const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/
|
const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/
|
||||||
const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/
|
const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/
|
||||||
const REGEX_SPLITALL_CRLF = /\r?\n/g
|
const REGEX_SPLITALL_CRLF = /\r?\n/g
|
||||||
@@ -4845,10 +4846,14 @@ const REGEX_SPLITALL_CRLF = /\r?\n/g
|
|||||||
const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/
|
const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/
|
||||||
|
|
||||||
const SLASH = '/'
|
const SLASH = '/'
|
||||||
const KEY_IGNORE = typeof Symbol !== 'undefined'
|
|
||||||
? Symbol.for('node-ignore')
|
// Do not use ternary expression here, since "istanbul ignore next" is buggy
|
||||||
/* istanbul ignore next */
|
let TMP_KEY_IGNORE = 'node-ignore'
|
||||||
: 'node-ignore'
|
/* istanbul ignore else */
|
||||||
|
if (typeof Symbol !== 'undefined') {
|
||||||
|
TMP_KEY_IGNORE = Symbol.for('node-ignore')
|
||||||
|
}
|
||||||
|
const KEY_IGNORE = TMP_KEY_IGNORE
|
||||||
|
|
||||||
const define = (object, key, value) =>
|
const define = (object, key, value) =>
|
||||||
Object.defineProperty(object, key, {value})
|
Object.defineProperty(object, key, {value})
|
||||||
@@ -5015,18 +5020,27 @@ const REPLACERS = [
|
|||||||
: '\\/.+'
|
: '\\/.+'
|
||||||
],
|
],
|
||||||
|
|
||||||
// intermediate wildcards
|
// normal intermediate wildcards
|
||||||
[
|
[
|
||||||
// Never replace escaped '*'
|
// Never replace escaped '*'
|
||||||
// ignore rule '\*' will match the path '*'
|
// ignore rule '\*' will match the path '*'
|
||||||
|
|
||||||
// 'abc.*/' -> go
|
// 'abc.*/' -> go
|
||||||
// 'abc.*' -> skip this rule
|
// 'abc.*' -> skip this rule,
|
||||||
/(^|[^\\]+)\\\*(?=.+)/g,
|
// coz trailing single wildcard will be handed by [trailing wildcard]
|
||||||
|
/(^|[^\\]+)(\\\*)+(?=.+)/g,
|
||||||
|
|
||||||
// '*.js' matches '.js'
|
// '*.js' matches '.js'
|
||||||
// '*.js' doesn't match 'abc'
|
// '*.js' doesn't match 'abc'
|
||||||
(_, p1) => `${p1}[^\\/]*`
|
(_, p1, p2) => {
|
||||||
|
// 1.
|
||||||
|
// > An asterisk "*" matches anything except a slash.
|
||||||
|
// 2.
|
||||||
|
// > Other consecutive asterisks are considered regular asterisks
|
||||||
|
// > and will match according to the previous rules.
|
||||||
|
const unescaped = p2.replace(/\\\*/g, '[^\\/]*')
|
||||||
|
return p1 + unescaped
|
||||||
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
[
|
[
|
||||||
@@ -5137,6 +5151,7 @@ const isString = subject => typeof subject === 'string'
|
|||||||
const checkPattern = pattern => pattern
|
const checkPattern = pattern => pattern
|
||||||
&& isString(pattern)
|
&& isString(pattern)
|
||||||
&& !REGEX_TEST_BLANK_LINE.test(pattern)
|
&& !REGEX_TEST_BLANK_LINE.test(pattern)
|
||||||
|
&& !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern)
|
||||||
|
|
||||||
// > A line starting with # serves as a comment.
|
// > A line starting with # serves as a comment.
|
||||||
&& pattern.indexOf('#') !== 0
|
&& pattern.indexOf('#') !== 0
|
||||||
@@ -5402,7 +5417,7 @@ module.exports = factory
|
|||||||
|
|
||||||
// Windows
|
// Windows
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
/* istanbul ignore if */
|
/* istanbul ignore if */
|
||||||
if (
|
if (
|
||||||
// Detect `process` so that it can run in browsers.
|
// Detect `process` so that it can run in browsers.
|
||||||
typeof process !== 'undefined'
|
typeof process !== 'undefined'
|
||||||
@@ -6436,7 +6451,7 @@ class Minimatch {
|
|||||||
negateOffset++
|
negateOffset++
|
||||||
}
|
}
|
||||||
|
|
||||||
if (negateOffset) this.pattern = pattern.substr(negateOffset)
|
if (negateOffset) this.pattern = pattern.slice(negateOffset)
|
||||||
this.negate = negate
|
this.negate = negate
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6812,7 +6827,7 @@ class Minimatch {
|
|||||||
} catch (er) {
|
} catch (er) {
|
||||||
// not a valid class!
|
// not a valid class!
|
||||||
sp = this.parse(cs, SUBPARSE)
|
sp = this.parse(cs, SUBPARSE)
|
||||||
re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
|
re = re.substring(0, reClassStart) + '\\[' + sp[0] + '\\]'
|
||||||
hasMagic = hasMagic || sp[1]
|
hasMagic = hasMagic || sp[1]
|
||||||
inClass = false
|
inClass = false
|
||||||
continue
|
continue
|
||||||
@@ -6845,9 +6860,9 @@ class Minimatch {
|
|||||||
// this is a huge pita. We now have to re-walk
|
// this is a huge pita. We now have to re-walk
|
||||||
// the contents of the would-be class to re-translate
|
// the contents of the would-be class to re-translate
|
||||||
// any characters that were passed through as-is
|
// any characters that were passed through as-is
|
||||||
cs = pattern.substr(classStart + 1)
|
cs = pattern.slice(classStart + 1)
|
||||||
sp = this.parse(cs, SUBPARSE)
|
sp = this.parse(cs, SUBPARSE)
|
||||||
re = re.substr(0, reClassStart) + '\\[' + sp[0]
|
re = re.substring(0, reClassStart) + '\\[' + sp[0]
|
||||||
hasMagic = hasMagic || sp[1]
|
hasMagic = hasMagic || sp[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -9143,7 +9158,6 @@ const findCauseByReference = (err, reference) => { // linemod-prefix-with: expor
|
|||||||
seen.add(currentErr);
|
seen.add(currentErr);
|
||||||
|
|
||||||
if (currentErr instanceof reference) {
|
if (currentErr instanceof reference) {
|
||||||
// @ts-ignore
|
|
||||||
return currentErr;
|
return currentErr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -9156,23 +9170,20 @@ const findCauseByReference = (err, reference) => { // linemod-prefix-with: expor
|
|||||||
* @returns {Error|undefined}
|
* @returns {Error|undefined}
|
||||||
*/
|
*/
|
||||||
const getErrorCause = (err) => { // linemod-prefix-with: export
|
const getErrorCause = (err) => { // linemod-prefix-with: export
|
||||||
if (!err) return;
|
if (!err || typeof err !== 'object' || !('cause' in err)) {
|
||||||
|
return;
|
||||||
/** @type {unknown} */
|
}
|
||||||
// @ts-ignore
|
|
||||||
const cause = err.cause;
|
|
||||||
|
|
||||||
// VError / NError style causes
|
// VError / NError style causes
|
||||||
if (typeof cause === 'function') {
|
if (typeof err.cause === 'function') {
|
||||||
// @ts-ignore
|
|
||||||
const causeResult = err.cause();
|
const causeResult = err.cause();
|
||||||
|
|
||||||
return causeResult instanceof Error
|
return causeResult instanceof Error
|
||||||
? causeResult
|
? causeResult
|
||||||
: undefined;
|
: undefined;
|
||||||
} else {
|
} else {
|
||||||
return cause instanceof Error
|
return err.cause instanceof Error
|
||||||
? cause
|
? err.cause
|
||||||
: undefined;
|
: undefined;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -9237,8 +9248,7 @@ const _messageWithCauses = (err, seen, skip) => {
|
|||||||
if (cause) {
|
if (cause) {
|
||||||
seen.add(err);
|
seen.add(err);
|
||||||
|
|
||||||
// @ts-ignore
|
const skipIfVErrorStyleCause = 'cause' in err && typeof err.cause === 'function';
|
||||||
const skipIfVErrorStyleCause = typeof err.cause === 'function';
|
|
||||||
|
|
||||||
return (message +
|
return (message +
|
||||||
(skipIfVErrorStyleCause ? '' : ': ') +
|
(skipIfVErrorStyleCause ? '' : ': ') +
|
||||||
@@ -12952,6 +12962,13 @@ const READ_DONE = 0b0010000000000 << 3
|
|||||||
const READ_NEXT_TICK = 0b0100000000001 << 3 // also active
|
const READ_NEXT_TICK = 0b0100000000001 << 3 // also active
|
||||||
const READ_NEEDS_PUSH = 0b1000000000000 << 3
|
const READ_NEEDS_PUSH = 0b1000000000000 << 3
|
||||||
|
|
||||||
|
// Combined read state
|
||||||
|
const READ_FLOWING = READ_RESUMED | READ_PIPE_DRAINED
|
||||||
|
const READ_ACTIVE_AND_SYNC = READ_ACTIVE | READ_SYNC
|
||||||
|
const READ_ACTIVE_AND_SYNC_AND_NEEDS_PUSH = READ_ACTIVE | READ_SYNC | READ_NEEDS_PUSH
|
||||||
|
const READ_PRIMARY_AND_ACTIVE = READ_PRIMARY | READ_ACTIVE
|
||||||
|
const READ_EMIT_READABLE_AND_QUEUED = READ_EMIT_READABLE | READ_QUEUED
|
||||||
|
|
||||||
const READ_NOT_ACTIVE = MAX ^ READ_ACTIVE
|
const READ_NOT_ACTIVE = MAX ^ READ_ACTIVE
|
||||||
const READ_NON_PRIMARY = MAX ^ READ_PRIMARY
|
const READ_NON_PRIMARY = MAX ^ READ_PRIMARY
|
||||||
const READ_NON_PRIMARY_AND_PUSHED = MAX ^ (READ_PRIMARY | READ_NEEDS_PUSH)
|
const READ_NON_PRIMARY_AND_PUSHED = MAX ^ (READ_PRIMARY | READ_NEEDS_PUSH)
|
||||||
@@ -12960,7 +12977,7 @@ const READ_PUSHED = MAX ^ READ_NEEDS_PUSH
|
|||||||
const READ_PAUSED = MAX ^ READ_RESUMED
|
const READ_PAUSED = MAX ^ READ_RESUMED
|
||||||
const READ_NOT_QUEUED = MAX ^ (READ_QUEUED | READ_EMITTED_READABLE)
|
const READ_NOT_QUEUED = MAX ^ (READ_QUEUED | READ_EMITTED_READABLE)
|
||||||
const READ_NOT_ENDING = MAX ^ READ_ENDING
|
const READ_NOT_ENDING = MAX ^ READ_ENDING
|
||||||
const READ_PIPE_NOT_DRAINED = MAX ^ (READ_RESUMED | READ_PIPE_DRAINED)
|
const READ_PIPE_NOT_DRAINED = MAX ^ READ_FLOWING
|
||||||
const READ_NOT_NEXT_TICK = MAX ^ READ_NEXT_TICK
|
const READ_NOT_NEXT_TICK = MAX ^ READ_NEXT_TICK
|
||||||
|
|
||||||
// Write state
|
// Write state
|
||||||
@@ -12990,19 +13007,14 @@ const DESTROY_STATUS = DESTROYING | DESTROYED
|
|||||||
const OPEN_STATUS = DESTROY_STATUS | OPENING
|
const OPEN_STATUS = DESTROY_STATUS | OPENING
|
||||||
const AUTO_DESTROY = DESTROY_STATUS | DONE
|
const AUTO_DESTROY = DESTROY_STATUS | DONE
|
||||||
const NON_PRIMARY = WRITE_NON_PRIMARY & READ_NON_PRIMARY
|
const NON_PRIMARY = WRITE_NON_PRIMARY & READ_NON_PRIMARY
|
||||||
const TICKING = (WRITE_NEXT_TICK | READ_NEXT_TICK) & NOT_ACTIVE
|
const ACTIVE_OR_TICKING = WRITE_NEXT_TICK | READ_NEXT_TICK
|
||||||
const ACTIVE_OR_TICKING = ACTIVE | TICKING
|
const TICKING = ACTIVE_OR_TICKING & NOT_ACTIVE
|
||||||
const IS_OPENING = OPEN_STATUS | TICKING
|
const IS_OPENING = OPEN_STATUS | TICKING
|
||||||
|
|
||||||
// Combined read state
|
// Combined shared state and read state
|
||||||
const READ_PRIMARY_STATUS = OPEN_STATUS | READ_ENDING | READ_DONE
|
const READ_PRIMARY_STATUS = OPEN_STATUS | READ_ENDING | READ_DONE
|
||||||
const READ_STATUS = OPEN_STATUS | READ_DONE | READ_QUEUED
|
const READ_STATUS = OPEN_STATUS | READ_DONE | READ_QUEUED
|
||||||
const READ_FLOWING = READ_RESUMED | READ_PIPE_DRAINED
|
|
||||||
const READ_ACTIVE_AND_SYNC = READ_ACTIVE | READ_SYNC
|
|
||||||
const READ_ACTIVE_AND_SYNC_AND_NEEDS_PUSH = READ_ACTIVE | READ_SYNC | READ_NEEDS_PUSH
|
|
||||||
const READ_PRIMARY_AND_ACTIVE = READ_PRIMARY | READ_ACTIVE
|
|
||||||
const READ_ENDING_STATUS = OPEN_STATUS | READ_ENDING | READ_QUEUED
|
const READ_ENDING_STATUS = OPEN_STATUS | READ_ENDING | READ_QUEUED
|
||||||
const READ_EMIT_READABLE_AND_QUEUED = READ_EMIT_READABLE | READ_QUEUED
|
|
||||||
const READ_READABLE_STATUS = OPEN_STATUS | READ_EMIT_READABLE | READ_QUEUED | READ_EMITTED_READABLE
|
const READ_READABLE_STATUS = OPEN_STATUS | READ_EMIT_READABLE | READ_QUEUED | READ_EMITTED_READABLE
|
||||||
const SHOULD_NOT_READ = OPEN_STATUS | READ_ACTIVE | READ_ENDING | READ_DONE | READ_NEEDS_PUSH
|
const SHOULD_NOT_READ = OPEN_STATUS | READ_ACTIVE | READ_ENDING | READ_DONE | READ_NEEDS_PUSH
|
||||||
const READ_BACKPRESSURE_STATUS = DESTROY_STATUS | READ_ENDING | READ_DONE
|
const READ_BACKPRESSURE_STATUS = DESTROY_STATUS | READ_ENDING | READ_DONE
|
||||||
@@ -13879,6 +13891,10 @@ function isStreamx (stream) {
|
|||||||
return typeof stream._duplexState === 'number' && isStream(stream)
|
return typeof stream._duplexState === 'number' && isStream(stream)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getStreamError (stream) {
|
||||||
|
return (stream._readableState && stream._readableState.error) || (stream._writableState && stream._writableState.error)
|
||||||
|
}
|
||||||
|
|
||||||
function isReadStreamx (stream) {
|
function isReadStreamx (stream) {
|
||||||
return isStreamx(stream) && stream.readable
|
return isStreamx(stream) && stream.readable
|
||||||
}
|
}
|
||||||
@@ -13902,6 +13918,7 @@ module.exports = {
|
|||||||
pipelinePromise,
|
pipelinePromise,
|
||||||
isStream,
|
isStream,
|
||||||
isStreamx,
|
isStreamx,
|
||||||
|
getStreamError,
|
||||||
Stream,
|
Stream,
|
||||||
Writable,
|
Writable,
|
||||||
Readable,
|
Readable,
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"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": "1.1.11",
|
"version": "1.1.12",
|
||||||
"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"
|
||||||
|
|||||||
Reference in New Issue
Block a user