@better-update/cli 0.33.1 → 0.33.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/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region package.json
|
|
37
|
-
var version = "0.33.
|
|
37
|
+
var version = "0.33.2";
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/lib/interactive-mode.ts
|
|
@@ -19985,7 +19985,6 @@ const DISTRIBUTION_TO_CERTIFICATE_TYPE = {
|
|
|
19985
19985
|
DEVELOPMENT: AppleUtils.CertificateType.IOS_DEVELOPMENT
|
|
19986
19986
|
};
|
|
19987
19987
|
var AppleIdGenerateFailedError = class extends Data.TaggedError("AppleIdGenerateFailedError") {};
|
|
19988
|
-
var ApnsKeyLimitError = class extends Data.TaggedError("ApnsKeyLimitError") {};
|
|
19989
19988
|
const CERT_LIMIT_PATTERN = /already have a current.*certificate|pending certificate request/iu;
|
|
19990
19989
|
const messageOf = (cause) => cause instanceof Error ? cause.message : String(cause);
|
|
19991
19990
|
const wrap = (step, run) => Effect.tryPromise({
|
|
@@ -20130,8 +20129,12 @@ const generateAndUploadProvisioningProfileViaAppleId = (api, input) => Effect.ge
|
|
|
20130
20129
|
developerPortalIdentifier: created.developerPortalIdentifier
|
|
20131
20130
|
};
|
|
20132
20131
|
});
|
|
20132
|
+
|
|
20133
|
+
//#endregion
|
|
20134
|
+
//#region src/lib/credentials-generator-apns.ts
|
|
20133
20135
|
const APNS_SERVICE_ID = "U27F4V844T";
|
|
20134
20136
|
const APNS_KEY_LIMIT_PATTERN = /maximum allowed number of .*keys/iu;
|
|
20137
|
+
var ApnsKeyLimitError = class extends Data.TaggedError("ApnsKeyLimitError") {};
|
|
20135
20138
|
const wrapKeyCreate = (run) => Effect.tryPromise({
|
|
20136
20139
|
try: run,
|
|
20137
20140
|
catch: (cause) => {
|
|
@@ -20169,7 +20172,8 @@ const generateAndUploadApnsKeyViaAppleId = (api, input) => Effect.gen(function*
|
|
|
20169
20172
|
});
|
|
20170
20173
|
return yield* api.applePushKeys.upload({ payload: {
|
|
20171
20174
|
...toUploadEnvelope(envelope),
|
|
20172
|
-
...metadata
|
|
20175
|
+
...metadata,
|
|
20176
|
+
...compact({ appleTeamName: toOptional(input.appleTeamName) })
|
|
20173
20177
|
} });
|
|
20174
20178
|
}).pipe(Effect.catchAll((cause) => Effect.gen(function* () {
|
|
20175
20179
|
const rescuePath = yield* writeRescueP8(key.id, p8Pem).pipe(Effect.catchAll(() => Effect.succeed(null)));
|
|
@@ -20308,6 +20312,7 @@ const createApnsKeyViaAppleId = (api, name) => Effect.gen(function* () {
|
|
|
20308
20312
|
const generate = generateAndUploadApnsKeyViaAppleId(api, {
|
|
20309
20313
|
context: ctx,
|
|
20310
20314
|
appleTeamIdentifier: session.teamId,
|
|
20315
|
+
appleTeamName: session.teamName,
|
|
20311
20316
|
name
|
|
20312
20317
|
});
|
|
20313
20318
|
return yield* generate.pipe(Effect.catchTag("ApnsKeyLimitError", () => apnsKeyLimitRecover(ctx).pipe(Effect.flatMap(() => generate))));
|