@terrazzo/parser 0.0.17 → 0.0.18

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @terrazzo/parser
2
2
 
3
+ ## 0.0.18
4
+
5
+ ### Patch Changes
6
+
7
+ - [#305](https://github.com/terrazzoapp/terrazzo/pull/305) [`9ce829c`](https://github.com/terrazzoapp/terrazzo/commit/9ce829c37c8a068f7d7157b615d4a00472c33156) Thanks [@drwpow](https://github.com/drwpow)! - Don’t log AST node on error
8
+
3
9
  ## 0.0.17
4
10
 
5
11
  ### Patch Changes
package/logger.js CHANGED
@@ -61,9 +61,7 @@ export default class Logger {
61
61
  return;
62
62
  }
63
63
  if (entry.node) {
64
- const e = new TokensJSONError(message);
65
- e.node = entry.node; // set node on instance, but don’t print to console in constructor
66
- throw e;
64
+ throw new TokensJSONError(message);
67
65
  } else {
68
66
  throw new Error(message);
69
67
  }
@@ -130,9 +128,6 @@ export default class Logger {
130
128
  }
131
129
 
132
130
  export class TokensJSONError extends Error {
133
- /** Erring JSON node */
134
- node;
135
-
136
131
  constructor(message) {
137
132
  super(message);
138
133
  this.name = 'TokensJSONError';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrazzo/parser",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Parser/validator for the Design Tokens Community Group (DTCG) standard.",
5
5
  "type": "module",
6
6
  "author": {
@@ -30,15 +30,15 @@
30
30
  },
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "@humanwhocodes/momoa": "^3.2.0",
33
+ "@humanwhocodes/momoa": "^3.2.1",
34
34
  "@types/babel__code-frame": "^7.0.6",
35
35
  "@types/culori": "^2.1.1",
36
36
  "culori": "^4.0.1",
37
37
  "is-what": "^4.1.16",
38
38
  "merge-anything": "^5.1.7",
39
- "picocolors": "^1.0.1",
39
+ "picocolors": "^1.1.0",
40
40
  "wildcard-match": "^5.1.3",
41
- "yaml": "^2.5.0",
41
+ "yaml": "^2.5.1",
42
42
  "@terrazzo/token-tools": "^0.0.9"
43
43
  },
44
44
  "devDependencies": {