apollo-datasource-spotify
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,4 +0,4 @@ | ||
import { RequestOptions, RESTDataSource } from 'apollo-datasource-rest'; | ||
import { RequestOptions, RESTDataSource, Response } from 'apollo-datasource-rest'; | ||
import * as p from './params'; | ||
import { Album, Artist, Image, Track, User } from '../generated/types'; | ||
import { Album, Artist, Image, Track, User } from '../types/generated'; | ||
export interface Context { | ||
@@ -49,3 +49,4 @@ token?: string; | ||
protected willSendRequest(request: RequestOptions): void; | ||
protected parseBody(response: Response): Promise<Record<string, unknown> | string>; | ||
} | ||
//# sourceMappingURL=spotify-api.d.ts.map |
@@ -8,6 +8,7 @@ "use strict"; | ||
// TODO: re-enable these rules | ||
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-function-return-type */ | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
const apollo_datasource_rest_1 = require("apollo-datasource-rest"); | ||
const bottleneck_1 = __importDefault(require("bottleneck")); | ||
const dataloader_1 = __importDefault(require("dataloader")); | ||
const case_1 = require("./case"); | ||
class SpotifyAPI extends apollo_datasource_rest_1.RESTDataSource { | ||
@@ -142,4 +143,7 @@ constructor() { | ||
} | ||
parseBody(response) { | ||
return super.parseBody(response).then(case_1.camelCase); | ||
} | ||
} | ||
exports.SpotifyAPI = SpotifyAPI; | ||
//# sourceMappingURL=spotify-api.js.map |
{ | ||
"name": "apollo-datasource-spotify", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "RESTDataSource wrapper for the Spotify API", | ||
@@ -12,3 +12,3 @@ "author": "Jamal Carvalho <jamal.a.carvalho@gmail.com>", | ||
"dist", | ||
"generated" | ||
"types" | ||
], | ||
@@ -32,8 +32,6 @@ "repository": { | ||
"*.ts": [ | ||
"eslint . --ext .ts --fix", | ||
"git add" | ||
"eslint . --ext .ts --fix" | ||
], | ||
"*.{js,json,md}": [ | ||
"prettier --write", | ||
"git add" | ||
"prettier --write" | ||
] | ||
@@ -47,2 +45,3 @@ }, | ||
"@graphql-codegen/typescript": "^1.17.7", | ||
"@types/jest": "^26.0.14", | ||
"@types/lodash": "^4.14.159", | ||
@@ -52,2 +51,3 @@ "@typescript-eslint/eslint-plugin": "^4.0.0", | ||
"apollo-datasource-rest": "^0.9.3", | ||
"apollo-server-types": "^0.5.1", | ||
"dataloader": "^2.0.0", | ||
@@ -59,4 +59,6 @@ "eslint": "^7.6.0", | ||
"husky": "^4.2.5", | ||
"jest": "^26.4.2", | ||
"lint-staged": "^10.2.11", | ||
"prettier": "^2.0.5", | ||
"ts-jest": "^26.3.0", | ||
"typescript": "^3.9.7" | ||
@@ -63,0 +65,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
38918
23
900
19