@aws-amplify/api 6.0.1-ssr-api.df60e41.0 → 6.0.1-unstable.20e9a79.0
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/lib/server.d.ts +1 -11
- package/lib/server.js.map +1 -1
- package/lib-esm/server.d.ts +1 -11
- package/lib-esm/server.js +1 -1
- package/lib-esm/server.js.map +1 -1
- package/package.json +4 -4
- package/src/server.ts +6 -17
package/lib/server.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
export { GraphQLQuery, GraphQLSubscription } from './types';
|
|
2
|
-
import { V6Client, V6ClientSSR } from '@aws-amplify/api-graphql';
|
|
2
|
+
import { V6Client, V6ClientSSR, ServerClientGenerationParams } from '@aws-amplify/api-graphql';
|
|
3
3
|
export type { GraphQLResult, GraphQLReturnType, } from '@aws-amplify/api-graphql';
|
|
4
|
-
import { AmplifyClassV6, ResourcesConfig } from '@aws-amplify/core';
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*
|
|
8
|
-
* The knobs available for configuring `server/generateClient` internally.
|
|
9
|
-
*/
|
|
10
|
-
export declare type ServerClientGenerationParams = {
|
|
11
|
-
amplify: null | ((fn: (amplify: any) => Promise<any>) => Promise<AmplifyClassV6>);
|
|
12
|
-
config: ResourcesConfig;
|
|
13
|
-
};
|
|
14
4
|
/**
|
|
15
5
|
* @private
|
|
16
6
|
*
|
package/lib/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAGtC,kEAI4C;AAM5C,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAGtC,kEAI4C;AAM5C,0DAKkC;AAOlC;;;;;;;;GAQG;AACH,SAAgB,cAAc,CAG5B,MAAoC;IACrC,MAAM,MAAM,GAAG;QACd,CAAC,uBAAS,CAAC,EAAE,MAAM,CAAC,OAAO;QAC3B,OAAO,EAAP,mBAAO;QACP,MAAM,EAAN,kBAAM;QACN,aAAa,EAAb,yBAAa;QACb,MAAM,EAAE,EAAE;KACH,CAAC;IAET,OAAO,MAAoB,CAAC;AAC7B,CAAC;AAbD,wCAaC;AAED,uDAQsC;AAPrC,uBAAA,GAAG,CAAA;AACH,uBAAA,GAAG,CAAA;AACH,wBAAA,IAAI,CAAA;AACJ,uBAAA,GAAG,CAAA;AACH,wBAAA,IAAI,CAAA;AACJ,yBAAA,KAAK,CAAA;AACL,iCAAA,aAAa,CAAA"}
|
package/lib-esm/server.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
export { GraphQLQuery, GraphQLSubscription } from './types';
|
|
2
|
-
import { V6Client, V6ClientSSR } from '@aws-amplify/api-graphql';
|
|
2
|
+
import { V6Client, V6ClientSSR, ServerClientGenerationParams } from '@aws-amplify/api-graphql';
|
|
3
3
|
export type { GraphQLResult, GraphQLReturnType, } from '@aws-amplify/api-graphql';
|
|
4
|
-
import { AmplifyClassV6, ResourcesConfig } from '@aws-amplify/core';
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*
|
|
8
|
-
* The knobs available for configuring `server/generateClient` internally.
|
|
9
|
-
*/
|
|
10
|
-
export declare type ServerClientGenerationParams = {
|
|
11
|
-
amplify: null | ((fn: (amplify: any) => Promise<any>) => Promise<AmplifyClassV6>);
|
|
12
|
-
config: ResourcesConfig;
|
|
13
|
-
};
|
|
14
4
|
/**
|
|
15
5
|
* @private
|
|
16
6
|
*
|
package/lib-esm/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { graphql, cancel, isCancelError, } from '@aws-amplify/api-graphql/internals';
|
|
4
|
-
import { __amplify } from '@aws-amplify/api-graphql';
|
|
4
|
+
import { __amplify, } from '@aws-amplify/api-graphql';
|
|
5
5
|
/**
|
|
6
6
|
* @private
|
|
7
7
|
*
|
package/lib-esm/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAGtC,OAAO,EACN,OAAO,EACP,MAAM,EACN,aAAa,GACb,MAAM,oCAAoC,CAAC;AAM5C,OAAO,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAGtC,OAAO,EACN,OAAO,EACP,MAAM,EACN,aAAa,GACb,MAAM,oCAAoC,CAAC;AAM5C,OAAO,EACN,SAAS,GAIT,MAAM,0BAA0B,CAAC;AAOlC;;;;;;;;GAQG;AACH,MAAM,UAAU,cAAc,CAG5B,MAAoC;IACrC,MAAM,MAAM,GAAG;QACd,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,OAAO;QAC3B,OAAO;QACP,MAAM;QACN,aAAa;QACb,MAAM,EAAE,EAAE;KACH,CAAC;IAET,OAAO,MAAoB,CAAC;AAC7B,CAAC;AAED,OAAO,EACN,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,EACL,aAAa,GACb,MAAM,8BAA8B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api",
|
|
3
|
-
"version": "6.0.1-
|
|
3
|
+
"version": "6.0.1-unstable.20e9a79.0+20e9a79",
|
|
4
4
|
"description": "Api category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"server"
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@aws-amplify/api-graphql": "4.0.1-
|
|
55
|
-
"@aws-amplify/api-rest": "4.0.1-
|
|
54
|
+
"@aws-amplify/api-graphql": "4.0.1-unstable.20e9a79.0+20e9a79",
|
|
55
|
+
"@aws-amplify/api-rest": "4.0.1-unstable.20e9a79.0+20e9a79",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"jest": {
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"lib-esm"
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "20e9a799c8260f61a4b4d7d637b67f5d0e427322"
|
|
103
103
|
}
|
package/src/server.ts
CHANGED
|
@@ -12,29 +12,18 @@ import {
|
|
|
12
12
|
getAmplifyServerContext,
|
|
13
13
|
} from '@aws-amplify/core/internals/adapter-core';
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
__amplify,
|
|
17
|
+
V6Client,
|
|
18
|
+
V6ClientSSR,
|
|
19
|
+
ServerClientGenerationParams,
|
|
20
|
+
} from '@aws-amplify/api-graphql';
|
|
16
21
|
|
|
17
22
|
export type {
|
|
18
23
|
GraphQLResult,
|
|
19
24
|
GraphQLReturnType,
|
|
20
25
|
} from '@aws-amplify/api-graphql';
|
|
21
26
|
|
|
22
|
-
// move this import and ServerClientGenerationParams into `api-graphql`
|
|
23
|
-
import { AmplifyClassV6, ResourcesConfig } from '@aws-amplify/core';
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*
|
|
27
|
-
* The knobs available for configuring `server/generateClient` internally.
|
|
28
|
-
*/
|
|
29
|
-
export type ServerClientGenerationParams = {
|
|
30
|
-
amplify:
|
|
31
|
-
| null // null expected when used with `generateServerClient`
|
|
32
|
-
// closure expected with `generateServerClientUsingCookies`
|
|
33
|
-
| ((fn: (amplify: any) => Promise<any>) => Promise<AmplifyClassV6>);
|
|
34
|
-
// global env-sourced config use for retrieving modelIntro
|
|
35
|
-
config: ResourcesConfig;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
27
|
/**
|
|
39
28
|
* @private
|
|
40
29
|
*
|