@bridgething/browser 0.14.0 → 0.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridgething/browser",
3
- "version": "0.14.0",
3
+ "version": "0.15.1",
4
4
  "description": "Drive a Spotify Car Thing from the browser: the bridgething delivery core compiled to wasm, plus the Web Serial and network transports.",
5
5
  "license": "MIT",
6
6
  "author": "Joey Eamigh <55670930+JoeyEamigh@users.noreply.github.com> (https://github.com/JoeyEamigh)",
@@ -46,7 +46,7 @@
46
46
  "lint": "eslint ."
47
47
  },
48
48
  "dependencies": {
49
- "@bridgething/lib": "0.14.0"
49
+ "@bridgething/lib": "0.15.1"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "typescript": "^6.0.3"
@@ -44,7 +44,7 @@ export interface UpdateEvent {
44
44
  channel?: string;
45
45
  rootUrl?: string;
46
46
  version?: string;
47
- updatedAt?: string;
47
+ checkedAt?: string;
48
48
  reason?: string;
49
49
  stepId?: number;
50
50
  steps?: PlanStep[];
@@ -174,7 +174,7 @@ export class DeliverySession {
174
174
  push(kind: OtaUpdateKind, artifact: Uint8Array, label?: string | null): Promise<Phase>;
175
175
  pushImage(swu: Uint8Array, zcks: Map<string, Uint8Array>, update_url_base?: string | null): Promise<Phase>;
176
176
  putWebappBlob(id: string, key: string, handle: string, on_progress: ((sent: number, total: number) => void) | null | undefined): Promise<WebappBlobEntry>;
177
- setLauncherGesture(gesture: "longPress" | "fivePress"): Promise<void>;
177
+ setLauncherGesture(gesture: "longPress" | "fivePress" | "doublePress"): Promise<void>;
178
178
  setNickname(nickname: string): Promise<any>;
179
179
  setWebappConfig(id: string, key: string, value: string): Promise<void>;
180
180
  setWebappDoc(id: string, key: string, value: string): Promise<void>;
@@ -243,13 +243,13 @@ export interface InitOutput {
243
243
  readonly discoverManifest: (a: number, b: number) => number;
244
244
  readonly init: () => void;
245
245
  readonly parseCompositeVersion: (a: number, b: number, c: number) => void;
246
- readonly __wasm_bindgen_func_elem_7352: (a: number, b: number, c: number, d: number) => void;
247
- readonly __wasm_bindgen_func_elem_7354: (a: number, b: number, c: number, d: number) => void;
248
- readonly __wasm_bindgen_func_elem_4541: (a: number, b: number, c: number) => void;
249
- readonly __wasm_bindgen_func_elem_4541_2: (a: number, b: number, c: number) => void;
250
- readonly __wasm_bindgen_func_elem_4541_3: (a: number, b: number, c: number) => void;
251
- readonly __wasm_bindgen_func_elem_6084: (a: number, b: number) => void;
252
- readonly __wasm_bindgen_func_elem_5524: (a: number, b: number) => void;
246
+ readonly __wasm_bindgen_func_elem_7383: (a: number, b: number, c: number, d: number) => void;
247
+ readonly __wasm_bindgen_func_elem_7385: (a: number, b: number, c: number, d: number) => void;
248
+ readonly __wasm_bindgen_func_elem_4845: (a: number, b: number, c: number) => void;
249
+ readonly __wasm_bindgen_func_elem_4845_2: (a: number, b: number, c: number) => void;
250
+ readonly __wasm_bindgen_func_elem_4845_3: (a: number, b: number, c: number) => void;
251
+ readonly __wasm_bindgen_func_elem_6115: (a: number, b: number) => void;
252
+ readonly __wasm_bindgen_func_elem_5556: (a: number, b: number) => void;
253
253
  readonly __wbindgen_export: (a: number, b: number) => number;
254
254
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
255
255
  readonly __wbindgen_export3: (a: number) => void;
package/wasm/core-wasm.js CHANGED
@@ -284,7 +284,7 @@ export class DeliverySession {
284
284
  return takeObject(ret);
285
285
  }
286
286
  /**
287
- * @param {"longPress" | "fivePress"} gesture
287
+ * @param {"longPress" | "fivePress" | "doublePress"} gesture
288
288
  * @returns {Promise<void>}
289
289
  */
290
290
  setLauncherGesture(gesture) {
@@ -809,7 +809,7 @@ function __wbg_get_imports() {
809
809
  const a = state0.a;
810
810
  state0.a = 0;
811
811
  try {
812
- return __wasm_bindgen_func_elem_7354(a, state0.b, arg0, arg1);
812
+ return __wasm_bindgen_func_elem_7385(a, state0.b, arg0, arg1);
813
813
  } finally {
814
814
  state0.a = a;
815
815
  }
@@ -869,7 +869,7 @@ function __wbg_get_imports() {
869
869
  __wbg_send_a321b376d40ec867: function() { return handleError(function (arg0, arg1, arg2) {
870
870
  getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
871
871
  }, arguments); },
872
- __wbg_setTimeout_9af5dc3010a3b990: function(arg0, arg1) {
872
+ __wbg_setTimeout_9134095b9554fef8: function(arg0, arg1) {
873
873
  setTimeout(getObject(arg0), arg1);
874
874
  },
875
875
  __wbg_set_0de9c62c23d04ad5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
@@ -963,33 +963,33 @@ function __wbg_get_imports() {
963
963
  console.warn(getObject(arg0));
964
964
  },
965
965
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
966
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1165, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
967
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_7352);
966
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1155, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
967
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_7383);
968
968
  return addHeapObject(ret);
969
969
  },
970
970
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
971
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 974, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
972
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4541);
971
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 940, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
972
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4845);
973
973
  return addHeapObject(ret);
974
974
  },
975
975
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
976
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 974, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
977
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4541_2);
976
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 940, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
977
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4845_2);
978
978
  return addHeapObject(ret);
