sptc 0.0.36 → 0.0.37

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.
@@ -236,9 +236,20 @@ function buildContext(ctx0, option) {
236
236
  const jsvm=Utils.compileFile(inc, {
237
237
  compileFunc: code=>new vm.Script(code+'; Symbol()[0]=_=>0', inc)
238
238
  })
239
+
240
+ /*
239
241
  const jsctx={
240
242
  ...inc_payload,
241
- }
243
+ }*/
244
+
245
+ const [jsctx]=buildContext({
246
+ ...ctx0,
247
+ ...inc_payload,
248
+ }, {
249
+ isEntry: false,
250
+ masterPriv: priv,
251
+ })
252
+
242
253
  jsvm.runInNewContext(jsctx)
243
254
  return jsctx
244
255
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sptc",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "Simple Pretreat Toolkit CLI",
5
5
  "main": "engine/index.js",
6
6
  "engines": {