Socket
Socket
Sign inDemoInstall

apollo-codegen

Package Overview
Dependencies
115
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.17.0-alpha.12 to 0.17.0-alpha.13

2

lib/swift/codeGeneration.js

@@ -364,3 +364,3 @@ "use strict";

if (isOptional) {
this.printOnNewline(`return (snapshot["${responseKey}"] as! Snapshot?).flatMap { ${structName}(snapshot: $0) }`);
this.printOnNewline(`return (snapshot["${responseKey}"] as? Snapshot).flatMap { ${structName}(snapshot: $0) }`);
}

@@ -367,0 +367,0 @@ else {

{
"name": "apollo-codegen",
"version": "0.17.0-alpha.12",
"version": "0.17.0-alpha.13",
"description": "Generate API code or type annotations based on a GraphQL schema and query documents",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -545,3 +545,3 @@ import * as path from 'path';

this.printOnNewline(
`return (snapshot["${responseKey}"] as! Snapshot?).flatMap { ${structName}(snapshot: $0) }`
`return (snapshot["${responseKey}"] as? Snapshot).flatMap { ${structName}(snapshot: $0) }`
);

@@ -548,0 +548,0 @@ } else {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc