@yiliang114/stock-api
Advanced tools
Comparing version 3.1.27 to 3.1.28
# @yiliang114/stock-api | ||
## 3.1.28 | ||
### Patch Changes | ||
- add params for apis | ||
## 3.1.27 | ||
@@ -4,0 +10,0 @@ |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -45,12 +56,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
var getTopicCXPooll = function (date, params) { return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, (0, baseHandler_1.baseHandler)('https://push2ex.eastmoney.com/getTopicCXPooll', { | ||
date: date, | ||
dpt: 'wz.ztzt', | ||
sort: 'ods:asc', | ||
// Pageindex: params.pageNumber ?? 0, | ||
// pagesize: params.pageSize ?? 100, | ||
})]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: return [4 /*yield*/, (0, baseHandler_1.baseHandler)('https://push2ex.eastmoney.com/getTopicCXPooll', __assign({ date: date, dpt: 'wz.ztzt', sort: 'ods:asc', Pageindex: (_a = params.pageNumber) !== null && _a !== void 0 ? _a : 0, pagesize: (_b = params.pageSize) !== null && _b !== void 0 ? _b : 100 }, params))]; | ||
case 1: return [2 /*return*/, _c.sent()]; | ||
} | ||
@@ -57,0 +63,0 @@ }); |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -45,12 +56,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
var getTopicDTPool = function (date, params) { return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, (0, baseHandler_1.baseHandler)('https://push2ex.eastmoney.com/getTopicDTPool', { | ||
date: date, | ||
dpt: 'wz.ztzt', | ||
sort: 'fund:asc', | ||
// Pageindex: params.pageNumber ?? 0, | ||
// pagesize: params.pageSize ?? 100, | ||
})]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: return [4 /*yield*/, (0, baseHandler_1.baseHandler)('https://push2ex.eastmoney.com/getTopicDTPool', __assign({ date: date, dpt: 'wz.ztzt', sort: 'fund:asc', Pageindex: (_a = params.pageNumber) !== null && _a !== void 0 ? _a : 0, pagesize: (_b = params.pageSize) !== null && _b !== void 0 ? _b : 100 }, params))]; | ||
case 1: return [2 /*return*/, _c.sent()]; | ||
} | ||
@@ -57,0 +63,0 @@ }); |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -45,12 +56,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
var getTopicQSPool = function (date, params) { return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, (0, baseHandler_1.baseHandler)('https://push2ex.eastmoney.com/getTopicQSPool', { | ||
date: date, | ||
dpt: 'wz.ztzt', | ||
sort: 'zdp:desc', | ||
// Pageindex: params.pageNumber ?? 0, | ||
// pagesize: params.pageSize ?? 100, | ||
})]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: return [4 /*yield*/, (0, baseHandler_1.baseHandler)('https://push2ex.eastmoney.com/getTopicQSPool', __assign({ date: date, dpt: 'wz.ztzt', sort: 'zdp:desc', Pageindex: (_a = params.pageNumber) !== null && _a !== void 0 ? _a : 0, pagesize: (_b = params.pageSize) !== null && _b !== void 0 ? _b : 100 }, params))]; | ||
case 1: return [2 /*return*/, _c.sent()]; | ||
} | ||
@@ -57,0 +63,0 @@ }); |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -45,12 +56,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
var getTopicZBPool = function (date, params) { return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, (0, baseHandler_1.baseHandler)('https://push2ex.eastmoney.com/getTopicZBPool', { | ||
date: date, | ||
dpt: 'wz.ztzt', | ||
sort: 'fbt:asc', | ||
// Pageindex: params.pageNumber ?? 0, | ||
// pagesize: params.pageSize ?? 100, | ||
})]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: return [4 /*yield*/, (0, baseHandler_1.baseHandler)('https://push2ex.eastmoney.com/getTopicZBPool', __assign({ date: date, dpt: 'wz.ztzt', sort: 'fbt:asc', Pageindex: (_a = params.pageNumber) !== null && _a !== void 0 ? _a : 0, pagesize: (_b = params.pageSize) !== null && _b !== void 0 ? _b : 100 }, params))]; | ||
case 1: return [2 /*return*/, _c.sent()]; | ||
} | ||
@@ -57,0 +63,0 @@ }); |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -45,12 +56,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
var getTopicZTPool = function (date, params) { return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, (0, baseHandler_1.baseHandler)('https://push2ex.eastmoney.com/getTopicZTPool', { | ||
date: date, | ||
dpt: 'wz.ztzt', | ||
sort: 'fbt:asc', | ||
// Pageindex: params.pageNumber ?? 0, | ||
// pagesize: params.pageSize ?? 100, | ||
})]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: return [4 /*yield*/, (0, baseHandler_1.baseHandler)('https://push2ex.eastmoney.com/getTopicZTPool', __assign({ date: date, dpt: 'wz.ztzt', sort: 'fbt:asc', Pageindex: (_a = params.pageNumber) !== null && _a !== void 0 ? _a : 0, pagesize: (_b = params.pageSize) !== null && _b !== void 0 ? _b : 100 }, params))]; | ||
case 1: return [2 /*return*/, _c.sent()]; | ||
} | ||
@@ -57,0 +63,0 @@ }); |
@@ -1,4 +0,4 @@ | ||
import { default as _ } from 'numeral'; | ||
import 'numeral/locales/chs'; | ||
import { default as _ } from '@yiliang114/numeral'; | ||
import '@yiliang114/numeral/locales/chs'; | ||
export declare const numeral: typeof _; | ||
//# sourceMappingURL=numeral.d.ts.map |
@@ -7,7 +7,6 @@ "use strict"; | ||
exports.numeral = void 0; | ||
// eslint-disable import/no-named-default | ||
var numeral_1 = __importDefault(require("numeral")); | ||
require("numeral/locales/chs"); | ||
var numeral_1 = __importDefault(require("@yiliang114/numeral")); | ||
require("@yiliang114/numeral/locales/chs"); | ||
numeral_1.default.locale('chs'); | ||
exports.numeral = numeral_1.default; | ||
//# sourceMappingURL=numeral.js.map |
{ | ||
"name": "@yiliang114/stock-api", | ||
"version": "3.1.27", | ||
"version": "3.1.28", | ||
"description": "trading day", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"scripts": { | ||
"dev": "tsc --watch", | ||
"build": "tsc", | ||
"test-dev": "jest --watchAll --coverage", | ||
"test": "jest --coverage", | ||
"docs:build": "typedoc" | ||
}, | ||
"author": "yiliang114", | ||
@@ -11,3 +18,3 @@ "license": "MIT", | ||
"@types/numeral": "^2.0.2", | ||
"@yiliang114/trading-day": "^3.1.27", | ||
"@yiliang114/trading-day": "workspace:^3.1.27", | ||
"axios": "^1.3.4", | ||
@@ -18,3 +25,3 @@ "cheerio": "1.0.0-rc.12", | ||
"node-fetch": "^2.6.9", | ||
"numeral": "^2.0.6" | ||
"@yiliang114/numeral": "2.0.8" | ||
}, | ||
@@ -30,10 +37,3 @@ "devDependencies": { | ||
"typedoc": "^0.25.6" | ||
}, | ||
"scripts": { | ||
"dev": "tsc --watch", | ||
"build": "tsc", | ||
"test-dev": "jest --watchAll --coverage", | ||
"test": "jest --coverage", | ||
"docs:build": "typedoc" | ||
} | ||
} | ||
} |
@@ -5,2 +5,3 @@ { | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
"outDir": "lib", | ||
@@ -7,0 +8,0 @@ "baseUrl": ".", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195597
180
2998
+ Added@yiliang114/numeral@2.0.8
+ Added@yiliang114/numeral@2.0.8(transitive)
- Removednumeral@^2.0.6
- Removed@yiliang114/trading-day@3.1.27(transitive)
- Removednumeral@2.0.6(transitive)