Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

edgeql

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edgeql - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

dist/cjs/node/node.js

25

dist/cjs/context/runtime.js

@@ -29,2 +29,27 @@ "use strict";

}
get runtime() {
const global = globalThis;
if (global?.Deno !== void 0) {
return "deno";
}
if (global?.Bun !== void 0) {
return "bun";
}
if (typeof global?.WebSocketPair === "function") {
return "cloudflare";
}
if (global?.fastly !== void 0) {
return "fastly";
}
if (typeof global?.EdgeRuntime === "string") {
return "vercel";
}
if (global?.process?.release?.name === "node") {
return "node";
}
if (global?.__lagon__ !== void 0) {
return "lagon";
}
return "unknown";
}
}

@@ -31,0 +56,0 @@ // Annotate the CommonJS export names for ESM import in node:

3

dist/esm/context/runtime.d.ts
import type { ExecutionContext, Environment } from '../types';
type Runtime = 'node' | 'deno' | 'bun' | 'cloudflare' | 'fastly' | 'vercel' | 'lagon' | 'unknown';
export declare class RuntimeContext {

@@ -6,2 +7,4 @@ readonly env?: Environment;

constructor(env?: Environment, exeContext?: ExecutionContext);
get runtime(): Runtime;
}
export {};

@@ -7,2 +7,27 @@ // src/context/runtime.ts

}
get runtime() {
const global = globalThis;
if (global?.Deno !== void 0) {
return "deno";
}
if (global?.Bun !== void 0) {
return "bun";
}
if (typeof global?.WebSocketPair === "function") {
return "cloudflare";
}
if (global?.fastly !== void 0) {
return "fastly";
}
if (typeof global?.EdgeRuntime === "string") {
return "vercel";
}
if (global?.process?.release?.name === "node") {
return "node";
}
if (global?.__lagon__ !== void 0) {
return "lagon";
}
return "unknown";
}
};

@@ -9,0 +34,0 @@ export {

7

package.json
{
"name": "edgeql",
"version": "0.1.7",
"version": "0.1.8",
"author": "Minghe Huang <h.minghe@gmail.com> (https://github.com/metrue)",

@@ -104,2 +104,3 @@ "license": "MIT",

"@graphql-tools/schema": "^10.0.2",
"@hono/node-server": "^1.8.2",
"graphql": "^16.8.1"

@@ -115,2 +116,3 @@ },

"@types/node": "^20.11.27",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^5.21.0",

@@ -120,4 +122,4 @@ "@typescript-eslint/parser": "^5.21.0",

"arg": "^5.0.2",
"esbuild": "^0.15.12",
"eslint": "^8.56.0",
"esbuild": "^0.15.12",
"eslint-config-prettier": "^8.5.0",

@@ -131,2 +133,3 @@ "eslint-define-config": "^1.4.0",

"prettier": "^3.2.4",
"supertest": "^6.3.4",
"tsx": "^4.7.1",

@@ -133,0 +136,0 @@ "typescript": "^5.3.3",

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