New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@keplr-wallet/common

Package Overview
Dependencies
Maintainers
1
Versions
663
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keplr-wallet/common - npm Package Compare versions

Comparing version 0.11.15 to 0.11.16-alpha.0

build/json/sort.d.ts

2

build/json/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc