vydanne 0.4.1 → 0.4.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/package.json +1 -1
- package/src/client.mjs +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vydanne",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "App Store Connect + Google Play submission prep — the companion to zdymak (media). Native Node (no fastlane/Ruby/Python): localized listings, screenshot/preview/icon upload, ratings, review contact, accessibility & privacy labels, IAP, export docs, a diff of local-vs-store, and a preflight verifier that encodes the store gotchas. iOS/macOS via the ASC REST API; Android via the Play Developer Edits API (--store google).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app-store-connect",
|
package/src/client.mjs
CHANGED
|
@@ -3,7 +3,12 @@ import { makeToken } from "./jwt.mjs";
|
|
|
3
3
|
const API = "https://api.appstoreconnect.apple.com";
|
|
4
4
|
const IRIS = "https://appstoreconnect.apple.com/iris";
|
|
5
5
|
const DEAD_VERSION = ["READY_FOR_SALE", "REMOVED_FROM_SALE", "REPLACED_WITH_NEW_VERSION"];
|
|
6
|
-
|
|
6
|
+
// READY_FOR_DISTRIBUTION is Apple's newer name for the LIVE app-info (they're migrating the
|
|
7
|
+
// state vocabulary; versions still report appStoreState=READY_FOR_SALE). Without it here,
|
|
8
|
+
// appInfo() treats the live record as editable and every name/subtitle PATCH comes back
|
|
9
|
+
// ENTITY_ERROR.ATTRIBUTE.INVALID.INVALID_STATE — which fails the whole locale in `fill`,
|
|
10
|
+
// release notes included, on any app that already has a version on sale.
|
|
11
|
+
const DEAD_INFO = ["READY_FOR_SALE", "READY_FOR_DISTRIBUTION", "REPLACED_WITH_NEW_VERSION", "REMOVED_FROM_SALE"];
|
|
7
12
|
|
|
8
13
|
// Thin ASC REST client. Encodes the gotchas: `iris` host (App Privacy 401s the JWT), version + app-info
|
|
9
14
|
// fetched from the FULL list (get_edit filters out READY_FOR_REVIEW), and individual localization reads
|