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

graphile-config

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphile-config - npm Package Compare versions

Comparing version 0.0.1-alpha.4 to 0.0.1-alpha.5

9

CHANGELOG.md
# graphile-config
## 0.0.1-alpha.5
### Patch Changes
- [#402](https://github.com/benjie/postgraphile-private/pull/402)
[`644938276`](https://github.com/benjie/postgraphile-private/commit/644938276ebd48c5486ba9736a525fcc66d7d714)
Thanks [@benjie](https://github.com/benjie)! - Use `file://` URLs in import()
to fix compatibility with Windows (e.g. when loading `graphile.config.mjs`)
## 0.0.1-alpha.4

@@ -4,0 +13,0 @@

13

dist/loadConfig.js

@@ -5,5 +5,6 @@ "use strict";

require("./interfaces.js");
const promises_1 = require("fs/promises");
const interpret_1 = require("interpret");
const path_1 = require("path");
const promises_1 = require("node:fs/promises");
const node_path_1 = require("node:path");
const node_url_1 = require("node:url");
const extensions = Object.keys(interpret_1.jsVariants);

@@ -61,3 +62,3 @@ async function exists(filePath) {

// Explicitly load the file the user has indicated
const resolvedPath = (0, path_1.resolve)(process.cwd(), configPath);
const resolvedPath = (0, node_path_1.resolve)(process.cwd(), configPath);
// First try one of the supported loaders

@@ -76,7 +77,7 @@ for (const extension of extensions) {

// Fallback to direct import
return (await import(resolvedPath)).default;
return (await import((0, node_url_1.pathToFileURL)(resolvedPath).href)).default;
}
else {
// There's no config path; look for a `graphile.config.*`
const basePath = (0, path_1.resolve)(process.cwd(), "graphile.config");
const basePath = (0, node_path_1.resolve)(process.cwd(), "graphile.config");
for (const extension of extensions) {

@@ -91,3 +92,3 @@ const resolvedPath = basePath + extension;

if (e.code === "ERR_REQUIRE_ESM") {
return (await import(resolvedPath)).default;
return (await import((0, node_url_1.pathToFileURL)(resolvedPath).href)).default;
}

@@ -94,0 +95,0 @@ else {

{
"name": "graphile-config",
"version": "0.0.1-alpha.4",
"version": "0.0.1-alpha.5",
"description": "Standard plugin interface and helpers to be used across the Graphile stack.",

@@ -5,0 +5,0 @@ "type": "commonjs",

@@ -127,10 +127,8 @@ # graphile-config

<table><tr>
<td align="center"><a href="https://surge.io/"><img src="https://graphile.org/images/sponsors/surge.png" width="90" height="90" alt="Surge" /><br />Surge</a> *</td>
<td align="center"><a href="https://www.the-guild.dev/"><img src="https://graphile.org/images/sponsors/theguild.png" width="90" height="90" alt="The Guild" /><br />The Guild</a> *</td>
<td align="center"><a href="https://dovetailapp.com/"><img src="https://graphile.org/images/sponsors/dovetail.png" width="90" height="90" alt="Dovetail" /><br />Dovetail</a> *</td>
<td align="center"><a href="https://qwick.com/"><img src="https://graphile.org/images/sponsors/qwick.png" width="90" height="90" alt="Qwick" /><br />Qwick</a> *</td>
<td align="center"><a href="https://www.netflix.com/"><img src="https://graphile.org/images/sponsors/Netflix.png" width="90" height="90" alt="Netflix" /><br />Netflix</a> *</td>
</tr><tr>
<td align="center"><a href="https://www.netflix.com/"><img src="https://graphile.org/images/sponsors/Netflix.png" width="90" height="90" alt="Netflix" /><br />Netflix</a> *</td>
<td align="center"><a href=""><img src="https://graphile.org/images/sponsors/chadf.png" width="90" height="90" alt="Chad Furman" /><br />Chad Furman</a> *</td>
<td align="center"><a href="https://www.enzuzo.com/"><img src="https://graphile.org/images/sponsors/enzuzo.png" width="90" height="90" alt="Enzuzo" /><br />Enzuzo</a> *</td>
<td align="center"><a href="https://stellate.co/"><img src="https://graphile.org/images/sponsors/Stellate.png" width="90" height="90" alt="Stellate" /><br />Stellate</a> *</td>

@@ -137,0 +135,0 @@ </tr></table>

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