kibi-swipl 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +9 -5
package/index.js CHANGED
@@ -82,7 +82,9 @@ export function locatePlatformPackage(
82
82
  }
83
83
 
84
84
  function safeRelativePath(value) {
85
- if (typeof value !== "string" || value.length === 0) return false;
85
+ // An empty string needs no own check: it normalizes to ".", which differs
86
+ // from the value and is rejected below.
87
+ if (typeof value !== "string") return false;
86
88
  if (value.includes("\\") || value.includes("\0")) return false;
87
89
  if (path.posix.isAbsolute(value)) return false;
88
90
  const normalized = path.posix.normalize(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kibi-swipl",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Locates the bundled SWI-Prolog runtime that Kibi uses on this platform",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -21,11 +21,15 @@
21
21
  },
22
22
  "license": "AGPL-3.0-or-later",
23
23
  "author": "Piotr Franczyk",
24
+ "homepage": "https://looted.github.io/kibi/",
24
25
  "repository": {
25
26
  "type": "git",
26
27
  "url": "https://github.com/Looted/kibi.git",
27
28
  "directory": "packages/swipl"
28
29
  },
30
+ "bugs": {
31
+ "url": "https://github.com/Looted/kibi/issues"
32
+ },
29
33
  "publishConfig": {
30
34
  "access": "public"
31
35
  },
@@ -33,9 +37,9 @@
33
37
  "swiplVersion": "10.0.2"
34
38
  },
35
39
  "optionalDependencies": {
36
- "kibi-swipl-linux-x64-gnu": "1.0.0",
37
- "kibi-swipl-linux-arm64-gnu": "1.0.0",
38
- "kibi-swipl-darwin-arm64": "1.0.0",
39
- "kibi-swipl-darwin-x64": "1.0.0"
40
+ "kibi-swipl-linux-x64-gnu": "1.0.2",
41
+ "kibi-swipl-linux-arm64-gnu": "1.0.2",
42
+ "kibi-swipl-darwin-arm64": "1.0.2",
43
+ "kibi-swipl-darwin-x64": "1.0.2"
40
44
  }
41
45
  }