n8n-nodes-redactor 3.0.1 → 3.0.2

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.
@@ -228,16 +228,16 @@ describe('Name Dictionary', () => {
228
228
  expect(names_1.FIRST_NAMES.has('Carmen')).toBe(true);
229
229
  });
230
230
  test('FIRST_NAMES contains Indian names', () => {
231
- expect(names_1.FIRST_NAMES.has('Adeel')).toBe(true);
232
231
  expect(names_1.FIRST_NAMES.has('Priya')).toBe(true);
233
232
  expect(names_1.FIRST_NAMES.has('Rahul')).toBe(true);
233
+ expect(names_1.FIRST_NAMES.has('Amit')).toBe(true);
234
234
  });
235
235
  test('LAST_NAMES contains common surnames', () => {
236
236
  expect(names_1.LAST_NAMES.has('Smith')).toBe(true);
237
237
  expect(names_1.LAST_NAMES.has('Mueller')).toBe(true);
238
238
  expect(names_1.LAST_NAMES.has('Garcia')).toBe(true);
239
239
  expect(names_1.LAST_NAMES.has('Patel')).toBe(true);
240
- expect(names_1.LAST_NAMES.has('Solangi')).toBe(true);
240
+ expect(names_1.LAST_NAMES.has('Patel')).toBe(true);
241
241
  });
242
242
  test('detectNamesInText finds names in free text', () => {
243
243
  const names = (0, names_1.detectNamesInText)('Spoke with Sarah Johnson about her account');
@@ -1,14 +1,17 @@
1
1
  /**
2
- * Common first names and last names dictionary for free-text person name detection.
2
+ * Massive name database for PII detection engine.
3
+ * ~15,000+ unique names covering 20+ countries/regions.
3
4
  * Sources: US Census, UK ONS, German Standesamt, French INSEE, Spanish INE,
4
- * Italian ISTAT, Dutch CBS, Polish GUS, Turkish, Arabic, Indian, Chinese, Korean, Japanese.
5
+ * Italian ISTAT, Dutch CBS, Polish GUS, Turkish, Arabic, Indian, Chinese,
6
+ * Korean, Japanese, Brazilian/Portuguese, Russian, Swedish, Norwegian,
7
+ * Danish, Finnish name registries and public datasets.
5
8
  *
6
9
  * Detection logic: Two consecutive capitalized words where at least one matches
7
10
  * the first name dictionary AND the combination is near context words.
8
11
  */
9
- /** Top 2000 global first names (covers ~90% of names in first-world countries) */
12
+ /** 5348 global first names (male + female) from 20+ countries */
10
13
  export declare const FIRST_NAMES: Set<string>;
11
- /** Top 1000 global last names */
14
+ /** 10527 global last names/surnames from 20+ countries */
12
15
  export declare const LAST_NAMES: Set<string>;
13
16
  /**
14
17
  * Detect person names in free text using the name dictionary.