@stll/anonymize 2.7.0 → 2.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/anonymize",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Deterministic PII detection and anonymization with regex, deny lists, and coreference resolution",
5
5
  "keywords": [
6
6
  "anonymization",
@@ -96,7 +96,7 @@
96
96
  "format": "oxfmt ."
97
97
  },
98
98
  "peerDependencies": {
99
- "@stll/anonymize-data": "^0.0.8"
99
+ "@stll/anonymize-data": "^0.0.9"
100
100
  },
101
101
  "peerDependenciesMeta": {
102
102
  "@stll/anonymize-data": {
@@ -104,12 +104,12 @@
104
104
  }
105
105
  },
106
106
  "optionalDependencies": {
107
- "@stll/anonymize-wasm": "2.7.0",
108
- "@stll/anonymize-darwin-arm64": "2.7.0",
109
- "@stll/anonymize-darwin-x64": "2.7.0",
110
- "@stll/anonymize-linux-arm64-gnu": "2.7.0",
111
- "@stll/anonymize-linux-x64-gnu": "2.7.0",
112
- "@stll/anonymize-win32-x64-msvc": "2.7.0"
107
+ "@stll/anonymize-wasm": "2.7.1",
108
+ "@stll/anonymize-darwin-arm64": "2.7.1",
109
+ "@stll/anonymize-darwin-x64": "2.7.1",
110
+ "@stll/anonymize-linux-arm64-gnu": "2.7.1",
111
+ "@stll/anonymize-linux-x64-gnu": "2.7.1",
112
+ "@stll/anonymize-win32-x64-msvc": "2.7.1"
113
113
  },
114
114
  "devDependencies": {
115
115
  "@napi-rs/cli": "^3.7.3",
@@ -188,7 +188,11 @@ function normalizeLanguageList(value) {
188
188
  async function loadDefaultDictionaries() {
189
189
  let loaded;
190
190
  try {
191
- loaded = await import("@stll/anonymize-data/dictionaries");
191
+ // The bundle loads city dictionaries, so it ships in the data package's
192
+ // cities entry, not its root: the root entry stays free of the city
193
+ // loader map so bundled consumers do not carry every city chunk.
194
+ // The specifier stays literal for stll/no-dynamic-import-specifier.
195
+ loaded = await import("@stll/anonymize-data/cities");
192
196
  } catch (error) {
193
197
  throw new Error(
194
198
  `--default-dictionaries requires @stll/anonymize-data: ${formatError(error)}`,
@@ -196,7 +200,7 @@ async function loadDefaultDictionaries() {
196
200
  }
197
201
  if (typeof loaded.loadDictionaryBundle !== "function") {
198
202
  throw new TypeError(
199
- "@stll/anonymize-data/dictionaries does not export loadDictionaryBundle",
203
+ "@stll/anonymize-data/cities does not export loadDictionaryBundle",
200
204
  );
201
205
  }
202
206
  return loaded.loadDictionaryBundle();