@flowscripter/template-bun-rust-library 1.1.3 → 1.1.5

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/Cargo.lock CHANGED
@@ -4,7 +4,7 @@ version = 4
4
4
 
5
5
  [[package]]
6
6
  name = "flowscripter_template_bun_rust_library"
7
- version = "1.1.3"
7
+ version = "1.1.5"
8
8
  dependencies = [
9
9
  "flowscripter_template_rust_library",
10
10
  ]
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "flowscripter_template_bun_rust_library"
3
- version = "1.1.3"
3
+ version = "1.1.5"
4
4
  edition = "2021"
5
5
  description = "Project template for a Rust library with Bun FFI bindings."
6
6
  homepage = "https://github.com/flowscripter"
package/README.md CHANGED
@@ -51,7 +51,7 @@ Lint:
51
51
 
52
52
  Generate HTML API Documentation:
53
53
 
54
- `bunx typedoc --readme none index.ts`
54
+ `bunx typedoc index.ts`
55
55
 
56
56
  ## Documentation
57
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowscripter/template-bun-rust-library",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Project template for a Rust library with Bun FFI bindings",
5
5
  "keywords": [
6
6
  "bun",
@@ -29,5 +29,11 @@
29
29
  "peerDependencies": {
30
30
  "typescript": "^6.0.3"
31
31
  },
32
- "ffiLibBaseUri": "https://github.com/flowscripter/template-bun-rust-library/releases/download/v1.1.3"
32
+ "ffiLibBaseUri": "https://github.com/flowscripter/template-bun-rust-library/releases/download/v1.1.5",
33
+ "typedocOptions": {
34
+ "readme": "none",
35
+ "exclude": [
36
+ "tests/**"
37
+ ]
38
+ }
33
39
  }
package/src/lib-path.ts CHANGED
@@ -41,7 +41,10 @@ export async function getLibPath(libName: string) {
41
41
  console.debug(`packageJson.ffiLibBaseUri: ${packageJson.ffiLibBaseUri}`);
42
42
 
43
43
  // look in release download location
44
- const remotePath = path.join(packageJson.ffiLibBaseUri, fullLibName);
44
+ const base = packageJson.ffiLibBaseUri.endsWith("/")
45
+ ? packageJson.ffiLibBaseUri
46
+ : packageJson.ffiLibBaseUri + "/";
47
+ const remotePath = new URL(fullLibName, base).href;
45
48
 
46
49
  console.debug(`remotePath: ${remotePath}`);
47
50