@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.
- package/dist/actions/index.cjs +27 -6
- package/dist/actions/index.cjs.map +1 -1
- package/dist/actions/index.mjs +27 -6
- package/dist/actions/index.mjs.map +1 -1
- package/dist/cert/index.d.cts +3 -3
- package/dist/cert/index.d.ts +3 -3
- package/dist/{cert-DtYDJBjG.d.ts → cert-e5GAgAPb.d.ts} +1 -1
- package/dist/{cert-6m1R8UeW.d.cts → cert-uLLdb5a7.d.cts} +1 -1
- package/dist/cli/index.cjs +27 -6
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.mjs +27 -6
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/index.cjs +27 -6
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.mjs +27 -6
- package/dist/client/index.mjs.map +1 -1
- package/dist/deliver/index.d.cts +2 -2
- package/dist/deliver/index.d.ts +2 -2
- package/dist/{index-Ce-WMV7c.d.cts → index-BN0iWhuw.d.cts} +1 -1
- package/dist/{index-CQKpbHZt.d.ts → index-BNP7Bpu5.d.ts} +1 -1
- package/dist/{index-CsFIp7OO.d.ts → index-BbY_H_f6.d.ts} +1 -1
- package/dist/{index-AD8QXY1T.d.cts → index-BgHagzj1.d.cts} +1 -1
- package/dist/{index-KCB2q1-8.d.cts → index-BjkOUQcQ.d.cts} +1 -1
- package/dist/{index-D2z7RiAM.d.ts → index-BwwpAlk2.d.ts} +5 -0
- package/dist/{index-Kq3rbG0u.d.ts → index-C2YLoFVl.d.ts} +1 -1
- package/dist/{index-CojSGJ7m.d.ts → index-CEldrbyz.d.ts} +1 -1
- package/dist/{index-CMH_GpN9.d.cts → index-CdfgEZwh.d.cts} +5 -0
- package/dist/{index-BW8wQUGC.d.cts → index-Clyf4-lu.d.cts} +1 -1
- package/dist/{index-CCs5irG7.d.cts → index-CtydPNxA.d.cts} +1 -1
- package/dist/{index-CQd4bo3G.d.cts → index-DHxi-QPC.d.cts} +3 -3
- package/dist/{index-DZaPkUnC.d.ts → index-Di4Ic0EE.d.ts} +3 -3
- package/dist/{index-BWK-T2-S.d.cts → index-DrCOh0Vh.d.cts} +1 -1
- package/dist/{index-BpiEBPVd.d.ts → index-EKU_G1G5.d.ts} +1 -1
- package/dist/{index-CdYdwxpQ.d.cts → index-XsMsVc3O.d.cts} +1 -1
- package/dist/{index-CLsvyTkh.d.ts → index-jeI44Q5G.d.ts} +1 -1
- package/dist/{index-D82CmjMP.d.ts → index-mddpvrRX.d.ts} +1 -1
- package/dist/index.cjs +148 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -13
- package/dist/index.d.ts +40 -13
- package/dist/index.mjs +148 -9
- package/dist/index.mjs.map +1 -1
- package/dist/lane/index.cjs +27 -6
- package/dist/lane/index.cjs.map +1 -1
- package/dist/lane/index.mjs +27 -6
- package/dist/lane/index.mjs.map +1 -1
- package/dist/match/index.d.cts +4 -4
- package/dist/match/index.d.ts +4 -4
- package/dist/pem/index.d.cts +2 -2
- package/dist/pem/index.d.ts +2 -2
- package/dist/pilot/index.d.cts +2 -2
- package/dist/pilot/index.d.ts +2 -2
- package/dist/precheck/index.d.cts +2 -2
- package/dist/precheck/index.d.ts +2 -2
- package/dist/produce/index.d.cts +2 -2
- package/dist/produce/index.d.ts +2 -2
- package/dist/sigh/index.d.cts +2 -2
- package/dist/sigh/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/cert/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CertOptions, a as CertResult, c as createCertificate, d as downloadCertificate, f as findValidCertificates, r as revokeCertificate, b as revokeExpiredCertificates } from '../cert-
|
|
2
|
-
export { B as BundleP12Options, b as bundleP12, g as generateCSR, a as generateRSACSR } from '../index-
|
|
3
|
-
import '../index-
|
|
1
|
+
export { C as CertOptions, a as CertResult, c as createCertificate, d as downloadCertificate, f as findValidCertificates, r as revokeCertificate, b as revokeExpiredCertificates } from '../cert-uLLdb5a7.cjs';
|
|
2
|
+
export { B as BundleP12Options, b as bundleP12, g as generateCSR, a as generateRSACSR } from '../index-CtydPNxA.cjs';
|
|
3
|
+
import '../index-CdfgEZwh.cjs';
|
|
4
4
|
import '../enums-B609j2rb.cjs';
|
package/dist/cert/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CertOptions, a as CertResult, c as createCertificate, d as downloadCertificate, f as findValidCertificates, r as revokeCertificate, b as revokeExpiredCertificates } from '../cert-
|
|
2
|
-
export { B as BundleP12Options, b as bundleP12, g as generateCSR, a as generateRSACSR } from '../index-
|
|
3
|
-
import '../index-
|
|
1
|
+
export { C as CertOptions, a as CertResult, c as createCertificate, d as downloadCertificate, f as findValidCertificates, r as revokeCertificate, b as revokeExpiredCertificates } from '../cert-e5GAgAPb.js';
|
|
2
|
+
export { B as BundleP12Options, b as bundleP12, g as generateCSR, a as generateRSACSR } from '../index-BNP7Bpu5.js';
|
|
3
|
+
import '../index-BwwpAlk2.js';
|
|
4
4
|
import '../enums-B609j2rb.js';
|
package/dist/cli/index.cjs
CHANGED
|
@@ -6367,6 +6367,12 @@ var init_xcode_metrics = __esm({
|
|
|
6367
6367
|
});
|
|
6368
6368
|
|
|
6369
6369
|
// src/client/portal.ts
|
|
6370
|
+
function pickUniqueKeyName(base, taken) {
|
|
6371
|
+
if (!taken.has(base)) return base;
|
|
6372
|
+
let n = 1;
|
|
6373
|
+
while (taken.has(`${base} - ${n}`)) n++;
|
|
6374
|
+
return `${base} - ${n}`;
|
|
6375
|
+
}
|
|
6370
6376
|
var PORTAL_BASE, PortalClient;
|
|
6371
6377
|
var init_portal = __esm({
|
|
6372
6378
|
"src/client/portal.ts"() {
|
|
@@ -6485,12 +6491,17 @@ var init_portal = __esm({
|
|
|
6485
6491
|
* + period and collapse whitespace.
|
|
6486
6492
|
*/
|
|
6487
6493
|
async createApiKey(rawName, serviceConfigurations = {}) {
|
|
6488
|
-
const
|
|
6489
|
-
if (!
|
|
6494
|
+
const baseName = rawName.replace(/[^A-Za-z0-9 _\-.]/g, " ").replace(/\s+/g, " ").trim().slice(0, 45);
|
|
6495
|
+
if (!baseName) throw new Error("createApiKey: name is empty after sanitization");
|
|
6496
|
+
let existingNames = /* @__PURE__ */ new Set();
|
|
6490
6497
|
try {
|
|
6491
|
-
await this.listApiKeys();
|
|
6498
|
+
const list = await this.listApiKeys();
|
|
6499
|
+
existingNames = new Set(
|
|
6500
|
+
(list.keys ?? []).map((k) => String(k.keyName ?? "").trim())
|
|
6501
|
+
);
|
|
6492
6502
|
} catch {
|
|
6493
6503
|
}
|
|
6504
|
+
const name = pickUniqueKeyName(baseName, existingNames);
|
|
6494
6505
|
const body = {
|
|
6495
6506
|
teamId: this.teamId,
|
|
6496
6507
|
name,
|
|
@@ -6545,14 +6556,24 @@ var init_portal = __esm({
|
|
|
6545
6556
|
* The exact body comes from @expo/apple-utils v2.1.21 — both fields
|
|
6546
6557
|
* are produced by separate functions (`d` for the map, `h` for the
|
|
6547
6558
|
* array) and merged into the create payload.
|
|
6559
|
+
*
|
|
6560
|
+
* Apple also rejects duplicate key names ("Another key with same
|
|
6561
|
+
* name exists") — we dedupe by listing existing keys first and
|
|
6562
|
+
* appending " (N)" until we find a free slot, mirroring the
|
|
6563
|
+
* provisioning profile dedup.
|
|
6548
6564
|
*/
|
|
6549
6565
|
async createApnsAuthKey(rawName) {
|
|
6550
|
-
const
|
|
6551
|
-
if (!
|
|
6566
|
+
const baseName = rawName.replace(/[^A-Za-z0-9 _\-.]/g, " ").replace(/\s+/g, " ").trim().slice(0, 45);
|
|
6567
|
+
if (!baseName) throw new Error("createApnsAuthKey: name is empty after sanitization");
|
|
6568
|
+
let existingNames = /* @__PURE__ */ new Set();
|
|
6552
6569
|
try {
|
|
6553
|
-
await this.listApiKeys();
|
|
6570
|
+
const list = await this.listApiKeys();
|
|
6571
|
+
existingNames = new Set(
|
|
6572
|
+
(list.keys ?? []).map((k) => String(k.keyName ?? "").trim())
|
|
6573
|
+
);
|
|
6554
6574
|
} catch {
|
|
6555
6575
|
}
|
|
6576
|
+
const name = pickUniqueKeyName(baseName, existingNames);
|
|
6556
6577
|
const body = {
|
|
6557
6578
|
teamId: this.teamId,
|
|
6558
6579
|
name,
|