@licensechain/javascript-sdk 1.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.
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Back-compat: same helpers as package root (`verifyLicenseAssertionJwt`, `LICENSE_TOKEN_USE_CLAIM`).
5
+ * Prefer `import { verifyLicenseAssertionJwt } from 'licensechain-js-sdk'` or destructuring from `require('licensechain-js-sdk')`.
6
+ */
7
+ const mod = require('./dist/index.js');
8
+
9
+ module.exports = {
10
+ LICENSE_TOKEN_USE_CLAIM: mod.LICENSE_TOKEN_USE_CLAIM,
11
+ verifyLicenseAssertionJwt: mod.verifyLicenseAssertionJwt,
12
+ };
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@licensechain/javascript-sdk",
3
+ "version": "1.0.0",
4
+ "description": "Official LicenseChain JavaScript SDK for license management and validation",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "license-assertion.cjs",
11
+ "README.md",
12
+ "LICENSE"
13
+ ],
14
+ "scripts": {
15
+ "build": "rollup -c",
16
+ "dev": "rollup -c -w",
17
+ "test": "jest",
18
+ "test:watch": "jest --watch",
19
+ "test:coverage": "jest --coverage",
20
+ "lint": "eslint src/**/*.js",
21
+ "lint:fix": "eslint src/**/*.js --fix",
22
+ "format": "prettier --write src/**/*.js"
23
+ },
24
+ "keywords": [
25
+ "license",
26
+ "validation",
27
+ "api",
28
+ "sdk",
29
+ "javascript",
30
+ "licensechain",
31
+ "license-management",
32
+ "webhook",
33
+ "authentication"
34
+ ],
35
+ "author": "LicenseChain Team <support@licensechain.app>",
36
+ "license": "MIT",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/LicenseChain/LicenseChain-JavaScript-SDK.git"
40
+ },
41
+ "bugs": {
42
+ "url": "https://github.com/LicenseChain/LicenseChain-JavaScript-SDK/issues"
43
+ },
44
+ "homepage": "https://docs.licensechain.app/sdks/javascript",
45
+ "engines": {
46
+ "node": ">=14.0.0"
47
+ },
48
+ "dependencies": {
49
+ "axios": "^1.6.0",
50
+ "crypto-js": "^4.2.0",
51
+ "jose": "^5.9.6"
52
+ },
53
+ "devDependencies": {
54
+ "@babel/core": "^7.23.0",
55
+ "@babel/preset-env": "^7.23.0",
56
+ "@rollup/plugin-babel": "^6.0.4",
57
+ "@rollup/plugin-commonjs": "^25.0.7",
58
+ "@rollup/plugin-node-resolve": "^15.2.3",
59
+ "@rollup/plugin-terser": "^0.4.4",
60
+ "@types/crypto-js": "^4.2.1",
61
+ "@types/jest": "^29.5.8",
62
+ "@typescript-eslint/eslint-plugin": "^6.12.0",
63
+ "@typescript-eslint/parser": "^6.12.0",
64
+ "eslint": "^8.54.0",
65
+ "eslint-config-prettier": "^9.0.0",
66
+ "eslint-plugin-prettier": "^5.0.1",
67
+ "jest": "^29.7.0",
68
+ "prettier": "^3.1.0",
69
+ "rollup": "^4.6.1",
70
+ "rollup-plugin-dts": "^6.1.0",
71
+ "rollup-plugin-typescript2": "^0.36.0",
72
+ "typescript": "^5.3.2"
73
+ },
74
+ "peerDependencies": {
75
+ "axios": "^1.6.0"
76
+ },
77
+ "peerDependenciesMeta": {
78
+ "axios": {
79
+ "optional": true
80
+ }
81
+ },
82
+ "publishConfig": {
83
+ "access": "public"
84
+ }
85
+ }