socialblade
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -12,3 +12,3 @@ import { Matrix } from './matrix'; | ||
*/ | ||
user(query: string, history?: 'default' | 'extended' | 'archive'): Promise<U>; | ||
user(query: string, history?: 'default' | 'extended' | 'archive' | 'vault'): Promise<U>; | ||
} | ||
@@ -15,0 +15,0 @@ export declare class PlatformWithTop<U, F, T> extends Platform<U> { |
@@ -26,2 +26,4 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (this.platform === 'youtube' && history === 'vault') | ||
throw new Error('YouTube does not support vault history. YouTube requires data to be limited to 3 years.'); | ||
const req = yield this.api.get(`${this.platform}/statistics`, { | ||
@@ -28,0 +30,0 @@ query, |
{ | ||
"name": "socialblade", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Library for Social Blade's Official API in JavaScript (TypeScript)", | ||
@@ -9,3 +9,2 @@ "main": "dist/index.js", | ||
"build": "tsc --module commonjs", | ||
"dev": "ts-node-dev --respawn ./lib/index.ts", | ||
"test": "mocha --reporter spec --require ts-node/register tests/*.ts", | ||
@@ -29,11 +28,12 @@ "tdd": "mocha --reporter min --require ts-node/register --watch-files tests/ --watch-files lib/ --watch --recursive tests/*.ts", | ||
"@types/chai": "^4.3.4", | ||
"@types/mocha": "^10.0.0", | ||
"@types/node": "^18.11.9", | ||
"@types/chai-as-promised": "^7.1.5", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.11.18", | ||
"chai": "^4.3.7", | ||
"isomorphic-unfetch": "^3.1.0", | ||
"mocha": "^10.1.0", | ||
"prettier": "^2.7.1", | ||
"chai-as-promised": "^7.1.1", | ||
"mocha": "^10.2.0", | ||
"prettier": "^2.8.3", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.3" | ||
"typescript": "^4.9.4" | ||
} | ||
} |
@@ -23,3 +23,3 @@ # Social Blade API in TypeScript [<img align="right" src="https://socialblade.com/images/media/red/2.png">](https://socialblade.com/b) | ||
> **Important**: Library does not force any fetch polyfills, If you don't already have a fetch polyfill we recommend using `isomorphic-unfetch` like the tests use. | ||
> **Important**: We do not force any fetch polyfills, If you're using an older version of node non-lts (v18) you may need a fetch polyfill. | ||
@@ -26,0 +26,0 @@ ## Usage |
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
51717
929
10