Compare commits

...

6 commits

Author SHA1 Message Date
Lynn Smeria
5276accf6e 0.4.0 2022-11-24 14:41:05 +01:00
Lynn Smeria
7f0ff05748 Drop character restriction from readme 2022-11-24 14:40:40 +01:00
Lynn Smeria
b31a908750
Merge pull request #3 from terminalnetwork/dependabot/npm_and_yarn/normalize-url-4.5.1
Bump normalize-url from 4.5.0 to 4.5.1
2022-11-24 14:38:46 +01:00
Lynn Smeria
deb8b8dc69
Merge pull request #5 from OliverEvans96/hand-entered-folder-ids
Remove 11-character requirement on folder names. Fixes #1.
2022-11-24 14:35:53 +01:00
Oliver Evans
bf2b3539ac
Remove 11-character requirement on folder names. Fixes #1. 2021-11-05 00:37:33 -07:00
dependabot[bot]
fdb40117df
Bump normalize-url from 4.5.0 to 4.5.1
Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/sindresorhus/normalize-url/releases)
- [Commits](https://github.com/sindresorhus/normalize-url/commits)

---
updated-dependencies:
- dependency-name: normalize-url
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-11 02:04:26 +00:00
4 changed files with 6 additions and 6 deletions

View file

@ -61,4 +61,4 @@ The folder name is the 11 character unique string found in the syncthing GUI. Th
An example: a script at the location `~/.syncthing-hooks/night-owlzz-5m` will be executed five minutes after the most recent event in the folder with the identifier `night-owlzz`.
Make sure your folder identifier is exactly 11 characters long and does not have an extension. Also, don't forget to `chmod +x` the script.
Don't forget to `chmod +x` the script.

View file

@ -21,7 +21,7 @@ const parseHooks = (root, hooks) =>
hooks
.map(x => ({
path: path.join(root, x),
match: x.match(/(?<folder>.{11})-(?<time>.*)/),
match: x.match(/(?<folder>.*)-(?<time>.*)/),
}))
.filter(x => x.match)
.map(x => ({

View file

@ -1,6 +1,6 @@
{
"name": "syncthing-hooks",
"version": "0.3.0",
"version": "0.4.0",
"main": "index.js",
"bin": {
"syncthing-hooks": "index.js"

View file

@ -171,9 +171,9 @@ ms@2.1.3:
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
normalize-url@^4.1.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129"
integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==
version "4.5.1"
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a"
integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==
once@^1.3.1, once@^1.4.0:
version "1.4.0"