@sitepong/fastnode 0.2.0 → 0.2.1

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.
Files changed (63) hide show
  1. package/dist/actions/index.cjs +27 -6
  2. package/dist/actions/index.cjs.map +1 -1
  3. package/dist/actions/index.mjs +27 -6
  4. package/dist/actions/index.mjs.map +1 -1
  5. package/dist/cert/index.d.cts +3 -3
  6. package/dist/cert/index.d.ts +3 -3
  7. package/dist/{cert-DtYDJBjG.d.ts → cert-e5GAgAPb.d.ts} +1 -1
  8. package/dist/{cert-6m1R8UeW.d.cts → cert-uLLdb5a7.d.cts} +1 -1
  9. package/dist/cli/index.cjs +27 -6
  10. package/dist/cli/index.cjs.map +1 -1
  11. package/dist/cli/index.d.cts +1 -1
  12. package/dist/cli/index.d.ts +1 -1
  13. package/dist/cli/index.mjs +27 -6
  14. package/dist/cli/index.mjs.map +1 -1
  15. package/dist/client/index.cjs +27 -6
  16. package/dist/client/index.cjs.map +1 -1
  17. package/dist/client/index.d.cts +1 -1
  18. package/dist/client/index.d.ts +1 -1
  19. package/dist/client/index.mjs +27 -6
  20. package/dist/client/index.mjs.map +1 -1
  21. package/dist/deliver/index.d.cts +2 -2
  22. package/dist/deliver/index.d.ts +2 -2
  23. package/dist/{index-Ce-WMV7c.d.cts → index-BN0iWhuw.d.cts} +1 -1
  24. package/dist/{index-CQKpbHZt.d.ts → index-BNP7Bpu5.d.ts} +1 -1
  25. package/dist/{index-CsFIp7OO.d.ts → index-BbY_H_f6.d.ts} +1 -1
  26. package/dist/{index-AD8QXY1T.d.cts → index-BgHagzj1.d.cts} +1 -1
  27. package/dist/{index-KCB2q1-8.d.cts → index-BjkOUQcQ.d.cts} +1 -1
  28. package/dist/{index-D2z7RiAM.d.ts → index-BwwpAlk2.d.ts} +5 -0
  29. package/dist/{index-Kq3rbG0u.d.ts → index-C2YLoFVl.d.ts} +1 -1
  30. package/dist/{index-CojSGJ7m.d.ts → index-CEldrbyz.d.ts} +1 -1
  31. package/dist/{index-CMH_GpN9.d.cts → index-CdfgEZwh.d.cts} +5 -0
  32. package/dist/{index-BW8wQUGC.d.cts → index-Clyf4-lu.d.cts} +1 -1
  33. package/dist/{index-CCs5irG7.d.cts → index-CtydPNxA.d.cts} +1 -1
  34. package/dist/{index-CQd4bo3G.d.cts → index-DHxi-QPC.d.cts} +3 -3
  35. package/dist/{index-DZaPkUnC.d.ts → index-Di4Ic0EE.d.ts} +3 -3
  36. package/dist/{index-BWK-T2-S.d.cts → index-DrCOh0Vh.d.cts} +1 -1
  37. package/dist/{index-BpiEBPVd.d.ts → index-EKU_G1G5.d.ts} +1 -1
  38. package/dist/{index-CdYdwxpQ.d.cts → index-XsMsVc3O.d.cts} +1 -1
  39. package/dist/{index-CLsvyTkh.d.ts → index-jeI44Q5G.d.ts} +1 -1
  40. package/dist/{index-D82CmjMP.d.ts → index-mddpvrRX.d.ts} +1 -1
  41. package/dist/index.cjs +148 -9
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.cts +40 -13
  44. package/dist/index.d.ts +40 -13
  45. package/dist/index.mjs +148 -9
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/lane/index.cjs +27 -6
  48. package/dist/lane/index.cjs.map +1 -1
  49. package/dist/lane/index.mjs +27 -6
  50. package/dist/lane/index.mjs.map +1 -1
  51. package/dist/match/index.d.cts +4 -4
  52. package/dist/match/index.d.ts +4 -4
  53. package/dist/pem/index.d.cts +2 -2
  54. package/dist/pem/index.d.ts +2 -2
  55. package/dist/pilot/index.d.cts +2 -2
  56. package/dist/pilot/index.d.ts +2 -2
  57. package/dist/precheck/index.d.cts +2 -2
  58. package/dist/precheck/index.d.ts +2 -2
  59. package/dist/produce/index.d.cts +2 -2
  60. package/dist/produce/index.d.ts +2 -2
  61. package/dist/sigh/index.d.cts +2 -2
  62. package/dist/sigh/index.d.ts +2 -2
  63. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { Command } from 'commander';
