Socket
Socket
Sign inDemoInstall

apollo-server-env

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-server-env - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

dist/polyfills/Object.entries.js

1

dist/index.js

@@ -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"));

4

dist/polyfills/Object.values.js
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc