Skip to content

Commit

Permalink
Merge branch 'ddvlanck-main'
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperZutterman committed Oct 26, 2021
2 parents db38736 + f2c365b commit 59251fb
Show file tree
Hide file tree
Showing 17 changed files with 1,786 additions and 2,050 deletions.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inputs:
required: false
default: '[email protected]'
fragmentation_strategy:
description: 'Fragmentation strategy to use'
description: 'The fragmentation strategy to be applied on LDES members'
required: false
default: 'basic'
fragmentation_page_size:
Expand Down
2,916 changes: 1,406 additions & 1,510 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

162 changes: 97 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ldes-action",
"version": "1.2.1",
"version": "1.3.0",
"description": "",
"main": "lib/main.js",
"scripts": {
Expand Down Expand Up @@ -36,12 +36,9 @@
"@actions/exec": "^1.1.0",
"@rdfjs/data-model": "^1.3.3",
"@rdfjs/types": "^1.0.1",
"@treecg/actor-init-ldes-client": "2.4.1",
"@treecg/ldes-basic-bucketizer": "0.0.8-alpha.0",
"@treecg/ldes-subject-page-bucketizer": "0.0.4-alpha.0",
"@treecg/ldes-substring-bucketizer": "0.0.8-alpha.0",
"@treecg/ldes-types": "0.0.4-alpha.0",
"@treecg/types": "0.0.3",
"@treecg/actor-init-ldes-client": "^2.4.1",
"@treecg/bucketizers": "^1.0.2",
"@treecg/types": "0.0.12",
"date-fns": "^2.23.0",
"eslint": "^7.32.0",
"eslint-config-es": "^3.30.15",
Expand All @@ -51,7 +48,7 @@
"eslint-plugin-unused-imports": "^1.1.5",
"n3": "^1.11.1",
"rdf-data-factory": "^1.1.0",
"sanitize-filename": "^1.6.3"
"truncate-utf8-bytes": "^1.0.2"
},
"devDependencies": {
"@vercel/ncc": "^0.29.2",
Expand Down
5 changes: 2 additions & 3 deletions src/data-source-strategy/DatasourceContext.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Readable } from 'stream';
import type { IBucketizer } from '@treecg/ldes-types';
import type { Member } from '@treecg/types';
import type { Member, Bucketizer } from '@treecg/types';
import type { Config } from '../utils/Config';
import type Datasource from '../utils/interfaces/Datasource';

Expand All @@ -15,7 +14,7 @@ class DatasourceContext {
this.datasource = datasource;
}

public getData(config: Config, bucketizer: IBucketizer): Promise<Member[]> {
public getData(config: Config, bucketizer: Bucketizer): Promise<Member[]> {
return this.datasource.getData(config, bucketizer);
}

Expand Down
5 changes: 2 additions & 3 deletions src/data-source-strategy/LDESClientDatasource.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import type { Readable } from 'stream';
import { newEngine } from '@treecg/actor-init-ldes-client';
import type { IBucketizer } from '@treecg/ldes-types';
import type { Member } from '@treecg/types';
import type { Member, Bucketizer } from '@treecg/types';
import type { Config } from '../utils/Config';
import type Datasource from '../utils/interfaces/Datasource';

class LDESClientDatasource implements Datasource {
public async getData(
config: Config,
bucketizer: IBucketizer,
bucketizer: Bucketizer,
): Promise<Member[]> {
return new Promise<Member[]>((resolve, reject) => {
try {
Expand Down
Loading

0 comments on commit 59251fb

Please sign in to comment.