npm-pkgbuild 10.14.9 → 10.14.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "10.14.9",
3
+ "version": "10.14.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -244,6 +244,6 @@ const toBeSkipped = new RegExp(
244
244
  "chains and topics\\.md",
245
245
  "build_detect_platform"
246
246
  ].join("|") +
247
- ")$|(node_modules/(@types|node-addon-api)|(node_modules/node-gyp$)|(win32|android|darwin)-(ia32|x64|arm|arm64))",
247
+ ")$|(node_modules/(@types|node-addon-api|mf-hosting|node-gyp$)|(win32|android|darwin)-(ia32|x64|arm|arm64))",
248
248
  "i"
249
249
  );
@@ -238,9 +238,7 @@ export async function* extractFromPackage(options = {}) {
238
238
 
239
239
  for (const a of arch) {
240
240
  if (!restrictArch.size || restrictArch.has(a)) {
241
- if (options.available && npmArchMapping[process.arch] !== a) {
242
- break;
243
- } else {
241
+ if (!options.available || npmArchMapping[process.arch] === a) {
244
242
  numberOfArchs++;
245
243
  properties.arch = [a];
246
244
  yield {
@@ -255,10 +253,8 @@ export async function* extractFromPackage(options = {}) {
255
253
  }
256
254
  }
257
255
  if (numberOfArchs === 0) {
258
-
259
- // armv7h,aarch64,x86_64 : armv7h,aarch64,x86_64 : x64
260
256
  console.warn(
261
- `No matching arch remaining, ${[...arch]} : ${[...restrictedArch]} : ${
257
+ `No arch remaining, ${[...arch]} : ${[...restrictArch]} : ${
262
258
  process.arch
263
259
  }`
264
260
  );