@noita-ts/pollnet 0.3.2 → 0.3.5
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/dist/async.lua +1 -1
- package/dist/index.lua +1 -1
- package/package.json +1 -1
package/dist/async.lua
CHANGED
|
@@ -172,7 +172,7 @@ function HttpClient.prototype.post(self, url, headers, body)
|
|
|
172
172
|
)
|
|
173
173
|
end
|
|
174
174
|
local statusStr, headersStr, respBody = unpack(msgs, 1, 3)
|
|
175
|
-
local status = tonumber(
|
|
175
|
+
local status = tonumber((string.match("^%d+", statusStr))) or 500
|
|
176
176
|
return __TS__New(____exports.HttpResponse, status, headersStr, respBody)
|
|
177
177
|
end)
|
|
178
178
|
end
|
package/dist/index.lua
CHANGED
|
@@ -46,7 +46,7 @@ void pollnet_sleep_ms(uint32_t milliseconds);
|
|
|
46
46
|
]]
|
|
47
47
|
|
|
48
48
|
--- @noita-ts-include ./pollnet.dll
|
|
49
|
-
local pollnet = ffi.load("mods/" .. require("$mod").MOD_ID .. "/lua_modules/@noita-ts/pollnet/pollnet.dll")
|
|
49
|
+
local pollnet = ffi.load("mods/" .. require("$mod").MOD_ID .. "/lua_modules/@noita-ts/pollnet/dist/pollnet.dll")
|
|
50
50
|
|
|
51
51
|
local POLLNET_VERSION = ffi.string(pollnet.pollnet_version())
|
|
52
52
|
|