Skip to content

Commit

Permalink
Merge pull request #355 from permaweb/twilson63/update-weavedrive
Browse files Browse the repository at this point in the history
updated weavedrive
  • Loading branch information
twilson63 authored Sep 24, 2024
2 parents dc4e963 + 905a39d commit a53fb0c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions extensions/weavedrive/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "@permaweb/weavedrive",
"version": "0.0.6",
"version": "0.0.7",
"main": "./dist/index.cjs",
"license": "MIT",
"devDependencies": {
"@permaweb/ao-loader": "^0.0.35",
"@permaweb/weavedrive": "^0.0.2",
"@permaweb/ao-loader": "^0.0.36",
"esbuild": "^0.21.1"
}
}
6 changes: 3 additions & 3 deletions process/process.lua
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,13 @@ function Version()
end

function process.handle(msg, _)
env = nil
local env = nil
if _.Process then
env = _
else
env = _.env
end

ao.init(env)
-- relocate custom tags to root message
msg = ao.normalize(msg)
Expand Down Expand Up @@ -345,7 +345,7 @@ function process.handle(msg, _)

local co = coroutine.create(
function()
return pcall(Handlers.evaluate, msg, ao.env)
return pcall(Handlers.evaluate, msg, env)
end
)
local _, status, result = coroutine.resume(co)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/os.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function dry() {
export function update() {
// let luaFiles = fs.readdirSync(__dirname + "../../process")
// .filter(n => /\.lua$/.test(n))
let luaFiles = ['stringify.lua', 'ao.lua', 'utils.lua', 'assignment.lua', 'handlers-utils.lua', 'handlers.lua', 'eval.lua', 'process.lua']
let luaFiles = ['stringify.lua', 'ao.lua', 'utils.lua', 'assignment.lua', 'handlers-utils.lua', 'handlers.lua', 'eval.lua', 'boot.lua', 'process.lua']
.map(name => {
const code = fs.readFileSync(__dirname + "../../process/" + name, 'utf-8')
const mod = name.replace(/\.lua$/, "")
Expand Down

0 comments on commit a53fb0c

Please sign in to comment.