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

@nebulous/skynet

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nebulous/skynet - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

14

index.js

@@ -7,3 +7,3 @@ const axios = require('axios')

portalUrl: "https://siasky.net",
portalUploadPath: "/api/skyfile",
portalUploadPath: "/skynet/skyfile",
portalFileFieldname: "file",

@@ -23,3 +23,4 @@ customFilename: "",

const url = `${trimTrailingSlash(opts.portalUrl)}${opts.portalUploadPath}`
const uuid = generateUUID()
const url = `${trimTrailingSlash(opts.portalUrl)}${trimTrailingSlash(opts.portalUploadPath)}/${uuid}`

@@ -54,2 +55,11 @@ return new Promise((resolve, reject) => {

function generateUUID() {
let uuid = ''
const cs = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
for (let i = 0; i < 16; i++) {
uuid += cs.charAt(Math.floor(Math.random() * cs.length));
}
return uuid;
}
function trimSiaPrefix(str) {

@@ -56,0 +66,0 @@ return str.replace("sia://", "")

2

package.json
{
"name": "@nebulous/skynet",
"version": "0.0.7",
"version": "0.0.8",
"description": "Skynet SDK",

@@ -5,0 +5,0 @@ "main": "index.js",

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