From abbe4493ab08bf3c0fcf78e675d82b44157332be Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 8 May 2022 19:09:22 +0800 Subject: fix module name --- xmake/core/sandbox/modules/import/core/compress/lz4.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xmake/core/sandbox/modules/import/core/compress/lz4.lua b/xmake/core/sandbox/modules/import/core/compress/lz4.lua index ba49e35bb..d05c6a6fd 100644 --- a/xmake/core/sandbox/modules/import/core/compress/lz4.lua +++ b/xmake/core/sandbox/modules/import/core/compress/lz4.lua @@ -1,4 +1,4 @@ ---!A cross-platform build utility based on Lua +--!A cross-platform build utility compressd on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ -- -- define module -local sandbox_core_base_lz4 = sandbox_core_base_lz4 or {} +local sandbox_core_compress_lz4 = sandbox_core_compress_lz4 or {} -- load modules -local lz4 = require("base/lz4") +local lz4 = require("compress/lz4") local raise = require("sandbox/modules/raise") -- compress data -function sandbox_core_base_lz4.compress(data, opt) +function sandbox_core_compress_lz4.compress(data, opt) local result, errors = lz4.compress(data, opt) if not result and errors then raise(errors) @@ -35,7 +35,7 @@ function sandbox_core_base_lz4.compress(data, opt) end -- decompress data -function sandbox_core_base_lz4.decompress(data, opt) +function sandbox_core_compress_lz4.decompress(data, opt) local result, errors = lz4.decompress(data, opt) if not result and errors then raise(errors) @@ -44,4 +44,4 @@ function sandbox_core_base_lz4.decompress(data, opt) end -- return module -return sandbox_core_base_lz4 +return sandbox_core_compress_lz4 -- cgit v1.3.1