-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package updates & Network Membership #119
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
jsonabc.js | ||
jsonabc.d.ts | ||
dist | ||
lib | ||
*.json | ||
!package.json | ||
jest.* | ||
coverage | ||
**/augment-api/src/interfaces/**/*.ts | ||
**/augment-api/src/interfaces/**/*.ts |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ export async function getDidDocFromName( | |
console.log(`\n❄️ Resolve DID name ${didName} `) | ||
|
||
// Query the owner of the provided didName. | ||
const encodedDidNameOwner = await api.call.did.queryByName(didName) | ||
const encodedDidNameOwner = await api.call.didApi.queryByName(didName) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Vikastc @ujjwal6792 same here, impact on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok |
||
|
||
const { | ||
document: { uri }, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"types": "../lib/interfaces/extraDefs/index.d.ts", | ||
"//": [ | ||
"This is a fallback to support the extraDefs subpath export for module systems that do not support the package.json exports field.", | ||
"Inspired by https://github.com/andrewbranch/example-subpath-exports-ts-compat/blob/1ffe3425b0a7ad8ecdf3c373f76f431ee341366b/examples/node_modules/package-json-redirects/." | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// This package does not contain executable code. Index files are included only to allow api augmentation using `require('@cord.network/augment-api')`. | ||
|
||
module.exports = {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// This package does not contain executable code. Index files are included only to allow api augmentation using `require('@cord.network/augment-api')`. | ||
|
||
exports = {} |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,48 +2,50 @@ | |
"name": "@cord.network/augment-api", | ||
"version": "0.8.0-3", | ||
"description": "", | ||
"main": "./lib/cjs/index.js", | ||
"module": "./lib/esm/index.js", | ||
"types": "./lib/cjs/index.d.ts", | ||
"types": "./lib/index.d.ts", | ||
"type": "module", | ||
"main": "./index.cjs", | ||
"exports": { | ||
".": { | ||
"types": "./lib/cjs/index.d.ts", | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js" | ||
"types": "./lib/index.d.ts", | ||
"import": "./index.mjs", | ||
"require": "./index.cjs" | ||
}, | ||
"./extraDefs": { | ||
"types": "./lib/interfaces/extraDefs/index.d.ts" | ||
} | ||
}, | ||
"files": [ | ||
"lib/**/*" | ||
"lib/**/*", | ||
"index.mjs", | ||
"index.cjs", | ||
"extraDefs/*" | ||
], | ||
"scripts": { | ||
"clean": "rimraf ./lib", | ||
"build": "yarn clean && yarn build:ts", | ||
"build:types": "yarn generate:defs && yarn generate:meta && yarn build:fixes", | ||
"build:fixes": "node scripts/fixTypes.mjs", | ||
"build:ts": "yarn build:cjs && yarn build:esm", | ||
"build:cjs": "tsc --declaration -p tsconfig.build.json && echo '{\"type\":\"commonjs\"}' > ./lib/cjs/package.json", | ||
"build:esm": "tsc --declaration -p tsconfig.esm.json && echo '{\"type\":\"module\"}' > ./lib/esm/package.json", | ||
"generate:defs": "ts-node --skip-project ../../node_modules/.bin/polkadot-types-from-defs --package @cord.network/augment-api --input ./src/interfaces --endpoint ./metadata/cord.json", | ||
"generate:meta": "ts-node --skip-project ../../node_modules/.bin/polkadot-types-from-chain --package @cord.network/augment-api --endpoint ./metadata/cord.json --output ./src/interfaces --strict", | ||
"update-metadata": "node ./scripts/fetchMetadata.js -o './metadata/cord.json' -e 'wss://staging.cord.network/'" | ||
"build:ts": "tsc -p tsconfig.build.json", | ||
"generate:defs": "ts-node --esm -P tsconfig.build.json ../../node_modules/.bin/polkadot-types-from-defs --package @cord.network/augment-api --input ./src/interfaces --endpoint ./metadata/cord.json", | ||
"generate:meta": "ts-node --esm -P tsconfig.build.json ../../node_modules/.bin/polkadot-types-from-chain --package @cord.network/augment-api --endpoint ./metadata/cord.json --output ./src/interfaces --strict", | ||
"update-metadata": "node ./scripts/fetchMetadata.cjs -o './metadata/cord.json' -e 'wss://staging.cord.network/'" | ||
}, | ||
"repository": "github:dhiway/cord.js", | ||
"engines": { | ||
"node": ">=14.0" | ||
"node": ">=16.0" | ||
}, | ||
"author": "Dhiway <[email protected]>", | ||
"license": "Apache-2.0", | ||
"bugs": "https://github.com/dhiway/cord.js/issues", | ||
"homepage": "https://github.com/dhiway/cord.js#readme", | ||
"devDependencies": { | ||
"@polkadot/api": "^9.10.2", | ||
"@polkadot/typegen": "^9.10.2", | ||
"@types/websocket": "^1.0.5", | ||
"@polkadot/api": "^10.4.0", | ||
"@polkadot/typegen": "^10.4.0", | ||
"glob": "^7.1.1", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.9.0", | ||
"ts-node": "^10.4.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nitpick: this is lowering the version. All others are about increments. |
||
"typescript": "^4.8.3", | ||
"websocket": "^1.0.34", | ||
"yargs": "^16.2.0" | ||
}, | ||
"dependencies": { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vikastc @ujjwal6792 Please note this change. With the cord.js upgrade, this would be impacting the
cord-apis
repo.