Skip to content

Commit 1c77d2d

Browse files
committed
Update 0.0.2
1 parent 07d7af7 commit 1c77d2d

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/.idea
33
/node_modules
44
/dist
5+
/tsconfig.tsbuildinfo

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Partial Key Verification Library for TS/JS
2+
3+
[![Tests](https://img.shields.io/github/actions/workflow/status/kduma-OSS/JS-Partial-Key-Verification/node.js.yml?branch=master&label=build&style=flat-square)](https://github.com/kduma-OSS/JS-Partial-Key-Verification/actions/workflows/run-tests.yml)
4+
5+
This is a port of my other C# library [Partial Key Verification Library for Compact Framework](https://opensource.duma.sh/libraries/net/partial-key-verification) into a JavaScript/TypeScript package.
6+
7+
This library implements Partial Key Verification (PKV). PKV is a cryptographic technique that allows verification of a subset of a key without revealing the entire key, enhancing security and privacy in various applications.
8+
9+
Check full documentation here: [opensource.duma.sh/libraries/js/partial-key-verification](https://opensource.duma.sh/libraries/js/partial-key-verification)

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pkv.js",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"license": "MIT",
55
"type": "module",
66
"description": "Partial Key Verification Library for JS/TS. Serial number generation scheme for offline key validation.",
@@ -13,15 +13,17 @@
1313
"homepage": "https://opensource.duma.sh/libraries/js/partial-key-verification",
1414
"scripts": {
1515
"dev": "vite",
16-
"build": "tsc -b && vite build",
16+
"build": "vite build && tsc -b",
1717
"test": "vitest run",
1818
"test:watch": "vitest",
1919
"prepublishOnly": "npm run build"
2020
},
2121
"main": "./dist/pkv.es.js",
2222
"module": "./dist/pkv.es.js",
23+
"types": "./dist/index.d.ts",
2324
"exports": {
2425
".": {
26+
"types": "./dist/index.d.ts",
2527
"import": "./dist/pkv.es.js",
2628
"default": "./dist/pkv.es.js"
2729
}

src/demo.ts

Whitespace-only changes.

tsconfig.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
"moduleResolution": "Bundler",
77
"strict": true,
88
"declaration": true,
9+
"emitDeclarationOnly": true,
10+
"declarationMap": true,
11+
"rootDir": "src",
912
"outDir": "dist",
1013
"skipLibCheck": true,
11-
"forceConsistentCasingInFileNames": true
14+
"forceConsistentCasingInFileNames": true,
15+
"esModuleInterop": true
1216
},
13-
"include": ["src", "test"]
14-
}
17+
"include": ["src"]
18+
}

0 commit comments

Comments
 (0)