@lde/dataset-registry-client 0.3.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,3 @@
1
1
  # Dataset registry Client
2
2
 
3
3
  A client for registries that contain [DCAT-AP 3.0](https://semiceu.github.io/DCAT-AP/releases/3.0.0/) dataset descriptions.
4
-
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,cAAc,CAAC;AAIrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,qBAAa,MAAM;IAEf,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,cAAc,EAAE,GAAG,EACnB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAgB;IAGlC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACpD,KAAK,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;CAuElE"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,cAAc,CAAC;AAIrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,qBAAa,MAAM;IAEf,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,cAAc,EAAE,GAAG,EACnB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAgB;IAGlC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACpD,KAAK,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;CAoElE"}
package/dist/client.js CHANGED
@@ -26,10 +26,7 @@ export class Client {
26
26
  }
27
27
  else {
28
28
  // With search criteria the results are paginated.
29
- // Work around https://github.com/karelklima/ldkit/issues/146 to calculate
30
- // the total number of items.
31
- results = await datasets.find({ ...args, take: 10_000 });
32
- total = results.length;
29
+ total = await datasets.count({ ...args });
33
30
  pageSize = 1000;
34
31
  }
35
32
  return new Paginator(async (offset, limit) => {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './client.js';
2
2
  export * from './dcat.js';
3
3
  export * from './paginator.js';
4
+ export * from './schema.js';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './client.js';
2
2
  export * from './dcat.js';
3
3
  export * from './paginator.js';
4
+ export * from './schema.js';
package/package.json CHANGED
@@ -1,26 +1,29 @@
1
1
  {
2
2
  "name": "@lde/dataset-registry-client",
3
- "version": "0.3.0",
3
+ "version": "0.4.2",
4
+ "repository": {
5
+ "url": "https://github.com/ldengine/lde"
6
+ },
4
7
  "type": "module",
5
- "main": "./dist/index.js",
6
- "module": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
8
  "exports": {
9
9
  "./package.json": "./package.json",
10
10
  ".": {
11
- "development": "./src/index.ts",
12
11
  "types": "./dist/index.d.ts",
13
12
  "import": "./dist/index.js",
13
+ "development": "./src/index.ts",
14
14
  "default": "./dist/index.js"
15
15
  }
16
16
  },
17
+ "main": "./dist/index.js",
18
+ "module": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
17
20
  "files": [
18
21
  "dist",
19
22
  "!**/*.tsbuildinfo"
20
23
  ],
21
24
  "dependencies": {
22
- "@lde/dataset": "0.3.0",
23
- "ldkit": "^2.5.0",
25
+ "@lde/dataset": "0.4.1",
26
+ "ldkit": "^2.5.1",
24
27
  "n3": "^1.26.0",
25
28
  "sparqljs": "^3.7.3",
26
29
  "tslib": "^2.3.0"