some-common-functions-js 1.2.0 → 2.0.0

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": "some-common-functions-js",
3
- "version": "1.2.0",
3
+ "version": "2.0.0",
4
4
  "description": "Common functions used with Javascript objects, and field validation functions.",
5
5
  "keywords": [
6
6
  "validation",
@@ -24,7 +24,8 @@
24
24
  "object validation",
25
25
  "object array search",
26
26
  "object compare",
27
- "nodejs"
27
+ "nodejs",
28
+ "typescript"
28
29
  ],
29
30
  "repository": {
30
31
  "type": "git",
@@ -32,9 +33,13 @@
32
33
  },
33
34
  "license": "MIT",
34
35
  "author": "ITA",
35
- "type": "commonjs",
36
- "main": "index.js",
36
+ "type": "module",
37
+ "main": "index.ts",
37
38
  "scripts": {
38
39
  "test": "echo \"Error: no test specified\" && exit 1"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "^25.6.2",
43
+ "typescript": "^6.0.3"
39
44
  }
40
45
  }
package/tsconfig.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ // Visit https://aka.ms/tsconfig to read more about this file
3
+ "compilerOptions": {
4
+ // File Layout
5
+ // "rootDir": "./src",
6
+ // "outDir": "./dist",
7
+
8
+ // Environment Settings
9
+ // See also https://aka.ms/tsconfig/module
10
+ "module": "nodenext",
11
+ "target": "esnext",
12
+ // For nodejs:
13
+ "lib": ["esnext"],
14
+ "types": ["node"],
15
+ // and npm install -D @types/node
16
+
17
+ // Other Outputs
18
+ "sourceMap": false,
19
+ "declaration": true,
20
+ "declarationMap": true,
21
+
22
+ // Stricter Typechecking Options
23
+ "noUncheckedIndexedAccess": true,
24
+ "exactOptionalPropertyTypes": true,
25
+
26
+ // Style Options
27
+ "noImplicitReturns": true,
28
+ "noImplicitOverride": true,
29
+ "noUnusedLocals": true,
30
+ "noUnusedParameters": true,
31
+ "noFallthroughCasesInSwitch": true,
32
+ "noPropertyAccessFromIndexSignature": true,
33
+
34
+ // Recommended Options
35
+ "strict": true,
36
+ "verbatimModuleSyntax": true,
37
+ "isolatedModules": true,
38
+ "noUncheckedSideEffectImports": true,
39
+ "moduleDetection": "force",
40
+ "skipLibCheck": true,
41
+ }
42
+ }