Comparing version 2.1.7 to 2.2.0
@@ -64,2 +64,3 @@ "use strict"; | ||
this.liveStatus = data.snippet.liveBroadcastContent !== 'none' ? data.snippet.liveBroadcastContent : false; | ||
this.category = data.snippet.categoryId; | ||
} | ||
@@ -127,4 +128,4 @@ /* istanbul ignore next */ | ||
Video.fields = 'items(kind,id,contentDetails(duration),statistics(likeCount,dislikeCount,viewCount,commentCount),status(privacyStatus),' + | ||
'snippet(title,description,thumbnails,tags,publishedAt,channelId,liveBroadcastContent))'; | ||
'snippet(title,description,thumbnails,tags,publishedAt,channelId,liveBroadcastContent,categoryId))'; | ||
//# sourceMappingURL=video.js.map |
{ | ||
"name": "popyt", | ||
"version": "2.1.7", | ||
"version": "2.2.0", | ||
"description": "A very easy to use promise-based Youtube Data v3 API.", | ||
@@ -8,3 +8,3 @@ "main": "out/index.js", | ||
"scripts": { | ||
"test": "mocha --exit --require ts-node/register/transpile-only --require source-map-support/register --recursive \"./test/!(oauth).spec.ts\"", | ||
"test": "mocha --exit --require ts-node/register/transpile-only --require source-map-support/register --recursive \"./test/!(oauth).spec.ts\" --timeout 10000", | ||
"coverage": "nyc yarn test && nyc report --reporter=text-lcov | coveralls", | ||
@@ -28,27 +28,26 @@ "docs": "gulp typedoc", | ||
"devDependencies": { | ||
"@istanbuljs/nyc-config-typescript": "^0.1.3", | ||
"@types/chai": "^4.1.4", | ||
"@types/dotenv": "^6.1.1", | ||
"@types/gulp": "^4.0.6", | ||
"@types/gulp-sourcemaps": "^0.0.32", | ||
"@types/merge2": "^1.1.4", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "12.6.2", | ||
"chai": "^4.1.2", | ||
"coveralls": "^3.0.5", | ||
"dotenv": "^8.1.0", | ||
"fs-nextra": "0.4.5", | ||
"@istanbuljs/nyc-config-typescript": "1.0.1", | ||
"@types/chai": "4.2.9", | ||
"@types/gulp": "4.0.6", | ||
"@types/gulp-sourcemaps": "0.0.32", | ||
"@types/merge2": "1.3.0", | ||
"@types/mocha": "7.0.1", | ||
"@types/node": "13.7.2", | ||
"chai": "4.2.0", | ||
"coveralls": "3.0.9", | ||
"dotenv": "8.2.0", | ||
"fs-nextra": "0.4.7", | ||
"gulp": "4.0.2", | ||
"gulp-sourcemaps": "^2.6.4", | ||
"gulp-typedoc": "^2.2.0", | ||
"gulp-typescript": "^5.0.0-alpha.3", | ||
"merge2": "^1.2.3", | ||
"mocha": "6.1.4", | ||
"nyc": "^14.1.1", | ||
"source-map-support": "^0.5.12", | ||
"ts-node": "8.3.0", | ||
"tslint": "^5.11.0", | ||
"tslint-config-standard": "8.0.1", | ||
"typedoc": "0.15.0", | ||
"typescript": "^3.6.4" | ||
"gulp-sourcemaps": "2.6.5", | ||
"gulp-typedoc": "2.2.4", | ||
"gulp-typescript": "5.0.1", | ||
"merge2": "1.3.0", | ||
"mocha": "7.0.1", | ||
"nyc": "15.0.0", | ||
"source-map-support": "0.5.16", | ||
"ts-node": "8.6.2", | ||
"tslint": "5.20.1", | ||
"tslint-config-standard": "9.0.0", | ||
"typedoc": "0.16.10", | ||
"typescript": "3.7.5" | ||
}, | ||
@@ -55,0 +54,0 @@ "repository": { |
@@ -67,3 +67,3 @@ # popyt | ||
* Run TSLint. | ||
* Run `npm run coverage` to check if you've added enough tests. It should display 100% statement, line, and branch coverage. | ||
* Run `yarn test` or `npm run test` and make sure that every test passes. | ||
* Run `yarn coverage` or `npm run coverage` to check if you've added enough tests. It should display 100% statement, line, and branch coverage. | ||
* Also, make sure that every test passes. |
@@ -120,2 +120,6 @@ import { YouTube } from '..'; | ||
liveStatus: 'live' | 'upcoming' | false; | ||
/** | ||
* The video category associated with the video. | ||
*/ | ||
category: string; | ||
constructor(youtube: YouTube, data: any); | ||
@@ -122,0 +126,0 @@ /** |
@@ -31,3 +31,4 @@ import { Video, Channel, Playlist, YTComment } from './entities'; | ||
private _token; | ||
token: string; | ||
get token(): string; | ||
set token(val: string); | ||
/** | ||
@@ -34,0 +35,0 @@ * Methods requiring an OAuth token |
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
180176
24
64
2191