Comparing version 0.10.1 to 0.10.2
@@ -38,4 +38,2 @@ const os = require('os'); | ||
case 'darwin': | ||
return 'x86_64-apple-darwin'; | ||
// TODO: Waiting for GitHub actions to build on M1. | ||
return arch === 'arm64' ? 'aarch64-apple-darwin' : | ||
@@ -45,13 +43,13 @@ 'x86_64-apple-darwin'; | ||
return arch === 'x64' ? 'x86_64-pc-windows-msvc' : | ||
arch === 'arm' ? 'aarch64-pc-windows-msvc' : | ||
'i686-pc-windows-msvc'; | ||
arch === 'arm' ? 'UNSUPPORTED aarch64-pc-windows-msvc' : | ||
'UNSUPPORTED i686-pc-windows-msvc'; | ||
case 'linux': | ||
return arch === 'x64' ? 'x86_64-unknown-linux-musl' : | ||
arch === 'arm' ? 'arm-unknown-linux-gnueabihf' : | ||
arch === 'armv7l' ? 'arm-unknown-linux-gnueabihf' : | ||
arch === 'arm64' ? await isMusl() ? 'aarch64-unknown-linux-musl' : 'aarch64-unknown-linux-gnu' : | ||
arch === 'ppc64' ? 'powerpc64le-unknown-linux-gnu' : | ||
arch === 's390x' ? 's390x-unknown-linux-gnu' : | ||
'i686-unknown-linux-musl' | ||
default: throw new Error('Unsupported platform: ' + os.platform()); | ||
arch === 'arm' ? 'UNSUPPORTED arm-unknown-linux-gnueabihf' : | ||
arch === 'armv7l' ? 'UNSUPPORTED arm-unknown-linux-gnueabihf' : | ||
arch === 'arm64' ? 'aarch64-unknown-linux-musl' : | ||
arch === 'ppc64' ? 'UNSUPPORTED powerpc64le-unknown-linux-gnu' : | ||
arch === 's390x' ? 'UNSUPPORTED s390x-unknown-linux-gnu' : | ||
'UNSUPPORTED i686-unknown-linux-musl' | ||
default: return `UNSUPPORTED ${os.platform()}` | ||
} | ||
@@ -72,2 +70,5 @@ } | ||
}; | ||
if (opts.target.startsWith("UNSUPPORTED")) { | ||
throw new Error('Unsupported platform: ' + os.platform()); | ||
} | ||
try { | ||
@@ -74,0 +75,0 @@ await download(opts); |
{ | ||
"name": "pagefind", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "Implement search on any static website.", | ||
@@ -5,0 +5,0 @@ "bin": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17829
17
370