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

discourse-js

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discourse-js - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

docs/assets/anchor.js

2

package.json
{
"name": "discourse-js",
"version": "1.3.0",
"version": "1.3.1",
"description": "A client-side javascript wrapper for the discourse API.",

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

@@ -1,3 +0,1 @@

# Discourse-js
[![NPM Version](https://img.shields.io/npm/v/discourse-js.svg?style=flat-square)](https://www.npmjs.com/package/discourse-js)

@@ -140,3 +138,3 @@

.getTopic({ id })
.then(res => console.log(response)}
.then(res => console.log(res)}
.catch(err => console.log(err))

@@ -153,3 +151,3 @@ ```

})
.then(res => console.log(response)}
.then(res => console.log(res)}
.catch(err => console.log(err))

@@ -163,3 +161,3 @@ ```

.deleteTopic({ id })
.then(res => console.log(response)} // Note: delete returns nothing.
.then(res => console.log(res)} // Note: delete returns nothing.
.catch(err => console.log(err))

@@ -177,3 +175,3 @@ ```

.getUser({ username })
.then(res => console.log(response)}
.then(res => console.log(res)}
.catch(err => console.log(err))

@@ -180,0 +178,0 @@ ```

@@ -40,8 +40,8 @@ import { buildQueryString } from "../utils";

this.getTopicsByUsername = ({ username, params }) => {
this.getTopicsByUsername = ({ username, ...inputs }) => {
return new Promise((resolve, reject) => {
const queryParams = {
...params,
const params = {
api_key: discourse._API_KEY,
api_username: discourse._API_USERNAME,
...inputs
};

@@ -51,3 +51,3 @@

.DiscourseResource({
path: buildQueryString(`topics/created-by/${username}.json`, queryParams),
path: buildQueryString(`topics/created-by/${username}.json`, params),
method: "GET",

@@ -54,0 +54,0 @@ })

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