greyscript-interpreter 0.6.0 → 0.6.1

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/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import './overrides';
2
+ export { CLASS_ID_PROPERTY } from './overrides';
1
3
  export { CPS, defaultCPSVisit } from './cps';
2
4
  export { Interpreter } from './interpreter';
3
5
  export { Import } from './operations/import';
package/dist/index.js CHANGED
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Include = exports.Import = exports.Interpreter = exports.defaultCPSVisit = exports.CPS = void 0;
3
+ exports.Include = exports.Import = exports.Interpreter = exports.defaultCPSVisit = exports.CPS = exports.CLASS_ID_PROPERTY = void 0;
4
+ require("./overrides");
5
+ var overrides_1 = require("./overrides");
6
+ Object.defineProperty(exports, "CLASS_ID_PROPERTY", { enumerable: true, get: function () { return overrides_1.CLASS_ID_PROPERTY; } });
4
7
  var cps_1 = require("./cps");
5
8
  Object.defineProperty(exports, "CPS", { enumerable: true, get: function () { return cps_1.CPS; } });
6
9
  Object.defineProperty(exports, "defaultCPSVisit", { enumerable: true, get: function () { return cps_1.defaultCPSVisit; } });
@@ -0,0 +1,2 @@
1
+ import { CustomString } from "greybel-interpreter";
2
+ export declare const CLASS_ID_PROPERTY: CustomString;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLASS_ID_PROPERTY = void 0;
4
+ const greybel_interpreter_1 = require("greybel-interpreter");
5
+ exports.CLASS_ID_PROPERTY = new greybel_interpreter_1.CustomString('classID');
6
+ const defaultCustomMapToString = greybel_interpreter_1.CustomMap.prototype.toString;
7
+ greybel_interpreter_1.CustomMap.prototype.toString = function (depth = 0) {
8
+ if (this.value.has(exports.CLASS_ID_PROPERTY)) {
9
+ return this.value.get(exports.CLASS_ID_PROPERTY).toString();
10
+ }
11
+ return defaultCustomMapToString.call(this, depth);
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greyscript-interpreter",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "greyscript-core": "~1.4.2",
52
- "greybel-interpreter": "~3.5.0"
52
+ "greybel-interpreter": "~3.5.1"
53
53
  },
54
54
  "keywords": [
55
55
  "greyscript",