@bablr/language_enhancer-debug-log 0.9.1 → 0.11.0

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -3
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  import { buildEmbeddedObject } from '@bablr/agast-vm-helpers/builders';
4
4
 
5
- import { printType as printType_ } from '@bablr/agast-helpers/print';
5
+ import { printIdentifier } from '@bablr/agast-helpers/print';
6
6
  import { printCall } from '@bablr/agast-vm-helpers/print';
7
7
 
8
8
  const { getOwnPropertyNames, getOwnPropertySymbols, hasOwn } = Object;
9
9
 
10
10
  const printType = (type) => {
11
- return type == null ? '[null]' : printType_(type);
11
+ return type == Symbol.for('@bablr/fragment') ? '_' : printIdentifier(type);
12
12
  };
13
13
 
14
14
  // TODO this lives in bablr-helpers but I can't use it there
@@ -39,7 +39,6 @@ const writeError = (text) => {
39
39
  const mapProduction = (production, type, indentation) => {
40
40
  return {
41
41
  *[type](args) {
42
- const { grammar } = args;
43
42
  const indent = (strings, ...args) => {
44
43
  return `${indentation}${String.raw(strings, ...args)}`;
45
44
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bablr/language_enhancer-debug-log",
3
3
  "description": "A BABLR language enhancer that logs production execution",
4
- "version": "0.9.1",
4
+ "version": "0.11.0",
5
5
  "author": "Conrad Buck<conartist6@gmail.com>",
6
6
  "type": "module",
7
7
  "files": [
@@ -12,11 +12,11 @@
12
12
  },
13
13
  "sideEffects": false,
14
14
  "dependencies": {
15
- "@bablr/agast-helpers": "0.7.1",
16
- "@bablr/agast-vm-helpers": "0.7.1"
15
+ "@bablr/agast-helpers": "0.9.0",
16
+ "@bablr/agast-vm-helpers": "0.8.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@bablr/eslint-config-base": "github:bablr-lang/eslint-config-base#49f5952efed27f94ee9b94340eb1563c440bf64e",
19
+ "@bablr/eslint-config-base": "github:bablr-lang/eslint-config-base#c97bfa4b3663f8378e9b3e42bb5a41e685406cf9",
20
20
  "enhanced-resolve": "^5.12.0",
21
21
  "eslint": "^7.32.0",
22
22
  "eslint-import-resolver-enhanced-resolve": "^1.0.5",