@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/client/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a7 as ApiKeyRole, a as AppStoreConnectClient, d as AppStoreConnectConfig, b as AppStoreConnectError, A as AppleSession, _ as AppleSessionConfig, a2 as BeginLoginResult, $ as ContractMessage, a6 as IrisApiKey, a5 as IrisAuthError, a4 as IrisClient, i as JsonApiError, a9 as JsonApiErrorResponse, h as JsonApiListResponse, a8 as JsonApiRelationship, J as JsonApiResource, g as JsonApiResponse, L as ListParams, a0 as PendingLogin, a3 as PortalClient, Z as ProgramLicenseAgreementError, c as RateLimitError, R as RequestClient, f as RequestOptions, e as TokenConfig, T as TokenManager, a1 as TwoFactorChallenge, V as beginLogin, Y as checkPortalResponse, S as loginWithAppleId, X as requestSmsCode, W as submitTwoFactorCode } from '../index-
|
|
1
|
+
export { a7 as ApiKeyRole, a as AppStoreConnectClient, d as AppStoreConnectConfig, b as AppStoreConnectError, A as AppleSession, _ as AppleSessionConfig, a2 as BeginLoginResult, $ as ContractMessage, a6 as IrisApiKey, a5 as IrisAuthError, a4 as IrisClient, i as JsonApiError, a9 as JsonApiErrorResponse, h as JsonApiListResponse, a8 as JsonApiRelationship, J as JsonApiResource, g as JsonApiResponse, L as ListParams, a0 as PendingLogin, a3 as PortalClient, Z as ProgramLicenseAgreementError, c as RateLimitError, R as RequestClient, f as RequestOptions, e as TokenConfig, T as TokenManager, a1 as TwoFactorChallenge, V as beginLogin, Y as checkPortalResponse, S as loginWithAppleId, X as requestSmsCode, W as submitTwoFactorCode } from '../index-CdfgEZwh.cjs';
|
|
2
2
|
import '../enums-B609j2rb.cjs';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a7 as ApiKeyRole, a as AppStoreConnectClient, d as AppStoreConnectConfig, b as AppStoreConnectError, A as AppleSession, _ as AppleSessionConfig, a2 as BeginLoginResult, $ as ContractMessage, a6 as IrisApiKey, a5 as IrisAuthError, a4 as IrisClient, i as JsonApiError, a9 as JsonApiErrorResponse, h as JsonApiListResponse, a8 as JsonApiRelationship, J as JsonApiResource, g as JsonApiResponse, L as ListParams, a0 as PendingLogin, a3 as PortalClient, Z as ProgramLicenseAgreementError, c as RateLimitError, R as RequestClient, f as RequestOptions, e as TokenConfig, T as TokenManager, a1 as TwoFactorChallenge, V as beginLogin, Y as checkPortalResponse, S as loginWithAppleId, X as requestSmsCode, W as submitTwoFactorCode } from '../index-
|
|
1
|
+
export { a7 as ApiKeyRole, a as AppStoreConnectClient, d as AppStoreConnectConfig, b as AppStoreConnectError, A as AppleSession, _ as AppleSessionConfig, a2 as BeginLoginResult, $ as ContractMessage, a6 as IrisApiKey, a5 as IrisAuthError, a4 as IrisClient, i as JsonApiError, a9 as JsonApiErrorResponse, h as JsonApiListResponse, a8 as JsonApiRelationship, J as JsonApiResource, g as JsonApiResponse, L as ListParams, a0 as PendingLogin, a3 as PortalClient, Z as ProgramLicenseAgreementError, c as RateLimitError, R as RequestClient, f as RequestOptions, e as TokenConfig, T as TokenManager, a1 as TwoFactorChallenge, V as beginLogin, Y as checkPortalResponse, S as loginWithAppleId, X as requestSmsCode, W as submitTwoFactorCode } from '../index-BwwpAlk2.js';
|
|
2
2
|
import '../enums-B609j2rb.js';
|
package/dist/client/index.mjs
CHANGED
|
@@ -2267,6 +2267,12 @@ var XcodeMetricsResource = class {
|
|
|
2267
2267
|
|
|
2268
2268
|
// src/client/portal.ts
|
|
2269
2269
|
var PORTAL_BASE = "https://developer.apple.com/services-account/QH65B2";
|
|
2270
|
+
function pickUniqueKeyName(base, taken) {
|
|
2271
|
+
if (!taken.has(base)) return base;
|
|
2272
|
+
let n = 1;
|
|
2273
|
+
while (taken.has(`${base} - ${n}`)) n++;
|
|
2274
|
+
return `${base} - ${n}`;
|
|
2275
|
+
}
|
|
2270
2276
|
var PortalClient = class _PortalClient {
|
|
2271
2277
|
session;
|
|
2272
2278
|
teamId;
|
|
@@ -2380,12 +2386,17 @@ var PortalClient = class _PortalClient {
|
|
|
2380
2386
|
* + period and collapse whitespace.
|
|
2381
2387
|
*/
|
|
2382
2388
|
async createApiKey(rawName, serviceConfigurations = {}) {
|
|
2383
|
-
const
|
|
2384
|
-
if (!
|
|
2389
|
+
const baseName = rawName.replace(/[^A-Za-z0-9 _\-.]/g, " ").replace(/\s+/g, " ").trim().slice(0, 45);
|
|
2390
|
+
if (!baseName) throw new Error("createApiKey: name is empty after sanitization");
|
|
2391
|
+
let existingNames = /* @__PURE__ */ new Set();
|
|
2385
2392
|
try {
|
|
2386
|
-
await this.listApiKeys();
|
|
2393
|
+
const list = await this.listApiKeys();
|
|
2394
|
+
existingNames = new Set(
|
|
2395
|
+
(list.keys ?? []).map((k) => String(k.keyName ?? "").trim())
|
|
2396
|
+
);
|
|
2387
2397
|
} catch {
|
|
2388
2398
|
}
|
|
2399
|
+
const name = pickUniqueKeyName(baseName, existingNames);
|
|
2389
2400
|
const body = {
|
|
2390
2401
|
teamId: this.teamId,
|
|
2391
2402
|
name,
|
|
@@ -2440,14 +2451,24 @@ var PortalClient = class _PortalClient {
|
|
|
2440
2451
|
* The exact body comes from @expo/apple-utils v2.1.21 — both fields
|
|
2441
2452
|
* are produced by separate functions (`d` for the map, `h` for the
|
|
2442
2453
|
* array) and merged into the create payload.
|
|
2454
|
+
*
|
|
2455
|
+
* Apple also rejects duplicate key names ("Another key with same
|
|
2456
|
+
* name exists") — we dedupe by listing existing keys first and
|
|
2457
|
+
* appending " (N)" until we find a free slot, mirroring the
|
|
2458
|
+
* provisioning profile dedup.
|
|
2443
2459
|
*/
|
|
2444
2460
|
async createApnsAuthKey(rawName) {
|
|
2445
|
-
const
|
|
2446
|
-
if (!
|
|
2461
|
+
const baseName = rawName.replace(/[^A-Za-z0-9 _\-.]/g, " ").replace(/\s+/g, " ").trim().slice(0, 45);
|
|
2462
|
+
if (!baseName) throw new Error("createApnsAuthKey: name is empty after sanitization");
|
|
2463
|
+
let existingNames = /* @__PURE__ */ new Set();
|
|
2447
2464
|
try {
|
|
2448
|
-
await this.listApiKeys();
|
|
2465
|
+
const list = await this.listApiKeys();
|
|
2466
|
+
existingNames = new Set(
|
|
2467
|
+
(list.keys ?? []).map((k) => String(k.keyName ?? "").trim())
|
|
2468
|
+
);
|
|
2449
2469
|
} catch {
|
|
2450
2470
|
}
|
|
2471
|
+
const name = pickUniqueKeyName(baseName, existingNames);
|
|
2451
2472
|
const body = {
|
|
2452
2473
|
teamId: this.teamId,
|
|
2453
2474
|
name,
|