remove default exports
major version 1.x
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tmdb-ts",
|
||||
"version": "0.2.0",
|
||||
"version": "1.0.0",
|
||||
"description": "TMDB v3 library wrapper",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
@@ -3,7 +3,7 @@ import { parseOptions } from './utils';
|
||||
|
||||
const BASE_URL_V3 = 'https://api.themoviedb.org/3';
|
||||
|
||||
export default class Api {
|
||||
export class Api {
|
||||
constructor(private accessToken: string) {
|
||||
this.accessToken = accessToken;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Api from '../api';
|
||||
import {Api} from '../api';
|
||||
|
||||
export class BaseEndpoint {
|
||||
protected api: Api;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import TMDB from './tmdb';
|
||||
import {TMDB} from './tmdb';
|
||||
|
||||
export * from './types';
|
||||
export * from './utils';
|
||||
|
||||
export default TMDB;
|
||||
export {
|
||||
TMDB
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
CollectionsEndpoint,
|
||||
} from './endpoints';
|
||||
|
||||
export default class TMDB {
|
||||
export class TMDB {
|
||||
private readonly accessToken: string;
|
||||
|
||||
constructor(accessToken: string) {
|
||||
|
||||
Reference in New Issue
Block a user