@lindas/trifid-plugin-ckan 5.0.3 → 7.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lindas/trifid-plugin-ckan",
3
- "version": "5.0.3",
3
+ "version": "7.0.1",
4
4
  "description": "Endpoint for opendata.swiss CKAN harvester",
5
5
  "main": "src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -38,17 +38,16 @@
38
38
  "ckan"
39
39
  ],
40
40
  "dependencies": {
41
- "@lindas/clownface": "^2.0.4",
42
- "@lindas/env": "^3.0.1",
43
- "@lindas/prefixes": "^2.4.0",
44
- "@lindas/trifid-core": "^6.1.0",
45
41
  "@tpluscode/rdf-string": "^1.3.3",
42
+ "@zazuko/env": "^3.0.1",
43
+ "@zazuko/prefixes": "^2.4.0",
46
44
  "is-graph-pointer": "^2.2.0",
47
45
  "sparql-http-client": "^3.0.1",
48
- "xmlbuilder2": "^4.0.3"
46
+ "xmlbuilder2": "^3.1.1"
49
47
  },
50
48
  "devDependencies": {
51
- "@lindas/trifid-handler-fetch": "^4.0.1",
49
+ "@lindas/trifid-core": "^7.0.0",
50
+ "@lindas/trifid-handler-fetch": "^7.0.0",
52
51
  "@types/node": "^24.7.0",
53
52
  "c8": "^10.1.3",
54
53
  "chai": "^6.2.0",
@@ -59,6 +58,7 @@
59
58
  "xml2js-xpath": "^0.13.0"
60
59
  },
61
60
  "publishConfig": {
62
- "access": "public"
61
+ "access": "public",
62
+ "provenance": false
63
63
  }
64
64
  }
package/src/ckan.js CHANGED
@@ -1,7 +1,6 @@
1
1
  // @ts-check
2
2
 
3
3
  import ParsingClient from 'sparql-http-client/ParsingClient.js'
4
- import { nodeCompatibleFetch } from '@lindas/trifid-core'
5
4
  import { toXML } from './xml.js'
6
5
  import { datasetsQuery } from './query.js'
7
6
 
@@ -31,9 +30,6 @@ export const createAPI = (config) => {
31
30
  endpointUrl: config.endpointUrl,
32
31
  user: config.user,
33
32
  password: config.password,
34
- // Use native fetch wrapper for proper brotli/gzip decompression support
35
- // (node-fetch has brotli bugs that cause "Decompression failed" errors)
36
- fetch: nodeCompatibleFetch,
37
33
  })
38
34
 
39
35
  /**
package/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
2
 
3
- import rdf from '@lindas/env'
3
+ import rdf from '@zazuko/env'
4
4
  import { createAPI } from './ckan.js'
5
5
 
6
6
  /** @type {import('../../core/types/index.js').TrifidPlugin} */
package/src/query.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @ts-check
2
2
 
3
3
  import { sparql } from '@tpluscode/rdf-string'
4
- import rdf from '@lindas/env'
4
+ import rdf from '@zazuko/env'
5
5
 
6
6
  /**
7
7
  * Query to retrieve all datasets for a given organization.
package/src/xml.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @ts-check
2
2
 
3
- import rdf from '@lindas/env'
4
- import prefixes, { shrink } from '@lindas/prefixes'
3
+ import rdf from '@zazuko/env'
4
+ import prefixes, { shrink } from '@zazuko/prefixes'
5
5
  import { create as createXml } from 'xmlbuilder2'
6
6
  import { isBlankNode, isLiteral, isNamedNode } from 'is-graph-pointer'
7
7
 
@@ -174,7 +174,7 @@ const toXML = (dataset) => {
174
174
  /**
175
175
  * Serialize a term.
176
176
  *
177
- * @param {import('@lindas/clownface').MultiPointer | Array<import('@lindas/clownface').GraphPointer>} pointer Pointer to serialize.
177
+ * @param {import('clownface').MultiPointer | Array<import('clownface').GraphPointer>} pointer Pointer to serialize.
178
178
  * @param {object} [options]
179
179
  * @param {import('@rdfjs/types').NamedNode[]} [options.properties]
180
180
  */
@@ -187,7 +187,7 @@ const serializeTerm = (pointer, { properties = [] } = {}) => {
187
187
  /**
188
188
  * Serialize a literal.
189
189
  *
190
- * @param {import('@lindas/clownface').MultiPointer} pointer Pointer to serialize.
190
+ * @param {import('clownface').MultiPointer} pointer Pointer to serialize.
191
191
  * @return {Record<string, unknown>} Serialized literal.
192
192
  */
193
193
  const serializeLiteral = (pointer) => {
@@ -213,7 +213,7 @@ const serializeLiteral = (pointer) => {
213
213
  /**
214
214
  * Serialize a named node.
215
215
  *
216
- * @param {import('@lindas/clownface').MultiPointer} pointer Pointer to serialize.
216
+ * @param {import('clownface').MultiPointer} pointer Pointer to serialize.
217
217
  * @param {import('@rdfjs/types').NamedNode[]} [properties]
218
218
  * @return {Record<string, unknown>} Serialized named node.
219
219
  */
@@ -242,7 +242,7 @@ const serializeNamedNode = (pointer, properties = []) => {
242
242
  /**
243
243
  * Serialize a blank node.
244
244
  *
245
- * @param {import('@lindas/clownface').MultiPointer} pointer Pointer to serialize.
245
+ * @param {import('clownface').MultiPointer} pointer Pointer to serialize.
246
246
  * @param {Array<import('@rdfjs/types').NamedNode>} [allowedTypesArr] Allowed types for the blank node.
247
247
  * @return {Record<string, unknown>} Serialized blank node.
248
248
  */
@@ -272,7 +272,7 @@ function serializeProperties (pointer) {
272
272
  /**
273
273
  * Convert encoding format to distribution format.
274
274
  *
275
- * @param {import('@lindas/clownface').MultiPointer} encodingPointer Pointer to encoding format.
275
+ * @param {import('clownface').MultiPointer} encodingPointer Pointer to encoding format.
276
276
  * @return {string} Distribution format.
277
277
  */
278
278
  const distributionFormatFromEncoding = (encodingPointer) => {