@aws-amplify/graphql-model-transformer 0.14.6 → 0.15.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.
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/graphql-types/query.ts"],"names":[],"mappings":";;;AAEA,oFAA8F;AAC9F,qCAAoD;AAC7C,MAAM,wBAAwB,GAAG,CACtC,GAAkD,EAClD,IAAY,EACZ,MAAgC,EACD,EAAE;IACjC,OAAO,IAAA,iCAAwB,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,SAAS,EAAE,CAAC;AACjE,CAAC,CAAC;AANW,QAAA,wBAAwB,4BAMnC;AAEK,MAAM,kBAAkB,GAAG,CAAC,IAA8B,EAAE,SAAiB,EAAE,aAAsB,EAA4B,EAAE;IACxI,MAAM,UAAU,GAAG,kDAAuB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAE7D,UAAU,CAAC,QAAQ,CAAC,uCAAY,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/E,UAAU,CAAC,QAAQ,CAAC,uCAAY,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAE7E,IAAI,aAAa,EAAE;QACjB,UAAU,CAAC,QAAQ,CAAC,uCAAY,CAAC,MAAM,CAAC,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;KACpF;IAED,OAAO,UAAU,CAAC,SAAS,EAAE,CAAC;AAChC,CAAC,CAAC;AAXW,QAAA,kBAAkB,sBAW7B"}
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/graphql-types/query.ts"],"names":[],"mappings":";;;AAEA,oFAA8F;AAC9F,qCAAiF;AAC1E,MAAM,wBAAwB,GAAG,CAC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C"}
1
+ {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/resolvers/subscriptions.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mCAAmC,QAAO,MAGtD,CAAC;AAKF,eAAO,MAAM,oCAAoC,QAAO,MASvD,CAAC"}
@@ -8,7 +8,10 @@ const generateSubscriptionRequestTemplate = () => {
8
8
  };
9
9
  exports.generateSubscriptionRequestTemplate = generateSubscriptionRequestTemplate;
10
10
  const generateSubscriptionResponseTemplate = () => {
11
- const statements = [(0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.nul)())];
11
+ const statements = [
12
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)((0, graphql_mapping_template_1.ref)('ctx.args.filter'))), (0, graphql_mapping_template_1.ref)('extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter))')),
13
+ (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.nul)()),
14
+ ];
12
15
  return (0, graphql_mapping_template_1.printBlock)('Subscription Response template')((0, graphql_mapping_template_1.compoundExpression)(statements));
13
16
  };
14
17
  exports.generateSubscriptionResponseTemplate = generateSubscriptionResponseTemplate;
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/resolvers/subscriptions.ts"],"names":[],"mappings":";;;AAAA,uEAA6G;AAEtG,MAAM,mCAAmC,GAAG,GAAW,EAAE;IAC9D,MAAM,UAAU,GAAiB,CAAC,IAAA,iCAAM,EAAC,IAAA,8BAAG,EAAC,EAAE,OAAO,EAAE,IAAA,8BAAG,EAAC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAA,8BAAG,EAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACjG,OAAO,IAAA,qCAAU,EAAC,+BAA+B,CAAC,CAAC,IAAA,6CAAkB,EAAC,UAAU,CAAC,CAAC,CAAC;AACrF,CAAC,CAAC;AAHW,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
1
  {
2
2
  "name": "@aws-amplify/graphql-model-transformer",
3
- "version": "0.14.6",
3
+ "version": "0.15.0",
4
4
  "description": "Amplify graphql @model transformer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "test-watch": "jest --watch"
29
29
  },
30
30
  "dependencies": {
31
- "@aws-amplify/graphql-transformer-core": "0.17.6",
31
+ "@aws-amplify/graphql-transformer-core": "0.17.7",
32
32
  "@aws-amplify/graphql-transformer-interfaces": "1.14.4",
33
33
  "@aws-cdk/aws-applicationautoscaling": "~1.124.0",
34
34
  "@aws-cdk/aws-appsync": "~1.124.0",
@@ -47,12 +47,10 @@
47
47
  "constructs": "^3.3.125",
48
48
  "graphql": "^14.5.8",
49
49
  "graphql-mapping-template": "4.20.5",
50
- "graphql-transformer-common": "4.23.3",
51
- "md5": "^2.3.0"
50
+ "graphql-transformer-common": "4.24.0"
52
51
  },
53
52
  "devDependencies": {
54
53
  "@aws-cdk/assert": "~1.124.0",
55
- "@types/md5": "^2.3.1",
56
54
  "@types/node": "^12.12.6"
57
55
  },
58
56
  "jest": {
@@ -73,5 +71,5 @@
73
71
  "overrides"
74
72
  ]
75
73
  },
76
- "gitHead": "9ef69dc48545f2edc7333bb3123a21a03b65c615"
74
+ "gitHead": "a8df6c0c8d82a7a75ec4e1c212d2cddd817abd42"
77
75
  }