@ttoss/appsync-api 0.10.9 → 0.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/dist/esm/cli.js +2 -2
- package/dist/esm/index.js +15 -11
- package/dist/index.js +15 -11
- package/dist/server.d.ts +2 -2
- package/package.json +13 -9
- package/src/cli.ts +2 -2
- package/src/server.ts +2 -2
package/dist/cli.js
CHANGED
|
@@ -29,8 +29,8 @@ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
|
29
29
|
// src/cli.ts
|
|
30
30
|
var fs = __toESM(require("fs"));
|
|
31
31
|
var import_cloudformation = require("@ttoss/cloudformation");
|
|
32
|
-
var
|
|
33
|
-
var argv = (0,
|
|
32
|
+
var import_yargs = __toESM(require("yargs"));
|
|
33
|
+
var argv = (0, import_yargs.default)(process.argv.slice(2)).argv;
|
|
34
34
|
if (argv._.includes("build-schema")) {
|
|
35
35
|
const template = (0, import_cloudformation.findAndReadCloudFormationTemplate)({});
|
|
36
36
|
const sdl = template.Metadata.Schema.Definition;
|
package/dist/esm/cli.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// src/cli.ts
|
|
4
4
|
import * as fs from "fs";
|
|
5
5
|
import { findAndReadCloudFormationTemplate } from "@ttoss/cloudformation";
|
|
6
|
-
import
|
|
7
|
-
var argv =
|
|
6
|
+
import yargs from "yargs";
|
|
7
|
+
var argv = yargs(process.argv.slice(2)).argv;
|
|
8
8
|
if (argv._.includes("build-schema")) {
|
|
9
9
|
const template = findAndReadCloudFormationTemplate({});
|
|
10
10
|
const sdl = template.Metadata.Schema.Definition;
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// src/createApiTemplate.ts
|
|
4
4
|
import { graphql } from "graphql-compose";
|
|
5
5
|
|
|
6
|
-
// ../../node_modules/tslib/tslib.es6.js
|
|
6
|
+
// ../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.es6.js
|
|
7
7
|
var __assign = function () {
|
|
8
8
|
__assign = Object.assign || function __assign2(t) {
|
|
9
9
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -15,12 +15,12 @@ var __assign = function () {
|
|
|
15
15
|
return __assign.apply(this, arguments);
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
// ../../node_modules/lower-case/dist.es2015/index.js
|
|
18
|
+
// ../../node_modules/.pnpm/lower-case@2.0.2/node_modules/lower-case/dist.es2015/index.js
|
|
19
19
|
function lowerCase(str) {
|
|
20
20
|
return str.toLowerCase();
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
// ../../node_modules/no-case/dist.es2015/index.js
|
|
23
|
+
// ../../node_modules/.pnpm/no-case@3.0.4/node_modules/no-case/dist.es2015/index.js
|
|
24
24
|
var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
|
|
25
25
|
var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
|
|
26
26
|
function noCase(input, options) {
|
|
@@ -49,7 +49,7 @@ function replace(input, re, value) {
|
|
|
49
49
|
}, input);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
// ../../node_modules/pascal-case/dist.es2015/index.js
|
|
52
|
+
// ../../node_modules/.pnpm/pascal-case@3.1.2/node_modules/pascal-case/dist.es2015/index.js
|
|
53
53
|
function pascalCaseTransform(input, index) {
|
|
54
54
|
var firstChar = input.charAt(0);
|
|
55
55
|
var lowerChars = input.substr(1).toLowerCase();
|
|
@@ -108,23 +108,27 @@ var package_default = {
|
|
|
108
108
|
sideEffects: false,
|
|
109
109
|
typings: "dist/index.d.ts",
|
|
110
110
|
dependencies: {
|
|
111
|
-
"@ttoss/cloudformation": "
|
|
111
|
+
"@ttoss/cloudformation": "workspace:^",
|
|
112
112
|
express: "^4.18.2",
|
|
113
113
|
"graphql-compose-connection": "^8.2.1",
|
|
114
114
|
"graphql-helix": "^1.13.0",
|
|
115
|
-
|
|
115
|
+
yargs: "^17.7.1"
|
|
116
116
|
},
|
|
117
117
|
peerDependencies: {
|
|
118
118
|
graphql: "^16.6.0",
|
|
119
119
|
"graphql-compose": "^9.0.10"
|
|
120
120
|
},
|
|
121
121
|
devDependencies: {
|
|
122
|
-
"@ttoss/config": "
|
|
123
|
-
"@ttoss/relay-amplify": "
|
|
124
|
-
"@types/aws-lambda": "^8.10.
|
|
125
|
-
|
|
122
|
+
"@ttoss/config": "workspace:^",
|
|
123
|
+
"@ttoss/relay-amplify": "workspace:^",
|
|
124
|
+
"@types/aws-lambda": "^8.10.114",
|
|
125
|
+
"@types/express": "^4.17.17",
|
|
126
|
+
"@types/yargs": "^17.0.24",
|
|
127
|
+
carlin: "workspace:^",
|
|
126
128
|
graphql: "^16.6.0",
|
|
127
|
-
"graphql-compose": "^9.0.10"
|
|
129
|
+
"graphql-compose": "^9.0.10",
|
|
130
|
+
jest: "^29.5.0",
|
|
131
|
+
tsup: "^6.7.0"
|
|
128
132
|
},
|
|
129
133
|
keywords: ["api", "appsync", "aws", "graphql"],
|
|
130
134
|
publishConfig: {
|
package/dist/index.js
CHANGED
|
@@ -50,7 +50,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
50
50
|
// src/createApiTemplate.ts
|
|
51
51
|
var import_graphql_compose = require("graphql-compose");
|
|
52
52
|
|
|
53
|
-
// ../../node_modules/tslib/tslib.es6.js
|
|
53
|
+
// ../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.es6.js
|
|
54
54
|
var __assign = function () {
|
|
55
55
|
__assign = Object.assign || function __assign2(t) {
|
|
56
56
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -62,12 +62,12 @@ var __assign = function () {
|
|
|
62
62
|
return __assign.apply(this, arguments);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
// ../../node_modules/lower-case/dist.es2015/index.js
|
|
65
|
+
// ../../node_modules/.pnpm/lower-case@2.0.2/node_modules/lower-case/dist.es2015/index.js
|
|
66
66
|
function lowerCase(str) {
|
|
67
67
|
return str.toLowerCase();
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
// ../../node_modules/no-case/dist.es2015/index.js
|
|
70
|
+
// ../../node_modules/.pnpm/no-case@3.0.4/node_modules/no-case/dist.es2015/index.js
|
|
71
71
|
var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
|
|
72
72
|
var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
|
|
73
73
|
function noCase(input, options) {
|
|
@@ -96,7 +96,7 @@ function replace(input, re, value) {
|
|
|
96
96
|
}, input);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
// ../../node_modules/pascal-case/dist.es2015/index.js
|
|
99
|
+
// ../../node_modules/.pnpm/pascal-case@3.1.2/node_modules/pascal-case/dist.es2015/index.js
|
|
100
100
|
function pascalCaseTransform(input, index) {
|
|
101
101
|
var firstChar = input.charAt(0);
|
|
102
102
|
var lowerChars = input.substr(1).toLowerCase();
|
|
@@ -155,23 +155,27 @@ var package_default = {
|
|
|
155
155
|
sideEffects: false,
|
|
156
156
|
typings: "dist/index.d.ts",
|
|
157
157
|
dependencies: {
|
|
158
|
-
"@ttoss/cloudformation": "
|
|
158
|
+
"@ttoss/cloudformation": "workspace:^",
|
|
159
159
|
express: "^4.18.2",
|
|
160
160
|
"graphql-compose-connection": "^8.2.1",
|
|
161
161
|
"graphql-helix": "^1.13.0",
|
|
162
|
-
|
|
162
|
+
yargs: "^17.7.1"
|
|
163
163
|
},
|
|
164
164
|
peerDependencies: {
|
|
165
165
|
graphql: "^16.6.0",
|
|
166
166
|
"graphql-compose": "^9.0.10"
|
|
167
167
|
},
|
|
168
168
|
devDependencies: {
|
|
169
|
-
"@ttoss/config": "
|
|
170
|
-
"@ttoss/relay-amplify": "
|
|
171
|
-
"@types/aws-lambda": "^8.10.
|
|
172
|
-
|
|
169
|
+
"@ttoss/config": "workspace:^",
|
|
170
|
+
"@ttoss/relay-amplify": "workspace:^",
|
|
171
|
+
"@types/aws-lambda": "^8.10.114",
|
|
172
|
+
"@types/express": "^4.17.17",
|
|
173
|
+
"@types/yargs": "^17.0.24",
|
|
174
|
+
carlin: "workspace:^",
|
|
173
175
|
graphql: "^16.6.0",
|
|
174
|
-
"graphql-compose": "^9.0.10"
|
|
176
|
+
"graphql-compose": "^9.0.10",
|
|
177
|
+
jest: "^29.5.0",
|
|
178
|
+
tsup: "^6.7.0"
|
|
175
179
|
},
|
|
176
180
|
keywords: ["api", "appsync", "aws", "graphql"],
|
|
177
181
|
publishConfig: {
|
package/dist/server.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as express_serve_static_core from 'express-serve-static-core';
|
|
2
1
|
import { SchemaComposer } from 'graphql-compose';
|
|
2
|
+
import { Express } from 'express';
|
|
3
3
|
|
|
4
4
|
declare const createServer: ({ schemaComposer, }: {
|
|
5
5
|
schemaComposer: SchemaComposer<any>;
|
|
6
|
-
}) =>
|
|
6
|
+
}) => Express;
|
|
7
7
|
|
|
8
8
|
export { createServer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/appsync-api",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.10",
|
|
4
4
|
"description": "A library for building GraphQL APIs for AWS AppSync.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -33,23 +33,27 @@
|
|
|
33
33
|
"sideEffects": false,
|
|
34
34
|
"typings": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ttoss/cloudformation": "^0.6.
|
|
36
|
+
"@ttoss/cloudformation": "^0.6.9",
|
|
37
37
|
"express": "^4.18.2",
|
|
38
38
|
"graphql-compose-connection": "^8.2.1",
|
|
39
39
|
"graphql-helix": "^1.13.0",
|
|
40
|
-
"
|
|
40
|
+
"yargs": "^17.7.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"graphql": "^16.6.0",
|
|
44
44
|
"graphql-compose": "^9.0.10"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@ttoss/config": "^1.29.
|
|
48
|
-
"@ttoss/relay-amplify": "^0.4.
|
|
49
|
-
"@types/aws-lambda": "^8.10.
|
|
50
|
-
"
|
|
47
|
+
"@ttoss/config": "^1.29.4",
|
|
48
|
+
"@ttoss/relay-amplify": "^0.4.5",
|
|
49
|
+
"@types/aws-lambda": "^8.10.114",
|
|
50
|
+
"@types/express": "^4.17.17",
|
|
51
|
+
"@types/yargs": "^17.0.24",
|
|
52
|
+
"carlin": "^1.26.7",
|
|
51
53
|
"graphql": "^16.6.0",
|
|
52
|
-
"graphql-compose": "^9.0.10"
|
|
54
|
+
"graphql-compose": "^9.0.10",
|
|
55
|
+
"jest": "^29.5.0",
|
|
56
|
+
"tsup": "^6.7.0"
|
|
53
57
|
},
|
|
54
58
|
"keywords": [
|
|
55
59
|
"api",
|
|
@@ -70,5 +74,5 @@
|
|
|
70
74
|
]
|
|
71
75
|
}
|
|
72
76
|
},
|
|
73
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "81c9da91988b338a6449d84b4dfc183ccf9ed941"
|
|
74
78
|
}
|
package/src/cli.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as fs from 'fs';
|
|
2
2
|
import { findAndReadCloudFormationTemplate } from '@ttoss/cloudformation';
|
|
3
|
-
import
|
|
3
|
+
import yargs from 'yargs';
|
|
4
4
|
|
|
5
|
-
const argv =
|
|
5
|
+
const argv: any = yargs(process.argv.slice(2)).argv;
|
|
6
6
|
|
|
7
7
|
if (argv._.includes('build-schema')) {
|
|
8
8
|
const template = findAndReadCloudFormationTemplate({});
|
package/src/server.ts
CHANGED
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
sendResult,
|
|
7
7
|
shouldRenderGraphiQL,
|
|
8
8
|
} from 'graphql-helix';
|
|
9
|
-
import express from 'express';
|
|
9
|
+
import express, { Express } from 'express';
|
|
10
10
|
|
|
11
11
|
export const createServer = ({
|
|
12
12
|
schemaComposer,
|
|
13
13
|
}: {
|
|
14
14
|
schemaComposer: SchemaComposer<any>;
|
|
15
|
-
}) => {
|
|
15
|
+
}): Express => {
|
|
16
16
|
const server = express();
|
|
17
17
|
|
|
18
18
|
server.use(express.json());
|