Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

credential-status

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

credential-status - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

36

package.json
{
"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 = {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc