sptc 0.0.32 → 0.0.33

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.
@@ -65,51 +65,15 @@ function _var_dump(x) {
65
65
 
66
66
  function buildGlobal() {
67
67
  const ctx={
68
- // nodejs
69
- setTimeout,
70
- setInterval,
71
- clearTimeout,
72
- clearInterval,
73
- queueMicrotask,
74
- clearImmediate,
75
- setImmediate,
76
-
77
68
  console,
69
+ setTimeout, clearTimeout,
70
+ setInterval, clearInterval,
71
+ setImmediate, clearImmediate,
72
+ queueMicrotask,
78
73
  Buffer,
79
74
  process,
80
-
81
- TextDecoder,
82
- TextEncoder,
83
- URL,
84
- URLSearchParams,
85
-
86
- Promise,
87
- // importESModule: x=>import(x),
88
- // require
89
-
90
- // v8
91
- JSON,
92
- RegExp,
93
- Object,
94
- Array,
95
- String,
96
- Number,
97
- Boolean,
98
- Date,
99
- Math,
100
- Set, WeakSet,
101
- Map, WeakMap,
102
- Proxy,
103
- Symbol,
104
- Error,
105
- Function,
106
- // eval,
107
-
108
- escape, unescape,
109
- encodeURI, decodeURI,
110
- encodeURIComponent, decodeURIComponent,
111
- isNaN, isFinite,
112
- parseInt, parseFloat,
75
+ TextEncoder, TextDecoder,
76
+ URL, URLSearchParams,
113
77
  }
114
78
  ctx.global=ctx
115
79
  ctx.globalThis=ctx
@@ -310,11 +274,11 @@ function buildContext(ctx0, option) {
310
274
  }
311
275
  }
312
276
  }
313
- return target[prop]
277
+ return Reflect.get(target, prop, receiver)
314
278
  },
315
279
  })
316
280
 
317
- return [pctx, priv]
281
+ return [{...pctx}, priv]
318
282
  }
319
283
 
320
284
  function toWritable(x) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sptc",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "Simple Pretreat Toolkit CLI",
5
5
  "main": "engine/index.js",
6
6
  "engines": {
@@ -11,7 +11,6 @@
11
11
  "sptcd": "./bin/sptcd.js"
12
12
  },
13
13
  "dependencies": {
14
- "commander": "10.0.1",
15
- "fs-extra": "^11.2.0"
14
+ "commander": "10.0.1"
16
15
  }
17
16
  }