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

@gnosis.pm/safe-apps-sdk

Package Overview
Dependencies
Maintainers
4
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gnosis.pm/safe-apps-sdk - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

dist/package.json
{
"name": "@gnosis.pm/safe-apps-sdk",
"version": "1.1.0",
"version": "1.1.1",
"description": "SDK developed to integrate third-party apps with Safe-Multisig app.",

@@ -18,3 +18,3 @@ "main": "dist/src/index.js",

"test": "jest",
"format-dist": "sed -i 's/\"files\":/\"_files\":/' dist/package.json",
"format-dist": "sed -i '' 's/\"files\":/\"_files\":/' dist/package.json",
"build": "yarn rimraf dist && tsc && yarn format-dist",

@@ -21,0 +21,0 @@ "format": "prettier --write \"src/**/*.ts\"",

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateRequestId = void 0;
// i.e. 0-255 -> '00'-'ff'
const dec2hex = (dec) => dec.toString(16).padStart(2, '0');
const generateId = (len) => {
const arr = new Uint8Array((len || 40) / 2);
window.crypto.getRandomValues(arr);
return Array.from(arr, dec2hex).join('');
};
const generateRequestId = () => {
if (typeof window !== 'undefined') {
return window === null || window === void 0 ? void 0 : window.performance.now().toString(36);
return generateId(10);
}

@@ -8,0 +15,0 @@ return new Date().getTime().toString(36);

{
"name": "@gnosis.pm/safe-apps-sdk",
"version": "1.1.0",
"version": "1.1.1",
"description": "SDK developed to integrate third-party apps with Safe-Multisig app.",

@@ -18,3 +18,3 @@ "main": "dist/src/index.js",

"test": "jest",
"format-dist": "sed -i 's/\"files\":/\"_files\":/' dist/package.json",
"format-dist": "sed -i '' 's/\"files\":/\"_files\":/' dist/package.json",
"build": "yarn rimraf dist && tsc && yarn format-dist",

@@ -21,0 +21,0 @@ "format": "prettier --write \"src/**/*.ts\"",

@@ -29,2 +29,15 @@ # Safe Apps SDK

There are differences in arguments for `sed` unix utility on MacOS and Linux:
For MacOS it should be:
```
"format-dist": "sed -i '' 's/\"files\":/\"_files\":/' dist/package.json"
```
And for Linux:
```
"format-dist": "sed -i 's/\"files\":/\"_files\":/' dist/package.json",
```
## Documentation

@@ -31,0 +44,0 @@

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