apollo-server-env
Advanced tools
Comparing version 2.1.0-alpha.0 to 2.1.0-alpha.1
@@ -1,2 +0,3 @@ | ||
import { Agent } from 'http'; | ||
import { Agent as HttpAgent } from 'http'; | ||
import { Agent as HttpsAgent } from 'https'; | ||
@@ -8,2 +9,4 @@ export declare function fetch( | ||
export type RequestAgent = HttpAgent | HttpsAgent; | ||
export type RequestInfo = Request | string; | ||
@@ -62,3 +65,3 @@ | ||
size?: number; | ||
agent?: Agent; | ||
agent?: RequestAgent | false; | ||
@@ -65,0 +68,0 @@ // Cloudflare Workers accept a `cf` property to control Cloudflare features |
@@ -19,3 +19,3 @@ "use strict"; | ||
global.process.env = { | ||
NODE_ENV: app ? app.env : 'production', | ||
NODE_ENV: typeof app !== 'undefined' ? app.env : 'production', | ||
}; | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "apollo-server-env", | ||
"version": "2.1.0-alpha.0", | ||
"version": "2.1.0-alpha.1", | ||
"author": "opensource@apollographql.com", | ||
@@ -29,3 +29,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "dec2b94a0e309c1c75b3e9f3d7b4011e36a7e48a" | ||
"gitHead": "5b8388323325c14970601310d7864b86010cbebe" | ||
} |
@@ -1,2 +0,3 @@ | ||
import { Agent } from 'http'; | ||
import { Agent as HttpAgent } from 'http'; | ||
import { Agent as HttpsAgent } from 'https'; | ||
@@ -8,2 +9,4 @@ export declare function fetch( | ||
export type RequestAgent = HttpAgent | HttpsAgent; | ||
export type RequestInfo = Request | string; | ||
@@ -62,3 +65,3 @@ | ||
size?: number; | ||
agent?: Agent; | ||
agent?: RequestAgent | false; | ||
@@ -65,0 +68,0 @@ // Cloudflare Workers accept a `cf` property to control Cloudflare features |
@@ -16,3 +16,3 @@ if (!global) { | ||
// app is a global available on fly.io | ||
NODE_ENV: app ? app.env : 'production', | ||
NODE_ENV: typeof app !== 'undefined' ? app.env : 'production', | ||
}; | ||
@@ -19,0 +19,0 @@ } |
Sorry, the diff of this file is not supported yet
19604
28
457