graphile-build 4.12.2 → 4.12.3

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/README.md CHANGED
@@ -35,10 +35,17 @@ maintenance and development via sponsorship.
35
35
  And please give some love to our featured sponsors 🤩:
36
36
 
37
37
  <table><tr>
38
+ <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>
39
+ <td align="center"><a href="https://storyscript.com/?utm_source=postgraphile"><img src="https://graphile.org/images/sponsors/storyscript.png" width="90" height="90" alt="Story.ai" /><br />Story.ai</a> *</td>
38
40
  <td align="center"><a href="http://chads.website"><img src="https://graphile.org/images/sponsors/chadf.png" width="90" height="90" alt="Chad Furman" /><br />Chad Furman</a> *</td>
39
- <td align="center"><a href="https://storyscript.com/?utm_source=postgraphile"><img src="https://graphile.org/images/sponsors/storyscript.png" width="90" height="90" alt="Storyscript" /><br />Storyscript</a> *</td>
40
- <td align="center"><a href="https://postlight.com/?utm_source=graphile"><img src="https://graphile.org/images/sponsors/postlight.jpg" width="90" height="90" alt="Postlight" /><br />Postlight</a> *</td>
41
- <td align="center"><a href="https://surge.io/"><img src="https://graphile.org/images/sponsors/surge.png" width="90" height="90" alt="Surge.io" /><br />Surge.io</a> *</td>
41
+ <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>
42
+ </tr><tr>
43
+ <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>
44
+ <td align="center"><a href="https://www.fanatics.com/"><img src="https://graphile.org/images/sponsors/fanatics.png" width="90" height="90" alt="Fanatics" /><br />Fanatics</a> *</td>
45
+ <td align="center"><a href="https://graphcdn.io/"><img src="https://graphile.org/images/sponsors/GraphCDN.png" width="90" height="90" alt="GraphCDN" /><br />GraphCDN</a> *</td>
46
+ <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>
47
+ </tr><tr>
48
+ <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>
42
49
  </tr></table>
43
50
 
44
51
  <em>\* Sponsors the entire Graphile suite</em>
