cspell-lib 5.19.3 → 5.19.4

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.
@@ -120,6 +120,7 @@ class _DictionaryDefinitionInternalWithSource {
120
120
  useCompounds,
121
121
  };
122
122
  Object.assign(this, (0, util_1.clean)(ddi));
123
+ this.ddi = ddi;
123
124
  this.name = ddi.name;
124
125
  this.file = ddi.file;
125
126
  this.path = ddi.path;
@@ -130,5 +131,8 @@ class _DictionaryDefinitionInternalWithSource {
130
131
  get weightMap() {
131
132
  return this._weightMap;
132
133
  }
134
+ toJSON() {
135
+ return this.ddi;
136
+ }
133
137
  }
134
138
  //# sourceMappingURL=DictionarySettings.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell-lib",
3
- "version": "5.19.3",
3
+ "version": "5.19.4",
4
4
  "description": "A library of useful functions used across various cspell tools.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -48,16 +48,16 @@
48
48
  },
49
49
  "homepage": "https://github.com/streetsidesoftware/cspell#readme",
50
50
  "dependencies": {
51
- "@cspell/cspell-bundled-dicts": "^5.19.3",
52
- "@cspell/cspell-pipe": "^5.19.3",
53
- "@cspell/cspell-types": "^5.19.3",
51
+ "@cspell/cspell-bundled-dicts": "^5.19.4",
52
+ "@cspell/cspell-pipe": "^5.19.4",
53
+ "@cspell/cspell-types": "^5.19.4",
54
54
  "clear-module": "^4.1.2",
55
55
  "comment-json": "^4.2.2",
56
56
  "configstore": "^5.0.1",
57
57
  "cosmiconfig": "^7.0.1",
58
- "cspell-glob": "^5.19.3",
59
- "cspell-io": "^5.19.3",
60
- "cspell-trie-lib": "^5.19.3",
58
+ "cspell-glob": "^5.19.4",
59
+ "cspell-io": "^5.19.4",
60
+ "cspell-trie-lib": "^5.19.4",
61
61
  "fast-equals": "^3.0.0",
62
62
  "find-up": "^5.0.0",
63
63
  "fs-extra": "^10.0.1",
@@ -83,14 +83,14 @@
83
83
  "@types/configstore": "^5.0.1",
84
84
  "@types/fs-extra": "^9.0.13",
85
85
  "@types/jest": "^27.4.1",
86
- "@types/node": "^17.0.22",
86
+ "@types/node": "^17.0.23",
87
87
  "cspell-dict-nl-nl": "^1.1.2",
88
88
  "jest": "^27.5.1",
89
89
  "lorem-ipsum": "^2.0.4",
90
90
  "rimraf": "^3.0.2",
91
91
  "rollup": "^2.70.1",
92
92
  "rollup-plugin-dts": "^4.2.0",
93
- "ts-jest": "^27.1.3"
93
+ "ts-jest": "^27.1.4"
94
94
  },
95
- "gitHead": "df43735d8f85fddbbd0befca7d98956f50474ce7"
95
+ "gitHead": "9f7e77c95eb1e8fabf53c5b74b7418b2d114ef02"
96
96
  }