Skip to content

Commit aed59af

Browse files
committed
Updated copyright and dependencies
1 parent ff7deb4 commit aed59af

12 files changed

Lines changed: 65 additions & 48 deletions

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "typesbcp47",
33
"productName": "TypesBCP47",
4-
"version": "1.14.0",
4+
"version": "1.15.0",
55
"description": "TypeScript library for parsing BCP47 language tags",
66
"keywords": [
77
"typescript",
@@ -31,10 +31,10 @@
3131
"url": "git+https://github.com/rmraya/TypesBCP47.git"
3232
},
3333
"devDependencies": {
34-
"@types/node": "^24.10.1",
34+
"@types/node": "^24.10.4",
3535
"typescript": "^5.9.3"
3636
},
3737
"dependencies": {
38-
"typesxml": "^1.15.0"
38+
"typesxml": "^1.16.0"
3939
}
4040
}

ts/Language.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright ((c) 2023 - 2025 Maxprograms.
2+
* Copyright (c) 2023-2026 Maxprograms.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 1.0
@@ -10,7 +10,7 @@
1010
* Maxprograms - initial API and implementation
1111
*******************************************************************************/
1212

13-
import { LanguageUtils } from "./LanguageUtils";
13+
import { LanguageUtils } from "./LanguageUtils.js";
1414

1515
export class Language {
1616

ts/LanguageUtils.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright ((c) 2023 - 2025 Maxprograms.
2+
* Copyright (c) 2023-2026 Maxprograms.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 1.0
@@ -9,11 +9,11 @@
99
* Contributors:
1010
* Maxprograms - initial API and implementation
1111
*******************************************************************************/
12-
import path = require("path");
13-
import { existsSync } from "fs";
12+
import { join } from "node:path";
13+
import { existsSync } from "node:fs";
1414
import { ContentHandler, DOMBuilder, SAXParser, XMLAttribute, XMLDocument, XMLElement } from "typesxml";
15-
import { Language } from "./Language";
16-
import { RegistryParser } from "./RegistryParser";
15+
import { Language } from "./Language.js";
16+
import { RegistryParser } from "./RegistryParser.js";
1717

1818
export class LanguageUtils {
1919

@@ -49,7 +49,7 @@ export class LanguageUtils {
4949
let handler: ContentHandler = new DOMBuilder();
5050
let parser: SAXParser = new SAXParser();
5151
parser.setContentHandler(handler);
52-
let filePath: string = path.join(__dirname, 'extendedLanguageList_' + locale + '.xml');
52+
let filePath: string = join(__dirname, 'extendedLanguageList_' + locale + '.xml');
5353
if (!existsSync(filePath)) {
5454
throw new Error('Extended language list does not exist for ' + locale);
5555
}
@@ -120,7 +120,7 @@ export class LanguageUtils {
120120
let handler: ContentHandler = new DOMBuilder();
121121
let parser: SAXParser = new SAXParser();
122122
parser.setContentHandler(handler);
123-
let filePath: string = path.join(__dirname, 'languageList_' + locale + '.xml');
123+
let filePath: string = join(__dirname, 'languageList_' + locale + '.xml');
124124
if (!existsSync(filePath)) {
125125
throw new Error('Language list does not exist for ' + locale);
126126
}

ts/Region.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright ((c) 2023 - 2025 Maxprograms.
2+
* Copyright (c) 2023-2026 Maxprograms.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 1.0
@@ -9,6 +9,7 @@
99
* Contributors:
1010
* Maxprograms - initial API and implementation
1111
*******************************************************************************/
12+
1213
export class Region {
1314

1415
code: string;

ts/RegistryEntry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright ((c) 2023 - 2025 Maxprograms.
2+
* Copyright (c) 2023-2026 Maxprograms.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 1.0
@@ -9,6 +9,7 @@
99
* Contributors:
1010
* Maxprograms - initial API and implementation
1111
*******************************************************************************/
12+
1213
export class RegistryEntry {
1314

1415
entryMap: Map<string, string>;

ts/RegistryParser.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright ((c) 2023 - 2025 Maxprograms.
2+
* Copyright (c) 2023-2026 Maxprograms.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 1.0
@@ -9,14 +9,15 @@
99
* Contributors:
1010
* Maxprograms - initial API and implementation
1111
*******************************************************************************/
12-
import { Stats, openSync, readSync, statSync } from "fs";
12+
13+
import { Stats, openSync, readSync, statSync } from "node:fs";
14+
import { join } from "node:path";
1315
import { XMLUtils } from "typesxml";
14-
import { Language } from "./Language";
15-
import { Region } from "./Region";
16-
import { RegistryEntry } from "./RegistryEntry";
17-
import { Script } from "./Script";
18-
import { Variant } from "./Variant";
19-
import path = require("path");
16+
import { Language } from "./Language.js";
17+
import { Region } from "./Region.js";
18+
import { RegistryEntry } from "./RegistryEntry.js";
19+
import { Script } from "./Script.js";
20+
import { Variant } from "./Variant.js";
2021

2122
export class RegistryParser {
2223

@@ -33,7 +34,7 @@ export class RegistryParser {
3334
this.scripts = new Map<string, Script>();
3435
this.variants = new Map<string, Variant>();
3536

36-
let filePath: string = path.join(__dirname, 'language-subtag-registry.txt');
37+
let filePath: string = join(__dirname, 'language-subtag-registry.txt');
3738
let stats: Stats = statSync(filePath, { bigint: false, throwIfNoEntry: true });
3839
let blockSize: number = stats.blksize;
3940
let fileHandle: number = openSync(filePath, 'r');

ts/Script.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright ((c) 2023 - 2025 Maxprograms.
2+
* Copyright (c) 2023-2026 Maxprograms.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 1.0
@@ -9,6 +9,7 @@
99
* Contributors:
1010
* Maxprograms - initial API and implementation
1111
*******************************************************************************/
12+
1213
export class Script {
1314

1415
code: string;

ts/Variant.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright ((c) 2023 - 2025 Maxprograms.
2+
* Copyright (c) 2023-2026 Maxprograms.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 1.0
@@ -9,6 +9,7 @@
99
* Contributors:
1010
* Maxprograms - initial API and implementation
1111
*******************************************************************************/
12+
1213
export class Variant {
1314

1415
code: string;

ts/copy-assets.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
import { copyFileSync, readdirSync } from 'fs'
2-
import { basename, join } from 'path';
1+
/*******************************************************************************
2+
* Copyright (c) 2023-2026 Maxprograms.
3+
*
4+
* This program and the accompanying materials
5+
* are made available under the terms of the Eclipse Public License 1.0
6+
* which accompanies this distribution, and is available at
7+
* https://www.eclipse.org/org/documents/epl-v10.html
8+
*
9+
* Contributors:
10+
* Maxprograms - initial API and implementation
11+
*******************************************************************************/
12+
13+
import { copyFileSync, readdirSync } from 'node:fs'
14+
import { basename, join } from 'node:path';
315

416
const files = [
517
'ts/language-subtag-registry.txt',

0 commit comments

Comments
 (0)