ableton-js 3.1.5 → 3.1.6
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/CHANGELOG.md +6 -0
- package/midi-script/Interface.py +3 -2
- package/midi-script/version.py +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v3.1.6](https://github.com/leolabs/ableton.js/compare/v3.1.5...v3.1.6)
|
|
8
|
+
|
|
9
|
+
- :bug: Fix an issue with Live 10 where umlauts in a cached response would throw an error [`f4f6a20`](https://github.com/leolabs/ableton.js/commit/f4f6a20e30d9a0c97e585a12799255cbd769c240)
|
|
10
|
+
|
|
7
11
|
#### [v3.1.5](https://github.com/leolabs/ableton.js/compare/v3.1.4...v3.1.5)
|
|
8
12
|
|
|
13
|
+
> 16 March 2023
|
|
14
|
+
|
|
9
15
|
- :zap: Try binding to the last used port first to speed up the connection to Live [`b86bc5d`](https://github.com/leolabs/ableton.js/commit/b86bc5d2b2872b030978a87cc3b001e2e997722d)
|
|
10
16
|
- :memo: Add logging to the example code [`7b5dfbf`](https://github.com/leolabs/ableton.js/commit/7b5dfbf5beb8140588211a4b54c970e48f9980c9)
|
|
11
17
|
- :bug: Don't emit an error when a received message can't be assigned to any request [`3186bdb`](https://github.com/leolabs/ableton.js/commit/3186bdbdc6cb1190d9d2de1f29905fed6e5030dd)
|
package/midi-script/Interface.py
CHANGED
|
@@ -36,8 +36,8 @@ class Interface(object):
|
|
|
36
36
|
def jsonReplace(o):
|
|
37
37
|
return str(o)
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
response = json.dumps(result, default=jsonReplace, ensure_ascii=False)
|
|
40
|
+
hash = hashlib.md5(response.encode("utf-8", "replace")).hexdigest()
|
|
41
41
|
|
|
42
42
|
if hash == etag:
|
|
43
43
|
return self.socket.send("result", {"__cached": True}, uuid)
|
|
@@ -72,6 +72,7 @@ class Interface(object):
|
|
|
72
72
|
self.socket.send("error", "Function call failed: " + payload["name"] +
|
|
73
73
|
" doesn't exist or isn't callable", uuid)
|
|
74
74
|
except Exception as e:
|
|
75
|
+
self.log_message("Handler Error: " + str(e.args))
|
|
75
76
|
self.socket.send("error", str(e.args[0]), uuid)
|
|
76
77
|
|
|
77
78
|
def add_listener(self, ns, prop, eventId, nsid="Default"):
|
package/midi-script/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "3.1.
|
|
1
|
+
version = "3.1.6"
|