@glassly/crust 0.3.5-dev.836 → 0.3.5-dev.838

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.
@@ -254,9 +254,16 @@
254
254
  let env;
255
255
  try {
256
256
  env = JSON.parse(envelopeJson);
257
- } catch {
257
+ } catch (e) {
258
258
  try {
259
- __hostError(JSON.stringify({ message: "Bad __deliver envelope JSON", source: "__deliver" }));
259
+ const reason = e instanceof Error ? `${e.name}: ${e.message}` : String(e);
260
+ const length = typeof envelopeJson === "string" ? envelopeJson.length : -1;
261
+ __hostError(
262
+ JSON.stringify({
263
+ message: `Bad __deliver envelope JSON (${reason}; length=${length}, type=${typeof envelopeJson})`,
264
+ source: "__deliver"
265
+ })
266
+ );
260
267
  } catch {
261
268
  }
262
269
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glassly/crust",
3
- "version": "0.3.5-dev.836",
3
+ "version": "0.3.5-dev.838",
4
4
  "description": "Glassly Native Module",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  "license": "MIT",
36
36
  "homepage": "https://github.com/fossephate/crust#readme",
37
37
  "dependencies": {
38
- "@glassly/jspolyfill": "0.3.5-dev.836"
38
+ "@glassly/jspolyfill": "0.3.5-dev.838"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@expo/config-plugins": ">=8.0.0",