@napi-rs/triples
Advanced tools
Comparing version 1.1.0 to 2.0.0-alpha.0
394
index.js
@@ -1,1 +0,393 @@ | ||
module.exports.platformArchTriples={darwin:{arm64:[{platform:"darwin",arch:"arm64",abi:null,platformArchABI:"darwin-arm64",raw:"aarch64-apple-darwin"}],x64:[{platform:"darwin",arch:"x64",abi:null,platformArchABI:"darwin-x64",raw:"x86_64-apple-darwin"}]},ios:{arm64:[{platform:"ios",arch:"arm64",abi:null,platformArchABI:"ios-arm64",raw:"aarch64-apple-ios"}],x64:[{platform:"ios",arch:"x64",abi:null,platformArchABI:"ios-x64",raw:"x86_64-apple-ios"}]},android:{arm64:[{platform:"android",arch:"arm64",abi:null,platformArchABI:"android-arm64",raw:"aarch64-linux-android"}],arm:[{platform:"android",arch:"arm",abi:"eabi",platformArchABI:"android-arm-eabi",raw:"armv7-linux-androideabi"}],ia32:[{platform:"android",arch:"ia32",abi:null,platformArchABI:"android-ia32",raw:"i686-linux-android"}],x64:[{platform:"android",arch:"x64",abi:null,platformArchABI:"android-x64",raw:"x86_64-linux-android"}]},win32:{arm64:[{platform:"win32",arch:"arm64",abi:"msvc",platformArchABI:"win32-arm64-msvc",raw:"aarch64-pc-windows-msvc"}],ia32:[{platform:"win32",arch:"ia32",abi:"gnu",platformArchABI:"win32-ia32-gnu",raw:"i686-pc-windows-gnu"},{platform:"win32",arch:"ia32",abi:"msvc",platformArchABI:"win32-ia32-msvc",raw:"i686-pc-windows-msvc"}],x64:[{platform:"win32",arch:"x64",abi:"gnu",platformArchABI:"win32-x64-gnu",raw:"x86_64-pc-windows-gnu"},{platform:"win32",arch:"x64",abi:"msvc",platformArchABI:"win32-x64-msvc",raw:"x86_64-pc-windows-msvc"}]},linux:{arm64:[{platform:"linux",arch:"arm64",abi:"gnu",platformArchABI:"linux-arm64-gnu",raw:"aarch64-unknown-linux-gnu"},{platform:"linux",arch:"arm64",abi:"musl",platformArchABI:"linux-arm64-musl",raw:"aarch64-unknown-linux-musl"}],arm:[{platform:"linux",arch:"arm",abi:"gnueabihf",platformArchABI:"linux-arm-gnueabihf",raw:"arm-unknown-linux-gnueabihf"},{platform:"linux",arch:"arm",abi:"musleabihf",platformArchABI:"linux-arm-musleabihf",raw:"arm-unknown-linux-musleabihf"},{platform:"linux",arch:"arm",abi:"gnueabihf",platformArchABI:"linux-arm-gnueabihf",raw:"armv7-unknown-linux-gnueabihf"},{platform:"linux",arch:"arm",abi:"musleabihf",platformArchABI:"linux-arm-musleabihf",raw:"armv7-unknown-linux-musleabihf"}],ia32:[{platform:"linux",arch:"ia32",abi:"gnu",platformArchABI:"linux-ia32-gnu",raw:"i686-unknown-linux-gnu"},{platform:"linux",arch:"ia32",abi:"musl",platformArchABI:"linux-ia32-musl",raw:"i686-unknown-linux-musl"}],mips:[{platform:"linux",arch:"mips",abi:"gnu",platformArchABI:"linux-mips-gnu",raw:"mips-unknown-linux-gnu"},{platform:"linux",arch:"mips",abi:"musl",platformArchABI:"linux-mips-musl",raw:"mips-unknown-linux-musl"}],mips64:[{platform:"linux",arch:"mips64",abi:"gnuabi64",platformArchABI:"linux-mips64-gnuabi64",raw:"mips64-unknown-linux-gnuabi64"},{platform:"linux",arch:"mips64",abi:"muslabi64",platformArchABI:"linux-mips64-muslabi64",raw:"mips64-unknown-linux-muslabi64"}],mips64el:[{platform:"linux",arch:"mips64el",abi:"gnuabi64",platformArchABI:"linux-mips64el-gnuabi64",raw:"mips64el-unknown-linux-gnuabi64"},{platform:"linux",arch:"mips64el",abi:"muslabi64",platformArchABI:"linux-mips64el-muslabi64",raw:"mips64el-unknown-linux-muslabi64"}],mipsel:[{platform:"linux",arch:"mipsel",abi:"gnu",platformArchABI:"linux-mipsel-gnu",raw:"mipsel-unknown-linux-gnu"},{platform:"linux",arch:"mipsel",abi:"musl",platformArchABI:"linux-mipsel-musl",raw:"mipsel-unknown-linux-musl"}],powerpc:[{platform:"linux",arch:"powerpc",abi:"gnu",platformArchABI:"linux-powerpc-gnu",raw:"powerpc-unknown-linux-gnu"}],powerpc64:[{platform:"linux",arch:"powerpc64",abi:"gnu",platformArchABI:"linux-powerpc64-gnu",raw:"powerpc64-unknown-linux-gnu"}],powerpc64le:[{platform:"linux",arch:"powerpc64le",abi:"gnu",platformArchABI:"linux-powerpc64le-gnu",raw:"powerpc64le-unknown-linux-gnu"}],riscv64gc:[{platform:"linux",arch:"riscv64gc",abi:"gnu",platformArchABI:"linux-riscv64gc-gnu",raw:"riscv64gc-unknown-linux-gnu"}],s390x:[{platform:"linux",arch:"s390x",abi:"gnu",platformArchABI:"linux-s390x-gnu",raw:"s390x-unknown-linux-gnu"}],sparc64:[{platform:"linux",arch:"sparc64",abi:"gnu",platformArchABI:"linux-sparc64-gnu",raw:"sparc64-unknown-linux-gnu"}],x64:[{platform:"linux",arch:"x64",abi:"gnu",platformArchABI:"linux-x64-gnu",raw:"x86_64-unknown-linux-gnu"},{platform:"linux",arch:"x64",abi:"gnux32",platformArchABI:"linux-x64-gnux32",raw:"x86_64-unknown-linux-gnux32"},{platform:"linux",arch:"x64",abi:"musl",platformArchABI:"linux-x64-musl",raw:"x86_64-unknown-linux-musl"}]},freebsd:{ia32:[{platform:"freebsd",arch:"ia32",abi:null,platformArchABI:"freebsd-ia32",raw:"i686-unknown-freebsd"}],x64:[{platform:"freebsd",arch:"x64",abi:null,platformArchABI:"freebsd-x64",raw:"x86_64-unknown-freebsd"}]}}; | ||
export const platformArchTriples = { | ||
"darwin": { | ||
"arm64": [ | ||
{ | ||
"triple": "aarch64-apple-darwin", | ||
"platformArchABI": "darwin-arm64", | ||
"platform": "darwin", | ||
"arch": "arm64", | ||
"abi": null | ||
} | ||
], | ||
"x64": [ | ||
{ | ||
"triple": "x86_64-apple-darwin", | ||
"platformArchABI": "darwin-x64", | ||
"platform": "darwin", | ||
"arch": "x64", | ||
"abi": null | ||
} | ||
] | ||
}, | ||
"ios": { | ||
"arm64": [ | ||
{ | ||
"triple": "aarch64-apple-ios", | ||
"platformArchABI": "ios-arm64", | ||
"platform": "ios", | ||
"arch": "arm64", | ||
"abi": null | ||
} | ||
], | ||
"x64": [ | ||
{ | ||
"triple": "x86_64-apple-ios", | ||
"platformArchABI": "ios-x64", | ||
"platform": "ios", | ||
"arch": "x64", | ||
"abi": null | ||
} | ||
] | ||
}, | ||
"android": { | ||
"arm64": [ | ||
{ | ||
"triple": "aarch64-linux-android", | ||
"platformArchABI": "android-arm64", | ||
"platform": "android", | ||
"arch": "arm64", | ||
"abi": null | ||
} | ||
], | ||
"arm": [ | ||
{ | ||
"triple": "armv7-linux-androideabi", | ||
"platformArchABI": "android-arm-eabi", | ||
"platform": "android", | ||
"arch": "arm", | ||
"abi": "eabi" | ||
} | ||
], | ||
"ia32": [ | ||
{ | ||
"triple": "i686-linux-android", | ||
"platformArchABI": "android-ia32", | ||
"platform": "android", | ||
"arch": "ia32", | ||
"abi": null | ||
} | ||
], | ||
"x64": [ | ||
{ | ||
"triple": "x86_64-linux-android", | ||
"platformArchABI": "android-x64", | ||
"platform": "android", | ||
"arch": "x64", | ||
"abi": null | ||
} | ||
] | ||
}, | ||
"win32": { | ||
"arm64": [ | ||
{ | ||
"triple": "aarch64-pc-windows-msvc", | ||
"platformArchABI": "win32-arm64-msvc", | ||
"platform": "win32", | ||
"arch": "arm64", | ||
"abi": "msvc" | ||
} | ||
], | ||
"ia32": [ | ||
{ | ||
"triple": "i686-pc-windows-gnu", | ||
"platformArchABI": "win32-ia32-gnu", | ||
"platform": "win32", | ||
"arch": "ia32", | ||
"abi": "gnu" | ||
}, | ||
{ | ||
"triple": "i686-pc-windows-msvc", | ||
"platformArchABI": "win32-ia32-msvc", | ||
"platform": "win32", | ||
"arch": "ia32", | ||
"abi": "msvc" | ||
} | ||
], | ||
"x64": [ | ||
{ | ||
"triple": "x86_64-pc-windows-gnu", | ||
"platformArchABI": "win32-x64-gnu", | ||
"platform": "win32", | ||
"arch": "x64", | ||
"abi": "gnu" | ||
}, | ||
{ | ||
"triple": "x86_64-pc-windows-msvc", | ||
"platformArchABI": "win32-x64-msvc", | ||
"platform": "win32", | ||
"arch": "x64", | ||
"abi": "msvc" | ||
} | ||
] | ||
}, | ||
"linux": { | ||
"arm64": [ | ||
{ | ||
"triple": "aarch64-unknown-linux-gnu", | ||
"platformArchABI": "linux-arm64-gnu", | ||
"platform": "linux", | ||
"arch": "arm64", | ||
"abi": "gnu" | ||
}, | ||
{ | ||
"triple": "aarch64-unknown-linux-musl", | ||
"platformArchABI": "linux-arm64-musl", | ||
"platform": "linux", | ||
"arch": "arm64", | ||
"abi": "musl" | ||
} | ||
], | ||
"arm": [ | ||
{ | ||
"triple": "arm-unknown-linux-gnueabi", | ||
"platformArchABI": "linux-arm-gnu", | ||
"platform": "linux", | ||
"arch": "arm", | ||
"abi": "gnu" | ||
}, | ||
{ | ||
"triple": "arm-unknown-linux-gnueabihf", | ||
"platformArchABI": "linux-arm-gnueabihf", | ||
"platform": "linux", | ||
"arch": "arm", | ||
"abi": "gnueabihf" | ||
}, | ||
{ | ||
"triple": "arm-unknown-linux-musleabi", | ||
"platformArchABI": "linux-arm-musl", | ||
"platform": "linux", | ||
"arch": "arm", | ||
"abi": "musl" | ||
}, | ||
{ | ||
"triple": "arm-unknown-linux-musleabihf", | ||
"platformArchABI": "linux-arm-musleabihf", | ||
"platform": "linux", | ||
"arch": "arm", | ||
"abi": "musleabihf" | ||
}, | ||
{ | ||
"triple": "armv7-unknown-linux-gnueabi", | ||
"platformArchABI": "linux-arm-gnu", | ||
"platform": "linux", | ||
"arch": "arm", | ||
"abi": "gnu" | ||
}, | ||
{ | ||
"triple": "armv7-unknown-linux-gnueabihf", | ||
"platformArchABI": "linux-arm-gnueabihf", | ||
"platform": "linux", | ||
"arch": "arm", | ||
"abi": "gnueabihf" | ||
}, | ||
{ | ||
"triple": "armv7-unknown-linux-musleabi", | ||
"platformArchABI": "linux-arm-musl", | ||
"platform": "linux", | ||
"arch": "arm", | ||
"abi": "musl" | ||
}, | ||
{ | ||
"triple": "armv7-unknown-linux-musleabihf", | ||
"platformArchABI": "linux-arm-musleabihf", | ||
"platform": "linux", | ||
"arch": "arm", | ||
"abi": "musleabihf" | ||
} | ||
], | ||
"armv5te": [ | ||
{ | ||
"triple": "armv5te-unknown-linux-gnueabi", | ||
"platformArchABI": "linux-armv5te-gnu", | ||
"platform": "linux", | ||
"arch": "armv5te", | ||
"abi": "gnu" | ||
}, | ||
{ | ||
"triple": "armv5te-unknown-linux-musleabi", | ||
"platformArchABI": "linux-armv5te-musl", | ||
"platform": "linux", | ||
"arch": "armv5te", | ||
"abi": "musl" | ||
} | ||
], | ||
"ia32": [ | ||
{ | ||
"triple": "i686-unknown-linux-gnu", | ||
"platformArchABI": "linux-ia32-gnu", | ||
"platform": "linux", | ||
"arch": "ia32", | ||
"abi": "gnu" | ||
}, | ||
{ | ||
"triple": "i686-unknown-linux-musl", | ||
"platformArchABI": "linux-ia32-musl", | ||
"platform": "linux", | ||
"arch": "ia32", | ||
"abi": "musl" | ||
} | ||
], | ||
"mips": [ | ||
{ | ||
"triple": "mips-unknown-linux-gnu", | ||
"platformArchABI": "linux-mips-gnu", | ||
"platform": "linux", | ||
"arch": "mips", | ||
"abi": "gnu" | ||
}, | ||
{ | ||
"triple": "mips-unknown-linux-musl", | ||
"platformArchABI": "linux-mips-musl", | ||
"platform": "linux", | ||
"arch": "mips", | ||
"abi": "musl" | ||
} | ||
], | ||
"mips64": [ | ||
{ | ||
"triple": "mips64-unknown-linux-gnuabi64", | ||
"platformArchABI": "linux-mips64-gnuabi64", | ||
"platform": "linux", | ||
"arch": "mips64", | ||
"abi": "gnuabi64" | ||
}, | ||
{ | ||
"triple": "mips64-unknown-linux-muslabi64", | ||
"platformArchABI": "linux-mips64-muslabi64", | ||
"platform": "linux", | ||
"arch": "mips64", | ||
"abi": "muslabi64" | ||
} | ||
], | ||
"mips64el": [ | ||
{ | ||
"triple": "mips64el-unknown-linux-gnuabi64", | ||
"platformArchABI": "linux-mips64el-gnuabi64", | ||
"platform": "linux", | ||
"arch": "mips64el", | ||
"abi": "gnuabi64" | ||
}, | ||
{ | ||
"triple": "mips64el-unknown-linux-muslabi64", | ||
"platformArchABI": "linux-mips64el-muslabi64", | ||
"platform": "linux", | ||
"arch": "mips64el", | ||
"abi": "muslabi64" | ||
} | ||
], | ||
"mipsel": [ | ||
{ | ||
"triple": "mipsel-unknown-linux-gnu", | ||
"platformArchABI": "linux-mipsel-gnu", | ||
"platform": "linux", | ||
"arch": "mipsel", | ||
"abi": "gnu" | ||
}, | ||
{ | ||
"triple": "mipsel-unknown-linux-musl", | ||
"platformArchABI": "linux-mipsel-musl", | ||
"platform": "linux", | ||
"arch": "mipsel", | ||
"abi": "musl" | ||
} | ||
], | ||
"powerpc": [ | ||
{ | ||
"triple": "powerpc-unknown-linux-gnu", | ||
"platformArchABI": "linux-powerpc-gnu", | ||
"platform": "linux", | ||
"arch": "powerpc", | ||
"abi": "gnu" | ||
} | ||
], | ||
"powerpc64": [ | ||
{ | ||
"triple": "powerpc64-unknown-linux-gnu", | ||
"platformArchABI": "linux-powerpc64-gnu", | ||
"platform": "linux", | ||
"arch": "powerpc64", | ||
"abi": "gnu" | ||
} | ||
], | ||
"powerpc64le": [ | ||
{ | ||
"triple": "powerpc64le-unknown-linux-gnu", | ||
"platformArchABI": "linux-powerpc64le-gnu", | ||
"platform": "linux", | ||
"arch": "powerpc64le", | ||
"abi": "gnu" | ||
} | ||
], | ||
"riscv64gc": [ | ||
{ | ||
"triple": "riscv64gc-unknown-linux-gnu", | ||
"platformArchABI": "linux-riscv64gc-gnu", | ||
"platform": "linux", | ||
"arch": "riscv64gc", | ||
"abi": "gnu" | ||
} | ||
], | ||
"s390x": [ | ||
{ | ||
"triple": "s390x-unknown-linux-gnu", | ||
"platformArchABI": "linux-s390x-gnu", | ||
"platform": "linux", | ||
"arch": "s390x", | ||
"abi": "gnu" | ||
} | ||
], | ||
"sparc64": [ | ||
{ | ||
"triple": "sparc64-unknown-linux-gnu", | ||
"platformArchABI": "linux-sparc64-gnu", | ||
"platform": "linux", | ||
"arch": "sparc64", | ||
"abi": "gnu" | ||
} | ||
], | ||
"x64": [ | ||
{ | ||
"triple": "x86_64-unknown-linux-gnu", | ||
"platformArchABI": "linux-x64-gnu", | ||
"platform": "linux", | ||
"arch": "x64", | ||
"abi": "gnu" | ||
}, | ||
{ | ||
"triple": "x86_64-unknown-linux-gnux32", | ||
"platformArchABI": "linux-x64-gnux32", | ||
"platform": "linux", | ||
"arch": "x64", | ||
"abi": "gnux32" | ||
}, | ||
{ | ||
"triple": "x86_64-unknown-linux-musl", | ||
"platformArchABI": "linux-x64-musl", | ||
"platform": "linux", | ||
"arch": "x64", | ||
"abi": "musl" | ||
} | ||
] | ||
}, | ||
"freebsd": { | ||
"ia32": [ | ||
{ | ||
"triple": "i686-unknown-freebsd", | ||
"platformArchABI": "freebsd-ia32", | ||
"platform": "freebsd", | ||
"arch": "ia32", | ||
"abi": null | ||
} | ||
], | ||
"x64": [ | ||
{ | ||
"triple": "x86_64-unknown-freebsd", | ||
"platformArchABI": "freebsd-x64", | ||
"platform": "freebsd", | ||
"arch": "x64", | ||
"abi": null | ||
} | ||
] | ||
} | ||
} |
{ | ||
"name": "@napi-rs/triples", | ||
"version": "1.1.0", | ||
"version": "2.0.0-alpha.0", | ||
"description": "Rust target triples objects", | ||
"keywords": ["Rust", "cross-compile", "napi", "n-api", "node-rs", "napi-rs"], | ||
"keywords": [ | ||
"Rust", | ||
"cross-compile", | ||
"napi", | ||
"n-api", | ||
"node-rs", | ||
"napi-rs" | ||
], | ||
"author": "LongYinan <lynweklm@gmail.com>", | ||
"homepage": "https://github.com/napi-rs/napi-rs/tree/main/triples#readme", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "./index.js", | ||
"types": "./index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"default": "./index.js", | ||
"types": "./index.d.ts" | ||
}, | ||
"require": { | ||
"default": "./index.cjs", | ||
"types": "./index.d.ts" | ||
} | ||
} | ||
}, | ||
"publishConfig": { | ||
@@ -15,3 +35,6 @@ "registry": "https://registry.npmjs.org/", | ||
}, | ||
"files": ["index.js", "index.d.ts"], | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"repository": { | ||
@@ -23,3 +46,12 @@ "type": "git", | ||
"url": "https://github.com/napi-rs/napi-rs/issues" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "node --loader ts-node/esm/transpile-only ./generate-triple-list.ts" | ||
}, | ||
"devDependencies": { | ||
"lodash-es": "^4.17.21", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.4" | ||
}, | ||
"gitHead": "7c9a4bae2da98752dbf683b1d8c9add81f30a61e" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
22878
6
796
Yes
3
1
2