3 Commits

Author SHA1 Message Date
Blake Joynes
7f98a557dc remove commented tsconfig 2023-04-20 06:27:35 -04:00
Blake Joynes
9e54e26e87 run prettier 2023-04-20 06:26:53 -04:00
Blake Joynes
69a883e845 remove default exports
major version 1.x
2023-04-16 15:39:45 -04:00
7 changed files with 7 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "tmdb-ts", "name": "tmdb-ts",
"version": "0.2.0", "version": "1.0.0",
"description": "TMDB v3 library wrapper", "description": "TMDB v3 library wrapper",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",

View File

@@ -3,7 +3,7 @@ import { parseOptions } from './utils';
const BASE_URL_V3 = 'https://api.themoviedb.org/3'; const BASE_URL_V3 = 'https://api.themoviedb.org/3';
export default class Api { export class Api {
constructor(private accessToken: string) { constructor(private accessToken: string) {
this.accessToken = accessToken; this.accessToken = accessToken;
} }

View File

@@ -1,4 +1,4 @@
import Api from '../api'; import { Api } from '../api';
export class BaseEndpoint { export class BaseEndpoint {
protected api: Api; protected api: Api;

View File

@@ -1,6 +1,6 @@
import TMDB from './tmdb'; import { TMDB } from './tmdb';
export * from './types'; export * from './types';
export * from './utils'; export * from './utils';
export default TMDB; export { TMDB };

View File

@@ -17,7 +17,7 @@ import {
CollectionsEndpoint, CollectionsEndpoint,
} from './endpoints'; } from './endpoints';
export default class TMDB { export class TMDB {
private readonly accessToken: string; private readonly accessToken: string;
constructor(accessToken: string) { constructor(accessToken: string) {

View File

@@ -8,8 +8,6 @@
"strict": true /* Enable all strict type-checking options. */, "strict": true /* Enable all strict type-checking options. */,
"types": ["node"], "types": ["node"],
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
// "experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
// "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */,
"skipLibCheck": true /* Skip type checking of declaration files. */, "skipLibCheck": true /* Skip type checking of declaration files. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */, "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"typeRoots": ["./src/types"] "typeRoots": ["./src/types"]