Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
- run: deno fmt --check
- run: deno lint

tests:
name: ${{ matrix.kind }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -20,5 +20,5 @@ jobs:
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- run: deno test --import-map test_import_map.json -A --doc
- uses: denoland/setup-deno@v2
- run: deno test --import-map test_import_map.json -A
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
- run: deno publish
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2024 the denosaurs team
Copyright (c) 2020-2025 the denosaurs team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ Pull request, issues and feedback are very welcome. Code style is formatted with

### Licence

Copyright 2020-2024, the denosaurs team. All rights reserved. MIT license.
Copyright 2020-2025, the denosaurs team. All rights reserved. MIT license.
10 changes: 5 additions & 5 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@denosaurs/plug",
"version": "1.0.6",
"version": "1.1.0",
"exports": {
".": "./mod.ts",
"./types": "./types.ts",
"./download": "./download.ts",
"./util": "./util.ts"
},
"imports": {
"@std/encoding/hex": "jsr:@std/encoding@^0.221.0/hex",
"@std/fmt/colors": "jsr:@std/fmt@^0.221.0/colors",
"@std/fs": "jsr:@std/fs@^0.221.0",
"@std/path": "jsr:@std/path@^0.221.0"
"@std/encoding/hex": "jsr:@std/encoding@^1/hex",
"@std/fmt/colors": "jsr:@std/fmt@^1/colors",
"@std/fs": "jsr:@std/fs@^1",
"@std/path": "jsr:@std/path@^1"
},
"lock": false
}
5 changes: 1 addition & 4 deletions download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ import {
*
* This should match the {@link Deno.build.arch} type.
*/
export const ALL_ARCHS: (typeof Deno.build.arch)[] = [
"x86_64",
"aarch64",
];
export const ALL_ARCHS: (typeof Deno.build.arch)[] = ["x86_64", "aarch64"];

/**
* A list of all possible system operating systems.
Expand Down
10 changes: 5 additions & 5 deletions test_import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"@denosaurs/plug/types": "./types.ts",
"@denosaurs/plug/download": "./download.ts",
"@denosaurs/plug/util": "./util.ts",
"@std/assert": "jsr:@std/assert@^0.221.0",
"@std/encoding/hex": "jsr:@std/encoding@^0.221.0/hex",
"@std/fmt/colors": "jsr:@std/fmt@^0.221.0/colors",
"@std/fs": "jsr:@std/fs@^0.221.0",
"@std/path": "jsr:@std/path@^0.221.0"
"@std/assert": "jsr:@std/assert@^1",
"@std/encoding/hex": "jsr:@std/encoding@^1/hex",
"@std/fmt/colors": "jsr:@std/fmt@^1/colors",
"@std/fs": "jsr:@std/fs@^1",
"@std/path": "jsr:@std/path@^1"
}
}
7 changes: 4 additions & 3 deletions util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ function baseUrlToFilename(url: URL): string {
*/
export function stringToURL(url: string): URL {
// deno-fmt-ignore
return url.startsWith("file://")
|| url.startsWith("http://")
|| url.startsWith("https://")
return url.startsWith("file://") ||
url.startsWith("http://") ||
url.startsWith("https://")
? new URL(url)
: toFileUrl(resolve(url));
}
Expand Down Expand Up @@ -107,6 +107,7 @@ export function homeDir(): string | undefined {
case "aix":
case "solaris":
case "illumos":
case "android":
return Deno.env.get("HOME");
default:
throw Error("unreachable");
Expand Down