jwt-license-verifier 0.1.5 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,20 +20,19 @@ export declare const getNodeInfo: (app: string) => Promise<string>;
20
20
  * @function
21
21
  * @param {string} appOrLibName - The application or library name that token should be verified against.
22
22
  * @param {string} token - The license token to be verified.
23
- * @param {string} publicKey - The public key used for verification.
24
23
  * @returns {Promise<object>} A Promise that resolves to the decoded license information if verification is successful.
25
24
  * @throws {Error} If there is an error during token verification, if the NodeInfo does not match,
26
25
  * or if appOrLibName is null, undefined, or empty or not present in the decoded data.
27
26
  *
28
27
  * @example
29
28
  * try {
30
- * const decodedLicense = await verifyLicense('Recaster', 'tokenString', 'publicKeyString');
29
+ * const decodedLicense = await verifyLicense('Recaster', 'tokenString');
31
30
  * console.log(decodedLicense);
32
31
  * } catch (error) {
33
32
  * console.error(error.message);
34
33
  * }
35
34
  */
36
- export declare function verifyLicense(appOrLibName: string, token: string, publicKey: string): Promise<object>;
35
+ export declare function verifyLicense(appOrLibName: string, token: string): Promise<object>;
37
36
  /**
38
37
  * Decodes a license token without performing verification.
39
38
  *
package/package.json CHANGED
@@ -1,81 +1,86 @@
1
1
  {
2
- "name": "jwt-license-verifier",
3
- "version": "0.1.5",
4
- "description": "Impleo Jwt license verifier",
5
- "author": "IMPLEOTV SYSTEMS LTD",
6
- "license": "Proprietary",
7
- "homepage": "https://www.impleotv.com",
8
- "keywords": [
9
- "license"
10
- ],
11
- "exports": {
12
- ".": {
13
- "types": "./dist/types",
14
- "import": "./dist/index.es.js",
15
- "require": "./dist/index.js"
16
- }
17
- },
18
- "main": "./dist/index.js",
19
- "module": "./dist/index.es.js",
20
- "browser": "./dist/index.umd.js",
21
- "types": "./dist/types",
22
- "files": [
23
- "dist"
24
- ],
25
- "scripts": {
26
- "build": "rimraf dist && npm run build:types && npm run build:js",
27
- "build:js": "rollup -c",
28
- "build:types": "tsc --emitDeclarationOnly",
29
- "test": "jest",
30
- "prepare": "husky install"
31
- },
32
- "lint-staged": {
33
- "*.{js,jsx,ts,tsx}": [
34
- "prettier --write",
35
- "git add"
2
+ "name": "jwt-license-verifier",
3
+ "version": "0.1.8",
4
+ "description": "Impleo Jwt license verifier",
5
+ "author": "IMPLEOTV SYSTEMS LTD",
6
+ "license": "Proprietary",
7
+ "homepage": "https://www.impleotv.com",
8
+ "keywords": [
9
+ "license"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/types",
14
+ "import": "./dist/index.es.js",
15
+ "require": "./dist/index.js"
16
+ }
17
+ },
18
+ "main": "./dist/index.js",
19
+ "module": "./dist/index.es.js",
20
+ "browser": "./dist/index.umd.js",
21
+ "types": "./dist/types",
22
+ "files": [
23
+ "dist"
36
24
  ],
37
- "*.{json,md,yml}": [
38
- "prettier --write",
39
- "git add"
40
- ]
41
- },
42
- "repository": {
43
- "type": "git",
44
- "url": "git+https://github.com/impleotv/jwt-license-verifier.git"
45
- },
46
- "dependencies": {
47
- "@types/systeminformation": "^3.54.1",
48
- "jsonwebtoken": "^9.0.2",
49
- "systeminformation": "^5.21.20"
50
- },
51
- "devDependencies": {
52
- "@babel/core": "^7.18.2",
53
- "@babel/preset-env": "^7.18.2",
54
- "@babel/preset-typescript": "^7.17.12",
55
- "@commitlint/cli": "^18.4.3",
56
- "@commitlint/config-conventional": "^18.4.3",
57
- "@rollup/plugin-babel": "5.3.1",
58
- "@rollup/plugin-commonjs": "^22.0.0",
59
- "@rollup/plugin-json": "^4.1.0",
60
- "@rollup/plugin-node-resolve": "^13.3.0",
61
- "@semantic-release/changelog": "^6.0.3",
62
- "@semantic-release/commit-analyzer": "^11.1.0",
63
- "@semantic-release/git": "10.0.1",
64
- "@semantic-release/github": "^9.2.5",
65
- "@semantic-release/npm": "^11.0.2",
66
- "@semantic-release/release-notes-generator": "^12.1.0",
67
- "@types/jest": "^29.5.11",
68
- "@types/jsonwebtoken": "^9.0.5",
69
- "husky": "^8.0.0",
70
- "lint-staged": "^15.2.0",
71
- "prettier": "^3.1.1",
72
- "rimraf": "^5.0.5",
73
- "rollup": "^2.74.1",
74
- "rollup-plugin-terser": "^7.0.2",
75
- "semantic-release": "^22.0.12",
76
- "typescript": "^4.7.2"
77
- },
78
- "publishConfig": {
79
- "access": "public"
80
- }
25
+ "scripts": {
26
+ "build": "rimraf dist && npm run build:types && npm run build:js",
27
+ "build:js": "rollup -c",
28
+ "build:types": "tsc --emitDeclarationOnly",
29
+ "test": "jest",
30
+ "lint": "eslint . --ext js --report-unused-disable-directives --max-warnings 0",
31
+ "format:check": "prettier --check .",
32
+ "format:write": "prettier --write ."
33
+ },
34
+ "lint-staged": {
35
+ "*.{js,jsx,ts,tsx}": [
36
+ "prettier --write",
37
+ "git add"
38
+ ],
39
+ "*.{json,md,yml}": [
40
+ "prettier --write",
41
+ "git add"
42
+ ]
43
+ },
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "git+https://github.com/impleotv/jwt-license-verifier.git"
47
+ },
48
+ "dependencies": {
49
+ "@types/systeminformation": "^3.54.1",
50
+ "jsonwebtoken": "^9.0.2",
51
+ "systeminformation": "^5.21.20"
52
+ },
53
+ "devDependencies": {
54
+ "@babel/core": "^7.18.2",
55
+ "@babel/preset-env": "^7.18.2",
56
+ "@babel/preset-typescript": "^7.17.12",
57
+ "@commitlint/cli": "^18.4.3",
58
+ "@commitlint/config-conventional": "^18.4.3",
59
+ "@rollup/plugin-babel": "5.3.1",
60
+ "@rollup/plugin-commonjs": "^22.0.0",
61
+ "@rollup/plugin-json": "^4.1.0",
62
+ "@rollup/plugin-node-resolve": "^13.3.0",
63
+ "@rollup/plugin-terser": "^0.4.4",
64
+ "@semantic-release/changelog": "^6.0.3",
65
+ "@semantic-release/commit-analyzer": "^11.1.0",
66
+ "@semantic-release/git": "10.0.1",
67
+ "@semantic-release/github": "^9.2.5",
68
+ "@semantic-release/npm": "^11.0.2",
69
+ "@semantic-release/release-notes-generator": "^12.1.0",
70
+ "@types/jest": "^29.5.11",
71
+ "@types/jsonwebtoken": "^9.0.5",
72
+ "eslint-config-prettier": "^9.1.0",
73
+ "husky": "^8.0.0",
74
+ "jest": "^29.7.0",
75
+ "lint-staged": "^15.2.0",
76
+ "prettier": "^3.1.1",
77
+ "rimraf": "^5.0.5",
78
+ "rollup": "^2.74.1",
79
+ "semantic-release": "^22.0.12",
80
+ "ts-jest": "^29.1.1",
81
+ "typescript": "^4.7.2"
82
+ },
83
+ "publishConfig": {
84
+ "access": "public"
85
+ }
81
86
  }