@@ -19,7 +19,7 @@ function swallowError(e) {
19
19
  console.warn(`Recoverable error occurred:`);
20
20
  debugWarn(e);
21
21
  } else {
22
- const errorSnippet = e && typeof e.toString === "function" ? String(e).replace(/\n.*/g, "").substr(0, 320).trim() : null;
22
+ const errorSnippet = e && typeof e.toString === "function" ? String(e).replace(/\n.*/g, "").slice(0, 320).trim() : null;
23
23
 
24
24
  if (errorSnippet) {
25
25
  // eslint-disable-next-line no-console
@@ -13,7 +13,7 @@ export default function swallowError(e: Error): void {
13
13
  } else {
14
14
  const errorSnippet =
15
15
  e && typeof e.toString === "function"
16
- ? String(e).replace(/\n.*/g, "").substr(0, 320).trim()
16
+ ? String(e).replace(/\n.*/g, "").slice(0, 320).trim()
17
17
  : null;
18
18
  if (errorSnippet) {
19
19
  // eslint-disable-next-line no-console
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/swallowError.js"],"names":["debugWarn","swallowError","e","enabled","console","warn","errorSnippet","toString","String","replace","substr","trim"],"mappings":";;;;;;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,oBAAa,qBAAb,CAAlB;;AAEe,SAASC,YAAT,CAAsBC,CAAtB,EAAsC;AACnD;AACA;AACA,MAAIF,SAAS,CAACG,OAAd,EAAuB;AACrB;AACAC,IAAAA,OAAO,CAACC,IAAR,CAAc,6BAAd;AACAL,IAAAA,SAAS,CAACE,CAAD,CAAT;AACD,GAJD,MAIO;AACL,UAAMI,YAAY,GAChBJ,CAAC,IAAI,OAAOA,CAAC,CAACK,QAAT,KAAsB,UAA3B,GACIC,MAAM,CAACN,CAAD,CAAN,CAAUO,OAAV,CAAkB,OAAlB,EAA2B,EAA3B,EAA+BC,MAA/B,CAAsC,CAAtC,EAAyC,GAAzC,EAA8CC,IAA9C,EADJ,GAEI,IAHN;;AAIA,QAAIL,YAAJ,EAAkB;AAChB;AACAF,MAAAA,OAAO,CAACC,IAAR,CACG,8IAA6IC,YAAa,GAD7J;AAGD,KALD,MAKO;AACL;AACAF,MAAAA,OAAO,CAACC,IAAR,CACG,oIADH;AAGD;;AACDL,IAAAA,SAAS,CAACE,CAAD,CAAT;AACD;AACF","sourcesContent":["// @flow\nimport debugFactory from \"debug\";\n\nconst debugWarn = debugFactory(\"graphile-build:warn\");\n\nexport default function swallowError(e: Error): void {\n // BE VERY CAREFUL NOT TO THROW!\n // XXX: Improve this\n if (debugWarn.enabled) {\n // eslint-disable-next-line no-console\n console.warn(`Recoverable error occurred:`);\n debugWarn(e);\n } else {\n const errorSnippet =\n e && typeof e.toString === \"function\"\n ? String(e).replace(/\\n.*/g, \"\").substr(0, 320).trim()\n : null;\n if (errorSnippet) {\n // eslint-disable-next-line no-console\n console.warn(\n `Recoverable error occurred; use envvar 'DEBUG=\"graphile-build:warn\"' for full error (see: https://graphile.org/postgraphile/debugging )\\n> ${errorSnippet}…`\n );\n } else {\n // eslint-disable-next-line no-console\n console.warn(\n `Recoverable error occurred; use envvar 'DEBUG=\"graphile-build:warn\"' for error (see: https://graphile.org/postgraphile/debugging )`\n );\n }\n debugWarn(e);\n }\n}\n"],"file":"swallowError.js"}
1
+ {"version":3,"sources":["../src/swallowError.js"],"names":["debugWarn","swallowError","e","enabled","console","warn","errorSnippet","toString","String","replace","slice","trim"],"mappings":";;;;;;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,oBAAa,qBAAb,CAAlB;;AAEe,SAASC,YAAT,CAAsBC,CAAtB,EAAsC;AACnD;AACA;AACA,MAAIF,SAAS,CAACG,OAAd,EAAuB;AACrB;AACAC,IAAAA,OAAO,CAACC,IAAR,CAAc,6BAAd;AACAL,IAAAA,SAAS,CAACE,CAAD,CAAT;AACD,GAJD,MAIO;AACL,UAAMI,YAAY,GAChBJ,CAAC,IAAI,OAAOA,CAAC,CAACK,QAAT,KAAsB,UAA3B,GACIC,MAAM,CAACN,CAAD,CAAN,CAAUO,OAAV,CAAkB,OAAlB,EAA2B,EAA3B,EAA+BC,KAA/B,CAAqC,CAArC,EAAwC,GAAxC,EAA6CC,IAA7C,EADJ,GAEI,IAHN;;AAIA,QAAIL,YAAJ,EAAkB;AAChB;AACAF,MAAAA,OAAO,CAACC,IAAR,CACG,8IAA6IC,YAAa,GAD7J;AAGD,KALD,MAKO;AACL;AACAF,MAAAA,OAAO,CAACC,IAAR,CACG,oIADH;AAGD;;AACDL,IAAAA,SAAS,CAACE,CAAD,CAAT;AACD;AACF","sourcesContent":["// @flow\nimport debugFactory from \"debug\";\n\nconst debugWarn = debugFactory(\"graphile-build:warn\");\n\nexport default function swallowError(e: Error): void {\n // BE VERY CAREFUL NOT TO THROW!\n // XXX: Improve this\n if (debugWarn.enabled) {\n // eslint-disable-next-line no-console\n console.warn(`Recoverable error occurred:`);\n debugWarn(e);\n } else {\n const errorSnippet =\n e && typeof e.toString === \"function\"\n ? String(e).replace(/\\n.*/g, \"\").slice(0, 320).trim()\n : null;\n if (errorSnippet) {\n // eslint-disable-next-line no-console\n console.warn(\n `Recoverable error occurred; use envvar 'DEBUG=\"graphile-build:warn\"' for full error (see: https://graphile.org/postgraphile/debugging )\\n> ${errorSnippet}…`\n );\n } else {\n // eslint-disable-next-line no-console\n console.warn(\n `Recoverable error occurred; use envvar 'DEBUG=\"graphile-build:warn\"' for error (see: https://graphile.org/postgraphile/debugging )`\n );\n }\n debugWarn(e);\n }\n}\n"],"file":"swallowError.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-build",
3
- "version": "4.12.2",
3
+ "version": "4.12.3",
4
4
  "description": "Build a GraphQL schema from plugins",
5
5
  "main": "node8plus/index.js",
6
6
  "types": "node8plus/index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "@graphile/lru": "4.11.0",
34
34
  "chalk": "^2.4.2",
35
35
  "debug": "^4.1.1",
36
- "graphql-parse-resolve-info": "4.12.0",
36
+ "graphql-parse-resolve-info": "4.12.3",
37
37
  "iterall": "^1.2.2",
38
38
  "lodash": ">=4 <5",
39
39
  "lru-cache": "^5.0.0",
@@ -57,5 +57,5 @@
57
57
  "node8plus",
58
58
  "index.js"
59
59
  ],
60
- "gitHead": "b8d305151948a8d9004eb21058a3230be8f3c560"
60
+ "gitHead": "eb1056b59f8217807e1c53076f9081d08c09aa76"
61
61
  }