@dgck81lnn/koishi-plugin-music 0.1.4 → 0.1.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/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -99,7 +99,7 @@ function apply(ctx, config) {
|
|
|
99
99
|
catch (e) {
|
|
100
100
|
return koishi_1.h.text(String(e));
|
|
101
101
|
}
|
|
102
|
-
let gutteredCode = `(${gutterFunc})(${
|
|
102
|
+
let gutteredCode = `(${gutterFunc})(function($){with($){\n${code}\n}})`;
|
|
103
103
|
if (config.evalCommand !== "eval")
|
|
104
104
|
gutteredCode = `process.stdout.write(${gutteredCode})`;
|
|
105
105
|
ctx.logger.debug(config.evalCommand, gutteredCode);
|