apollo-server-env
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -7,2 +7,3 @@ "use strict"; | ||
require("./polyfills/Object.values"); | ||
require("./polyfills/Object.entries"); | ||
require('util.promisify').shim(); | ||
@@ -9,0 +10,0 @@ __export(require("./polyfills/fetch")); |
"use strict"; | ||
if (!global.Object.values) { | ||
global.Object.values = function (o) { | ||
return Object.keys(o).map(key => o[key]); | ||
global.Object.values = function (object) { | ||
return Object.keys(object).map(key => object[key]); | ||
}; | ||
} | ||
//# sourceMappingURL=Object.values.js.map |
{ | ||
"name": "apollo-server-env", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "opensource@apollographql.com", | ||
@@ -17,3 +17,3 @@ "license": "MIT", | ||
"compile": "tsc && cp src/*.d.ts dist", | ||
"prepublish": "npm run clean && npm run compile" | ||
"prepare": "npm run clean && npm run compile" | ||
}, | ||
@@ -20,0 +20,0 @@ "main": "dist/index.js", |
import './polyfills/Object.values'; | ||
import './polyfills/Object.entries'; | ||
@@ -3,0 +4,0 @@ require('util.promisify').shim(); |
@@ -1,13 +0,5 @@ | ||
interface ObjectConstructor { | ||
/** | ||
* Returns an array of values of the enumerable properties of an object | ||
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. | ||
*/ | ||
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[]; | ||
} | ||
if (!global.Object.values) { | ||
global.Object.values = function(o) { | ||
return Object.keys(o).map(key => o[key]); | ||
global.Object.values = function(object: any) { | ||
return Object.keys(object).map(key => object[key]); | ||
}; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11847
22
309