Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hsmob

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hsmob - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

7

index.js

@@ -8,3 +8,2 @@ #!/usr/bin/env node

const argv = require('minimist')(process.argv.slice(2))
console.log(argv)
function readDir(zip, dirPath) {

@@ -40,4 +39,4 @@ const files = fs.readdirSync(dirPath)

const stats = await fs.stat(zipName)
console.log(chalk.red.bold.bgWhite(stats.size))
if (stats.size > 100 * 1024 * 1000) {
console.log(chalk.red.bold.bgWhite(stats.size))
console.log(chalk.red.bold.bgWhite('文件最大为100MB'))

@@ -54,4 +53,3 @@ return Promise.reject()

const zipName = await generateZip()
console.log(zipName)
const browser = await puppeteer.launch({ headless: false, args: ['--start-maximized'] })
const browser = await puppeteer.launch({ headless: true, args: ['--start-maximized'] })
const page = await browser.newPage()

@@ -75,4 +73,5 @@ await page.goto('http://show.hsmob.com/')

await page.waitForSelector(copyBtn)
await browser.close()
console.log(chalk.green('upload success'))
console.log(chalk.green(`地址:http://${websiteName}.show.hsmob.com`))
})()
{
"name": "hsmob",
"version": "1.0.0",
"version": "2.0.0",
"description": "upload zip to show.hsmob.com",

@@ -16,7 +16,4 @@ "main": "index.js",

},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
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