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

unblock-netease-music

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unblock-netease-music - npm Package Compare versions

Comparing version 2.5.2 to 2.5.3

2

dist/app.js

@@ -50,3 +50,3 @@ 'use strict';

app.use(function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(ctx, next) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(ctx, next) {
var data;

@@ -53,0 +53,0 @@ return _regenerator2.default.wrap(function _callee$(_context) {

@@ -35,3 +35,3 @@ 'use strict';

var player = exports.player = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(ctx, next) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(ctx, next) {
var data, playbackReturnCode, songId, urlInfo;

@@ -119,3 +119,3 @@ return _regenerator2.default.wrap(function _callee$(_context) {

var download = exports.download = function () {
var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(ctx, next) {
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(ctx, next) {
var data, songId, urlInfo;

@@ -184,3 +184,3 @@ return _regenerator2.default.wrap(function _callee2$(_context2) {

case 29:
return _context2.abrupt('return', next);
return _context2.abrupt('return', next());

@@ -201,3 +201,3 @@ case 30:

var forward = exports.forward = function () {
var _ref3 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee3(ctx, next) {
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(ctx, next) {
var req, url, body, json;

@@ -204,0 +204,0 @@ return _regenerator2.default.wrap(function _callee3$(_context3) {

@@ -36,3 +36,3 @@ 'use strict';

var middleware = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(ctx, next) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(ctx, next) {
var req, rawBody, ip, url, newHeader, _rawBody, options, result, headers, body;

@@ -77,3 +77,3 @@

case 16:
_context.next = 44;
_context.next = 45;
break;

@@ -83,3 +83,3 @@

if (!(req.method === 'POST')) {
_context.next = 44;
_context.next = 45;
break;

@@ -137,10 +137,10 @@ }

body = result.body;
// console.log(body);
delete headers['content-encoding'];
ctx.set(headers);
ctx.body = body;
_context.next = 44;
ctx.body = body.toString();
_context.next = 45;
return next();
case 44:
case 45:
case 'end':

@@ -147,0 +147,0 @@ return _context.stop();

@@ -27,3 +27,3 @@ 'use strict';

var sendRequest = exports.sendRequest = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(options) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(options) {
var defaults, result;

@@ -30,0 +30,0 @@ return _regenerator2.default.wrap(function _callee$(_context) {

@@ -82,3 +82,3 @@ 'use strict';

_async2.default.map(_this2.plugins, function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(plugin, callback) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(plugin, callback) {
var keyword, searchResult, searchName, trueName;

@@ -158,3 +158,3 @@ return _regenerator2.default.wrap(function _callee$(_context) {

value: function () {
var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(songId) {
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(songId) {
var detail, songName, artist, album, result, plugin, data, songInfo, url;

@@ -161,0 +161,0 @@ return _regenerator2.default.wrap(function _callee2$(_context2) {

@@ -61,3 +61,3 @@ 'use strict';

value: function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(songId) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(songId) {
var header, options, result;

@@ -183,3 +183,3 @@ return _regenerator2.default.wrap(function _callee$(_context) {

value: function () {
var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(urlInfo, body) {
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(urlInfo, body) {
var filesize;

@@ -248,3 +248,3 @@ return _regenerator2.default.wrap(function _callee2$(_context2) {

value: function () {
var _ref3 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee3(urlInfo, body) {
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(urlInfo, body) {
var _ref4, filesize, md5;

@@ -251,0 +251,0 @@

@@ -55,3 +55,3 @@ 'use strict';

value: function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(keyword) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(keyword) {
var options, data, _result, result, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, e, filesize, hash, bitrate;

@@ -209,3 +209,3 @@

value: function () {
var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(searchResult) {
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(searchResult) {
var hash, key, options, data, result, url;

@@ -212,0 +212,0 @@ return _regenerator2.default.wrap(function _callee2$(_context2) {

@@ -48,3 +48,3 @@ 'use strict';

value: function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
return _regenerator2.default.wrap(function _callee$(_context) {

@@ -97,3 +97,3 @@ while (1) {

value: function () {
var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2() {
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
var options, result, data;

@@ -139,3 +139,3 @@ return _regenerator2.default.wrap(function _callee2$(_context2) {

value: function () {
var _ref3 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee3(keyword) {
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(keyword) {
var options, data, _result, result, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, e, list, prefix, bitrate, filesize, type;

@@ -292,3 +292,3 @@

value: function () {
var _ref4 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee4(data) {
var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(data) {
var url;

@@ -295,0 +295,0 @@ return _regenerator2.default.wrap(function _callee4$(_context4) {

{
"name": "unblock-netease-music",
"version": "2.5.2",
"version": "2.5.3",
"scripts": {

@@ -5,0 +5,0 @@ "start": "babel-node -- src/bin/unblockneteasemusic -p 8123 -v",

@@ -63,3 +63,3 @@ import 'colors';

}
return next;
return next();
};

@@ -66,0 +66,0 @@

@@ -60,5 +60,5 @@ import getRawBody from 'raw-body';

const body = result.body;
// console.log(body);
delete headers['content-encoding'];
ctx.set(headers);
ctx.body = body;
ctx.body = body.toString();
await next();

@@ -65,0 +65,0 @@ // console.log(ctx.body);

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