Socket
Socket
Sign inDemoInstall

apollo-datasource-spotify

Package Overview
Dependencies
1
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

dist/case.d.ts

5

dist/spotify-api.d.ts

@@ -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

6

dist/spotify-api.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc