graphile 5.0.0-alpha.7 → 5.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # graphile
2
2
 
3
+ ## 5.0.0-alpha.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#410](https://github.com/benjie/postgraphile-private/pull/410)
8
+ [`a7cd7eecf`](https://github.com/benjie/postgraphile-private/commit/a7cd7eecfb81a74a2a6e6500054f2defb8f2205e)
9
+ Thanks [@benjie](https://github.com/benjie)! - Add new
10
+ `graphile behavior debug` command for debugging behavior strings.
11
+
12
+ - Updated dependencies
13
+ [[`e7dd2e039`](https://github.com/benjie/postgraphile-private/commit/e7dd2e039769958d59a83ec3b164cad063c82500),
14
+ [`620f9e07e`](https://github.com/benjie/postgraphile-private/commit/620f9e07ec6f4d66a8dc01ed6bb054a75f7b1c8b),
15
+ [`881672305`](https://github.com/benjie/postgraphile-private/commit/88167230578393e3b24a364f0d673e36c5cb088d),
16
+ [`9ab2adba2`](https://github.com/benjie/postgraphile-private/commit/9ab2adba2c146b5d1bc91bbb2f25e4645ed381de),
17
+ [`ff4395bfc`](https://github.com/benjie/postgraphile-private/commit/ff4395bfc6e6b2fb263f644dae1e984c52dd84b9),
18
+ [`502b23340`](https://github.com/benjie/postgraphile-private/commit/502b233401975637bc0d516af78721b37f6f9b7b),
19
+ [`dc94b4a30`](https://github.com/benjie/postgraphile-private/commit/dc94b4a3003a2fbe1d76e17bb519092fa134243a),
20
+ [`4eda0cd57`](https://github.com/benjie/postgraphile-private/commit/4eda0cd572274febad696ebb5a89472a981f8212)]:
21
+ - graphile-build@5.0.0-alpha.14
22
+ - postgraphile@5.0.0-alpha.15
23
+
3
24
  ## 5.0.0-alpha.7
4
25
 
5
26
  ### Patch Changes
package/LICENSE.md CHANGED
@@ -1,18 +1,42 @@
1
- # The MIT License (MIT)
1
+ # Sponsors-only license
2
2
 
3
- Copyright © `2023` Benjie Gillam
3
+ Copyright © `2023` Graphile Ltd. All rights reserved.
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the “Software”), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
5
+ ## Agreement
11
6
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
7
+ In this agreement:
14
8
 
15
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9
+ - "Agreement" refers to this agreement between You and Graphile Ltd, governing
10
+ your use of the Software.
11
+ - "Software" refers to the software program named `graphile` and
12
+ [available via npm](http://npmjs.com/package/graphile).
13
+ - A "Sponsor" is an individual, company or other legal entity that is actively
14
+ sponsoring Graphile Ltd via
15
+ [GitHub Sponsors](https://github.com/sponsors/benjie),
16
+ [Patreon](https://patreon.com/benjie), or any method agreed with Graphile Ltd.
17
+ - "You" means the individual using the Software.
18
+ - "Your Organization" means the company or other legal entity on behalf of which
19
+ You are using the Software (if applicable).
20
+
21
+ The first time You use the Software, Graphile Ltd grants You a revokable,
22
+ non-exclusive, non-transferable, limited license (the "License") to use the
23
+ Software strictly in accordance with the terms of this Agreement.
24
+
25
+ If neither You nor Your Organization are a Sponsor, the License automatically
26
+ expires 30 calendar days after your first use of the Software. If You or Your
27
+ Organization are a Sponsor, the License automatically expires when neither You
28
+ nor Your Organization are a Sponsor any more. Unless Graphile Ltd has informed
29
+ You otherwise, You may reactivate the License at any time when You or Your
30
+ Organization are a Sponsor.
31
+
32
+ You agree to indemnify and hold Graphile Ltd and its directors, employees,
33
+ parents, subsidiaries and partners (if any) harmless from any and all claims,
34
+ charges, costs, damages, demands, fines, judgements, liabilities, losses, or
35
+ penalties of any nature, arising out of or related to: your use of the software;
36
+ your violation of this agreement; your violation of any right of a third party;
37
+ or your violation of any law or regulation.
38
+
39
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
40
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
41
  FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
42
  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
package/README.md CHANGED
@@ -10,6 +10,46 @@ projects, helping you to create, debug, update, interact with and maintain them.
10
10
 
11
11
  At the moment, it doesn't contain much, but it should grow over time.
12
12
 
13
+ ## Sponsors-only, source available
14
+
15
+ **TL;DR**: _30 day free trial, then become a sponsor to continue using_.
16
+
17
+ Unlike the vast majority of our other packages, **this package is not open
18
+ source software**. Instead it is licensed software, only to be used by sponsors.
19
+
20
+ At Graphile, we can only work on open source as much as we do thanks to the
21
+ support of our sponsors. Sadly, many corporations decline to fund the open
22
+ source software that underpins the success of their businesses. This lack of
23
+ funding can lead to maintainer burnout and ultimately the discontinuation of
24
+ projects, leaving these short-sighted companies to spend large amounts on
25
+ maintenance, security, and/or rewrites.
26
+
27
+ <figure>
28
+ <img
29
+ src="https://imgs.xkcd.com/comics/dependency.png"
30
+ alt="An XKCD cartoon showing how all modern digital infrastructure relies on a project some random person in Nebraska has been thanklessly maintaining since 2003."
31
+ />
32
+ <figcaption>
33
+ <p><em>Mandatory XKCD #2347 - Dependency.</em></p>
34
+ </figcaption>
35
+ </figure>
36
+
37
+ Fortunately smart engineers tend to recognize that OSS projects need financial
38
+ support to both be sustainable and to keep advancing. This sponsors-only package
39
+ serves two purposes. First and foremost, it is a thank you to our sponsors who
40
+ have helped us to get this far. Secondly, it acts as a carrot that
41
+ forward-thinking engineers can use to convince their corporations sponsorship is
42
+ necessary.
43
+
44
+ _We hope that once a company is sponsoring one project, sponsoring others should
45
+ be much easier; as such, this project is **only licensed for sponsors** - we do
46
+ not sell licenses to it separately._
47
+
48
+ We offer non-sponsors a 30 day trial of this software, after that you must
49
+ become a sponsor to keep using it. We recommend a sponsorship of at least $25/mo
50
+ per engineer, however you may sponsor us at any amount that the platforms allow.
51
+ One-time sponsorships are equivalent to 30 calendar days of sponsorship.
52
+
13
53
  ## `graphile config print`
14
54
 
15
55
  Prints out the configuration from your `graphile.config.mjs` (or similar) file
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAKjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,YAuBlC;AACD,wBAAsB,GAAG,CAAC,KAAK,EAAE,eAAe,CAAC,OAAO,OAAO,CAAC,iBAE/D"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAMjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,YA6BlC;AACD,wBAAsB,GAAG,CAAC,KAAK,EAAE,eAAe,CAAC,OAAO,OAAO,CAAC,iBAE/D"}
package/dist/cli.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.run = exports.options = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const behaviorCmd = tslib_1.__importStar(require("./commands/behavior/cli.js"));
5
6
  const configCmd = tslib_1.__importStar(require("./commands/config/cli.js"));
6
7
  const inflectionCmd = tslib_1.__importStar(require("./commands/inflection/cli.js"));
7
8
  function options(yargs) {
@@ -13,6 +14,7 @@ function options(yargs) {
13
14
  .example("$0 config options -C graphile.config.ts", "Output the options available to be used in the given config file, based on the imports it contains.")
14
15
  .command("config", "Tools for helping with config", (yargs) => configCmd.options(yargs), configCmd.run)
15
16
  .command("inflection", "Tools for helping with inflection", (yargs) => inflectionCmd.options(yargs), inflectionCmd.run)
17
+ .command("behavior", "Tools for helping with behavior", (yargs) => behaviorCmd.options(yargs), behaviorCmd.run)
16
18
  .demandCommand();
17
19
  }
18
20
  exports.options = options;
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;AAEA,4EAAsD;AACtD,oFAA8D;AAE9D,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,mBAAmB,CAAC;QACnB,yDAAyD;QACzD,2BAA2B,EAAE,KAAK;KACnC,CAAC;SACD,OAAO,CACN,yCAAyC,EACzC,qGAAqG,CACtG;SACA,OAAO,CACN,QAAQ,EACR,+BAA+B,EAC/B,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,EACnC,SAAS,CAAC,GAAG,CACd;SACA,OAAO,CACN,YAAY,EACZ,mCAAmC,EACnC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,EACvC,aAAa,CAAC,GAAG,CAClB;SACA,aAAa,EAAE,CAAC;AACrB,CAAC;AAvBD,0BAuBC;AACM,KAAK,UAAU,GAAG,CAAC,KAAsC;IAC9D,aAAa;AACf,CAAC;AAFD,kBAEC"}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;AAEA,gFAA0D;AAC1D,4EAAsD;AACtD,oFAA8D;AAE9D,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,mBAAmB,CAAC;QACnB,yDAAyD;QACzD,2BAA2B,EAAE,KAAK;KACnC,CAAC;SACD,OAAO,CACN,yCAAyC,EACzC,qGAAqG,CACtG;SACA,OAAO,CACN,QAAQ,EACR,+BAA+B,EAC/B,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,EACnC,SAAS,CAAC,GAAG,CACd;SACA,OAAO,CACN,YAAY,EACZ,mCAAmC,EACnC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,EACvC,aAAa,CAAC,GAAG,CAClB;SACA,OAAO,CACN,UAAU,EACV,iCAAiC,EACjC,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,EACrC,WAAW,CAAC,GAAG,CAChB;SACA,aAAa,EAAE,CAAC;AACrB,CAAC;AA7BD,0BA6BC;AACM,KAAK,UAAU,GAAG,CAAC,KAAsC;IAC9D,aAAa;AACf,CAAC;AAFD,kBAEC"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="yargs" />
2
+ import type { ArgsFromOptions, Argv } from "graphile-config/cli";
3
+ export declare function options(yargs: Argv): Argv<{}>;
4
+ export declare function run(_args: ArgsFromOptions<typeof options>): void;
5
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/commands/behavior/cli.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAIjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,YASlC;AAED,wBAAgB,GAAG,CAAC,KAAK,EAAE,eAAe,CAAC,OAAO,OAAO,CAAC,QAGzD"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.run = exports.options = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const debugCmd = tslib_1.__importStar(require("./debug/cli.js"));
6
+ function options(yargs) {
7
+ return yargs
8
+ .command("debug [entityType] [entityIdentifier] [filterString]", "Detail the behavior for a particular entity", debugCmd.options, debugCmd.run)
9
+ .demandCommand();
10
+ }
11
+ exports.options = options;
12
+ function run(_args) {
13
+ // This should never happen, yargs handles it for us
14
+ throw new Error("Subcommand required");
15
+ }
16
+ exports.run = run;
17
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/behavior/cli.ts"],"names":[],"mappings":";;;;AAEA,iEAA2C;AAE3C,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,OAAO,CACN,sDAAsD,EACtD,6CAA6C,EAC7C,QAAQ,CAAC,OAAO,EAChB,QAAQ,CAAC,GAAG,CACb;SACA,aAAa,EAAE,CAAC;AACrB,CAAC;AATD,0BASC;AAED,SAAgB,GAAG,CAAC,KAAsC;IACxD,oDAAoD;IACpD,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;AACzC,CAAC;AAHD,kBAGC"}
@@ -0,0 +1,13 @@
1
+ /// <reference types="yargs" />
2
+ import type { ArgsFromOptions, Argv } from "graphile-config/cli";
3
+ export declare function options(yargs: Argv): Argv<{
4
+ entityType: string | undefined;
5
+ } & {
6
+ entityIdentifier: string | undefined;
7
+ } & {
8
+ filterString: string | undefined;
9
+ } & {
10
+ config: string | undefined;
11
+ }>;
12
+ export declare function run(args: ArgsFromOptions<typeof options>): Promise<void>;
13
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/commands/behavior/debug/cli.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAIjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;;;;;;;GAelC;AACD,wBAAsB,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,OAAO,OAAO,CAAC,iBAQ9D"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.run = exports.options = void 0;
4
+ const main_js_1 = require("./main.js");
5
+ function options(yargs) {
6
+ return yargs
7
+ .positional("entityType", { type: "string" })
8
+ .positional("entityIdentifier", { type: "string" })
9
+ .positional("filterString", { type: "string" })
10
+ .example("$0 pgClass public.users", "Output the behavior of the public.users entity")
11
+ .option("config", {
12
+ alias: "C",
13
+ type: "string",
14
+ description: "The path to the config file",
15
+ normalize: true,
16
+ });
17
+ }
18
+ exports.options = options;
19
+ async function run(args) {
20
+ const text = await (0, main_js_1.main)({
21
+ config: args.config,
22
+ entityType: args.entityType,
23
+ entityIdentifier: args.entityIdentifier,
24
+ filterString: args.filterString,
25
+ });
26
+ console.log(text);
27
+ }
28
+ exports.run = run;
29
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/commands/behavior/debug/cli.ts"],"names":[],"mappings":";;;AAEA,uCAAiC;AAEjC,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,UAAU,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;SAC5C,UAAU,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;SAClD,UAAU,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;SAC9C,OAAO,CACN,yBAAyB,EACzB,gDAAgD,CACjD;SACA,MAAM,CAAC,QAAQ,EAAE;QAChB,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6BAA6B;QAC1C,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;AACP,CAAC;AAfD,0BAeC;AACM,KAAK,UAAU,GAAG,CAAC,IAAqC;IAC7D,MAAM,IAAI,GAAG,MAAM,IAAA,cAAI,EAAC;QACtB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;QACvC,YAAY,EAAE,IAAI,CAAC,YAAY;KAChC,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACpB,CAAC;AARD,kBAQC"}
@@ -0,0 +1,7 @@
1
+ export declare function main(options: {
2
+ config?: string;
3
+ entityType?: string;
4
+ entityIdentifier?: string;
5
+ filterString?: string;
6
+ }): Promise<string>;
7
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/commands/behavior/debug/main.ts"],"names":[],"mappings":"AAoBA,wBAAsB,IAAI,CAAC,OAAO,EAAE;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,mBA2FA"}
@@ -0,0 +1,203 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.main = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const graphile_config_1 = require("graphile-config");
7
+ const load_1 = require("graphile-config/load");
8
+ async function importGraphileBuild() {
9
+ try {
10
+ return await import("graphile-build");
11
+ }
12
+ catch {
13
+ try {
14
+ return await import("postgraphile/graphile-build");
15
+ }
16
+ catch (e) {
17
+ throw new Error(`Failed to import both 'graphile-build' and 'postgraphile/graphile-build', please install this binary in the same location that you've installed graphile-build`);
18
+ }
19
+ }
20
+ }
21
+ async function main(options) {
22
+ const { entityType, entityIdentifier, filterString } = options;
23
+ const userPreset = await (0, load_1.loadConfig)(options.config);
24
+ if (!userPreset) {
25
+ console.error("Failed to load config, please check the file exists");
26
+ process.exit(1);
27
+ }
28
+ const { buildInflection, gather, getBuilder } = await importGraphileBuild();
29
+ const resolvedPreset = (0, graphile_config_1.resolvePresets)([userPreset]);
30
+ const inflection = buildInflection(resolvedPreset);
31
+ const shared = { inflection };
32
+ const input = await gather(resolvedPreset, shared);
33
+ const builder = getBuilder(resolvedPreset, shared.inflection);
34
+ const build = builder.createBuild(input);
35
+ const entityTypes = [...build.behavior.behaviorEntityTypes].sort();
36
+ if (!entityType) {
37
+ return `No entity type was specified; please pick one of the supported entity types:\n${entityTypes
38
+ .map((t) => `- ${t}`)
39
+ .join("\n")}`;
40
+ }
41
+ function isValidEntityType(entityType) {
42
+ return entityTypes.includes(entityType);
43
+ }
44
+ if (!isValidEntityType(entityType)) {
45
+ return `Entity type '${entityType}' not known; known entity types:\n${entityTypes
46
+ .map((t) => `- ${t}`)
47
+ .join("\n")}`;
48
+ }
49
+ // Now find the entities
50
+ const entities = getEntities(build, entityType);
51
+ if (!entities) {
52
+ return `Alas, this command does not yet support getting the entities for '${entityType}'`;
53
+ }
54
+ if (!entityIdentifier) {
55
+ return `No entity identifier was specified; please pick one of the supported entities for entity type '${entityType}':\n${Object.keys(entities)
56
+ .sort()
57
+ .map((t) => `- ${t}`)
58
+ .join("\n")}`;
59
+ }
60
+ const entity = entities[entityIdentifier];
61
+ if (!entity) {
62
+ return `Entity '${entityIdentifier}' doesn't seem to exist; please pick one of the supported entities for entity type '${entityType}':\n${Object.keys(entities)
63
+ .sort()
64
+ .map((t) => `- ${t}`)
65
+ .join("\n")}`;
66
+ }
67
+ const behaviors = build.behavior.getBehaviorForEntity(entityType, entity);
68
+ let path = "";
69
+ let finalString = "";
70
+ for (const entry of behaviors.stack) {
71
+ if (!entry.prefix && !entry.suffix)
72
+ continue;
73
+ const prefix = entry.prefix.trim();
74
+ const suffix = entry.suffix.trim();
75
+ const { final: nextFinalString, highlighted } = debugAndSimplify(build, prefix, finalString, suffix, filterString);
76
+ path += `
77
+ ${chalk_1.default.whiteBright.underline(entry.source)}:
78
+ ${highlighted}
79
+ `;
80
+ finalString = nextFinalString;
81
+ }
82
+ const matchText = filterString
83
+ ? build.behavior.stringMatches(finalString, filterString)
84
+ ? chalk_1.default.whiteBright.bold(`Positive match`)
85
+ : chalk_1.default.red.bold(`Negative match`)
86
+ : null;
87
+ return `\
88
+ ${path}
89
+
90
+ ${chalk_1.default.bold.whiteBright(`Final string:`)}
91
+ ${finalString}
92
+ ${matchText ? `\n` + matchText : ""}`;
93
+ }
94
+ exports.main = main;
95
+ function arraysMatch(a1, a2) {
96
+ // FIXME: this logic doesn't respect `*` scopes.
97
+ return a1.length === a2.length && a1.every((v, i) => a2[i] === v);
98
+ }
99
+ function debugAndSimplify(build, prefix, previous, suffix, filterString) {
100
+ const sections = [
101
+ build.behavior.parseBehaviorString(prefix),
102
+ build.behavior.parseBehaviorString(previous),
103
+ build.behavior.parseBehaviorString(suffix),
104
+ ];
105
+ const finalParts = [];
106
+ const highlightedParts = [];
107
+ const seen = [];
108
+ function hasExisting(spec) {
109
+ for (const otherSpec of seen) {
110
+ if (otherSpec.length <= spec.length &&
111
+ arraysMatch(otherSpec, spec.slice(spec.length - otherSpec.length))) {
112
+ return true;
113
+ }
114
+ }
115
+ return false;
116
+ }
117
+ for (let i = 2; i >= 0; i--) {
118
+ const section = sections[i];
119
+ for (let j = section.length - 1; j >= 0; j--) {
120
+ const spec = section[j];
121
+ const scopeString = `${spec.positive ? "" : "-"}${spec.scope.join(":")}`;
122
+ const isOverridden = hasExisting(spec.scope);
123
+ const isMatch = filterString
124
+ ? build.behavior.stringMatches(spec.scope.join(":"), filterString)
125
+ : false;
126
+ const highlightedScopeStringBase = (i === 0 ? chalk_1.default.greenBright : i === 2 ? chalk_1.default.cyanBright : chalk_1.default.gray)(isOverridden ? chalk_1.default.strikethrough(scopeString) : scopeString);
127
+ const highlightedScopeString = isMatch
128
+ ? chalk_1.default.inverse(highlightedScopeStringBase)
129
+ : highlightedScopeStringBase;
130
+ if (isOverridden) {
131
+ highlightedParts.push(highlightedScopeString);
132
+ // DO NOT PUSH TO finalParts
133
+ }
134
+ else {
135
+ highlightedParts.push(highlightedScopeString);
136
+ finalParts.push(scopeString);
137
+ seen.push(spec.scope);
138
+ }
139
+ }
140
+ }
141
+ return {
142
+ final: finalParts.reverse().join(" "),
143
+ highlighted: highlightedParts.reverse().join(" "),
144
+ };
145
+ }
146
+ function getEntities(build, entityType) {
147
+ const registry = build.input.pgRegistry;
148
+ switch (entityType) {
149
+ case "pgCodec": {
150
+ return registry.pgCodecs;
151
+ }
152
+ case "pgCodecAttribute": {
153
+ const memo = Object.create(null);
154
+ for (const [codecName, codec] of Object.entries(registry.pgCodecs)) {
155
+ if (!codec.attributes)
156
+ continue;
157
+ for (const [attributeName, _attribute] of Object.entries(codec.attributes)) {
158
+ memo[`${codecName}.${attributeName}`] = [codec, attributeName];
159
+ }
160
+ }
161
+ return memo;
162
+ }
163
+ case "pgCodecRelation": {
164
+ const memo = Object.create(null);
165
+ for (const [codecName, codec] of Object.entries(registry.pgCodecs)) {
166
+ const relations = registry.pgRelations[codecName];
167
+ if (!relations)
168
+ continue;
169
+ for (const [relationName, _relation] of Object.entries(relations)) {
170
+ memo[`${codecName}.${relationName}`] = [codec, relationName];
171
+ }
172
+ }
173
+ return memo;
174
+ }
175
+ case "pgCodecRef": {
176
+ const memo = Object.create(null);
177
+ for (const [codecName, codec] of Object.entries(registry.pgCodecs)) {
178
+ if (!codec.refs)
179
+ continue;
180
+ for (const [refName, _ref] of Object.entries(codec.refs)) {
181
+ memo[`${codecName}.${refName}`] = [codec, refName];
182
+ }
183
+ }
184
+ return memo;
185
+ }
186
+ case "pgResource": {
187
+ return registry.pgResources;
188
+ }
189
+ case "pgResourceUnique": {
190
+ const memo = Object.create(null);
191
+ for (const [resourceName, resource] of Object.entries(registry.pgResources)) {
192
+ if (!resource.uniques)
193
+ continue;
194
+ for (let i = 0, l = resource.uniques.length; i < l; i++) {
195
+ const unique = resource.uniques[i];
196
+ memo[`${resourceName}.${i}`] = unique;
197
+ }
198
+ }
199
+ return memo;
200
+ }
201
+ }
202
+ }
203
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {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C;iBACvC;aACF;YACD,OAAO,IAAI,CAAC;SACb;KACF;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/print/cli.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAYjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;;;;;GAqBlC;AAED,KAAK,IAAI,GAAG,eAAe,CAAC,OAAO,OAAO,CAAC,CAAC;AAE5C,wBAAsB,GAAG,CAAC,IAAI,EAAE,IAAI,iBAsCnC"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/print/cli.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAYjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;;;;;GAqBlC;AAED,KAAK,IAAI,GAAG,eAAe,CAAC,OAAO,OAAO,CAAC,CAAC;AAE5C,wBAAsB,GAAG,CAAC,IAAI,EAAE,IAAI,iBAwCnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/commands/config/print/cli.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,qDAAiD;AAEjD,6CAAuD;AACvD,+CAAkD;AAElD,+BAA+B;AAE/B,wDAAkD;AAElD,MAAM,WAAW,GAAmB;IAClC,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,OAAO,CAAC,0BAA0B,EAAE,+BAA+B,CAAC;SACpE,MAAM,CAAC,QAAQ,EAAE;QAChB,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6BAA6B;QAC1C,SAAS,EAAE,IAAI;KAChB,CAAC;SACD,MAAM,CAAC,MAAM,EAAE;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,YAAY,GAAG,GAAG,CAAC,MAAM,GAAG,IAAA,wBAAS,EAAC,IAAI,CAAC,CAAC,MAAM,CACnD,CACF,EAAE;YACL,CAAC,CAAC,EACN,EAAE,CAAC;KACJ;AACH,CAAC;AAED,SAAS,OAAO,CAAC,GAAW,EAAE,GAAG,GAAG,EAAE,EAAE,MAAM,GAAG,KAAK;IACpD,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;IAC9C,IAAI,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE;QACvC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;KACtD;SAAM;QACL,OAAO,MAAM,CAAC;KACf;AACH,CAAC;AAED,SAAS,UAAU,CACjB,KAAkC,EAClC,WAAmB;IAEnB,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACvC,OAAO,IAAA,cAAO,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,MAAM,EAAE,CAAC,CAAC;AACnE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile",
3
- "version": "5.0.0-alpha.7",
3
+ "version": "5.0.0-alpha.8",
4
4
  "description": "Swiss army knife for dealing with all things Graphile",
5
5
  "main": "dist/index.js",
6
6
  "bin": "dist/cli-run.js",
@@ -19,7 +19,7 @@
19
19
  "graphite"
20
20
  ],
21
21
  "author": "Benjie Gillam <code@benjiegillam.com>",
22
- "license": "MIT",
22
+ "license": "SEE LICENSE IN LICENSE.md",
23
23
  "bugs": {
24
24
  "url": "https://github.com/graphile/heart/issues"
25
25
  },
@@ -28,7 +28,8 @@
28
28
  "node": ">=14.17"
29
29
  },
30
30
  "files": [
31
- "dist"
31
+ "dist",
32
+ "LICENSE.md"
32
33
  ],
33
34
  "dependencies": {
34
35
  "@typescript/vfs": "^1.4.0",
@@ -38,7 +39,17 @@
38
39
  "typescript": "^5.0.4"
39
40
  },
40
41
  "peerDependencies": {
41
- "graphile-config": "^0.0.1-alpha.6"
42
+ "graphile-build": "^5.0.0-alpha.14",
43
+ "graphile-config": "^0.0.1-alpha.6",
44
+ "postgraphile": "^5.0.0-alpha.15"
45
+ },
46
+ "peerDependenciesMeta": {
47
+ "graphile-build": {
48
+ "optional": true
49
+ },
50
+ "postgraphile": {
51
+ "optional": true
52
+ }
42
53
  },
43
54
  "devDependencies": {
44
55
  "@types/jest": "^27.5.1",