Compare commits

..

14 Commits

Author SHA1 Message Date
bcomnes
e3e555927c 1.1.13 2022-12-21 17:17:18 +00:00
Bret Comnes
e04c11b5e4 Merge pull request #115 from bcomnes/dependabot/npm_and_yarn/minimatch-5.1.2
chore(deps): bump minimatch from 5.1.1 to 5.1.2
2022-12-21 10:16:20 -07:00
dependabot[bot]
990011bf36 chore(deps): bump minimatch from 5.1.1 to 5.1.2
Bumps [minimatch](https://github.com/isaacs/minimatch) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-21 03:02:18 +00:00
Bret Comnes
5dda7b9d7a Update README.md 2022-12-20 09:49:51 -07:00
Bret Comnes
97a3bdd7ff Update example to use actions v3 2022-12-20 09:37:42 -07:00
bcomnes
86a0fba676 1.1.12 2022-12-20 16:32:49 +00:00
Bret Comnes
b5e74f0efd Update action to use node 16 2022-12-19 09:19:02 -07:00
Bret Comnes
1114060652 Merge pull request #113 from bcomnes/dependabot/npm_and_yarn/gh-release-7.0.0 2022-12-14 09:19:38 -07:00
dependabot[bot]
e00b896343 chore(deps-dev): bump gh-release from 6.0.4 to 7.0.0
Bumps [gh-release](https://github.com/ungoldman/gh-release) from 6.0.4 to 7.0.0.
- [Release notes](https://github.com/ungoldman/gh-release/releases)
- [Changelog](https://github.com/ungoldman/gh-release/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ungoldman/gh-release/compare/v6.0.4...v7.0.0)

---
updated-dependencies:
- dependency-name: gh-release
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-14 03:01:31 +00:00
Bret Comnes
056a8c9940 Merge pull request #112 from bcomnes/dependabot/npm_and_yarn/vercel/ncc-0.36.0
chore(deps-dev): bump @vercel/ncc from 0.34.0 to 0.36.0
2022-12-06 12:27:16 -07:00
dependabot[bot]
5a689c25d8 chore(deps-dev): bump @vercel/ncc from 0.34.0 to 0.36.0
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.34.0 to 0.36.0.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.34.0...0.36.0)

---
updated-dependencies:
- dependency-name: "@vercel/ncc"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 03:01:08 +00:00
Bret Comnes
3f1ce1ffb0 Merge pull request #111 from bcomnes/dependabot/npm_and_yarn/minimatch-5.1.1
chore(deps): bump minimatch from 5.1.0 to 5.1.1
2022-11-30 12:30:43 -07:00
dependabot[bot]
969ba2cc61 chore(deps): bump minimatch from 5.1.0 to 5.1.1
Bumps [minimatch](https://github.com/isaacs/minimatch) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v5.1.0...v5.1.1)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-30 03:01:18 +00:00
Bret Comnes
115b9e855f Update README.md 2022-11-19 13:15:50 -07:00
6 changed files with 97 additions and 56 deletions

View File

@@ -7,7 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
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.13](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.12...v1.1.13)
### Merged
- chore(deps): bump minimatch from 5.1.1 to 5.1.2 [`#115`](https://github.com/bcomnes/deploy-to-neocities/pull/115)
### Commits
- Update example to use actions v3 [`97a3bdd`](https://github.com/bcomnes/deploy-to-neocities/commit/97a3bdd7ff2cb7dd8a61969d6a3a8029d331bd29)
- Update README.md [`5dda7b9`](https://github.com/bcomnes/deploy-to-neocities/commit/5dda7b9d7afe5f87039e8bff30d1dd6d5eeb793e)
## [v1.1.12](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.11...v1.1.12) - 2022-12-20
### 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

View File

@@ -29,11 +29,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
# Set up any tools and build steps here
# This example uses a Node.js toolchain to build a site
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install deps and build
@@ -113,8 +113,6 @@ None.
## Sites using deploy-to-neocities
(Some may be NSFW)
- https://github.com/bcomnes/bret.io ([bret.io](https://bret.io))
- https://github.com/ecomnes/elenacomnes.com ([elenacomnes.comnes](https://elenacomnes.com))
- https://github.com/gumcast/gumcast-client ([gumcast.com](https://gumcast.com))
@@ -140,6 +138,7 @@ None.
- https://github.com/ConorSheehan1/conorsheehan1.neocities.org ([conorsheehan1.neocities.org](https://conorsheehan1.neocities.org))
- https://github.com/bechnokid/neocities ([bechnokid.neocities.org](https://bechnokid.neocities.org))
- https://github.com/lime360/website ([lime360.neocities.org](https://lime360.neocities.org))
- [See more!](https://github.com/bcomnes/deploy-to-neocities/network/dependents)
- ...PR your site when you set it up!
## See also

View File

@@ -19,5 +19,5 @@ inputs:
description: A glob string that prevents matched files from ever being deleted.
required: false
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'

108
dist/index.js vendored
View File

@@ -4834,6 +4834,7 @@ const EMPTY = ''
const SPACE = ' '
const ESCAPE = '\\'
const REGEX_TEST_BLANK_LINE = /^\s+$/
const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/
const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/
const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/
const REGEX_SPLITALL_CRLF = /\r?\n/g
@@ -4845,10 +4846,14 @@ const REGEX_SPLITALL_CRLF = /\r?\n/g
const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/
const SLASH = '/'
const KEY_IGNORE = typeof Symbol !== 'undefined'
? Symbol.for('node-ignore')
/* istanbul ignore next */
: 'node-ignore'
// Do not use ternary expression here, since "istanbul ignore next" is buggy
let TMP_KEY_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) =>
Object.defineProperty(object, key, {value})
@@ -5015,18 +5020,27 @@ const REPLACERS = [
: '\\/.+'
],
// intermediate wildcards
// normal intermediate wildcards
[
// Never replace escaped '*'
// ignore rule '\*' will match the path '*'
// 'abc.*/' -> go
// 'abc.*' -> skip this rule
/(^|[^\\]+)\\\*(?=.+)/g,
// 'abc.*' -> skip this rule,
// coz trailing single wildcard will be handed by [trailing wildcard]
/(^|[^\\]+)(\\\*)+(?=.+)/g,
// '*.js' matches '.js'
// '*.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
&& isString(pattern)
&& !REGEX_TEST_BLANK_LINE.test(pattern)
&& !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern)
// > A line starting with # serves as a comment.
&& pattern.indexOf('#') !== 0
@@ -5402,7 +5417,7 @@ module.exports = factory
// Windows
// --------------------------------------------------------------
/* istanbul ignore if */
/* istanbul ignore if */
if (
// Detect `process` so that it can run in browsers.
typeof process !== 'undefined'
@@ -6350,7 +6365,9 @@ minimatch.match = (list, pattern, options = {}) => {
// replace stuff like \* with *
const globUnescape = s => s.replace(/\\(.)/g, '$1')
const charUnescape = s => s.replace(/\\([^-\]])/g, '$1')
const regExpEscape = s => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')
const braExpEscape = s => s.replace(/[[\]\\]/g, '\\$&')
class Minimatch {
constructor (pattern, options) {
@@ -6436,7 +6453,7 @@ class Minimatch {
negateOffset++
}
if (negateOffset) this.pattern = pattern.substr(negateOffset)
if (negateOffset) this.pattern = pattern.slice(negateOffset)
this.negate = negate
}
@@ -6685,6 +6702,11 @@ class Minimatch {
}
case '\\':
if (inClass && pattern.charAt(i + 1) === '-') {
re += c
continue
}
clearStateChar()
escaping = true
continue
@@ -6797,8 +6819,6 @@ class Minimatch {
continue
}
// handle the case where we left a class open.
// "[z-a]" is valid, equivalent to "\[z-a\]"
// split where the last [ was, make sure we don't have
// an invalid re. if so, re-walk the contents of the
// would-be class to re-translate any characters that
@@ -6808,20 +6828,16 @@ class Minimatch {
// to do safely. For now, this is safe and works.
cs = pattern.substring(classStart + 1, i)
try {
RegExp('[' + cs + ']')
RegExp('[' + braExpEscape(charUnescape(cs)) + ']')
// looks good, finish up the class.
re += c
} catch (er) {
// not a valid class!
sp = this.parse(cs, SUBPARSE)
re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
hasMagic = hasMagic || sp[1]
inClass = false
continue
// out of order ranges in JS are errors, but in glob syntax,
// they're just a range that matches nothing.
re = re.substring(0, reClassStart) + '(?:$.)' // match nothing ever
}
// finish up the class.
hasMagic = true
inClass = false
re += c
continue
default:
@@ -6845,9 +6861,9 @@ class Minimatch {
// this is a huge pita. We now have to re-walk
// the contents of the would-be class to re-translate
// any characters that were passed through as-is
cs = pattern.substr(classStart + 1)
cs = pattern.slice(classStart + 1)
sp = this.parse(cs, SUBPARSE)
re = re.substr(0, reClassStart) + '\\[' + sp[0]
re = re.substring(0, reClassStart) + '\\[' + sp[0]
hasMagic = hasMagic || sp[1]
}
@@ -9143,7 +9159,6 @@ const findCauseByReference = (err, reference) => { // linemod-prefix-with: expor
seen.add(currentErr);
if (currentErr instanceof reference) {
// @ts-ignore
return currentErr;
}
@@ -9156,23 +9171,20 @@ const findCauseByReference = (err, reference) => { // linemod-prefix-with: expor
* @returns {Error|undefined}
*/
const getErrorCause = (err) => { // linemod-prefix-with: export
if (!err) return;
/** @type {unknown} */
// @ts-ignore
const cause = err.cause;
if (!err || typeof err !== 'object' || !('cause' in err)) {
return;
}
// VError / NError style causes
if (typeof cause === 'function') {
// @ts-ignore
if (typeof err.cause === 'function') {
const causeResult = err.cause();
return causeResult instanceof Error
? causeResult
: undefined;
} else {
return cause instanceof Error
? cause
return err.cause instanceof Error
? err.cause
: undefined;
}
};
@@ -9237,8 +9249,7 @@ const _messageWithCauses = (err, seen, skip) => {
if (cause) {
seen.add(err);
// @ts-ignore
const skipIfVErrorStyleCause = typeof err.cause === 'function';
const skipIfVErrorStyleCause = 'cause' in err && typeof err.cause === 'function';
return (message +
(skipIfVErrorStyleCause ? '' : ': ') +
@@ -12952,6 +12963,13 @@ const READ_DONE = 0b0010000000000 << 3
const READ_NEXT_TICK = 0b0100000000001 << 3 // also active
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_NON_PRIMARY = MAX ^ READ_PRIMARY
const READ_NON_PRIMARY_AND_PUSHED = MAX ^ (READ_PRIMARY | READ_NEEDS_PUSH)
@@ -12960,7 +12978,7 @@ const READ_PUSHED = MAX ^ READ_NEEDS_PUSH
const READ_PAUSED = MAX ^ READ_RESUMED
const READ_NOT_QUEUED = MAX ^ (READ_QUEUED | READ_EMITTED_READABLE)
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
// Write state
@@ -12990,19 +13008,14 @@ const DESTROY_STATUS = DESTROYING | DESTROYED
const OPEN_STATUS = DESTROY_STATUS | OPENING
const AUTO_DESTROY = DESTROY_STATUS | DONE
const NON_PRIMARY = WRITE_NON_PRIMARY & READ_NON_PRIMARY
const TICKING = (WRITE_NEXT_TICK | READ_NEXT_TICK) & NOT_ACTIVE
const ACTIVE_OR_TICKING = ACTIVE | TICKING
const ACTIVE_OR_TICKING = WRITE_NEXT_TICK | READ_NEXT_TICK
const TICKING = ACTIVE_OR_TICKING & NOT_ACTIVE
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_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_EMIT_READABLE_AND_QUEUED = READ_EMIT_READABLE | READ_QUEUED
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 READ_BACKPRESSURE_STATUS = DESTROY_STATUS | READ_ENDING | READ_DONE
@@ -13879,6 +13892,10 @@ function isStreamx (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) {
return isStreamx(stream) && stream.readable
}
@@ -13902,6 +13919,7 @@ module.exports = {
pipelinePromise,
isStream,
isStreamx,
getStreamError,
Stream,
Writable,
Readable,

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
{
"name": "deploy-to-neocities",
"description": "Github Action to deplpoy a folder to Neocities.org",
"version": "1.1.11",
"version": "1.1.13",
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io/)",
"bugs": {
"url": "https://github.com/bcomnes/deploy-to-neocities/issues"
@@ -9,18 +9,18 @@
"dependencies": {
"@actions/core": "1.10.0",
"async-neocities": "2.1.4",
"minimatch": "5.1.0",
"minimatch": "5.1.2",
"ms": "2.1.3",
"pony-cause": "^2.1.4",
"webassert": "3.0.2"
},
"devDependencies": {
"@siteup/cli": "^2.0.0",
"@vercel/ncc": "^0.34.0",
"@vercel/ncc": "^0.36.0",
"auto-changelog": "^2.0.0",
"browser-sync": "^2.27.7",
"dependency-check": "^4.1.0",
"gh-release": "^6.0.0",
"gh-release": "^7.0.0",
"mkdirp": "^1.0.4",
"npm-run-all2": "^6.0.0",
"standard": "^17.0.0"