@aws-amplify/graphql-model-transformer 1.4.0 → 1.5.0-no-internal-synth.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/CHANGELOG.md +10 -0
- package/lib/rds-lambda.zip +0 -0
- package/lib/rds-notification-lambda.zip +0 -0
- package/lib/rds-patching-lambda.zip +0 -0
- package/lib/resolvers/rds/resolver.d.ts +5 -5
- package/lib/resolvers/rds/resolver.d.ts.map +1 -1
- package/lib/resolvers/rds/resolver.js +14 -11
- package/lib/resolvers/rds/resolver.js.map +1 -1
- package/lib/resources/dynamo-model-resource-generator.d.ts +2 -2
- package/lib/resources/dynamo-model-resource-generator.d.ts.map +1 -1
- package/lib/resources/dynamo-model-resource-generator.js +48 -43
- package/lib/resources/dynamo-model-resource-generator.js.map +1 -1
- package/lib/resources/model-resource-generator.js +3 -3
- package/lib/resources/model-resource-generator.js.map +1 -1
- package/lib/resources/rds-model-resource-generator.js +13 -13
- package/package.json +7 -6
- package/publish-notification-lambda/node_modules/.package-lock.json +13 -13
- package/publish-notification-lambda/node_modules/@smithy/protocol-http/package.json +2 -2
- package/publish-notification-lambda/node_modules/@smithy/types/README.md +37 -0
- package/publish-notification-lambda/node_modules/@smithy/types/package.json +3 -2
- package/publish-notification-lambda/node_modules/@types/node/README.md +2 -2
- package/publish-notification-lambda/node_modules/@types/node/package.json +2 -7
- package/publish-notification-lambda/node_modules/tslib/package.json +1 -1
- package/publish-notification-lambda/node_modules/tslib/tslib.es6.mjs +1 -1
- package/publish-notification-lambda/package-lock.json +13 -13
- package/rds-lambda/node_modules/.package-lock.json +370 -345
- package/rds-lambda/node_modules/@babel/code-frame/README.md +1 -1
- package/rds-lambda/node_modules/@babel/code-frame/package.json +3 -2
- package/rds-lambda/node_modules/@babel/core/cjs-proxy.cjs +3 -1
- package/rds-lambda/node_modules/@babel/core/package.json +10 -10
- package/rds-lambda/node_modules/@babel/generator/package.json +3 -3
- package/rds-lambda/node_modules/@babel/helper-compilation-targets/package.json +1 -5
- package/rds-lambda/node_modules/@babel/helpers/package.json +6 -6
- package/rds-lambda/node_modules/@babel/highlight/README.md +1 -1
- package/rds-lambda/node_modules/@babel/highlight/package.json +2 -3
- package/rds-lambda/node_modules/@babel/parser/package.json +3 -3
- package/rds-lambda/node_modules/@babel/traverse/package.json +6 -5
- package/rds-lambda/node_modules/@babel/types/README.md +1 -1
- package/rds-lambda/node_modules/@babel/types/package.json +3 -4
- package/rds-lambda/node_modules/@jest/console/package.json +5 -5
- package/rds-lambda/node_modules/@jest/core/package.json +20 -20
- package/rds-lambda/node_modules/@jest/environment/package.json +4 -4
- package/rds-lambda/node_modules/@jest/expect/package.json +4 -4
- package/rds-lambda/node_modules/@jest/expect-utils/package.json +3 -3
- package/rds-lambda/node_modules/@jest/fake-timers/package.json +6 -6
- package/rds-lambda/node_modules/@jest/globals/package.json +5 -5
- package/rds-lambda/node_modules/@jest/reporters/package.json +10 -10
- package/rds-lambda/node_modules/@jest/test-result/package.json +5 -5
- package/rds-lambda/node_modules/@jest/test-sequencer/package.json +5 -5
- package/rds-lambda/node_modules/@jest/transform/package.json +6 -6
- package/rds-lambda/node_modules/@jridgewell/resolve-uri/package.json +2 -2
- package/rds-lambda/node_modules/@jridgewell/trace-mapping/package.json +3 -3
- package/rds-lambda/node_modules/@smithy/protocol-http/package.json +2 -2
- package/rds-lambda/node_modules/@smithy/types/README.md +37 -0
- package/rds-lambda/node_modules/@smithy/types/package.json +3 -2
- package/rds-lambda/node_modules/@types/node/README.md +2 -2
- package/rds-lambda/node_modules/@types/node/package.json +2 -7
- package/rds-lambda/node_modules/babel-jest/package.json +4 -4
- package/rds-lambda/node_modules/browserslist/package.json +4 -4
- package/rds-lambda/node_modules/caniuse-lite/package.json +1 -1
- package/rds-lambda/node_modules/dedent/README.md +56 -0
- package/rds-lambda/node_modules/dedent/dist/dedent.d.mts +17 -0
- package/rds-lambda/node_modules/dedent/dist/dedent.mjs +59 -0
- package/rds-lambda/node_modules/dedent/package.json +54 -10
- package/rds-lambda/node_modules/electron-to-chromium/full-chromium-versions.json +1 -1
- package/rds-lambda/node_modules/electron-to-chromium/full-versions.json +1 -1
- package/rds-lambda/node_modules/electron-to-chromium/package.json +1 -1
- package/rds-lambda/node_modules/electron-to-chromium/versions.json +1 -1
- package/rds-lambda/node_modules/expect/package.json +7 -7
- package/rds-lambda/node_modules/is-core-module/CHANGELOG.md +7 -0
- package/rds-lambda/node_modules/is-core-module/core.json +3 -3
- package/rds-lambda/node_modules/is-core-module/package.json +5 -5
- package/rds-lambda/node_modules/istanbul-lib-report/CHANGELOG.md +7 -0
- package/rds-lambda/node_modules/istanbul-lib-report/package.json +5 -6
- package/rds-lambda/node_modules/istanbul-reports/CHANGELOG.md +7 -0
- package/rds-lambda/node_modules/istanbul-reports/package.json +1 -1
- package/rds-lambda/node_modules/jest/package.json +4 -4
- package/rds-lambda/node_modules/jest-circus/package.json +13 -14
- package/rds-lambda/node_modules/jest-cli/package.json +7 -7
- package/rds-lambda/node_modules/jest-config/package.json +11 -11
- package/rds-lambda/node_modules/jest-diff/package.json +4 -4
- package/rds-lambda/node_modules/jest-each/package.json +4 -4
- package/rds-lambda/node_modules/jest-environment-node/package.json +7 -7
- package/rds-lambda/node_modules/jest-haste-map/package.json +4 -4
- package/rds-lambda/node_modules/jest-leak-detector/package.json +3 -3
- package/rds-lambda/node_modules/jest-matcher-utils/package.json +5 -5
- package/rds-lambda/node_modules/jest-message-util/package.json +3 -3
- package/rds-lambda/node_modules/jest-mock/package.json +3 -3
- package/rds-lambda/node_modules/jest-resolve/package.json +5 -5
- package/rds-lambda/node_modules/jest-resolve-dependencies/package.json +7 -7
- package/rds-lambda/node_modules/jest-runner/package.json +17 -17
- package/rds-lambda/node_modules/jest-runtime/package.json +15 -15
- package/rds-lambda/node_modules/jest-snapshot/package.json +12 -12
- package/rds-lambda/node_modules/jest-util/package.json +2 -2
- package/rds-lambda/node_modules/jest-validate/package.json +3 -3
- package/rds-lambda/node_modules/jest-watcher/package.json +4 -4
- package/rds-lambda/node_modules/jest-worker/package.json +4 -4
- package/rds-lambda/node_modules/make-dir/license +1 -1
- package/rds-lambda/node_modules/make-dir/node_modules/lru-cache/LICENSE +15 -0
- package/rds-lambda/node_modules/make-dir/node_modules/lru-cache/README.md +166 -0
- package/rds-lambda/node_modules/make-dir/node_modules/lru-cache/package.json +34 -0
- package/rds-lambda/node_modules/make-dir/node_modules/semver/LICENSE +15 -0
- package/rds-lambda/node_modules/make-dir/node_modules/semver/README.md +637 -0
- package/rds-lambda/node_modules/make-dir/node_modules/semver/package.json +87 -0
- package/rds-lambda/node_modules/make-dir/node_modules/semver/range.bnf +16 -0
- package/rds-lambda/node_modules/make-dir/node_modules/yallist/LICENSE +15 -0
- package/rds-lambda/node_modules/make-dir/node_modules/yallist/README.md +204 -0
- package/rds-lambda/node_modules/make-dir/node_modules/yallist/package.json +29 -0
- package/rds-lambda/node_modules/make-dir/package.json +15 -11
- package/rds-lambda/node_modules/make-dir/readme.md +1 -1
- package/rds-lambda/node_modules/pretty-format/package.json +3 -3
- package/rds-lambda/node_modules/resolve/lib/core.json +4 -1
- package/rds-lambda/node_modules/resolve/package.json +6 -6
- package/rds-lambda/node_modules/tslib/package.json +1 -1
- package/rds-lambda/node_modules/tslib/tslib.es6.mjs +1 -1
- package/rds-lambda/package-lock.json +370 -345
- package/rds-patching-lambda/node_modules/.package-lock.json +13 -13
- package/rds-patching-lambda/node_modules/@smithy/protocol-http/package.json +2 -2
- package/rds-patching-lambda/node_modules/@smithy/types/README.md +37 -0
- package/rds-patching-lambda/node_modules/@smithy/types/package.json +3 -2
- package/rds-patching-lambda/node_modules/@types/node/README.md +2 -2
- package/rds-patching-lambda/node_modules/@types/node/package.json +2 -7
- package/rds-patching-lambda/node_modules/tslib/package.json +1 -1
- package/rds-patching-lambda/node_modules/tslib/tslib.es6.mjs +1 -1
- package/rds-patching-lambda/package-lock.json +13 -13
- package/src/__tests__/model-directive-arguments.test.ts +23 -28
- package/src/__tests__/model-transformer.test.ts +138 -160
- package/src/resolvers/rds/resolver.ts +19 -17
- package/src/resources/dynamo-model-resource-generator.ts +50 -47
- package/src/resources/model-resource-generator.ts +3 -3
- package/src/resources/rds-model-resource-generator.ts +13 -13
- package/tsconfig.tsbuildinfo +1 -1
- package/rds-lambda/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/LICENSE +0 -21
- package/rds-lambda/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/README.md +0 -200
- package/rds-lambda/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -164
- package/rds-lambda/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
- package/rds-lambda/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/package.json +0 -75
- package/rds-lambda/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +0 -198
- package/rds-lambda/node_modules/@types/prettier/LICENSE +0 -21
- package/rds-lambda/node_modules/@types/prettier/README.md +0 -16
- package/rds-lambda/node_modules/@types/prettier/package.json +0 -65
|
@@ -1053,11 +1053,11 @@
|
|
|
1053
1053
|
}
|
|
1054
1054
|
},
|
|
1055
1055
|
"node_modules/@smithy/protocol-http": {
|
|
1056
|
-
"version": "1.
|
|
1057
|
-
"resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-1.
|
|
1058
|
-
"integrity": "sha512-
|
|
1056
|
+
"version": "1.2.0",
|
|
1057
|
+
"resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-1.2.0.tgz",
|
|
1058
|
+
"integrity": "sha512-GfGfruksi3nXdFok5RhgtOnWe5f6BndzYfmEXISD+5gAGdayFGpjWu5pIqIweTudMtse20bGbc+7MFZXT1Tb8Q==",
|
|
1059
1059
|
"dependencies": {
|
|
1060
|
-
"@smithy/types": "^1.
|
|
1060
|
+
"@smithy/types": "^1.2.0",
|
|
1061
1061
|
"tslib": "^2.5.0"
|
|
1062
1062
|
},
|
|
1063
1063
|
"engines": {
|
|
@@ -1065,9 +1065,9 @@
|
|
|
1065
1065
|
}
|
|
1066
1066
|
},
|
|
1067
1067
|
"node_modules/@smithy/types": {
|
|
1068
|
-
"version": "1.
|
|
1069
|
-
"resolved": "https://registry.npmjs.org/@smithy/types/-/types-1.
|
|
1070
|
-
"integrity": "sha512-
|
|
1068
|
+
"version": "1.2.0",
|
|
1069
|
+
"resolved": "https://registry.npmjs.org/@smithy/types/-/types-1.2.0.tgz",
|
|
1070
|
+
"integrity": "sha512-z1r00TvBqF3dh4aHhya7nz1HhvCg4TRmw51fjMrh5do3h+ngSstt/yKlNbHeb9QxJmFbmN8KEVSWgb1bRvfEoA==",
|
|
1071
1071
|
"dependencies": {
|
|
1072
1072
|
"tslib": "^2.5.0"
|
|
1073
1073
|
},
|
|
@@ -1076,9 +1076,9 @@
|
|
|
1076
1076
|
}
|
|
1077
1077
|
},
|
|
1078
1078
|
"node_modules/@types/node": {
|
|
1079
|
-
"version": "20.4.
|
|
1080
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.
|
|
1081
|
-
"integrity": "sha512-
|
|
1079
|
+
"version": "20.4.8",
|
|
1080
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.8.tgz",
|
|
1081
|
+
"integrity": "sha512-0mHckf6D2DiIAzh8fM8f3HQCvMKDpK94YQ0DSVkfWTG9BZleYIWudw9cJxX8oCk9bM+vAkDyujDV6dmKHbvQpg==",
|
|
1082
1082
|
"dev": true
|
|
1083
1083
|
},
|
|
1084
1084
|
"node_modules/ansi-regex": {
|
|
@@ -1761,9 +1761,9 @@
|
|
|
1761
1761
|
}
|
|
1762
1762
|
},
|
|
1763
1763
|
"node_modules/tslib": {
|
|
1764
|
-
"version": "2.6.
|
|
1765
|
-
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.
|
|
1766
|
-
"integrity": "sha512-
|
|
1764
|
+
"version": "2.6.1",
|
|
1765
|
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz",
|
|
1766
|
+
"integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig=="
|
|
1767
1767
|
},
|
|
1768
1768
|
"node_modules/typescript": {
|
|
1769
1769
|
"version": "5.1.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/protocol-http",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^1.
|
|
26
|
+
"@smithy/types": "^1.2.0",
|
|
27
27
|
"tslib": "^2.5.0"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -2,3 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@smithy/types)
|
|
4
4
|
[](https://www.npmjs.com/package/@smithy/types)
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
This package is mostly used internally by generated clients.
|
|
9
|
+
Some public components have independent applications.
|
|
10
|
+
|
|
11
|
+
### Scenario: Narrowing a smithy-typescript generated client's output payload blob types
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
This is mostly relevant to operations with streaming bodies such as within
|
|
16
|
+
the S3Client in the AWS SDK for JavaScript v3.
|
|
17
|
+
|
|
18
|
+
Because blob payload types are platform dependent, you may wish to indicate in your application that a client is running in a specific
|
|
19
|
+
environment. This narrows the blob payload types.
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { GetObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
23
|
+
import type { NodeJsClient, SdkStream, StreamingBlobPayloadOutputTypes } from "@smithy/types";
|
|
24
|
+
import type { IncomingMessage } from "node:http";
|
|
25
|
+
|
|
26
|
+
// default client init.
|
|
27
|
+
const s3Default = new S3Client({});
|
|
28
|
+
|
|
29
|
+
// client init with type narrowing.
|
|
30
|
+
const s3NarrowType = new S3Client({}) as NodeJsClient<S3Client>;
|
|
31
|
+
|
|
32
|
+
// The default type of blob payloads is a wide union type including multiple possible
|
|
33
|
+
// request handlers.
|
|
34
|
+
const body1: StreamingBlobPayloadOutputTypes = (await s3Default.send(new GetObjectCommand({ Key: "", Bucket: "" })))
|
|
35
|
+
.Body!;
|
|
36
|
+
|
|
37
|
+
// This is of the narrower type SdkStream<IncomingMessage> representing
|
|
38
|
+
// blob payload responses using specifically the node:http request handler.
|
|
39
|
+
const body2: SdkStream<IncomingMessage> = (await s3NarrowType.send(new GetObjectCommand({ Key: "", Bucket: "" })))
|
|
40
|
+
.Body!;
|
|
41
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
12
12
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
13
13
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
14
|
-
"test": "tsc -p tsconfig.test.json"
|
|
14
|
+
"test": "tsc -p tsconfig.test.json",
|
|
15
|
+
"extract:docs": "api-extractor run --local"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist-cjs/index.js",
|
|
17
18
|
"module": "./dist-es/index.js",
|
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sat, 05 Aug 2023 10:32:49 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.4.
|
|
3
|
+
"version": "20.4.8",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -110,11 +110,6 @@
|
|
|
110
110
|
"url": "https://github.com/eps1lon",
|
|
111
111
|
"githubUsername": "eps1lon"
|
|
112
112
|
},
|
|
113
|
-
{
|
|
114
|
-
"name": "Simon Schick",
|
|
115
|
-
"url": "https://github.com/SimonSchick",
|
|
116
|
-
"githubUsername": "SimonSchick"
|
|
117
|
-
},
|
|
118
113
|
{
|
|
119
114
|
"name": "Thomas den Hollander",
|
|
120
115
|
"url": "https://github.com/ThomasdenH",
|
|
@@ -232,6 +227,6 @@
|
|
|
232
227
|
},
|
|
233
228
|
"scripts": {},
|
|
234
229
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "9acef897909a6e2f2e35b1241c4aee3acd41d6d87a7676afe8d21d5c84e063ad",
|
|
236
231
|
"typeScriptVersion": "4.3"
|
|
237
232
|
}
|
|
@@ -294,7 +294,7 @@ export function __classPrivateFieldIn(state, receiver) {
|
|
|
294
294
|
|
|
295
295
|
export function __addDisposableResource(env, value, async) {
|
|
296
296
|
if (value !== null && value !== void 0) {
|
|
297
|
-
if (typeof value !== "object") throw new TypeError("Object expected.");
|
|
297
|
+
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
298
298
|
var dispose;
|
|
299
299
|
if (async) {
|
|
300
300
|
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
@@ -1066,11 +1066,11 @@
|
|
|
1066
1066
|
}
|
|
1067
1067
|
},
|
|
1068
1068
|
"node_modules/@smithy/protocol-http": {
|
|
1069
|
-
"version": "1.
|
|
1070
|
-
"resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-1.
|
|
1071
|
-
"integrity": "sha512-
|
|
1069
|
+
"version": "1.2.0",
|
|
1070
|
+
"resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-1.2.0.tgz",
|
|
1071
|
+
"integrity": "sha512-GfGfruksi3nXdFok5RhgtOnWe5f6BndzYfmEXISD+5gAGdayFGpjWu5pIqIweTudMtse20bGbc+7MFZXT1Tb8Q==",
|
|
1072
1072
|
"dependencies": {
|
|
1073
|
-
"@smithy/types": "^1.
|
|
1073
|
+
"@smithy/types": "^1.2.0",
|
|
1074
1074
|
"tslib": "^2.5.0"
|
|
1075
1075
|
},
|
|
1076
1076
|
"engines": {
|
|
@@ -1078,9 +1078,9 @@
|
|
|
1078
1078
|
}
|
|
1079
1079
|
},
|
|
1080
1080
|
"node_modules/@smithy/types": {
|
|
1081
|
-
"version": "1.
|
|
1082
|
-
"resolved": "https://registry.npmjs.org/@smithy/types/-/types-1.
|
|
1083
|
-
"integrity": "sha512-
|
|
1081
|
+
"version": "1.2.0",
|
|
1082
|
+
"resolved": "https://registry.npmjs.org/@smithy/types/-/types-1.2.0.tgz",
|
|
1083
|
+
"integrity": "sha512-z1r00TvBqF3dh4aHhya7nz1HhvCg4TRmw51fjMrh5do3h+ngSstt/yKlNbHeb9QxJmFbmN8KEVSWgb1bRvfEoA==",
|
|
1084
1084
|
"dependencies": {
|
|
1085
1085
|
"tslib": "^2.5.0"
|
|
1086
1086
|
},
|
|
@@ -1089,9 +1089,9 @@
|
|
|
1089
1089
|
}
|
|
1090
1090
|
},
|
|
1091
1091
|
"node_modules/@types/node": {
|
|
1092
|
-
"version": "20.4.
|
|
1093
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.
|
|
1094
|
-
"integrity": "sha512-
|
|
1092
|
+
"version": "20.4.8",
|
|
1093
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.8.tgz",
|
|
1094
|
+
"integrity": "sha512-0mHckf6D2DiIAzh8fM8f3HQCvMKDpK94YQ0DSVkfWTG9BZleYIWudw9cJxX8oCk9bM+vAkDyujDV6dmKHbvQpg==",
|
|
1095
1095
|
"dev": true
|
|
1096
1096
|
},
|
|
1097
1097
|
"node_modules/ansi-regex": {
|
|
@@ -1774,9 +1774,9 @@
|
|
|
1774
1774
|
}
|
|
1775
1775
|
},
|
|
1776
1776
|
"node_modules/tslib": {
|
|
1777
|
-
"version": "2.6.
|
|
1778
|
-
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.
|
|
1779
|
-
"integrity": "sha512-
|
|
1777
|
+
"version": "2.6.1",
|
|
1778
|
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz",
|
|
1779
|
+
"integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig=="
|
|
1780
1780
|
},
|
|
1781
1781
|
"node_modules/typescript": {
|
|
1782
1782
|
"version": "5.1.3",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GraphQLTransform, validateModelSchema } from '@aws-amplify/graphql-transformer-core';
|
|
1
|
+
import { validateModelSchema } from '@aws-amplify/graphql-transformer-core';
|
|
3
2
|
import { parse } from 'graphql';
|
|
3
|
+
import { testTransform } from '@aws-amplify/graphql-transformer-test-utils';
|
|
4
|
+
import { ModelTransformer } from '../graphql-model-transformer';
|
|
4
5
|
import { getFieldOnObjectType, getObjectType } from './test-utils/helpers';
|
|
5
6
|
|
|
6
7
|
describe('createdAt field tests', () => {
|
|
@@ -12,11 +13,10 @@ describe('createdAt field tests', () => {
|
|
|
12
13
|
}
|
|
13
14
|
`;
|
|
14
15
|
|
|
15
|
-
const
|
|
16
|
+
const out = testTransform({
|
|
17
|
+
schema: doc,
|
|
16
18
|
transformers: [new ModelTransformer()],
|
|
17
19
|
});
|
|
18
|
-
|
|
19
|
-
const out = transformer.transform(doc);
|
|
20
20
|
expect(out).toBeDefined();
|
|
21
21
|
|
|
22
22
|
const definition = out.schema;
|
|
@@ -37,11 +37,10 @@ describe('createdAt field tests', () => {
|
|
|
37
37
|
title: String
|
|
38
38
|
}
|
|
39
39
|
`;
|
|
40
|
-
const
|
|
40
|
+
const out = testTransform({
|
|
41
|
+
schema: doc,
|
|
41
42
|
transformers: [new ModelTransformer()],
|
|
42
43
|
});
|
|
43
|
-
|
|
44
|
-
const out = transformer.transform(doc);
|
|
45
44
|
expect(out).toBeDefined();
|
|
46
45
|
|
|
47
46
|
const definition = out.schema;
|
|
@@ -62,11 +61,10 @@ describe('createdAt field tests', () => {
|
|
|
62
61
|
title: String
|
|
63
62
|
}
|
|
64
63
|
`;
|
|
65
|
-
const
|
|
64
|
+
const out = testTransform({
|
|
65
|
+
schema: doc,
|
|
66
66
|
transformers: [new ModelTransformer()],
|
|
67
67
|
});
|
|
68
|
-
|
|
69
|
-
const out = transformer.transform(doc);
|
|
70
68
|
expect(out).toBeDefined();
|
|
71
69
|
|
|
72
70
|
const definition = out.schema;
|
|
@@ -88,10 +86,10 @@ describe('createdAt field tests', () => {
|
|
|
88
86
|
}
|
|
89
87
|
`;
|
|
90
88
|
|
|
91
|
-
const
|
|
89
|
+
const out = testTransform({
|
|
90
|
+
schema: doc,
|
|
92
91
|
transformers: [new ModelTransformer()],
|
|
93
92
|
});
|
|
94
|
-
const out = transformer.transform(doc);
|
|
95
93
|
expect(out).toBeDefined();
|
|
96
94
|
|
|
97
95
|
const definition = out.schema;
|
|
@@ -113,10 +111,10 @@ describe('createdAt field tests', () => {
|
|
|
113
111
|
}
|
|
114
112
|
`;
|
|
115
113
|
|
|
116
|
-
const
|
|
114
|
+
const out = testTransform({
|
|
115
|
+
schema: doc,
|
|
117
116
|
transformers: [new ModelTransformer()],
|
|
118
117
|
});
|
|
119
|
-
const out = transformer.transform(doc);
|
|
120
118
|
expect(out).toBeDefined();
|
|
121
119
|
|
|
122
120
|
const definition = out.schema;
|
|
@@ -140,11 +138,10 @@ describe('updatedAt field tests', () => {
|
|
|
140
138
|
}
|
|
141
139
|
`;
|
|
142
140
|
|
|
143
|
-
const
|
|
141
|
+
const out = testTransform({
|
|
142
|
+
schema: doc,
|
|
144
143
|
transformers: [new ModelTransformer()],
|
|
145
144
|
});
|
|
146
|
-
|
|
147
|
-
const out = transformer.transform(doc);
|
|
148
145
|
expect(out).toBeDefined();
|
|
149
146
|
|
|
150
147
|
const definition = out.schema;
|
|
@@ -166,11 +163,10 @@ describe('updatedAt field tests', () => {
|
|
|
166
163
|
}
|
|
167
164
|
`;
|
|
168
165
|
|
|
169
|
-
const
|
|
166
|
+
const out = testTransform({
|
|
167
|
+
schema: doc,
|
|
170
168
|
transformers: [new ModelTransformer()],
|
|
171
169
|
});
|
|
172
|
-
|
|
173
|
-
const out = transformer.transform(doc);
|
|
174
170
|
expect(out).toBeDefined();
|
|
175
171
|
|
|
176
172
|
const definition = out.schema;
|
|
@@ -191,11 +187,10 @@ describe('updatedAt field tests', () => {
|
|
|
191
187
|
title: String
|
|
192
188
|
}
|
|
193
189
|
`;
|
|
194
|
-
const
|
|
190
|
+
const out = testTransform({
|
|
191
|
+
schema: doc,
|
|
195
192
|
transformers: [new ModelTransformer()],
|
|
196
193
|
});
|
|
197
|
-
|
|
198
|
-
const out = transformer.transform(doc);
|
|
199
194
|
expect(out).toBeDefined();
|
|
200
195
|
|
|
201
196
|
const definition = out.schema;
|
|
@@ -217,10 +212,10 @@ describe('updatedAt field tests', () => {
|
|
|
217
212
|
}
|
|
218
213
|
`;
|
|
219
214
|
|
|
220
|
-
const
|
|
215
|
+
const out = testTransform({
|
|
216
|
+
schema: doc,
|
|
221
217
|
transformers: [new ModelTransformer()],
|
|
222
218
|
});
|
|
223
|
-
const out = transformer.transform(doc);
|
|
224
219
|
expect(out).toBeDefined();
|
|
225
220
|
|
|
226
221
|
const definition = out.schema;
|
|
@@ -242,10 +237,10 @@ describe('updatedAt field tests', () => {
|
|
|
242
237
|
}
|
|
243
238
|
`;
|
|
244
239
|
|
|
245
|
-
const
|
|
240
|
+
const out = testTransform({
|
|
241
|
+
schema: doc,
|
|
246
242
|
transformers: [new ModelTransformer()],
|
|
247
243
|
});
|
|
248
|
-
const out = transformer.transform(doc);
|
|
249
244
|
expect(out).toBeDefined();
|
|
250
245
|
|
|
251
246
|
const definition = out.schema;
|