From a6ed67711c40dcd795c66d01f1df541d9e18ed3b Mon Sep 17 00:00:00 2001 From: Peter Somogyvari Date: Wed, 13 Nov 2019 15:42:08 -0800 Subject: [PATCH] chore(npm): changes scope to @hyperledger-labs/ Fixes #28 We'll be allowed to use the @hyperledger scope once the project graduates from the labs. At that point we can publish the same package contents under multiple package scopes for each new release to spare early adopters the migration effort. Signed-off-by: Peter Somogyvari --- examples/simple-asset-transfer/app.js | 4 ++-- examples/simple-asset-transfer/corda/connector.js | 2 +- examples/simple-asset-transfer/fabric/connector.js | 2 +- examples/simple-asset-transfer/package-lock.json | 4 ++-- examples/simple-asset-transfer/package.json | 4 ++-- examples/simple-asset-transfer/quorum/api/package-lock.json | 2 +- examples/simple-asset-transfer/quorum/api/package.json | 2 +- examples/simple-asset-transfer/quorum/connector.js | 2 +- examples/simple-asset-transfer/scenarios/corda-to-fabric.js | 2 +- examples/simple-asset-transfer/scenarios/corda-to-quorum.js | 2 +- examples/simple-asset-transfer/scenarios/fabric-to-corda.js | 2 +- examples/simple-asset-transfer/scenarios/fabric-to-quorum.js | 2 +- examples/simple-asset-transfer/scenarios/quorum-to-corda.js | 2 +- examples/simple-asset-transfer/scenarios/quorum-to-fabric.js | 2 +- examples/simple-asset-transfer/scenarios/share-pub-keys.js | 2 +- examples/simple-asset-transfer/tests/connector-fabric.js | 2 +- examples/simple-asset-transfer/tests/connector-quorum.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 19 files changed, 22 insertions(+), 22 deletions(-) diff --git a/examples/simple-asset-transfer/app.js b/examples/simple-asset-transfer/app.js index 247fd94557..19915c55fd 100755 --- a/examples/simple-asset-transfer/app.js +++ b/examples/simple-asset-transfer/app.js @@ -1,5 +1,5 @@ -const Validator = require(`@hyperledger/blockchain-integration-framework`).Validator; -const { genKeyFile } = require(`@hyperledger/blockchain-integration-framework`).cryptoUtils; +const Validator = require(`@hyperledger-labs/blockchain-integration-framework`).Validator; +const { genKeyFile } = require(`@hyperledger-labs/blockchain-integration-framework`).cryptoUtils; const ConnectorFabric = require(`./fabric/connector`); const ConnectorQuorum = require(`./quorum/connector`); const ConnectorCorda = require(`./corda/connector`); diff --git a/examples/simple-asset-transfer/corda/connector.js b/examples/simple-asset-transfer/corda/connector.js index cbf46b8607..fe43f40d01 100644 --- a/examples/simple-asset-transfer/corda/connector.js +++ b/examples/simple-asset-transfer/corda/connector.js @@ -1,6 +1,6 @@ const rp = require(`request-promise-native`); -const { Connector } = require(`@hyperledger/blockchain-integration-framework`); +const { Connector } = require(`@hyperledger-labs/blockchain-integration-framework`); class MyCordaConnector extends Connector.CORDA { static formatAsset(asset, targetDLTType) { diff --git a/examples/simple-asset-transfer/fabric/connector.js b/examples/simple-asset-transfer/fabric/connector.js index 7825227408..f5df7b98ec 100644 --- a/examples/simple-asset-transfer/fabric/connector.js +++ b/examples/simple-asset-transfer/fabric/connector.js @@ -1,5 +1,5 @@ const rp = require(`request-promise-native`); -const { Connector } = require(`@hyperledger/blockchain-integration-framework`); +const { Connector } = require(`@hyperledger-labs/blockchain-integration-framework`); class MyFabricConnector extends Connector.FABRIC { diff --git a/examples/simple-asset-transfer/package-lock.json b/examples/simple-asset-transfer/package-lock.json index 213d479544..3f9c349e04 100644 --- a/examples/simple-asset-transfer/package-lock.json +++ b/examples/simple-asset-transfer/package-lock.json @@ -1,5 +1,5 @@ { - "name": "@hyperledger/blockchain-integration-framework.simple-asset-transfer", + "name": "@hyperledger-labs/blockchain-integration-framework.simple-asset-transfer", "version": "0.1.0", "lockfileVersion": 1, "requires": true, @@ -1653,7 +1653,7 @@ "pend": "~1.2.0" } }, - "@hyperledger/blockchain-integration-framework": { + "@hyperledger-labs/blockchain-integration-framework": { "version": "git+https://gitlab+deploy-token-14:5_sD47zyyyZPCkfRJJsi@code-sa.techlabs.accenture.com/git/blockchain/_exploration/interoperability/after-portal.git#53755ac1e36ede096670708f1f980b8f5b3f93f5", "from": "git+https://gitlab+deploy-token-14:5_sD47zyyyZPCkfRJJsi@code-sa.techlabs.accenture.com/git/blockchain/_exploration/interoperability/after-portal.git#feature/corda-scenario", "requires": { diff --git a/examples/simple-asset-transfer/package.json b/examples/simple-asset-transfer/package.json index 7c577e0a99..d1668e3b17 100644 --- a/examples/simple-asset-transfer/package.json +++ b/examples/simple-asset-transfer/package.json @@ -1,8 +1,8 @@ { "version": "0.1.0", - "name": "@hyperledger/blockchain-integration-framework.examples.simple-asset-transfer", + "name": "@hyperledger-labs/blockchain-integration-framework.examples.simple-asset-transfer", "dependencies": { - "@hyperledger/blockchain-integration-framework": "git+https://github.com/hyperledger-labs/blockchain-integration-framework.git#master", + "@hyperledger-labs/blockchain-integration-framework": "git+https://github.com/hyperledger-labs/blockchain-integration-framework.git#master", "cookie-parser": "^1.4.4", "express-bearer-token": "^2.4.0", "express-jwt": "^5.3.1", diff --git a/examples/simple-asset-transfer/quorum/api/package-lock.json b/examples/simple-asset-transfer/quorum/api/package-lock.json index c28a3afcdc..959cd20037 100644 --- a/examples/simple-asset-transfer/quorum/api/package-lock.json +++ b/examples/simple-asset-transfer/quorum/api/package-lock.json @@ -1,5 +1,5 @@ { - "name": "@hyperledger/blockchain-integration-framework", + "name": "@hyperledger-labs/blockchain-integration-framework", "version": "0.1.0", "lockfileVersion": 1, "requires": true, diff --git a/examples/simple-asset-transfer/quorum/api/package.json b/examples/simple-asset-transfer/quorum/api/package.json index 39bf388f87..9c8aaa9ba0 100644 --- a/examples/simple-asset-transfer/quorum/api/package.json +++ b/examples/simple-asset-transfer/quorum/api/package.json @@ -1,6 +1,6 @@ { "version": "0.1.0", - "name": "@hyperledger/blockchain-integration-framework.examples.simple-asset-transfer.quorum-api", + "name": "@hyperledger-labs/blockchain-integration-framework.examples.simple-asset-transfer.quorum-api", "license": "Apache-2.0", "scripts": { "init": "npm-run-all compile deploy reg", diff --git a/examples/simple-asset-transfer/quorum/connector.js b/examples/simple-asset-transfer/quorum/connector.js index 06ae042111..53c739a3a8 100644 --- a/examples/simple-asset-transfer/quorum/connector.js +++ b/examples/simple-asset-transfer/quorum/connector.js @@ -1,6 +1,6 @@ const rp = require(`request-promise-native`); -const { Connector } = require(`@hyperledger/blockchain-integration-framework`); +const { Connector } = require(`@hyperledger-labs/blockchain-integration-framework`); class MyQuorumConnector extends Connector.QUORUM { static formatAsset(asset, targetDLTType) { diff --git a/examples/simple-asset-transfer/scenarios/corda-to-fabric.js b/examples/simple-asset-transfer/scenarios/corda-to-fabric.js index 9d2c156599..e18def9b53 100644 --- a/examples/simple-asset-transfer/scenarios/corda-to-fabric.js +++ b/examples/simple-asset-transfer/scenarios/corda-to-fabric.js @@ -1,7 +1,7 @@ const log4js = require(`log4js`); const ConnectorCorda = require(`../corda/connector.js`); const ConnectorFabric = require(`../fabric/connector.js`); -const Client = require(`@hyperledger/blockchain-integration-framework`).Client; +const Client = require(`@hyperledger-labs/blockchain-integration-framework`).Client; const conf = require(`./config`); const logger = log4js.getLogger(`corda-to-fabric`); diff --git a/examples/simple-asset-transfer/scenarios/corda-to-quorum.js b/examples/simple-asset-transfer/scenarios/corda-to-quorum.js index 7cf1079145..94da4b1fcf 100644 --- a/examples/simple-asset-transfer/scenarios/corda-to-quorum.js +++ b/examples/simple-asset-transfer/scenarios/corda-to-quorum.js @@ -1,7 +1,7 @@ const log4js = require(`log4js`); const ConnectorCorda = require(`../corda/connector.js`); const ConnectorQuorum = require(`../quorum/connector.js`); -const Client = require(`@hyperledger/blockchain-integration-framework`).Client; +const Client = require(`@hyperledger-labs/blockchain-integration-framework`).Client; const conf = require(`./config`); const logger = log4js.getLogger(`corda-to-quorum`); diff --git a/examples/simple-asset-transfer/scenarios/fabric-to-corda.js b/examples/simple-asset-transfer/scenarios/fabric-to-corda.js index 078e1ba21c..716179814d 100644 --- a/examples/simple-asset-transfer/scenarios/fabric-to-corda.js +++ b/examples/simple-asset-transfer/scenarios/fabric-to-corda.js @@ -1,7 +1,7 @@ const log4js = require(`log4js`); const ConnectorCorda = require(`../corda/connector.js`); const ConnectorFabric = require(`../fabric/connector.js`); -const Client = require(`@hyperledger/blockchain-integration-framework`).Client; +const Client = require(`@hyperledger-labs/blockchain-integration-framework`).Client; const conf = require(`./config`); const logger = log4js.getLogger(`fabric-to-corda`); diff --git a/examples/simple-asset-transfer/scenarios/fabric-to-quorum.js b/examples/simple-asset-transfer/scenarios/fabric-to-quorum.js index 6d1f4708cf..e5976dae18 100644 --- a/examples/simple-asset-transfer/scenarios/fabric-to-quorum.js +++ b/examples/simple-asset-transfer/scenarios/fabric-to-quorum.js @@ -1,7 +1,7 @@ const log4js = require(`log4js`); const ConnectorQuorum = require(`../quorum/connector.js`); const ConnectorFabric = require(`../fabric/connector.js`); -const Client = require(`@hyperledger/blockchain-integration-framework`).Client; +const Client = require(`@hyperledger-labs/blockchain-integration-framework`).Client; const conf = require(`./config`); const logger = log4js.getLogger(`fabric-to-quorum`); diff --git a/examples/simple-asset-transfer/scenarios/quorum-to-corda.js b/examples/simple-asset-transfer/scenarios/quorum-to-corda.js index d6844a344c..9efb8bc3ba 100644 --- a/examples/simple-asset-transfer/scenarios/quorum-to-corda.js +++ b/examples/simple-asset-transfer/scenarios/quorum-to-corda.js @@ -1,7 +1,7 @@ const log4js = require(`log4js`); const ConnectorCorda = require(`../corda/connector.js`); const ConnectorQuorum = require(`../quorum/connector.js`); -const Client = require(`@hyperledger/blockchain-integration-framework`).Client; +const Client = require(`@hyperledger-labs/blockchain-integration-framework`).Client; const conf = require(`./config`); const logger = log4js.getLogger(`quorum-to-corda`); diff --git a/examples/simple-asset-transfer/scenarios/quorum-to-fabric.js b/examples/simple-asset-transfer/scenarios/quorum-to-fabric.js index 184bfe9f92..7c83b27dae 100644 --- a/examples/simple-asset-transfer/scenarios/quorum-to-fabric.js +++ b/examples/simple-asset-transfer/scenarios/quorum-to-fabric.js @@ -1,7 +1,7 @@ const log4js = require(`log4js`); const ConnectorQuorum = require(`../quorum/connector.js`); const ConnectorFabric = require(`../fabric/connector.js`); -const Client = require(`@hyperledger/blockchain-integration-framework`).Client; +const Client = require(`@hyperledger-labs/blockchain-integration-framework`).Client; const conf = require(`./config`); const logger = log4js.getLogger(`quorum-to-fabric`); diff --git a/examples/simple-asset-transfer/scenarios/share-pub-keys.js b/examples/simple-asset-transfer/scenarios/share-pub-keys.js index 80fc1b09f3..bf313578c6 100644 --- a/examples/simple-asset-transfer/scenarios/share-pub-keys.js +++ b/examples/simple-asset-transfer/scenarios/share-pub-keys.js @@ -2,7 +2,7 @@ const log4js = require(`log4js`); const ConnectorCorda = require(`../corda/connector.js`); const ConnectorQuorum = require(`../quorum/connector.js`); const ConnectorFabric = require(`../fabric/connector.js`); -const Client = require(`@hyperledger/blockchain-integration-framework`).Client; +const Client = require(`@hyperledger-labs/blockchain-integration-framework`).Client; const conf = require(`./config`); const logger = log4js.getLogger(`share-public-keys`); diff --git a/examples/simple-asset-transfer/tests/connector-fabric.js b/examples/simple-asset-transfer/tests/connector-fabric.js index 9d6d7683c3..af36c4853f 100644 --- a/examples/simple-asset-transfer/tests/connector-fabric.js +++ b/examples/simple-asset-transfer/tests/connector-fabric.js @@ -7,7 +7,7 @@ const cp = require(`chai-as-promised`); const ConnectorFabricEx = require(`../fabric/connector`); const config = require(`./config`); -const { Multisig } = require(`@hyperledger/blockchain-integration-framework`); +const { Multisig } = require(`@hyperledger-labs/blockchain-integration-framework`); chai.use(cp); diff --git a/examples/simple-asset-transfer/tests/connector-quorum.js b/examples/simple-asset-transfer/tests/connector-quorum.js index 77bb831e98..4005814cbe 100644 --- a/examples/simple-asset-transfer/tests/connector-quorum.js +++ b/examples/simple-asset-transfer/tests/connector-quorum.js @@ -9,7 +9,7 @@ const secp256k1 = require(`secp256k1`); const ConnectorQuorumEx = require(`../quorum/connector`); const config = require(`./config`); -const { Multisig } = require(`@hyperledger/blockchain-integration-framework`); +const { Multisig } = require(`@hyperledger-labs/blockchain-integration-framework`); chai.use(cp); diff --git a/package-lock.json b/package-lock.json index 0e64763e05..e8f3d2c8f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "@hyperledger/blockchain-integration-framework", + "name": "@hyperledger-labs/blockchain-integration-framework", "version": "0.1.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index 41d1af4bd4..f5d8d0f834 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "version": "0.1.0", - "name": "@hyperledger/blockchain-integration-framework", + "name": "@hyperledger-labs/blockchain-integration-framework", "license": "Apache-2.0", "repository": { "type": "git"