diff --git a/@worldsibu/convector-common-fabric-helper/examples/examples.ts b/@worldsibu/convector-common-fabric-helper/examples/examples.ts index e4bdc594..f137a701 100644 --- a/@worldsibu/convector-common-fabric-helper/examples/examples.ts +++ b/@worldsibu/convector-common-fabric-helper/examples/examples.ts @@ -1,5 +1,5 @@ import { ClientHelper } from '../src/client.helper'; -import * as uuid from 'uuid/v4'; +import { v4 as uuid } from 'uuid'; const config = require('./chaincode.config.json'); const helper = new ClientHelper(config); diff --git a/@worldsibu/convector-core-chaincode/tests/chaincode.spec.ts b/@worldsibu/convector-core-chaincode/tests/chaincode.spec.ts index 160ee86d..5c625d24 100644 --- a/@worldsibu/convector-core-chaincode/tests/chaincode.spec.ts +++ b/@worldsibu/convector-core-chaincode/tests/chaincode.spec.ts @@ -2,7 +2,7 @@ import { join } from 'path'; import { expect } from 'chai'; -import * as uuid from 'uuid/v1'; +import { v1 as uuid } from 'uuid'; import { ChaincodeMockStub } from '@theledger/fabric-mock-stub'; import 'mocha'; diff --git a/@worldsibu/convector-storage-stub/tests/stub.storage.spec.ts b/@worldsibu/convector-storage-stub/tests/stub.storage.spec.ts index 42455c19..af67d87e 100644 --- a/@worldsibu/convector-storage-stub/tests/stub.storage.spec.ts +++ b/@worldsibu/convector-storage-stub/tests/stub.storage.spec.ts @@ -1,6 +1,6 @@ // tslint:disable:no-unused-expression -import * as uuid from 'uuid/v1'; +import { v1 as uuid } from 'uuid'; import { expect } from 'chai'; import { Chaincode } from '@theledger/fabric-chaincode-utils'; import { ChaincodeMockStub } from '@theledger/fabric-mock-stub'; diff --git a/examples/token/package-lock.json b/examples/token/package-lock.json new file mode 100644 index 00000000..2cfe45e6 --- /dev/null +++ b/examples/token/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "@worldsibu/convector-example-token", + "version": "1.3.8", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "reflect-metadata": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", + "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" + } + } +} diff --git a/examples/token/tests/token.e2e.ts b/examples/token/tests/token.e2e.ts index aff47399..ec4fcc50 100644 --- a/examples/token/tests/token.e2e.ts +++ b/examples/token/tests/token.e2e.ts @@ -2,7 +2,7 @@ import { expect } from 'chai'; import { resolve } from 'path'; -import * as uuid from 'uuid/v4'; +import { v4 as uuid } from 'uuid'; import 'mocha'; import { CouchDBStorage } from '@worldsibu/convector-storage-couchdb'; diff --git a/examples/token/tests/token.spec.ts b/examples/token/tests/token.spec.ts index 37cc04e8..dbcaa8af 100644 --- a/examples/token/tests/token.spec.ts +++ b/examples/token/tests/token.spec.ts @@ -2,7 +2,7 @@ import * as chai from 'chai'; import { join } from 'path'; import { expect } from 'chai'; -import * as uuid from 'uuid/v4'; +import { v4 as uuid } from 'uuid'; import 'mocha'; import * as chaiAsPromised from 'chai-as-promised';