mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-04-22 14:58:01 +00:00
feat: add PAPI rebrand packages
- @pezkuwi/papi-utils (rebrand of @polkadot-api/utils) - @pezkuwi/bizinikiwi-bindings (rebrand of @polkadot-api/substrate-bindings) - @pezkuwi/metadata-builders (rebrand of @polkadot-api/metadata-builders) - @pezkuwi/merkleize-metadata (rebrand of @polkadot-api/merkleize-metadata) All @polkadot-api references replaced with @pezkuwi equivalents.
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
function mapObject(input, mapper) {
|
||||
return Object.fromEntries(
|
||||
Object.entries(input).map(
|
||||
([key, value]) => [key, mapper(value, key)]
|
||||
)
|
||||
);
|
||||
}
|
||||
const mapStringRecord = (input, mapper) => Object.fromEntries(
|
||||
Object.entries(input).map(([key, value]) => [key, mapper(value, key)])
|
||||
);
|
||||
|
||||
export { mapObject, mapStringRecord };
|
||||
//# sourceMappingURL=mapObject.mjs.map
|
||||
Reference in New Issue
Block a user