Ruben Taelman
5126356c94
feat: Move runtime config into dedicated component, Closes #67
...
* Move runtime config into dedicated component, Closes #67
* Migrate FileResourceStore to RuntimeConfig
2020-08-26 10:25:47 +02:00
Joachim Van Herwegen
4f8ebff7f7
fix: Give SimpleResourceStore root a content-type
2020-08-26 09:01:31 +02:00
Joachim Van Herwegen
4bc1dcdd1b
fix: Remove duplicate checks
...
These were added when setting TypeScript settings to strict,
but should not be needed due to how AsyncHandlers should be used.
2020-08-25 15:12:01 +02:00
Joachim Van Herwegen
bca4d06c9a
fix: Remove unused interfaces
2020-08-25 15:12:01 +02:00
Ruben Taelman
5649903226
fix: Move ACL init into dedicated Setup component
2020-08-25 11:11:29 +02:00
smessie
aa510bc6b8
fix: Release lock only when stream ends or is abandoned ( #60 )
...
* fix: Release lock only when stream has ended reading or an error occurs
* refactor: Refactor code and tests
* refactor: Move function mock to onBefore and remove unnecessary data drain
* fix: Make functions protected, add extra listener and add extra tests
* fix: Add extra TSDoc comment
* fix: Adjust tests to expect both end and close event
* refactor: Move test to other file
* refactor: make lockedRun method-independent
* fix: ensure lock release happens only once
* fix: make locked resources time out
* fix: destroy readable on error
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
2020-08-20 10:51:19 +02:00
Joachim Van Herwegen
b489d69bad
fix: Use posix path library to be OS independent
2020-08-18 14:34:32 +02:00
smessie
381dae42f6
feat: Add file based ResourceStore ( #52 )
...
* feat: Add file resource store
* test: Write some tests for FileResourceStore
* fix: Reformat code and fix various small things from reviews
* fix: Change constants to just be the corresponding URL
* fix: Remove extra unnecessary wrap in a Promise
* fix: Write some more tests and fix related bugs
* fix: Use old way to import fs promises to support older Node versions
* refactor: Refactor code and tests
* refactor: Refactor and better document code
* fix: Change comparison with undefined by typeof check
* fix: Invert typeof check
2020-08-18 14:19:25 +02:00
Joachim Van Herwegen
e06d0bc8c5
feat: Add more extensive permission parsing support
2020-08-18 11:21:48 +02:00
Joachim Van Herwegen
769b49293c
feat: Integrate acl with rest of server
2020-08-18 10:32:07 +02:00
Joachim Van Herwegen
0545ca121e
feat: Add acl support
2020-08-18 10:32:07 +02:00
Joachim Van Herwegen
011822e859
fix: Make SimpleResourceStore behaviour closer to expected
2020-08-18 10:32:07 +02:00
Joachim Van Herwegen
4403421c49
feat: Integrate data conversion with rest of server
2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
5e1bb10f81
feat: Convert data from ResourceStore based on preferences
2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
d6a35f9954
fix: Make Patch more consistent with other Representations
2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
14db5fed91
feat: Specifiy constants in separate file
2020-07-28 12:00:17 +02:00
Joachim Van Herwegen
aaba113563
fix: Set max-len to 120
2020-07-24 15:10:34 +02:00
Joachim Van Herwegen
dcff424f58
fix: Enable strict TypeScript settings
2020-07-24 13:30:34 +02:00
Joachim Van Herwegen
4001050588
fix: Have SimpleResourceStore return text/turtle by default
2020-07-23 11:17:53 +02:00
Joachim Van Herwegen
b93a77c11b
fix: Use content-type text/plain for errors
2020-07-23 11:17:53 +02:00
Joachim Van Herwegen
0e486cf6a6
feat: Integrate PATCH functionality
2020-07-23 10:55:53 +02:00
Joachim Van Herwegen
04a12c723e
feat: Add support for SPARQL updates on ResourceStores
2020-07-23 10:55:53 +02:00
Joachim Van Herwegen
482991cb9a
feat: Add OperationHandler for PATCH
2020-07-23 10:55:53 +02:00
Joachim Van Herwegen
95c65c86a7
feat: Add BodyParser for SPARQL updates
2020-07-23 10:55:53 +02:00
Joachim Van Herwegen
4ac9e92d06
fix: Remove all instances of return undefined
...
Resolves #26
2020-07-23 08:52:44 +02:00
Ruben Verborgh
ad99e1fcea
Merge pull request #30 from solid/setup-steps-readme
...
#29 Setup steps in readme
2020-07-20 12:32:53 +02:00
Joep Meindertsma
17c185a35b
docs: Add setup steps to README
2020-07-20 12:32:10 +02:00
Joachim Van Herwegen
a9b811a5a3
feature: Add lock functionality
2020-07-17 15:26:32 +02:00
dependabot[bot]
17e6f10efe
build(deps): bump lodash from 4.17.15 to 4.17.19
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-07-17 14:22:11 +02:00
Joachim Van Herwegen
6c32ad24fd
fix: Add .npmignore file to block .gitignore
2020-07-17 14:13:39 +02:00
Joachim Van Herwegen
a4dc00141c
feat: Add prepare script
...
Resolved #25
2020-07-17 14:11:06 +02:00
Joachim Van Herwegen
ccd3f1738c
fix: Prevent server from crashing if requested data can't be handled
2020-07-17 11:41:46 +02:00
Joachim Van Herwegen
ea788ba406
fix: Throw correct error for invalid triple data
2020-07-17 11:41:46 +02:00
Joachim Van Herwegen
a9dc59bf78
feat: Set up server using express
2020-07-15 10:59:45 +02:00
Joachim Van Herwegen
c53ab5ed9b
fix: Prevent data from being drained when read
...
Comments were also added and URI generation takes slash into account
2020-07-15 10:59:45 +02:00
Joachim Van Herwegen
cff9790b6e
fix: Take host into account when extracting identifier
2020-07-15 10:59:45 +02:00
Joachim Van Herwegen
792323797d
feat: Add coveralls support
2020-07-08 14:17:12 +02:00
Joachim Van Herwegen
a4128a04cc
fix: Update package name
2020-07-08 13:58:23 +02:00
Joachim Van Herwegen
64a3f90831
feat: Validate Accept* headers while parsing
2020-07-08 11:20:28 +02:00
Joachim Van Herwegen
9d9f7df5d1
feat: Fully support Accept* headers
2020-07-08 11:20:28 +02:00
Joachim Van Herwegen
fe11f4b1ce
fix: add documentation for many classes where it was missing
2020-07-02 10:15:01 +02:00
Joachim Van Herwegen
39853b0bd0
fix: update N3 typings
2020-06-25 08:56:37 +02:00
Joachim Van Herwegen
618005675f
feat: add simple response writer
2020-06-24 14:08:56 +02:00
Joachim Van Herwegen
fe8749390c
feat: add simple operation handlers
2020-06-24 14:08:56 +02:00
Joachim Van Herwegen
12fd00e3b8
feat: add simple resource store
2020-06-24 14:08:56 +02:00
Joachim Van Herwegen
d983fca8f5
feat: add simple permissions related handlers
2020-06-24 14:08:56 +02:00
Joachim Van Herwegen
e0343fca54
feat: add response description interface
2020-06-24 14:08:56 +02:00
Joachim Van Herwegen
cf258d0317
feat: add simple request parser
2020-06-17 10:10:32 +02:00
Joachim Van Herwegen
09eb665c12
feat: add simple preference parser
2020-06-17 10:10:32 +02:00
Joachim Van Herwegen
3c8a087615
feat: add simple target extractor
2020-06-17 10:10:32 +02:00