979
979
  },
980
980
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
981
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 974, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
982
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4541_3);
981
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 940, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
982
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4845_3);
983
983
  return addHeapObject(ret);
984
984
  },
985
985
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
986
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1077, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
987
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_6084);
986
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1067, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
987
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_6115);
988
988
  return addHeapObject(ret);
989
989
  },
990
990
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
991
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 989, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
992
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_5524);
991
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 979, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
992
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_5556);
993
993
  return addHeapObject(ret);
994
994
  },
995
995
  __wbindgen_cast_0000000000000007: function(arg0) {
@@ -1021,30 +1021,30 @@ function __wbg_get_imports() {
1021
1021
  };
1022
1022
  }
1023
1023
 
1024
- function __wasm_bindgen_func_elem_6084(arg0, arg1) {
1025
- wasm.__wasm_bindgen_func_elem_6084(arg0, arg1);
1024
+ function __wasm_bindgen_func_elem_6115(arg0, arg1) {
1025
+ wasm.__wasm_bindgen_func_elem_6115(arg0, arg1);
1026
1026
  }
1027
1027
 
1028
- function __wasm_bindgen_func_elem_5524(arg0, arg1) {
1029
- wasm.__wasm_bindgen_func_elem_5524(arg0, arg1);
1028
+ function __wasm_bindgen_func_elem_5556(arg0, arg1) {
1029
+ wasm.__wasm_bindgen_func_elem_5556(arg0, arg1);
1030
1030
  }
1031
1031
 
1032
- function __wasm_bindgen_func_elem_4541(arg0, arg1, arg2) {
1033
- wasm.__wasm_bindgen_func_elem_4541(arg0, arg1, addHeapObject(arg2));
1032
+ function __wasm_bindgen_func_elem_4845(arg0, arg1, arg2) {
1033
+ wasm.__wasm_bindgen_func_elem_4845(arg0, arg1, addHeapObject(arg2));
1034
1034
  }
1035
1035
 
1036
- function __wasm_bindgen_func_elem_4541_2(arg0, arg1, arg2) {
1037
- wasm.__wasm_bindgen_func_elem_4541_2(arg0, arg1, addHeapObject(arg2));
1036
+ function __wasm_bindgen_func_elem_4845_2(arg0, arg1, arg2) {
1037
+ wasm.__wasm_bindgen_func_elem_4845_2(arg0, arg1, addHeapObject(arg2));
1038
1038
  }
1039
1039
 
1040
- function __wasm_bindgen_func_elem_4541_3(arg0, arg1, arg2) {
1041
- wasm.__wasm_bindgen_func_elem_4541_3(arg0, arg1, addHeapObject(arg2));
1040
+ function __wasm_bindgen_func_elem_4845_3(arg0, arg1, arg2) {
1041
+ wasm.__wasm_bindgen_func_elem_4845_3(arg0, arg1, addHeapObject(arg2));
1042
1042
  }
1043
1043
 
1044
- function __wasm_bindgen_func_elem_7352(arg0, arg1, arg2) {
1044
+ function __wasm_bindgen_func_elem_7383(arg0, arg1, arg2) {
1045
1045
  try {
1046
1046
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1047
- wasm.__wasm_bindgen_func_elem_7352(retptr, arg0, arg1, addHeapObject(arg2));
1047
+ wasm.__wasm_bindgen_func_elem_7383(retptr, arg0, arg1, addHeapObject(arg2));
1048
1048
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1049
1049
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1050
1050
  if (r1) {
@@ -1055,8 +1055,8 @@ function __wasm_bindgen_func_elem_7352(arg0, arg1, arg2) {
1055
1055
  }
1056
1056
  }
1057
1057
 
1058
- function __wasm_bindgen_func_elem_7354(arg0, arg1, arg2, arg3) {
1059
- wasm.__wasm_bindgen_func_elem_7354(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1058
+ function __wasm_bindgen_func_elem_7385(arg0, arg1, arg2, arg3) {
1059
+ wasm.__wasm_bindgen_func_elem_7385(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1060
1060
  }
1061
1061
 
1062
1062
 
Binary file
@@ -41,13 +41,13 @@ export const deliverysession_webapps: (a: number) => number;
41
41
  export const discoverManifest: (a: number, b: number) => number;
42
42
  export const init: () => void;
43
43
  export const parseCompositeVersion: (a: number, b: number, c: number) => void;
44
- export const __wasm_bindgen_func_elem_7352: (a: number, b: number, c: number, d: number) => void;
45
- export const __wasm_bindgen_func_elem_7354: (a: number, b: number, c: number, d: number) => void;
46
- export const __wasm_bindgen_func_elem_4541: (a: number, b: number, c: number) => void;
47
- export const __wasm_bindgen_func_elem_4541_2: (a: number, b: number, c: number) => void;
48
- export const __wasm_bindgen_func_elem_4541_3: (a: number, b: number, c: number) => void;
49
- export const __wasm_bindgen_func_elem_6084: (a: number, b: number) => void;
50
- export const __wasm_bindgen_func_elem_5524: (a: number, b: number) => void;
44
+ export const __wasm_bindgen_func_elem_7383: (a: number, b: number, c: number, d: number) => void;
45
+ export const __wasm_bindgen_func_elem_7385: (a: number, b: number, c: number, d: number) => void;
46
+ export const __wasm_bindgen_func_elem_4845: (a: number, b: number, c: number) => void;
47
+ export const __wasm_bindgen_func_elem_4845_2: (a: number, b: number, c: number) => void;
48
+ export const __wasm_bindgen_func_elem_4845_3: (a: number, b: number, c: number) => void;
49
+ export const __wasm_bindgen_func_elem_6115: (a: number, b: number) => void;
50
+ export const __wasm_bindgen_func_elem_5556: (a: number, b: number) => void;
51
51
  export const __wbindgen_export: (a: number, b: number) => number;
52
52
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
53
53
  export const __wbindgen_export3: (a: number) => void;