@hotcodepush/node 0.1.0 → 0.2.0
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 +11 -20
- package/dist/index.d.mts +299 -175
- package/dist/index.mjs +11 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region package.json
|
|
2
|
-
var version = "0.
|
|
2
|
+
var version = "0.2.0";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/errors.ts
|
|
5
5
|
/**
|
|
@@ -238,9 +238,14 @@ var BinariesResource = class {
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
async get(options) {
|
|
241
|
+
const { appId, binaryId, ...query } = options;
|
|
241
242
|
return this.httpClient.fetchJson({
|
|
242
243
|
method: "GET",
|
|
243
|
-
path: resolvePath("/v1/apps/{appId}/binaries/{binaryId}",
|
|
244
|
+
path: resolvePath("/v1/apps/{appId}/binaries/{binaryId}", {
|
|
245
|
+
appId,
|
|
246
|
+
binaryId
|
|
247
|
+
}),
|
|
248
|
+
query
|
|
244
249
|
});
|
|
245
250
|
}
|
|
246
251
|
/**
|
|
@@ -613,6 +618,7 @@ var ChannelReleasesResource = class {
|
|
|
613
618
|
}
|
|
614
619
|
/**
|
|
615
620
|
* Releases a ready bundle, or what another channel serves, in this channel.
|
|
621
|
+
* With `fromChannelId`, `platform` picks the newest active release of that channel serving the platform.
|
|
616
622
|
* The release gets the next number of the channel.
|
|
617
623
|
*/
|
|
618
624
|
async create(options) {
|
|
@@ -651,8 +657,8 @@ var RollbacksResource = class {
|
|
|
651
657
|
this.httpClient = httpClient;
|
|
652
658
|
}
|
|
653
659
|
/**
|
|
654
|
-
* Rolls the channel back to its
|
|
655
|
-
* A rollback is a new release.
|
|
660
|
+
* Rolls the channel back to the release before its newest active one, or before the newest active one serving `platform`.
|
|
661
|
+
* `toReleaseId` names the target instead. A rollback is a new release.
|
|
656
662
|
*/
|
|
657
663
|
async create(options) {
|
|
658
664
|
const { appId, channelId, idempotencyKey, ...body } = options;
|
|
@@ -1156,7 +1162,7 @@ var StatisticsFleetResource = class {
|
|
|
1156
1162
|
this.httpClient = httpClient;
|
|
1157
1163
|
}
|
|
1158
1164
|
/**
|
|
1159
|
-
* Gets a snapshot of the fleet from the registry, for one channel when `channelId` is set.
|
|
1165
|
+
* Gets a snapshot of the fleet from the registry, for one channel when `channelId` is set and for one binary when `binaryId` is set.
|
|
1160
1166
|
*/
|
|
1161
1167
|
async get(options) {
|
|
1162
1168
|
const { appId, ...query } = options;
|