@matdata/yasr 6.1.0 → 6.1.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/build/ts/src/plugins/response/index.js +0 -2
- package/build/ts/src/plugins/response/index.js.map +1 -1
- package/build/yasr.cjs +95 -0
- package/build/yasr.cjs.map +7 -0
- package/build/yasr.min.css.map +1 -1
- package/build/yasr.min.js +17 -17
- package/build/yasr.min.js.map +2 -2
- package/build/yasr.mjs +95 -0
- package/build/yasr.mjs.map +7 -0
- package/package.json +17 -3
- package/src/plugins/response/index.ts +0 -1
package/package.json
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matdata/yasr",
|
|
3
3
|
"description": "MatGUI results viewer: a modern SPARQL result set viewer (formerly Yasgui/YASR).",
|
|
4
|
-
"version": "6.1.
|
|
5
|
-
"main": "build/yasr.
|
|
4
|
+
"version": "6.1.1",
|
|
5
|
+
"main": "build/yasr.cjs",
|
|
6
|
+
"module": "build/yasr.mjs",
|
|
7
|
+
"unpkg": "build/yasr.min.js",
|
|
8
|
+
"jsdelivr": "build/yasr.min.js",
|
|
6
9
|
"types": "build/ts/src/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./build/ts/src/index.d.ts",
|
|
13
|
+
"import": "./build/yasr.mjs",
|
|
14
|
+
"require": "./build/yasr.cjs",
|
|
15
|
+
"default": "./build/yasr.mjs"
|
|
16
|
+
},
|
|
17
|
+
"./build/yasr.min.css": "./build/yasr.min.css",
|
|
18
|
+
"./build/*": "./build/*",
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
|
+
},
|
|
7
21
|
"license": "MIT",
|
|
8
22
|
"author": "Triply <info@triply.cc>",
|
|
9
23
|
"homepage": "https://github.com/Matdata-eu/Yasgui",
|
|
10
24
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
25
|
+
"node": ">= 12"
|
|
12
26
|
},
|
|
13
27
|
"keywords": [
|
|
14
28
|
"JavaScript",
|
|
@@ -117,7 +117,6 @@ export default class Response implements Plugin<PluginConfig> {
|
|
|
117
117
|
if (type === "json") return json();
|
|
118
118
|
if (type === "xml") return xml();
|
|
119
119
|
if (type === "ttl") return turtle();
|
|
120
|
-
if (type === "n-triples") return turtle();
|
|
121
120
|
const contentType = this.yasr.results?.getContentType() || "";
|
|
122
121
|
if (contentType.indexOf("json") >= 0) return json();
|
|
123
122
|
if (contentType.indexOf("xml") >= 0 || contentType.indexOf("html") >= 0) return xml();
|