@serve.zone/appstore 1.3.0 → 1.4.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/appstore.json +2 -2
- package/changelog.md +23 -0
- package/dist_ts_client/classes.appstoreresolver.d.ts +12 -1
- package/dist_ts_client/classes.appstoreresolver.js +196 -41
- package/dist_ts_client/data.generated.js +2 -2
- package/dist_ts_client/index.d.ts +1 -0
- package/dist_ts_client/index.js +2 -1
- package/dist_ts_client/storage.d.ts +13 -0
- package/dist_ts_client/storage.js +635 -0
- package/dist_ts_client/types.d.ts +32 -0
- package/package.json +3 -2
- package/readme.md +146 -3
- package/ts_client/classes.appstoreresolver.ts +232 -42
- package/ts_client/data.generated.ts +2 -2
- package/ts_client/index.ts +1 -0
- package/ts_client/readme.md +4 -1
- package/ts_client/storage.ts +831 -0
- package/ts_client/types.ts +39 -0
package/ts_client/index.ts
CHANGED
package/ts_client/readme.md
CHANGED
|
@@ -32,10 +32,11 @@ const resolver = new AppStoreResolver({
|
|
|
32
32
|
source: 'remote',
|
|
33
33
|
baseUrl: 'https://example.com/appstore',
|
|
34
34
|
fetch,
|
|
35
|
+
requestTimeoutMs: 30_000,
|
|
35
36
|
});
|
|
36
37
|
```
|
|
37
38
|
|
|
38
|
-
Providing `baseUrl` or `fetch` without an explicit `source` also selects remote mode. The default remote base URL is exported as `appStoreDefaultRemoteBaseUrl`.
|
|
39
|
+
Providing `baseUrl` or `fetch` without an explicit `source` also selects remote mode. The default remote base URL is exported as `appStoreDefaultRemoteBaseUrl`. `requestTimeoutMs` bounds each remote catalog, manifest, registry, and response-body operation; it defaults to `30000` and must be a positive integer.
|
|
39
40
|
|
|
40
41
|
## Exports
|
|
41
42
|
|
|
@@ -44,6 +45,8 @@ Providing `baseUrl` or `fetch` without an explicit `source` also selects remote
|
|
|
44
45
|
- `appStoreDefaultRemoteBaseUrl` exposes the default remote base URL for explicit remote consumers.
|
|
45
46
|
- `IAppStoreResolverOptions`, `IAppStoreSourceInfo`, and the `TAppStore*` types describe resolver inputs and returned App Store data shapes.
|
|
46
47
|
|
|
48
|
+
The resolver rejects inconsistent catalogs before returning them: index and app metadata IDs/latest versions must agree, metadata `latestVersion` must occur in `versions`, and an all-semver list must name its highest semantic value as latest. A repo manifest with multiple non-semver versions must declare explicit latest or channel intent.
|
|
49
|
+
|
|
47
50
|
## License and Legal Information
|
|
48
51
|
|
|
49
52
|
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the repository license file.
|