2
- import { a as AppStoreConnectClient } from '../index-CMH_GpN9.cjs';
2
+ import { a as AppStoreConnectClient } from '../index-CdfgEZwh.cjs';
3
3
  import '../enums-B609j2rb.cjs';
4
4
 
5
5
  declare function resolveClientFromEnv(): Promise<AppStoreConnectClient>;
@@ -1,5 +1,5 @@
1
1
  import { Command } from 'commander';
2
- import { a as AppStoreConnectClient } from '../index-D2z7RiAM.js';
2
+ import { a as AppStoreConnectClient } from '../index-BwwpAlk2.js';
3
3
  import '../enums-B609j2rb.js';
4
4
 
5
5
  declare function resolveClientFromEnv(): Promise<AppStoreConnectClient>;
@@ -6342,6 +6342,12 @@ var init_xcode_metrics = __esm({
6342
6342
  });
6343
6343
 
6344
6344
  // src/client/portal.ts
6345
+ function pickUniqueKeyName(base, taken) {
6346
+ if (!taken.has(base)) return base;
6347
+ let n = 1;
6348
+ while (taken.has(`${base} - ${n}`)) n++;
6349
+ return `${base} - ${n}`;
6350
+ }
6345
6351
  var PORTAL_BASE, PortalClient;
6346
6352
  var init_portal = __esm({
6347
6353
  "src/client/portal.ts"() {
@@ -6460,12 +6466,17 @@ var init_portal = __esm({
6460
6466
  * + period and collapse whitespace.
6461
6467
  */
6462
6468
  async createApiKey(rawName, serviceConfigurations = {}) {
6463
- const name = rawName.replace(/[^A-Za-z0-9 _\-.]/g, " ").replace(/\s+/g, " ").trim().slice(0, 50);
6464
- if (!name) throw new Error("createApiKey: name is empty after sanitization");
6469
+ const baseName = rawName.replace(/[^A-Za-z0-9 _\-.]/g, " ").replace(/\s+/g, " ").trim().slice(0, 45);
6470
+ if (!baseName) throw new Error("createApiKey: name is empty after sanitization");
6471
+ let existingNames = /* @__PURE__ */ new Set();
6465
6472
  try {
6466
- await this.listApiKeys();
6473
+ const list = await this.listApiKeys();
6474
+ existingNames = new Set(
6475
+ (list.keys ?? []).map((k) => String(k.keyName ?? "").trim())
6476
+ );
6467
6477
  } catch {
6468
6478
  }
6479
+ const name = pickUniqueKeyName(baseName, existingNames);
6469
6480
  const body = {
6470
6481
  teamId: this.teamId,
6471
6482
  name,
@@ -6520,14 +6531,24 @@ var init_portal = __esm({
6520
6531
  * The exact body comes from @expo/apple-utils v2.1.21 — both fields
6521
6532
  * are produced by separate functions (`d` for the map, `h` for the
6522
6533
  * array) and merged into the create payload.
6534
+ *
6535
+ * Apple also rejects duplicate key names ("Another key with same
6536
+ * name exists") — we dedupe by listing existing keys first and
6537
+ * appending " (N)" until we find a free slot, mirroring the
6538
+ * provisioning profile dedup.
6523
6539
  */
6524
6540
  async createApnsAuthKey(rawName) {
6525
- const name = rawName.replace(/[^A-Za-z0-9 _\-.]/g, " ").replace(/\s+/g, " ").trim().slice(0, 50);
6526
- if (!name) throw new Error("createApnsAuthKey: name is empty after sanitization");
6541
+ const baseName = rawName.replace(/[^A-Za-z0-9 _\-.]/g, " ").replace(/\s+/g, " ").trim().slice(0, 45);
6542
+ if (!baseName) throw new Error("createApnsAuthKey: name is empty after sanitization");
6543
+ let existingNames = /* @__PURE__ */ new Set();
6527
6544
  try {
6528
- await this.listApiKeys();
6545
+ const list = await this.listApiKeys();
6546
+ existingNames = new Set(
6547
+ (list.keys ?? []).map((k) => String(k.keyName ?? "").trim())
6548
+ );
6529
6549
  } catch {
6530
6550
  }
6551
+ const name = pickUniqueKeyName(baseName, existingNames);
6531
6552
  const body = {
6532
6553
  teamId: this.teamId,
6533
6554
  name,