credential-status
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "credential-status", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "credential status aggregator for did-jwt", | ||
"type": "module", | ||
"source": "src/index.ts", | ||
"main": "lib/index.cjs", | ||
"module": "lib/index.module.js", | ||
"unpkg": "lib/index.umd.js", | ||
"types": "lib/index.d.ts", | ||
"umd:main": "lib/index.umd.js", | ||
"main": "./lib/index.cjs", | ||
"module": "./lib/index.module.js", | ||
"unpkg": "./lib/index.umd.js", | ||
"types": "./lib/index.d.ts", | ||
"umd:main": "./lib/index.umd.js", | ||
"files": [ | ||
"lib", | ||
"src", | ||
"LICENSE" | ||
], | ||
"exports": { | ||
".": { | ||
"require": "lib/index.cjs", | ||
"import": "lib/index.module.js" | ||
"require": "./lib/index.cjs", | ||
"import": "./lib/index.module.js" | ||
} | ||
@@ -21,7 +26,7 @@ }, | ||
"test": "jest", | ||
"test:ci": "jest --coverage && codecov", | ||
"test:ci": "jest --coverage", | ||
"dev": "tsc --watch", | ||
"format": "prettier --write \"src/**/*.[jt]s\"", | ||
"lint": "eslint --ignore-pattern \"src/**/*.test.[jt]s\" \"src/**/*.[jt]s\"", | ||
"prepublishOnly": "npm test && npm run lint", | ||
"prepublishOnly": "yarn test && yarn format && yarn lint", | ||
"release": "semantic-release --debug" | ||
@@ -57,3 +62,3 @@ }, | ||
"eslint-plugin-prettier": "4.0.0", | ||
"jest": "27.4.7", | ||
"jest": "28.1.0", | ||
"microbundle": "0.14.2", | ||
@@ -64,11 +69,6 @@ "prettier": "2.5.1", | ||
}, | ||
"files": [ | ||
"lib/*", | ||
"src/*", | ||
"LICENSE" | ||
], | ||
"dependencies": { | ||
"did-jwt": "^5.12.3", | ||
"did-resolver": "^3.1.5" | ||
"did-jwt": "^6.1.2", | ||
"did-resolver": "^3.2.2" | ||
} | ||
} |
import { CredentialJwtOrJSON, Status, StatusMethod, StatusResolver } from '../index' | ||
import { DIDDocument } from 'did-resolver' | ||
import { ES256KSigner, createJWT } from 'did-jwt' | ||
import { ES256KSigner, createJWT, hexToBytes } from 'did-jwt' | ||
@@ -9,3 +9,3 @@ const privateKey = 'a285ab66393c5fdda46d6fbad9e27fafd438254ab72ad5acb681a0e9f20f5d7b' | ||
const issuer = `did:ethr:${signerAddress}` | ||
const signer = ES256KSigner(privateKey) | ||
const signer = ES256KSigner(hexToBytes(privateKey)) | ||
@@ -12,0 +12,0 @@ const referenceDoc = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68050
+ Addedcanonicalize@2.0.0(transitive)
+ Addeddid-jwt@6.11.6(transitive)
+ Addeddid-resolver@4.1.0(transitive)
- Removedcanonicalize@1.0.8(transitive)
- Removeddid-jwt@5.12.4(transitive)
Updateddid-jwt@^6.1.2
Updateddid-resolver@^3.2.2