@mulmobridge/client 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/dist/mime.js +4 -1
  2. package/package.json +3 -3
package/dist/mime.js CHANGED
@@ -57,7 +57,10 @@ export function parseDataUrl(dataUrl) {
57
57
  const match = dataUrl.match(/^data:([^;,]+)(?:;[^,]*)?;base64,(.+)$/);
58
58
  if (!match)
59
59
  return null;
60
- return { mimeType: match[1], data: match[2] };
60
+ const [, mimeType, data] = match;
61
+ if (mimeType === undefined || data === undefined)
62
+ return null;
63
+ return { mimeType, data };
61
64
  }
62
65
  /** Build a `data:<mime>;base64,<data>` string from components. */
63
66
  export function buildDataUrl(mimeType, base64Data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mulmobridge/client",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Socket.io client library for MulmoBridge — shared by all bridge implementations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,11 +46,11 @@
46
46
  "author": "Receptron Team",
47
47
  "dependencies": {
48
48
  "@mulmobridge/protocol": "^1.0.1",
49
- "@mulmoclaude/common": "^1.1.1",
49
+ "@mulmoclaude/common": "^1.1.2",
50
50
  "socket.io-client": "^4.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@types/node": "^26.1.1",
53
+ "@types/node": "^26.1.2",
54
54
  "typescript": "^6.0.3"
55
55
  },
56
56
  "homepage": "https://github.com/receptron/mulmoclaude/tree/main/packages/client#readme",