Socket
Socket
Sign inDemoInstall

apollo-datasource

Package Overview
Dependencies
80
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-rc.8 to 3.0.0-preview.1

LICENSE

6

dist/index.d.ts
import { KeyValueCache } from 'apollo-server-caching';
export interface DataSourceConfig<TContext> {
context: TContext;
cache: KeyValueCache;
}
export declare abstract class DataSource<TContext = any> {
abstract initialize(context: TContext, cache: KeyValueCache): void;
initialize?(config: DataSourceConfig<TContext>): void | Promise<void>;
}
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataSource = void 0;
class DataSource {

@@ -4,0 +5,0 @@ }

48

package.json
{
"name": "apollo-datasource",
"version": "2.0.0-rc.8",
"author": "opensource@apollographql.com",
"version": "3.0.0-preview.1",
"author": "Apollo <opensource@apollographql.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-datasource"
"url": "https://github.com/apollographql/apollo-server",
"directory": "packages/apollo-datasource"
},

@@ -14,45 +15,12 @@ "homepage": "https://github.com/apollographql/apollo-server#readme",

},
"scripts": {
"clean": "rm -rf dist",
"compile": "tsc",
"prepublish": "npm run clean && npm run compile",
"test": "jest --verbose"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"engines": {
"node": ">=6"
"node": ">=12.0"
},
"dependencies": {
"apollo-server-caching": "^2.0.0-rc.8",
"apollo-server-env": "^2.0.0-rc.8"
"apollo-server-caching": "^3.0.0-preview.1",
"apollo-server-env": "^3.0.0-preview.1"
},
"devDependencies": {
"@types/jest": "^23.1.2",
"jest": "^23.2.0",
"ts-jest": "^22.4.6"
},
"jest": {
"testEnvironment": "node",
"setupFiles": [
"<rootDir>/node_modules/apollo-server-env/dist/index.js"
],
"transform": {
"^.+\\.(ts|js)$": "ts-jest"
},
"moduleFileExtensions": [
"ts",
"js",
"json"
],
"testRegex": "apollo-datasource-rest/src/__tests__/.*$",
"roots": [
"../../"
],
"globals": {
"ts-jest": {
"skipBabel": true
}
}
}
"gitHead": "f23a4eb1aa5c5ae8cf83a1f41bd9bae3a03d3360"
}
import { KeyValueCache } from 'apollo-server-caching';
export interface DataSourceConfig<TContext> {
context: TContext;
cache: KeyValueCache;
}
export abstract class DataSource<TContext = any> {
abstract initialize(context: TContext, cache: KeyValueCache): void;
initialize?(config: DataSourceConfig<TContext>): void | Promise<void>;
}

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