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-0.2 to 0.0.1-0.3

15

CHANGELOG.md
# graphile-config
## 0.0.1-0.3
### Patch Changes
- [#176](https://github.com/benjie/postgraphile-private/pull/176)
[`19e2961de`](https://github.com/benjie/postgraphile-private/commit/19e2961de67dc0b9601799bba256e4c4a23cc0cb)
Thanks [@benjie](https://github.com/benjie)! - Better graphile.config.\*
compatibility with ESM-emulation, so 'export default preset;' should work in
TypeScript even if outputting to CommonJS.
- [#176](https://github.com/benjie/postgraphile-private/pull/176)
[`11d6be65e`](https://github.com/benjie/postgraphile-private/commit/11d6be65e0da489f8ab3e3a8b8db145f8b2147ad)
Thanks [@benjie](https://github.com/benjie)! - Fix issue with plugin
versioning. Add more TSDoc comments. New getTerminalWidth() helper.
## 0.0.1-0.2

@@ -4,0 +19,0 @@

1

dist/cli.d.ts

@@ -10,2 +10,3 @@ import type { Argv } from "yargs";

export declare function runCli<TArgs>(options: OptionsFunction<TArgs>, run: (args: Args<TArgs>) => Promise<void>): Promise<void>;
export declare function getTerminalWidth(): number;
//# sourceMappingURL=cli.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runCli = void 0;
exports.getTerminalWidth = exports.runCli = void 0;
const tslib_1 = require("tslib");

@@ -21,2 +21,6 @@ const yargs_1 = tslib_1.__importDefault(require("yargs"));

exports.runCli = runCli;
function getTerminalWidth() {
return yargs_1.default.terminalWidth();
}
exports.getTerminalWidth = getTerminalWidth;
//# sourceMappingURL=cli.js.map

@@ -12,2 +12,7 @@ declare global {

}
/**
* A Graphile Config Preset that can be combined with other presets to
* ultimately build a resolved preset: a combination of plugins and
* configuration options to be used by the various Graphile tools.
*/
interface Preset {

@@ -14,0 +19,0 @@ extends?: ReadonlyArray<Preset>;

@@ -49,2 +49,10 @@ "use strict";

}
function fixESMShenanigans(requiredModule) {
if (typeof requiredModule.default === "object" &&
requiredModule.default !== null &&
!Array.isArray(requiredModule.default)) {
return requiredModule.default;
}
return requiredModule;
}
async function loadConfig(configPath) {

@@ -59,3 +67,3 @@ if (configPath != null) {

try {
return require(resolvedPath);
return fixESMShenanigans(require(resolvedPath));
}

@@ -78,3 +86,3 @@ catch {

try {
return require(resolvedPath);
return fixESMShenanigans(require(resolvedPath));
}

@@ -81,0 +89,0 @@ catch (e) {

2

package.json
{
"name": "graphile-config",
"version": "0.0.1-0.2",
"version": "0.0.1-0.3",
"description": "Standard plugin interface and helpers to be used across the Graphile stack.",

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

@@ -111,2 +111,5 @@ # graphile-config

**IMPORTANT**: the `default` name must not be used as a top-level key in a
preset to enable compatibility with the various ESM emulations.
<!-- SPONSORS_BEGIN -->

@@ -113,0 +116,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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