greybel-interpreter 2.5.2 → 2.5.3

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.
@@ -18,6 +18,7 @@ export interface InterpreterOptions {
18
18
  environmentVariables?: Map<string, string>;
19
19
  }
20
20
  export declare class Interpreter extends EventEmitter {
21
+ static clearAllIntrinsics(): void;
21
22
  target: string;
22
23
  api: ObjectValue;
23
24
  params: Array<string>;
@@ -28,6 +28,13 @@ const boolean_1 = require("./types/boolean");
28
28
  exports.PARAMS_PROPERTY = new string_1.CustomString('params');
29
29
  exports.IS_GREYBEL_PROPERTY = new string_1.CustomString('IS_GREYBEL');
30
30
  class Interpreter extends events_1.EventEmitter {
31
+ static clearAllIntrinsics() {
32
+ number_1.CustomNumber.clearIntrinsics();
33
+ string_1.CustomString.clearIntrinsics();
34
+ function_1.CustomFunction.intrinsics.clear();
35
+ list_1.CustomList.clearIntrinsics();
36
+ map_1.CustomMap.clearIntrinsics();
37
+ }
31
38
  constructor(options) {
32
39
  var _a, _b, _c, _d, _e, _f;
33
40
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",