oxc-resolver
Advanced tools
Comparing version 1.8.1 to 1.8.2
/* auto-generated by NAPI-RS */ | ||
/* eslint-disable */ | ||
export class ResolverFactory { | ||
@@ -12,2 +11,3 @@ constructor(options: NapiResolveOptions) | ||
sync(path: string, request: string): ResolveResult | ||
async(path: string, request: string): Promise<ResolveResult> | ||
} | ||
@@ -85,2 +85,11 @@ | ||
/** | ||
* Fields from `package.json` which are used to provide the internal requests of a package | ||
* (requests starting with # are considered internal). | ||
* | ||
* Can be a path to a JSON object such as `["path", "to", "imports"]`. | ||
* | ||
* Default `[["imports"]]`. | ||
*/ | ||
importsFields?: (string | string[])[] | ||
/** | ||
* An object which maps extension to extension aliases. | ||
@@ -87,0 +96,0 @@ * |
26
index.js
@@ -249,3 +249,16 @@ // prettier-ignore | ||
} else if (process.arch === 'arm') { | ||
if (isMusl()) { | ||
try { | ||
return require('./resolver.linux-arm-musleabihf.node') | ||
} catch (e) { | ||
loadErrors.push(e) | ||
} | ||
try { | ||
return require('@oxc-resolver/binding-linux-arm-musleabihf') | ||
} catch (e) { | ||
loadErrors.push(e) | ||
} | ||
} else { | ||
try { | ||
return require('./resolver.linux-arm-gnueabihf.node') | ||
@@ -261,2 +274,3 @@ } catch (e) { | ||
} | ||
} else if (process.arch === 'riscv64') { | ||
@@ -288,2 +302,14 @@ if (isMusl()) { | ||
} | ||
} else if (process.arch === 'ppc64') { | ||
try { | ||
return require('./resolver.linux-ppc64-gnu.node') | ||
} catch (e) { | ||
loadErrors.push(e) | ||
} | ||
try { | ||
return require('@oxc-resolver/binding-linux-ppc64-gnu') | ||
} catch (e) { | ||
loadErrors.push(e) | ||
} | ||
} else if (process.arch === 's390x') { | ||
@@ -290,0 +316,0 @@ try { |
{ | ||
"name": "oxc-resolver", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "Oxc Resolver Node API", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
"license": "MIT", | ||
"homepage": "https://oxc-project.github.io", | ||
"homepage": "https://oxc.rs", | ||
"repository": { | ||
@@ -43,13 +43,13 @@ "type": "git", | ||
"optionalDependencies": { | ||
"@oxc-resolver/binding-win32-x64-msvc": "1.8.1", | ||
"@oxc-resolver/binding-win32-arm64-msvc": "1.8.1", | ||
"@oxc-resolver/binding-linux-x64-gnu": "1.8.1", | ||
"@oxc-resolver/binding-linux-x64-musl": "1.8.1", | ||
"@oxc-resolver/binding-linux-arm64-gnu": "1.8.1", | ||
"@oxc-resolver/binding-linux-arm64-musl": "1.8.1", | ||
"@oxc-resolver/binding-linux-arm-gnueabihf": "1.8.1", | ||
"@oxc-resolver/binding-darwin-x64": "1.8.1", | ||
"@oxc-resolver/binding-darwin-arm64": "1.8.1", | ||
"@oxc-resolver/binding-wasm32-wasi": "1.8.1" | ||
"@oxc-resolver/binding-win32-x64-msvc": "1.8.2", | ||
"@oxc-resolver/binding-win32-arm64-msvc": "1.8.2", | ||
"@oxc-resolver/binding-linux-x64-gnu": "1.8.2", | ||
"@oxc-resolver/binding-linux-x64-musl": "1.8.2", | ||
"@oxc-resolver/binding-linux-arm64-gnu": "1.8.2", | ||
"@oxc-resolver/binding-linux-arm64-musl": "1.8.2", | ||
"@oxc-resolver/binding-linux-arm-gnueabihf": "1.8.2", | ||
"@oxc-resolver/binding-darwin-x64": "1.8.2", | ||
"@oxc-resolver/binding-darwin-arm64": "1.8.2", | ||
"@oxc-resolver/binding-wasm32-wasi": "1.8.2" | ||
} | ||
} |
@@ -1,5 +0,8 @@ | ||
# The JavaScript Oxidation Compiler | ||
# Oxc Resolver Napi Binding | ||
See index.d.ts for `resolveSync` and `ResolverFactory` API. | ||
See | ||
* index.d.ts for `resolveSync` and `ResolverFactory` API. | ||
* [README.md](https://github.com/oxc-project/oxc-resolver?tab=readme-ov-file#oxc-resolver) for options. | ||
## ESM | ||
@@ -6,0 +9,0 @@ |
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
18581
551
22