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

repl.it-api

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

repl.it-api - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

13

lib.js

@@ -33,3 +33,3 @@ const { CookieJar, Cookie } = require('tough-cookie')

this.got.token = await this.fetch(`https://repl.it/data/repls/${id}/gen_repl_token`, {
const potentialToken = await this.fetch(`https://repl.it/data/repls/${id}/gen_repl_token`, {
method: 'POST',

@@ -41,3 +41,12 @@ body: JSON.stringify({

headers
}).then(parseJson, url)
}).then(parseJson)
if (potentialToken.message) {
if (potentialToken.name) {
throw new Error(`${potentialToken.name}: ${potentialToken.message}`)
} else {
throw new Error(potentialToken.message)
}
} else {
this.got.token = potentialToken
}
}

@@ -44,0 +53,0 @@

2

package.json
{
"name": "repl.it-api",
"version": "1.2.2",
"version": "1.2.3",
"description": "A Node.js client for creating projects and executing code on Repl.it.",

@@ -5,0 +5,0 @@ "main": "lib.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