@keplr-wallet/common
Advanced tools
Comparing version 0.11.15 to 0.11.16-alpha.0
@@ -1,1 +0,1 @@ | ||
export declare function sortObjectByKey(obj: any): any; | ||
export * from "./sort"; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sortObjectByKey = void 0; | ||
function sortObjectByKey(obj) { | ||
if (typeof obj !== "object" || obj === null) { | ||
return obj; | ||
} | ||
if (Array.isArray(obj)) { | ||
return obj.map(sortObjectByKey); | ||
} | ||
const sortedKeys = Object.keys(obj).sort(); | ||
const result = {}; | ||
sortedKeys.forEach((key) => { | ||
result[key] = sortObjectByKey(obj[key]); | ||
}); | ||
return result; | ||
} | ||
exports.sortObjectByKey = sortObjectByKey; | ||
__exportStar(require("./sort"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@keplr-wallet/common", | ||
"version": "0.11.15", | ||
"version": "0.11.16-alpha.0", | ||
"main": "build/index.js", | ||
@@ -20,7 +20,7 @@ "author": "chainapsis", | ||
"dependencies": { | ||
"@keplr-wallet/crypto": "0.11.15", | ||
"@keplr-wallet/crypto": "0.11.16-alpha.0", | ||
"buffer": "^6.0.3", | ||
"delay": "^4.4.0" | ||
}, | ||
"gitHead": "24727e129c7b349146d37077d6038018fb437ed6" | ||
"gitHead": "43e9076d03cb03a66a8e3f85725ab6ed495d320d" | ||
} |
@@ -1,14 +0,1 @@ | ||
export function sortObjectByKey(obj: any): any { | ||
if (typeof obj !== "object" || obj === null) { | ||
return obj; | ||
} | ||
if (Array.isArray(obj)) { | ||
return obj.map(sortObjectByKey); | ||
} | ||
const sortedKeys = Object.keys(obj).sort(); | ||
const result: Record<string, any> = {}; | ||
sortedKeys.forEach((key) => { | ||
result[key] = sortObjectByKey(obj[key]); | ||
}); | ||
return result; | ||
} | ||
export * from "./sort"; |
Sorry, the diff of this file is not supported yet
74250
86
1154
+ Added@keplr-wallet/crypto@0.11.16-alpha.0(transitive)
- Removed@keplr-wallet/crypto@0.11.15(transitive)