mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 03:25:09 +00:00
The latest version (2.1.2) of sort-keys-recursive adds TypeScript
typing, which includes export default function.
This change has caused the TS2349 type error.
This patch modifies the import form in assetTransfer.ts to fix the error.
Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>
(cherry picked from commit 8c1c36ae09)
# Conflicts:
# asset-transfer-basic/chaincode-javascript/package.json
# asset-transfer-basic/chaincode-typescript/package.json
# asset-transfer-basic/chaincode-typescript/src/assetTransfer.ts
55 lines
1.4 KiB
JSON
55 lines
1.4 KiB
JSON
{
|
|
"name": "asset-transfer-basic",
|
|
"version": "1.0.0",
|
|
"description": "Asset-Transfer-Basic contract implemented in JavaScript",
|
|
"main": "index.js",
|
|
"engines": {
|
|
"node": ">=12",
|
|
"npm": ">=5"
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint .",
|
|
"pretest": "npm run lint",
|
|
"test": "nyc mocha --recursive",
|
|
"start": "fabric-chaincode-node start"
|
|
},
|
|
"engineStrict": true,
|
|
"author": "Hyperledger",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"fabric-contract-api": "^2.0.0",
|
|
<<<<<<< HEAD
|
|
"fabric-shim": "^2.0.0"
|
|
=======
|
|
"fabric-shim": "^2.0.0",
|
|
"json-stringify-deterministic": "^1.0.1",
|
|
"sort-keys-recursive": "^2.1.2"
|
|
>>>>>>> 8c1c36a (Fix type error when using the latest sort-keys-recursive)
|
|
},
|
|
"devDependencies": {
|
|
"chai": "^4.1.2",
|
|
"eslint": "^4.19.1",
|
|
"mocha": "^8.0.1",
|
|
"nyc": "^14.1.1",
|
|
"sinon": "^6.0.0",
|
|
"sinon-chai": "^3.2.0"
|
|
},
|
|
"nyc": {
|
|
"exclude": [
|
|
"coverage/**",
|
|
"test/**",
|
|
"index.js",
|
|
".eslintrc.js"
|
|
],
|
|
"reporter": [
|
|
"text-summary",
|
|
"html"
|
|
],
|
|
"all": true,
|
|
"check-coverage": true,
|
|
"statements": 100,
|
|
"branches": 100,
|
|
"functions": 100,
|
|
"lines": 100
|
|
}
|
|
}
|