@sitepong/fastnode 0.2.0 → 0.2.2
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 +70 -24
- package/dist/actions/index.cjs.map +1 -1
- package/dist/actions/index.mjs +70 -24
- package/dist/actions/index.mjs.map +1 -1
- package/dist/cert/index.cjs +17822 -24
- package/dist/cert/index.cjs.map +1 -1
- package/dist/cert/index.d.cts +3 -3
- package/dist/cert/index.d.ts +3 -3
- package/dist/cert/index.mjs +17807 -6
- package/dist/cert/index.mjs.map +1 -1
- package/dist/{cert-DtYDJBjG.d.ts → cert-Ddl7FpFT.d.ts} +1 -1
- package/dist/{cert-6m1R8UeW.d.cts → cert-FehieKeb.d.cts} +1 -1
- package/dist/cli/index.cjs +70 -24
- 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 +70 -24
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/index.cjs +64 -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 +64 -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-CojSGJ7m.d.ts → index-B8FOfxOw.d.ts} +1 -1
- package/dist/{index-CdYdwxpQ.d.cts → index-B9QeTpQK.d.cts} +1 -1
- package/dist/{index-AD8QXY1T.d.cts → index-BICa8odo.d.cts} +1 -1
- package/dist/{index-CMH_GpN9.d.cts → index-BKUapQP2.d.cts} +30 -0
- package/dist/{index-Ce-WMV7c.d.cts → index-BZWmOTWE.d.cts} +1 -1
- package/dist/{index-BWK-T2-S.d.cts → index-Bk1Gd-qE.d.cts} +1 -1
- package/dist/{index-D2z7RiAM.d.ts → index-CCtYhPN9.d.ts} +30 -0
- package/dist/{index-CCs5irG7.d.cts → index-CNHf7I4v.d.cts} +1 -1
- package/dist/{index-CQKpbHZt.d.ts → index-CplRWSUc.d.ts} +1 -1
- package/dist/{index-BpiEBPVd.d.ts → index-CtPyeMLH.d.ts} +1 -1
- package/dist/{index-BW8wQUGC.d.cts → index-D13sn8DO.d.cts} +1 -1
- package/dist/{index-Kq3rbG0u.d.ts → index-DFni8oZt.d.ts} +1 -1
- package/dist/{index-D82CmjMP.d.ts → index-DI1ZHr-3.d.ts} +1 -1
- package/dist/{index-DZaPkUnC.d.ts → index-DZoPGCbE.d.ts} +3 -3
- package/dist/{index-KCB2q1-8.d.cts → index-OelCoOth.d.cts} +1 -1
- package/dist/{index-CLsvyTkh.d.ts → index-YcKz4aRS.d.ts} +1 -1
- package/dist/{index-CQd4bo3G.d.cts → index-oVyLLIEK.d.cts} +3 -3
- package/dist/{index-CsFIp7OO.d.ts → index-xykpq6Lz.d.ts} +1 -1
- package/dist/index.cjs +18237 -202
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +81 -21
- package/dist/index.d.ts +81 -21
- package/dist/index.mjs +18237 -201
- package/dist/index.mjs.map +1 -1
- package/dist/lane/index.cjs +70 -24
- package/dist/lane/index.cjs.map +1 -1
- package/dist/lane/index.mjs +70 -24
- 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.cjs +6 -18
- package/dist/produce/index.cjs.map +1 -1
- package/dist/produce/index.d.cts +2 -2
- package/dist/produce/index.d.ts +2 -2
- package/dist/produce/index.mjs +6 -18
- package/dist/produce/index.mjs.map +1 -1
- package/dist/sigh/index.d.cts +2 -2
- package/dist/sigh/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/cli/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
-
import { a as AppStoreConnectClient } from '../index-
|
|
2
|
+
import { a as AppStoreConnectClient } from '../index-BKUapQP2.cjs';
|
|
3
3
|
import '../enums-B609j2rb.cjs';
|
|
4
4
|
|
|
5
5
|
declare function resolveClientFromEnv(): Promise<AppStoreConnectClient>;
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
-
import { a as AppStoreConnectClient } from '../index-
|
|
2
|
+
import { a as AppStoreConnectClient } from '../index-CCtYhPN9.js';
|
|
3
3
|
import '../enums-B609j2rb.js';
|
|
4
4
|
|
|
5
5
|
declare function resolveClientFromEnv(): Promise<AppStoreConnectClient>;
|
package/dist/cli/index.mjs
CHANGED
|
@@ -3097,25 +3097,13 @@ async function createApp(options) {
|
|
|
3097
3097
|
});
|
|
3098
3098
|
}
|
|
3099
3099
|
}
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
bundleId: options.bundleIdentifier,
|
|
3107
|
-
name: options.appName,
|
|
3108
|
-
sku,
|
|
3109
|
-
primaryLocale
|
|
3110
|
-
},
|
|
3111
|
-
relationships: {
|
|
3112
|
-
bundleId: {
|
|
3113
|
-
data: { type: "bundleIds", id: bundleId.id }
|
|
3114
|
-
}
|
|
3115
|
-
}
|
|
3116
|
-
}
|
|
3100
|
+
return options.client.apps.create({
|
|
3101
|
+
bundleIdentifier: options.bundleIdentifier,
|
|
3102
|
+
bundleIdId: bundleId.id,
|
|
3103
|
+
appName: options.appName,
|
|
3104
|
+
sku: options.sku ?? `${options.bundleIdentifier}.${Date.now()}`,
|
|
3105
|
+
primaryLocale: options.primaryLocale
|
|
3117
3106
|
});
|
|
3118
|
-
return response.data;
|
|
3119
3107
|
}
|
|
3120
3108
|
var SERVICE_NAME_TO_CAPABILITY;
|
|
3121
3109
|
var init_produce = __esm({
|
|
@@ -4909,6 +4897,43 @@ var init_apps = __esm({
|
|
|
4909
4897
|
});
|
|
4910
4898
|
return results[0] ?? null;
|
|
4911
4899
|
}
|
|
4900
|
+
/**
|
|
4901
|
+
* Create an App Store Connect **app record** (the thing that shows up
|
|
4902
|
+
* under "My Apps" and that TestFlight / App Store uploads require).
|
|
4903
|
+
*
|
|
4904
|
+
* This is distinct from registering an App ID in the Developer Portal —
|
|
4905
|
+
* you need BOTH. The Developer Portal App ID unlocks provisioning
|
|
4906
|
+
* profiles and entitlements; the App Store Connect app record unlocks
|
|
4907
|
+
* uploads. `upload_to_testflight` fails with "Couldn't find app
|
|
4908
|
+
* 'com.foo.bar' on the account…" when this record is missing.
|
|
4909
|
+
*
|
|
4910
|
+
* `bundleIdId` is the REST API primary key of the bundle id resource
|
|
4911
|
+
* (not the identifier string) — fetch it via `bundleIds.find(identifier)`
|
|
4912
|
+
* or from the response of `bundleIds.create()`.
|
|
4913
|
+
*
|
|
4914
|
+
* `sku` is an arbitrary unique string Apple uses to identify the app in
|
|
4915
|
+
* their internal records. If you don't have a meaningful one, pass the
|
|
4916
|
+
* bundle identifier itself or append a timestamp for uniqueness.
|
|
4917
|
+
*/
|
|
4918
|
+
async create(params) {
|
|
4919
|
+
const response = await this.http.post("/v1/apps", {
|
|
4920
|
+
data: {
|
|
4921
|
+
type: "apps",
|
|
4922
|
+
attributes: {
|
|
4923
|
+
bundleId: params.bundleIdentifier,
|
|
4924
|
+
name: params.appName,
|
|
4925
|
+
sku: params.sku,
|
|
4926
|
+
primaryLocale: params.primaryLocale ?? "en-US"
|
|
4927
|
+
},
|
|
4928
|
+
relationships: {
|
|
4929
|
+
bundleId: {
|
|
4930
|
+
data: { type: "bundleIds", id: params.bundleIdId }
|
|
4931
|
+
}
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
});
|
|
4935
|
+
return response.data;
|
|
4936
|
+
}
|
|
4912
4937
|
};
|
|
4913
4938
|
}
|
|
4914
4939
|
});
|
|
@@ -6342,6 +6367,12 @@ var init_xcode_metrics = __esm({
|
|
|
6342
6367
|
});
|
|
6343
6368
|
|
|
6344
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
|
+
}
|
|
6345
6376
|
var PORTAL_BASE, PortalClient;
|
|
6346
6377
|
var init_portal = __esm({
|
|
6347
6378
|
"src/client/portal.ts"() {
|
|
@@ -6460,12 +6491,17 @@ var init_portal = __esm({
|
|
|
6460
6491
|
* + period and collapse whitespace.
|
|
6461
6492
|
*/
|
|
6462
6493
|
async createApiKey(rawName, serviceConfigurations = {}) {
|
|
6463
|
-
const
|
|
6464
|
-
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();
|
|
6465
6497
|
try {
|
|
6466
|
-
await this.listApiKeys();
|
|
6498
|
+
const list = await this.listApiKeys();
|
|
6499
|
+
existingNames = new Set(
|
|
6500
|
+
(list.keys ?? []).map((k) => String(k.keyName ?? "").trim())
|
|
6501
|
+
);
|
|
6467
6502
|
} catch {
|
|
6468
6503
|
}
|
|
6504
|
+
const name = pickUniqueKeyName(baseName, existingNames);
|
|
6469
6505
|
const body = {
|
|
6470
6506
|
teamId: this.teamId,
|
|
6471
6507
|
name,
|
|
@@ -6520,14 +6556,24 @@ var init_portal = __esm({
|
|
|
6520
6556
|
* The exact body comes from @expo/apple-utils v2.1.21 — both fields
|
|
6521
6557
|
* are produced by separate functions (`d` for the map, `h` for the
|
|
6522
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.
|
|
6523
6564
|
*/
|
|
6524
6565
|
async createApnsAuthKey(rawName) {
|
|
6525
|
-
const
|
|
6526
|
-
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();
|
|
6527
6569
|
try {
|
|
6528
|
-
await this.listApiKeys();
|
|
6570
|
+
const list = await this.listApiKeys();
|
|
6571
|
+
existingNames = new Set(
|
|
6572
|
+
(list.keys ?? []).map((k) => String(k.keyName ?? "").trim())
|
|
6573
|
+
);
|
|
6529
6574
|
} catch {
|
|
6530
6575
|
}
|
|
6576
|
+
const name = pickUniqueKeyName(baseName, existingNames);
|
|
6531
6577
|
const body = {
|
|
6532
6578
|
teamId: this.teamId,
|
|
6533
6579
|
name,
|