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

swarmapp-api

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swarmapp-api - npm Package Compare versions

Comparing version 2.5.4 to 2.6.0

15

CHANGELOG.md
# swarmapp-api
## 2.6.0
### Minor Changes
- b297060: Fix authetication
fix:
- initiatemultifactorlogin
- completemultifactorlogin
### Patch Changes
- 6a5ed8e: fix lockfile
## 2.5.4

@@ -4,0 +19,0 @@

6

dist/index.js

@@ -50,2 +50,3 @@ "use strict";

const params = {
...this.config,
client_id,

@@ -57,3 +58,3 @@ client_secret,

try {
const response = await axios.post(this.basePath + "/private/initiatemultifactorlogin", null, { params });
const response = await axios.post(this.basePath + "private/initiatemultifactorlogin", querystring.stringify(params));
this.flowId = response.data.flowId;

@@ -68,2 +69,3 @@ return response.data;

const params = {
...this.config,
client_id,

@@ -75,3 +77,3 @@ client_secret,

try {
const response = await axios.post(this.basePath + "/private/completemultifactorlogin", null, { params });
const response = await axios.post(this.basePath + "private/completemultifactorlogin", querystring.stringify(params));
this.config.oauth_token = response.data.oauth_token;

@@ -78,0 +80,0 @@ return response.data.access_token;

{
"name": "swarmapp-api",
"version": "2.5.4",
"version": "2.6.0",
"description": "A javascript wrapper for swarmapp (foursquare) API",

@@ -8,9 +8,2 @@ "main": "dist/index.js",

"types": "dist/index.d.ts",
"scripts": {
"test": "jest --coverage",
"release": "pnpm run build && changeset publish",
"clean": "shx rm -rf lib && shx rm -rf dist",
"lint": "tsc",
"build": "pnpm run clean && tsup src/index.ts --format cjs,esm --dts"
},
"repository": {

@@ -43,2 +36,3 @@ "type": "git",

"@changesets/cli": "^2.26.1",
"@types/axios": "^0.14.0",
"@types/node": "^18.15.11",

@@ -49,3 +43,10 @@ "jest": "^29.5.0",

"typescript": "^5.0.3"
},
"scripts": {
"test": "jest --coverage",
"release": "pnpm run build && changeset publish",
"clean": "shx rm -rf lib && shx rm -rf dist",
"lint": "tsc",
"build": "pnpm run clean && tsup src/index.ts --format cjs,esm --dts"
}
}
}

@@ -84,2 +84,3 @@ const _ = require('lodash');

const params = {
...this.config,
client_id: client_id,

@@ -92,3 +93,3 @@ client_secret: client_secret,

try {
const response = await axios.post(this.basePath + '/private/initiatemultifactorlogin', null, { params });
const response = await axios.post(this.basePath + 'private/initiatemultifactorlogin', querystring.stringify(params));
this.flowId = response.data.flowId;

@@ -105,2 +106,3 @@

const params = {
...this.config,
client_id: client_id,

@@ -113,3 +115,3 @@ client_secret: client_secret,

try {
const response = await axios.post(this.basePath + '/private/completemultifactorlogin', null, { params });
const response = await axios.post(this.basePath + 'private/completemultifactorlogin', querystring.stringify(params));
this.config.oauth_token = response.data.oauth_token;

@@ -116,0 +118,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