@huanlin/163music-api
Advanced tools
Comparing version 0.0.1 to 0.0.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.album = void 0; | ||
//import * as request from 'request'; | ||
const http_1 = require("http"); | ||
@@ -5,0 +6,0 @@ const util_1 = require("../util"); |
@@ -6,3 +6,5 @@ "use strict"; | ||
const util_1 = require("../util"); | ||
const artistAlbums = (id, callback, otherOptions = { limit: 10, offset: 0 }) => { | ||
const artistAlbums = (id, // 歌手ID | ||
callback, // 回调函数 | ||
otherOptions = { limit: 10, offset: 0 }) => { | ||
let reqOption = (0, util_1.getRequestOption)(`/api/artist/albums/${id}?offset=${otherOptions.offset}&limit=${otherOptions.limit}`); | ||
@@ -9,0 +11,0 @@ return new Promise((resolve, reject) => { |
{ | ||
"name": "@huanlin/163music-api", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "NeteaseMusicApi's TypeScript Version", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"rootDir": "src", | ||
"outDir": "lib", | ||
"target": "es2020", | ||
"module": "commonjs", | ||
"sourceMap": false, | ||
"removeComments": true, | ||
"outDir": "lib" | ||
"declaration": true, | ||
"composite": true, | ||
"incremental": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
}, | ||
"files": [ | ||
"src/main.ts" | ||
"include": [ | ||
"src" | ||
] | ||
} |
24295
19
243