@parcel/rust
Advanced tools
Comparing version 2.11.1-nightly.3114 to 2.11.1-nightly.3119
@@ -6,2 +6,6 @@ /* tslint:disable */ | ||
export interface JsMacroError { | ||
kind: number | ||
message: string | ||
} | ||
export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null | ||
@@ -62,6 +66,2 @@ export function findFirstFile(names: Array<string>): string | null | ||
export function transform(opts: object): unknown | ||
export interface JsMacroError { | ||
kind: number | ||
message: string | ||
} | ||
export function transformAsync(opts: object): object | ||
@@ -68,0 +68,0 @@ export class Hash { |
43
index.js
@@ -240,2 +240,45 @@ /* tslint:disable */ | ||
break | ||
case 'riscv64': | ||
if (isMusl()) { | ||
localFileExisted = existsSync( | ||
join(__dirname, 'parcel-node-bindings.linux-riscv64-musl.node') | ||
) | ||
try { | ||
if (localFileExisted) { | ||
nativeBinding = require('./parcel-node-bindings.linux-riscv64-musl.node') | ||
} else { | ||
nativeBinding = require('@parcel/rust-linux-riscv64-musl') | ||
} | ||
} catch (e) { | ||
loadError = e | ||
} | ||
} else { | ||
localFileExisted = existsSync( | ||
join(__dirname, 'parcel-node-bindings.linux-riscv64-gnu.node') | ||
) | ||
try { | ||
if (localFileExisted) { | ||
nativeBinding = require('./parcel-node-bindings.linux-riscv64-gnu.node') | ||
} else { | ||
nativeBinding = require('@parcel/rust-linux-riscv64-gnu') | ||
} | ||
} catch (e) { | ||
loadError = e | ||
} | ||
} | ||
break | ||
case 's390x': | ||
localFileExisted = existsSync( | ||
join(__dirname, 'parcel-node-bindings.linux-s390x-gnu.node') | ||
) | ||
try { | ||
if (localFileExisted) { | ||
nativeBinding = require('./parcel-node-bindings.linux-s390x-gnu.node') | ||
} else { | ||
nativeBinding = require('@parcel/rust-linux-s390x-gnu') | ||
} | ||
} catch (e) { | ||
loadError = e | ||
} | ||
break | ||
default: | ||
@@ -242,0 +285,0 @@ throw new Error(`Unsupported architecture on Linux: ${arch}`) |
{ | ||
"name": "@parcel/rust", | ||
"version": "2.11.1-nightly.3114+fdf495ba3", | ||
"version": "2.11.1-nightly.3119+891d105a0", | ||
"license": "MIT", | ||
@@ -42,3 +42,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "fdf495ba3c8ed727d10e87cc9697bc9ef5ec997a" | ||
"gitHead": "891d105a02bc231a78f063d10e435ea094b1fc07" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
200022284
425