Skip to content

Commit 1123a36

Browse files
committed
update build
1 parent f7e0b76 commit 1123a36

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

dist/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
77
/* eslint-disable arrow-body-style */
88

99
var graphqlHTTP = require('express-graphql');
10-
11-
var _require = require('graphql'),
12-
buildSchema = _require.buildSchema;
13-
1410
var fetch = require('node-fetch');
15-
16-
var schema = buildSchema('\n type Registry {\n href: String\n ocVersion: String\n type: String\n dependencies: [String]\n }\n\n type Person {\n name: String\n email: String\n }\n\n type Repository {\n type: String\n url: String\n }\n\n type Parameter {\n key: String\n type: String\n mandatory: Boolean\n example: String\n description: String\n }\n\n type Component {\n name: String\n description: String\n version: String\n allVersions: [String]\n author: Person\n repository: Repository\n parameters: [Parameter]\n }\n\n type Query {\n registry: Registry\n component(name: String): Component\n components: [Component]\n }\n');
11+
var schema = require('./schema');
1712

1813
var fetchComponent = function () {
1914
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(url) {

dist/schema.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
var _require = require('graphql'),
4+
buildSchema = _require.buildSchema;
5+
6+
var schema = buildSchema('\n type Registry {\n href: String\n ocVersion: String\n type: String\n dependencies: [String]\n }\n\n type Person {\n name: String\n email: String\n }\n\n type Repository {\n type: String\n url: String\n }\n\n type Parameter {\n key: String\n type: String\n mandatory: Boolean\n example: String\n description: String\n }\n\n type Component {\n name: String\n description: String\n version: String\n allVersions: [String]\n author: Person\n repository: Repository\n parameters: [Parameter]\n }\n\n type Query {\n registry: Registry\n component(name: String): Component\n components: [Component]\n }\n');
7+
8+
module.exports = schema;

0 commit comments

Comments
 (0)