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

NeteaseCloudMusicApi

Package Overview
Dependencies
Maintainers
1
Versions
336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

NeteaseCloudMusicApi - npm Package Compare versions

Comparing version 2.16.0 to 2.17.0

router/login_status.js

2

app.js

@@ -48,3 +48,3 @@ const express = require("express");

// 同步读取 router 目录中的js文件, 根据命名规则, 自动注册路由
fs.readdirSync("./router/").reverse().forEach(file => {
fs.readdirSync(path.resolve(__dirname, "router")).reverse().forEach(file => {
if (/\.js$/i.test(file) === false) {

@@ -51,0 +51,0 @@ return;

# 更新日志
### 2.17.0 | 2018.08.28
新增登录状态查询接口 #302 ,完善文档,完善路由注册 #297
### 2.16.0 | 2018.08.09

@@ -3,0 +6,0 @@ - Fixed #288,#289,#290

{
"name": "NeteaseCloudMusicApi",
"version": "2.16.0",
"version": "2.17.0",
"description": "网易云音乐 NodeJS 版 API",

@@ -5,0 +5,0 @@ "scripts": {

module.exports = (req, res, createWebAPIRequest, request) => {
const id = parseInt(req.query.id);
const br = parseInt(req.query.br || 999000);
const id = parseInt(req.query.id)
const br = parseInt(req.query.br || 999000)
const data = {
ids: [id],
br: br,
csrf_token: ""
};
const cookie = req.get("Cookie") ? req.get("Cookie") : "";
csrf_token: ''
}
const cookie = req.get('Cookie') ? req.get('Cookie') : ''
createWebAPIRequest(
"music.163.com",
"/weapi/song/enhance/player/url",
"POST",
'music.163.com',
'/weapi/song/enhance/player/url',
'POST',
data,

@@ -19,10 +19,10 @@ cookie,

if (JSON.parse(music_req).code == 200) {
return res.send({ success: true, message: "ok" });
return res.send({ success: true, message: 'ok' })
}
return res.send({ success: false, message: "亲爱的,暂无版权" });
return res.send({ success: false, message: '亲爱的,暂无版权' })
},
err => {
res.status(502).send("fetch error");
res.status(502).send('fetch error')
}
);
};
)
}
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