@sitepong/fastnode 0.3.0 → 0.3.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/README.md +6 -0
- package/dist/actions/index.cjs +81 -0
- package/dist/actions/index.cjs.map +1 -1
- package/dist/actions/index.mjs +82 -1
- package/dist/actions/index.mjs.map +1 -1
- package/dist/{apple-session-jUzBrql5.d.cts → apple-session-D6x7Jo3D.d.cts} +1 -1
- package/dist/{apple-session-jUzBrql5.d.ts → apple-session-D6x7Jo3D.d.ts} +1 -1
- package/dist/cert/index.cjs +92 -51
- package/dist/cert/index.cjs.map +1 -1
- package/dist/cert/index.d.cts +5 -5
- package/dist/cert/index.d.ts +5 -5
- package/dist/cert/index.mjs +92 -51
- package/dist/cert/index.mjs.map +1 -1
- package/dist/{cert-RvXmdMke.d.ts → cert-C-yRB-sO.d.ts} +2 -2
- package/dist/{cert-eOoxGMN1.d.cts → cert-C4hhKH1n.d.cts} +2 -2
- package/dist/cli/index.cjs +151 -47
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +3 -3
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.mjs +152 -48
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/index.cjs +77 -0
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.mjs +72 -1
- package/dist/client/index.mjs.map +1 -1
- package/dist/core/index.d.cts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/deliver/index.d.cts +4 -4
- package/dist/deliver/index.d.ts +4 -4
- package/dist/{enums-yXNVh3UI.d.cts → enums-BlpayMTx.d.cts} +1 -1
- package/dist/{enums-yXNVh3UI.d.ts → enums-BlpayMTx.d.ts} +1 -1
- package/dist/frameit/index.d.cts +1 -1
- package/dist/frameit/index.d.ts +1 -1
- package/dist/gradle/index.d.cts +1 -1
- package/dist/gradle/index.d.ts +1 -1
- package/dist/gym/index.d.cts +2 -2
- package/dist/gym/index.d.ts +2 -2
- package/dist/{index-DnHQ2uT2.d.cts → index-258t9n7v.d.cts} +2 -2
- package/dist/{index-BvyZ4uiw.d.ts → index-6LKy36sE.d.ts} +4 -4
- package/dist/{index-icIH5e5V.d.cts → index-B74vgav6.d.cts} +4 -4
- package/dist/{index-BoU8qt8r.d.cts → index-B7ERdhh8.d.cts} +1 -1
- package/dist/{index-BoU8qt8r.d.ts → index-B7ERdhh8.d.ts} +1 -1
- package/dist/{index-laE3_wm9.d.cts → index-BIRpj0f2.d.cts} +2 -2
- package/dist/{index-CBf0-NUQ.d.ts → index-BJLHWMwL.d.ts} +3 -3
- package/dist/{index-mEEB7An6.d.ts → index-B_D_01oz.d.ts} +1 -1
- package/dist/{index-D1GHEM3c.d.ts → index-Ba1jHQYg.d.ts} +1 -1
- package/dist/{index-DGkgRnZp.d.cts → index-BawZaGqD.d.cts} +3 -3
- package/dist/{index-8djTPW8O.d.ts → index-BmrOdmNL.d.ts} +2 -2
- package/dist/{index-DjC_gmnL.d.ts → index-C8L03MBu.d.ts} +3 -3
- package/dist/{index-Cp6cjtd-.d.ts → index-CHLDQweM.d.cts} +1 -1
- package/dist/{index-Cp6cjtd-.d.cts → index-CHLDQweM.d.ts} +1 -1
- package/dist/{index-B6-MJpO4.d.cts → index-CRFfLsEG.d.cts} +1 -1
- package/dist/{index-CAEiXVWd.d.ts → index-CV6KnSy1.d.ts} +2 -2
- package/dist/index-CX2hUvvG.d.cts +287 -0
- package/dist/index-CX2hUvvG.d.ts +287 -0
- package/dist/{index-C9mHBJED.d.ts → index-ClhWjR7a.d.ts} +2 -2
- package/dist/{index-BGhV0gS-.d.ts → index-Cq-xo-9x.d.ts} +2 -2
- package/dist/{index-CR3BFPIz.d.ts → index-Cw7ojUY5.d.cts} +1 -1
- package/dist/{index-CR3BFPIz.d.cts → index-Cw7ojUY5.d.ts} +1 -1
- package/dist/{index-C2yG3wXA.d.cts → index-CwD7lG0y.d.cts} +1 -1
- package/dist/{index-C2yG3wXA.d.ts → index-CwD7lG0y.d.ts} +1 -1
- package/dist/{index-DLJso7Vs.d.cts → index-CxrqhkVF.d.cts} +1 -1
- package/dist/{index-BE7bwNff.d.cts → index-D3zyYCYs.d.cts} +2 -2
- package/dist/{index-BaNcf7jt.d.cts → index-DCrSWVMb.d.cts} +3 -3
- package/dist/{index-rTZOdMRE.d.ts → index-DP2f5ZsS.d.ts} +3 -3
- package/dist/{index-DfkIz7i0.d.cts → index-DRjXV9ej.d.cts} +3 -3
- package/dist/{index-Dv-Mek07.d.ts → index-DSXBQeur.d.cts} +1 -1
- package/dist/{index-Dv-Mek07.d.cts → index-DSXBQeur.d.ts} +1 -1
- package/dist/{index-BYonklf3.d.cts → index-Dvi-3DSM.d.cts} +1 -1
- package/dist/{index-BYonklf3.d.ts → index-Dvi-3DSM.d.ts} +1 -1
- package/dist/{index-C01Rkrir.d.ts → index-Dy8EWOnt.d.ts} +2 -2
- package/dist/{index-DrmS802s.d.cts → index-HWWl6HEL.d.cts} +34 -3
- package/dist/{index-DWOLZNlz.d.cts → index-QYgreJV3.d.cts} +2 -2
- package/dist/{index-lsuS2R1T.d.ts → index-SyCMBpNN.d.ts} +34 -3
- package/dist/{index-DFstwgGK.d.cts → index-yro2MWgt.d.cts} +2 -2
- package/dist/index.cjs +1543 -964
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.mjs +1544 -965
- package/dist/index.mjs.map +1 -1
- package/dist/lane/index.cjs +81 -0
- package/dist/lane/index.cjs.map +1 -1
- package/dist/lane/index.mjs +82 -1
- package/dist/lane/index.mjs.map +1 -1
- package/dist/match/index.d.cts +6 -6
- package/dist/match/index.d.ts +6 -6
- package/dist/match/index.mjs +1 -1
- package/dist/pem/index.d.cts +4 -4
- package/dist/pem/index.d.ts +4 -4
- package/dist/pilot/index.d.cts +4 -4
- package/dist/pilot/index.d.ts +4 -4
- package/dist/playstore/index.cjs +18208 -1
- package/dist/playstore/index.cjs.map +1 -1
- package/dist/playstore/index.d.cts +1 -1
- package/dist/playstore/index.d.ts +1 -1
- package/dist/playstore/index.mjs +18196 -2
- package/dist/playstore/index.mjs.map +1 -1
- package/dist/precheck/index.d.cts +4 -4
- package/dist/precheck/index.d.ts +4 -4
- package/dist/privacy/index.cjs +32 -22
- package/dist/privacy/index.cjs.map +1 -1
- package/dist/privacy/index.d.cts +2 -2
- package/dist/privacy/index.d.ts +2 -2
- package/dist/privacy/index.mjs +32 -22
- package/dist/privacy/index.mjs.map +1 -1
- package/dist/produce/index.d.cts +4 -4
- package/dist/produce/index.d.ts +4 -4
- package/dist/review/index.cjs +32 -22
- package/dist/review/index.cjs.map +1 -1
- package/dist/review/index.d.cts +2 -2
- package/dist/review/index.d.ts +2 -2
- package/dist/review/index.mjs +32 -22
- package/dist/review/index.mjs.map +1 -1
- package/dist/sigh/index.d.cts +4 -4
- package/dist/sigh/index.d.ts +4 -4
- package/dist/snapshot/index.d.cts +1 -1
- package/dist/snapshot/index.d.ts +1 -1
- package/dist/trainer/index.d.cts +1 -1
- package/dist/trainer/index.d.ts +1 -1
- package/dist/xcode/index.d.cts +1 -1
- package/dist/xcode/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/index-CXJlvmB4.d.cts +0 -63
- package/dist/index-CXJlvmB4.d.ts +0 -63
package/dist/client/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { A as AppleSession, a as AppleSessionConfig, B as BeginLoginResult, C as ContractMessage,
|
|
3
|
-
import '../enums-
|
|
1
|
+
export { a9 as ApiKeyRole, A as AppStoreConnectClient, r as AppStoreConnectConfig, s as AppStoreConnectError, aa as IrisApiKey, ab as IrisAuthError, ac as IrisClient, R as JsonApiError, ad as JsonApiErrorResponse, S as JsonApiListResponse, ae as JsonApiRelationship, T as JsonApiResource, U as JsonApiResponse, V as ListParams, a8 as PortalClient, $ as RateLimitError, a0 as RequestClient, a1 as RequestOptions, a4 as TokenConfig, a5 as TokenManager, af as clearAppleSession, ag as lastAppleId, ah as loadAppleSession, ai as saveAppleSession, aj as sessionDir, ak as signInWithAppleId } from '../index-HWWl6HEL.cjs';
|
|
2
|
+
export { A as AppleSession, a as AppleSessionConfig, B as BeginLoginResult, C as ContractMessage, P as PendingLogin, b as ProgramLicenseAgreementError, T as TwoFactorChallenge, c as beginLogin, d as checkPortalResponse, l as loginWithAppleId, r as requestSmsCode, s as submitTwoFactorCode } from '../apple-session-D6x7Jo3D.cjs';
|
|
3
|
+
import '../enums-BlpayMTx.cjs';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { A as AppleSession, a as AppleSessionConfig, B as BeginLoginResult, C as ContractMessage,
|
|
3
|
-
import '../enums-
|
|
1
|
+
export { a9 as ApiKeyRole, A as AppStoreConnectClient, r as AppStoreConnectConfig, s as AppStoreConnectError, aa as IrisApiKey, ab as IrisAuthError, ac as IrisClient, R as JsonApiError, ad as JsonApiErrorResponse, S as JsonApiListResponse, ae as JsonApiRelationship, T as JsonApiResource, U as JsonApiResponse, V as ListParams, a8 as PortalClient, $ as RateLimitError, a0 as RequestClient, a1 as RequestOptions, a4 as TokenConfig, a5 as TokenManager, af as clearAppleSession, ag as lastAppleId, ah as loadAppleSession, ai as saveAppleSession, aj as sessionDir, ak as signInWithAppleId } from '../index-SyCMBpNN.js';
|
|
2
|
+
export { A as AppleSession, a as AppleSessionConfig, B as BeginLoginResult, C as ContractMessage, P as PendingLogin, b as ProgramLicenseAgreementError, T as TwoFactorChallenge, c as beginLogin, d as checkPortalResponse, l as loginWithAppleId, r as requestSmsCode, s as submitTwoFactorCode } from '../apple-session-D6x7Jo3D.js';
|
|
3
|
+
import '../enums-BlpayMTx.js';
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { importPKCS8, SignJWT } from 'jose';
|
|
2
2
|
import { createHash, randomBytes, pbkdf2Sync } from 'crypto';
|
|
3
3
|
import { createInterface } from 'readline';
|
|
4
|
+
import { writeFileSync, chmodSync, existsSync, unlinkSync, readFileSync, mkdirSync } from 'fs';
|
|
5
|
+
import { homedir } from 'os';
|
|
6
|
+
import { join } from 'path';
|
|
4
7
|
|
|
5
8
|
// src/client/auth.ts
|
|
6
9
|
var MAX_TOKEN_DURATION = 1200;
|
|
@@ -2516,6 +2519,73 @@ var AppAssetLibraryPlacementsResource = class {
|
|
|
2516
2519
|
});
|
|
2517
2520
|
}
|
|
2518
2521
|
};
|
|
2522
|
+
var OLYMPUS_SESSION2 = "https://appstoreconnect.apple.com/olympus/v1/session";
|
|
2523
|
+
function sessionDir() {
|
|
2524
|
+
return process.env.FASTNODE_SESSION_DIR || join(homedir(), ".fastnode", "sessions");
|
|
2525
|
+
}
|
|
2526
|
+
function fileFor(email) {
|
|
2527
|
+
const key = createHash("sha256").update(email.trim().toLowerCase()).digest("hex").slice(0, 16);
|
|
2528
|
+
return join(sessionDir(), `${key}.json`);
|
|
2529
|
+
}
|
|
2530
|
+
function ensureDir() {
|
|
2531
|
+
const dir = sessionDir();
|
|
2532
|
+
if (!existsSync(dir)) mkdirSync(dir, { recursive: true, mode: 448 });
|
|
2533
|
+
chmodSync(dir, 448);
|
|
2534
|
+
}
|
|
2535
|
+
function saveAppleSession(session) {
|
|
2536
|
+
ensureDir();
|
|
2537
|
+
const stored = { email: session.userEmail, savedAt: (/* @__PURE__ */ new Date()).toISOString(), session };
|
|
2538
|
+
const path = fileFor(session.userEmail);
|
|
2539
|
+
writeFileSync(path, JSON.stringify(stored), { mode: 384 });
|
|
2540
|
+
chmodSync(path, 384);
|
|
2541
|
+
writeFileSync(join(sessionDir(), "last-apple-id"), session.userEmail, { mode: 384 });
|
|
2542
|
+
}
|
|
2543
|
+
function clearAppleSession(email) {
|
|
2544
|
+
const path = fileFor(email);
|
|
2545
|
+
if (existsSync(path)) unlinkSync(path);
|
|
2546
|
+
}
|
|
2547
|
+
function lastAppleId() {
|
|
2548
|
+
try {
|
|
2549
|
+
return readFileSync(join(sessionDir(), "last-apple-id"), "utf8").trim() || null;
|
|
2550
|
+
} catch {
|
|
2551
|
+
return null;
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
async function loadAppleSession(email, fetchImpl = fetch) {
|
|
2555
|
+
const path = fileFor(email);
|
|
2556
|
+
if (!existsSync(path)) return null;
|
|
2557
|
+
let stored;
|
|
2558
|
+
try {
|
|
2559
|
+
stored = JSON.parse(readFileSync(path, "utf8"));
|
|
2560
|
+
} catch {
|
|
2561
|
+
return null;
|
|
2562
|
+
}
|
|
2563
|
+
const cookie = Object.entries(stored.session.cookies).map(([k, v]) => `${k}=${v}`).join("; ");
|
|
2564
|
+
try {
|
|
2565
|
+
const res = await fetchImpl(OLYMPUS_SESSION2, { headers: { Cookie: cookie, Accept: "application/json" } });
|
|
2566
|
+
if (!res.ok) {
|
|
2567
|
+
clearAppleSession(email);
|
|
2568
|
+
return null;
|
|
2569
|
+
}
|
|
2570
|
+
} catch {
|
|
2571
|
+
return null;
|
|
2572
|
+
}
|
|
2573
|
+
return stored.session;
|
|
2574
|
+
}
|
|
2575
|
+
async function signInWithAppleId(options) {
|
|
2576
|
+
const email = options.email || lastAppleId() || await options.askEmail();
|
|
2577
|
+
if (!options.fresh) {
|
|
2578
|
+
const saved = await loadAppleSession(email);
|
|
2579
|
+
if (saved) {
|
|
2580
|
+
options.onLog?.(`Using saved Apple ID session for ${email}`);
|
|
2581
|
+
return saved;
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
const password = await options.askPassword(email);
|
|
2585
|
+
const session = await loginWithAppleId({ email, password, onLog: options.onLog });
|
|
2586
|
+
saveAppleSession(session);
|
|
2587
|
+
return session;
|
|
2588
|
+
}
|
|
2519
2589
|
|
|
2520
2590
|
// src/client/portal.ts
|
|
2521
2591
|
var PORTAL_BASE = "https://developer.apple.com/services-account/QH65B2";
|
|
@@ -3275,6 +3345,7 @@ var IrisClient = class {
|
|
|
3275
3345
|
session;
|
|
3276
3346
|
cookieStr;
|
|
3277
3347
|
buildHeaders() {
|
|
3348
|
+
this.cookieStr = Object.entries(this.session.cookies).map(([k, v]) => `${k}=${v}`).join("; ");
|
|
3278
3349
|
return {
|
|
3279
3350
|
Cookie: this.cookieStr,
|
|
3280
3351
|
Accept: "application/vnd.api+json, application/json, text/plain, */*",
|
|
@@ -3663,6 +3734,6 @@ var AppStoreConnectClient = class {
|
|
|
3663
3734
|
}
|
|
3664
3735
|
};
|
|
3665
3736
|
|
|
3666
|
-
export { AppStoreConnectClient, AppStoreConnectError, IrisAuthError, IrisClient, PortalClient, ProgramLicenseAgreementError, RateLimitError, RequestClient, TokenManager, beginLogin, checkPortalResponse, loginWithAppleId, requestSmsCode, submitTwoFactorCode };
|
|
3737
|
+
export { AppStoreConnectClient, AppStoreConnectError, IrisAuthError, IrisClient, PortalClient, ProgramLicenseAgreementError, RateLimitError, RequestClient, TokenManager, beginLogin, checkPortalResponse, clearAppleSession, lastAppleId, loadAppleSession, loginWithAppleId, requestSmsCode, saveAppleSession, sessionDir, signInWithAppleId, submitTwoFactorCode };
|
|
3667
3738
|
//# sourceMappingURL=index.mjs.map
|
|
3668
3739
|
//# sourceMappingURL=index.mjs.map
|