UNPKG

@sphereon/pex

Version:

A Typescript implementation of the v1 and v2 DIF Presentation Exchange specification

91 lines 3.61 kB
{ "name": "@sphereon/pex", "version": "5.0.0-unstable.28", "description": "A Typescript implementation of the v1 and v2 DIF Presentation Exchange specification", "main": "dist/main/index.js", "module": "dist/module/index.js", "browser": "dist/browser/index.js", "typings": "dist/main/index.d.ts", "repository": "https://github.com/Sphereon-Opensource/pex.git", "license": "Apache-2.0", "keywords": [ "SSI", "Presentation Exchange", "Verifiable Credentials", "Verifiable Presentations", "Selective Disclosure", "DIF" ], "engines": { "node": ">=18" }, "dependencies": { "@astronautlabs/jsonpath": "^1.1.2", "@sd-jwt/decode": "^0.7.2", "@sd-jwt/present": "^0.7.2", "@sd-jwt/types": "^0.7.2", "@sphereon/pex-models": "^2.3.1", "@sphereon/ssi-types": "0.30.2-feature.mdoc.funke2.366", "ajv": "^8.12.0", "ajv-formats": "^2.1.1", "jwt-decode": "^3.1.2", "uint8arrays": "^3.1.1", "nanoid": "^3.3.7" }, "devDependencies": { "@types/jest": "^29.5.12", "@types/node": "^18.19.26", "@typescript-eslint/eslint-plugin": "^7.3.1", "@typescript-eslint/parser": "^7.3.1", "@sd-jwt/core": "^0.7.2", "ajv-cli": "^5.0.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.29.1", "jest": "^29.7.0", "npm-run-all": "^4.1.5", "open-cli": "^8.0.0", "prettier": "^3.2.5", "rimraf": "^5.0.5", "ts-jest": "^29.1.2", "ts-json-schema-generator": "^1.5.0", "ts-node": "^10.9.2", "typescript": "^5.4.2" }, "files": [ "index.ts", "lib/validation/validatePDv1.js", "lib/validation/validatePDv2.js", "/dist", "CHANGELOG.md", "LICENSE", "README.md" ], "prettier": { "singleQuote": true, "printWidth": 150 }, "scripts": { "preinstall": "npx only-allow pnpm", "build": "run-s build:*", "build:generateFieldv1Schema": "ts-json-schema-generator -p resources/schema-generator-interfaces/filterV1.ts > resources/FilterV1.schema.json", "build:generateFieldv2Schema": "ts-json-schema-generator -p resources/schema-generator-interfaces/filterV2.ts > resources/FilterV2.schema.json", "build:pdv1schema": "npx ajv compile --strict=false --all-errors --inline-refs=false --verbose --allow-union-types -s resources/presentation_definition_v1.schema.json -o lib/validation/validatePDv1.js", "build:pdv2schema": "npx ajv compile --strict=false --all-errors --inline-refs=false --verbose --allow-union-types -s resources/presentation_definition_v2.schema.json -o lib/validation/validatePDv2.js", "build:filterV1schema": "npx ajv compile --strict=false --all-errors --inline-refs=false --verbose --allow-union-types -s resources/FilterV1.schema.json -o lib/validation/validateFilterv1.js", "build:filterV2schema": "npx ajv compile --strict=false --all-errors --inline-refs=false --verbose --allow-union-types -s resources/FilterV2.schema.json -o lib/validation/validateFilterv2.js", "build:main": "tsc -p tsconfig.main.json", "build:browser": "tsc -p tsconfig.browser.json", "build:module": "tsc -p tsconfig.module.json", "clean": "rimraf node_modules dist coverage", "fix": "run-s fix:*", "fix:prettier": "prettier \"{lib,test}/**/*.ts\" --write", "fix:lint": "eslint . --ext .ts --fix", "test": "run-s test:*", "test:lint": "eslint . --ext .ts", "test:prettier": "prettier \"{lib,test}/**/*.ts\" --list-different", "test:cov": "jest --ci --coverage", "test:unit": "jest" } }