Skip to content

Commit

Permalink
downgrade uuid library - Compatibility Issue with LiquidCORE and Jav…
Browse files Browse the repository at this point in the history
…aScriptCORE
  • Loading branch information
jpsantosbh committed Feb 2, 2021
1 parent b0a7fa4 commit edba45a
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion __integrations__/credentials/VerifiableCredential.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { v4: uuidv4 } = require('uuid');
const uuidv4 = require('uuid/v4');
const { Claim } = require('../../src/claim/Claim');
const VC = require('../../src/creds/VerifiableCredential');

Expand Down
3 changes: 2 additions & 1 deletion __test__/creds/VerifiableCredential.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const _ = require('lodash');
const fs = require('fs');
const { v4: uuidv4, v1: uuidv1 } = require('uuid');
const uuidv4 = require('uuid/v4');
const uuidv1 = require('uuid/v1');
const sjcl = require('sjcl');
const { Claim, definitions } = require('../../src/claim/Claim');
const VC = require('../../src/creds/VerifiableCredential');
Expand Down
2 changes: 1 addition & 1 deletion __test__/creds/VerifiableCredentialSchema.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Ajv = require('ajv').default;

const { v1: uuidv1 } = require('uuid');
const uuidv1 = require('uuid/v1');
const { Claim, definitions } = require('../../src/claim/Claim');
const VC = require('../../src/creds/VerifiableCredential');
const SchemaGenerator = require('../../src/schemas/generator/SchemaGenerator');
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@identity.com/credential-commons",
"version": "1.1.5",
"version": "1.1.6",
"author": "Identity.com Community",
"license": "MIT",
"description": "Verifiable Credential and Attestation Library",
Expand Down Expand Up @@ -63,7 +63,7 @@
"ajv": "^7.0.3"
},
"dependencies": {
"@identity.com/uca": "^1.0.22",
"@identity.com/uca": "^1.0.23",
"babel-runtime": "^6.26.0",
"bitcoinjs-lib": "git+https://github.com/dabura667/bitcoinjs-lib.git#bcash330",
"bluebird": "^3.7.2",
Expand Down Expand Up @@ -91,7 +91,7 @@
"sjcl": "github:civicteam/sjcl#v1.0.8-ecc",
"type-of-is": "^3.5.1",
"unix-timestamp": "^0.2.0",
"uuid": "^8.3.2",
"uuid": "^3.3.2",
"valid-url": "^1.0.9",
"winston": "^3.3.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/creds/VerifiableCredential.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const sift = require('sift');

const timestamp = require('unix-timestamp');
const flatten = require('flat');
const { v4: uuidv4 } = require('uuid');
const uuidv4 = require('uuid/v4');
const MerkleTools = require('merkle-tools');

const { sha256 } = require('../lib/crypto');
Expand Down
2 changes: 1 addition & 1 deletion src/services/DefaultAnchorServiceImpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Current Anchor/Attester service
*
*/
const { v4: uuid } = require('uuid');
const uuid = require('uuid/v4');
const { HDNode, ECSignature } = require('bitcoinjs-lib');
const sjcl = require('sjcl');
const logger = require('../logger');
Expand Down
2 changes: 1 addition & 1 deletion src/services/DummyAnchorServiceImpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Current Anchor/Attester service
*
*/
const { v4: uuid } = require('uuid');
const uuid = require('uuid/v4');
const logger = require('../logger');

/**
Expand Down

0 comments on commit edba45a

Please sign in to comment.