Initial Save
This commit is contained in:
21
node_modules/apollo-datasource/LICENSE
generated
vendored
Normal file
21
node_modules/apollo-datasource/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016-2020 Apollo Graph, Inc. (Formerly Meteor Development Group, Inc.)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
9
node_modules/apollo-datasource/dist/index.d.ts
generated
vendored
Normal file
9
node_modules/apollo-datasource/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { KeyValueCache } from 'apollo-server-caching';
|
||||
export interface DataSourceConfig<TContext> {
|
||||
context: TContext;
|
||||
cache: KeyValueCache;
|
||||
}
|
||||
export declare abstract class DataSource<TContext = any> {
|
||||
initialize?(config: DataSourceConfig<TContext>): void | Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/apollo-datasource/dist/index.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-datasource/dist/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,WAAW,gBAAgB,CAAC,QAAQ;IACxC,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,EAAE,aAAa,CAAC;CACtB;AAED,8BAAsB,UAAU,CAAC,QAAQ,GAAG,GAAG;IAC7C,UAAU,CAAC,CAAC,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CACtE"}
|
||||
7
node_modules/apollo-datasource/dist/index.js
generated
vendored
Normal file
7
node_modules/apollo-datasource/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DataSource = void 0;
|
||||
class DataSource {
|
||||
}
|
||||
exports.DataSource = DataSource;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/apollo-datasource/dist/index.js.map
generated
vendored
Normal file
1
node_modules/apollo-datasource/dist/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAOA,MAAsB,UAAU;CAE/B;AAFD,gCAEC"}
|
||||
25
node_modules/apollo-datasource/package.json
generated
vendored
Normal file
25
node_modules/apollo-datasource/package.json
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "apollo-datasource",
|
||||
"version": "0.10.0",
|
||||
"author": "Apollo <opensource@apollographql.com>",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/apollographql/apollo-server",
|
||||
"directory": "packages/apollo-datasource"
|
||||
},
|
||||
"homepage": "https://github.com/apollographql/apollo-server#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/apollographql/apollo-server/issues"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
},
|
||||
"dependencies": {
|
||||
"apollo-server-caching": "^0.7.0",
|
||||
"apollo-server-env": "^3.2.0"
|
||||
},
|
||||
"gitHead": "91de501bb389c07ccfc5e684811153267b91e9ac"
|
||||
}
|
||||
10
node_modules/apollo-datasource/src/index.ts
generated
vendored
Normal file
10
node_modules/apollo-datasource/src/index.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { KeyValueCache } from 'apollo-server-caching';
|
||||
|
||||
export interface DataSourceConfig<TContext> {
|
||||
context: TContext;
|
||||
cache: KeyValueCache;
|
||||
}
|
||||
|
||||
export abstract class DataSource<TContext = any> {
|
||||
initialize?(config: DataSourceConfig<TContext>): void | Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user