Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 27, 2023
1 parent 40c6c0f commit 27cad79
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 13 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.1.1",
"version": "5.1.2-5",
"private": true,
"bugs": "https://github.com/AcalaNetwork/acala-types.js/issues",
"engines": {
Expand All @@ -25,7 +25,8 @@
"postinstall": "polkadot-dev-yarn-only",
"test": "echo noop",
"update-metadata": "ts-node --project ./tsconfig.json packages/types/scripts/updateMetadata.ts",
"bump": "yarn workspaces foreach -vit --include '@acala-network/*' version"
"bump": "yarn workspaces foreach -vit --include '@acala-network/*' version",
"publish:manual": "yarn workspaces foreach -vit --include '@acala-network/*' npm publish --tolerate-republish"
},
"devDependencies": {
"@babel/core": "^7.21.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-derive/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/api-derive",
"version": "5.1.2-2",
"version": "5.1.2-5",
"description": "Additional polkadot.js derives for Acala Network",
"main": "index.js",
"author": "Acala Developers <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/api",
"version": "5.1.2-2",
"version": "5.1.2-5",
"description": "Acala JS API",
"main": "build/index.js",
"author": "Acala Developers <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion packages/type-definitions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/type-definitions",
"version": "5.1.2-2",
"version": "5.1.2-5",
"description": "Polkadot.js type definations for Acala Network",
"main": "index.js",
"author": "Acala Developers <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions packages/type-definitions/src/utils/jsonrpcFromDefs.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export default function jsonrpcFromDefs(
export default function jsonrpcFromDefs (
definitions: Record<string, { rpc?: Record<string, any> }>,
jsonrpc: Record<string, Record<string, any>> = {}
): Record<string, Record<string, any>> {
Object.keys(definitions)
.filter((key) => Object.keys(definitions[key]?.rpc || {}).length !== 0)
.forEach((section): void => {
jsonrpc[section] = {};
Object.entries(definitions[section].rpc as Record<string, any>).forEach(([method, def]): void => {
Object.entries(definitions[section].rpc).forEach(([method, def]): void => {
const isSubscription = !!def.pubsub;

jsonrpc[section][method] = {
Expand Down
6 changes: 2 additions & 4 deletions packages/type-definitions/src/utils/typesAliasFromDefs.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import merge from 'lodash.merge';

export default function typesAliasFromDefs(
export default function typesAliasFromDefs (
definitions: Record<string, Record<string, any>>,
initAlias: Record<string, any> = {}
): Record<string, any> {
return Object.values(definitions).reduce(
(res: Record<string, any>, { typesAlias }): Record<string, any> => merge({}, typesAlias, res),
(res: Record<string, any>, { typesAlias }): Record<string, any> => ({ ...typesAlias, ...res }),
initAlias
);
}
2 changes: 1 addition & 1 deletion packages/type-definitions/src/utils/typesFromDefs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function typesFromDefs(
export default function typesFromDefs (
definitions: Record<string, { types: Record<string, any> }>,
initTypes: Record<string, any> = {}
): Record<string, any> {
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/types",
"version": "5.1.2-2",
"version": "5.1.2-5",
"description": "Polkadot.js type definations for Acala Network",
"main": "index.js",
"author": "Acala Developers <[email protected]>",
Expand Down

0 comments on commit 27cad79

Please sign in to comment.