Skip to content

Commit

Permalink
Fix remaining exports from the vc module
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn committed Nov 5, 2024
1 parent ff0c181 commit 438eb68
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 33 deletions.
9 changes: 9 additions & 0 deletions examples/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @docknetwork/sdk-examples

## 0.4.1

### Patch Changes

- Updated dependencies
- @docknetwork/credential-sdk@0.6.0
- @docknetwork/dock-blockchain-api@0.4.1
- @docknetwork/dock-blockchain-modules@0.5.1

## 0.4.0

### Minor Changes
Expand Down
8 changes: 4 additions & 4 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@docknetwork/sdk-examples",
"private": true,
"type": "module",
"version": "0.4.0",
"version": "0.4.1",
"scripts": {
"bbs-dock-example": "babel-node ./bbs-dock.js",
"claim-deduction-example": "babel-node ./claim-deduction.js",
Expand All @@ -19,9 +19,9 @@
"lint": "eslint \"*.js\""
},
"dependencies": {
"@docknetwork/credential-sdk": "0.5.0",
"@docknetwork/dock-blockchain-api": "0.4.0",
"@docknetwork/dock-blockchain-modules": "0.5.0"
"@docknetwork/credential-sdk": "0.6.0",
"@docknetwork/dock-blockchain-api": "0.4.1",
"@docknetwork/dock-blockchain-modules": "0.5.1"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "root",
"version": "0.5.0",
"version": "0.6.0",
"private": true,
"workspaces": [
"packages/*",
Expand Down
7 changes: 7 additions & 0 deletions packages/cheqd-blockchain-modules/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @docknetwork/cheqd-blockchain-modules

## 0.5.1

### Patch Changes

- Updated dependencies
- @docknetwork/credential-sdk@0.6.0

## 0.5.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/cheqd-blockchain-modules/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@docknetwork/cheqd-blockchain-modules",
"version": "0.5.0",
"version": "0.5.1",
"type": "module",
"license": "MIT",
"main": "./dist/esm/index.js",
Expand Down Expand Up @@ -28,7 +28,7 @@
"node": ">=18.0.0"
},
"dependencies": {
"@docknetwork/credential-sdk": "0.5.0"
"@docknetwork/credential-sdk": "0.6.0"
},
"devDependencies": {
"@babel/cli": "^7.24.1",
Expand Down
6 changes: 6 additions & 0 deletions packages/credential-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @docknetwork/credential-sdk

## 0.6.0

### Minor Changes

- Fix remaining exports from the `vc` module

## 0.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@docknetwork/credential-sdk",
"version": "0.5.0",
"version": "0.6.0",
"license": "MIT",
"type": "module",
"files": [
Expand Down
39 changes: 19 additions & 20 deletions packages/credential-sdk/src/vc/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { signPresentation, verifyPresentation } from './presentations';
import { issueCredential, verifyCredential } from './credentials';
import { signPresentation, verifyPresentation } from "./presentations";

Check failure on line 1 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

'signPresentation' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 1 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 1 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

'signPresentation' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 1 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
import { issueCredential, verifyCredential } from "./credentials";

Check failure on line 2 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

'issueCredential' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 2 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 2 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

'issueCredential' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 2 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

import { DEFAULT_TYPE, DEFAULT_CONTEXT } from './constants';
import { DEFAULT_TYPE, DEFAULT_CONTEXT } from "./constants";

Check failure on line 4 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

'DEFAULT_TYPE' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 4 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

'DEFAULT_CONTEXT' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 4 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 4 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

'DEFAULT_TYPE' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 4 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

'DEFAULT_CONTEXT' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 4 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

/**
* Check that credential is verified, i.e. the credential has VCDM compliant structure and the `proof`
Expand All @@ -28,20 +28,19 @@ export async function isVerifiedPresentation(presentation, params) {
return result.verified;
}

// TODO: export more methods supplied in revocation/credentials
export {
verifyCredential,
issueCredential,
signPresentation,
verifyPresentation,
DEFAULT_TYPE,
DEFAULT_CONTEXT,
};

export { default as Presentation } from './presentation';
export { default as VerifiableCredential } from './verifiable-credential';
export { default as VerifiablePresentation } from './verifiable-presentation';
export { default as StatusList2021Credential } from './status-list2021-credential';
export { default as PrivateStatusList2021Credential } from './private-status-list2021-credential';
export * from './helpers';
export { validateCredentialSchema } from './schema';
export { default as Presentation } from "./presentation";

Check failure on line 31 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 31 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
export { default as VerifiableCredential } from "./verifiable-credential";

Check failure on line 32 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 32 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
export { default as VerifiablePresentation } from "./verifiable-presentation";

Check failure on line 33 in packages/credential-sdk/src/vc/index.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
export { default as StatusList2021Credential } from "./status-list2021-credential";
export { default as PrivateStatusList2021Credential } from "./private-status-list2021-credential";
export * from "./credentials";
export * from "./helpers";
export * from "./schema";
export * from "./constants";
export * from "./custom_crypto";
export * from "./document-loader";
export * from "./jws";
export * from "./presentation";
export * from "./presentations";
export * from "./revocation";
export * from "./schema";
7 changes: 7 additions & 0 deletions packages/dock-blockchain-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @docknetwork/dock-blockchain-api

## 0.4.1

### Patch Changes

- Updated dependencies
- @docknetwork/credential-sdk@0.6.0

## 0.4.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/dock-blockchain-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@docknetwork/dock-blockchain-api",
"version": "0.4.0",
"version": "0.4.1",
"license": "MIT",
"main": "./dist/esm/index.js",
"type": "module",
Expand Down Expand Up @@ -84,7 +84,7 @@
"@polkadot/api": "10.12.4"
},
"dependencies": {
"@docknetwork/credential-sdk": "0.5.0",
"@docknetwork/credential-sdk": "0.6.0",
"@docknetwork/node-types": "^0.17.0",
"@juanelas/base64": "^1.0.5",
"@polkadot/api": "10.12.4",
Expand Down
7 changes: 7 additions & 0 deletions packages/dock-blockchain-modules/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @docknetwork/dock-blockchain-modules

## 0.5.1

### Patch Changes

- Updated dependencies
- @docknetwork/credential-sdk@0.6.0

## 0.5.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/dock-blockchain-modules/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@docknetwork/dock-blockchain-modules",
"version": "0.5.0",
"version": "0.5.1",
"license": "MIT",
"type": "module",
"main": "./dist/esm/index.js",
Expand Down Expand Up @@ -28,7 +28,7 @@
"node": ">=18.0.0"
},
"dependencies": {
"@docknetwork/credential-sdk": "0.5.0"
"@docknetwork/credential-sdk": "0.6.0"
},
"devDependencies": {
"@babel/cli": "^7.24.1",
Expand All @@ -37,7 +37,7 @@
"@babel/plugin-syntax-import-attributes": "^7.25.6",
"@babel/plugin-transform-modules-commonjs": "^7.24.1",
"@babel/preset-env": "^7.24.3",
"@docknetwork/dock-blockchain-api": "0.4.0",
"@docknetwork/dock-blockchain-api": "0.4.1",
"@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^24.0.0",
Expand Down

0 comments on commit 438eb68

Please sign in to comment.