@stepzen/transpiler 0.34.0-experimental.d590c46 → 0.34.0

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.
Files changed (44) hide show
  1. package/LICENSE +1 -1
  2. package/lib/actions/configure.js +1 -1
  3. package/lib/actions/lint.js +1 -1
  4. package/lib/actions/merge.js +1 -1
  5. package/lib/actions/print.js +1 -1
  6. package/lib/actions/stitch.js +1 -1
  7. package/lib/actions/transpile.js +1 -1
  8. package/lib/actions/validate.js +1 -1
  9. package/lib/index.js +1 -1
  10. package/lib/mutations/config/envvars.js +1 -1
  11. package/lib/mutations/config/index.js +1 -1
  12. package/lib/utils/constants.js +1 -1
  13. package/lib/utils/copy-workspace-content.js +1 -1
  14. package/lib/utils/dedupe-query-and-mutation-types.js +1 -1
  15. package/lib/utils/ensure-query-and-mutation-types.js +1 -1
  16. package/lib/utils/graphql-helpers.js +1 -1
  17. package/lib/utils/merge-helpers.js +1 -1
  18. package/lib/utils/rmtemp.js +1 -1
  19. package/lib/utils/set-files-in-sdl.js +1 -1
  20. package/lib/utils/strip-empty-queries-and-mutations.js +1 -1
  21. package/lib/validators/config-exists/index.js +1 -1
  22. package/lib/validators/index.js +1 -1
  23. package/package.json +3 -3
  24. package/src/actions/configure.ts +1 -1
  25. package/src/actions/lint.ts +1 -1
  26. package/src/actions/merge.ts +1 -1
  27. package/src/actions/print.ts +1 -1
  28. package/src/actions/stitch.ts +1 -1
  29. package/src/actions/transpile.ts +1 -1
  30. package/src/actions/validate.ts +1 -1
  31. package/src/index.ts +1 -1
  32. package/src/mutations/config/envvars.ts +1 -1
  33. package/src/mutations/config/index.ts +1 -1
  34. package/src/utils/constants.ts +1 -1
  35. package/src/utils/copy-workspace-content.ts +1 -1
  36. package/src/utils/dedupe-query-and-mutation-types.ts +1 -1
  37. package/src/utils/ensure-query-and-mutation-types.ts +1 -1
  38. package/src/utils/graphql-helpers.ts +1 -1
  39. package/src/utils/merge-helpers.ts +1 -1
  40. package/src/utils/rmtemp.ts +1 -1
  41. package/src/utils/set-files-in-sdl.ts +1 -1
  42. package/src/utils/strip-empty-queries-and-mutations.ts +1 -1
  43. package/src/validators/config-exists/index.ts +1 -1
  44. package/src/validators/index.ts +1 -1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright IBM Corp. 2020, 2023
3
+ Copyright IBM Corp. 2020, 2024
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const debug = require("debug");
5
5
  const fsx = require("fs-extra");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const fsx = require("fs-extra");
5
5
  const os = require("os");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const fsx = require("fs-extra");
5
5
  const glob = require("glob");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_1 = require("graphql");
5
5
  const prettier = require("prettier");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const lodash_1 = require("lodash");
5
5
  const graphql_1 = require("graphql");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_1 = require("graphql");
5
5
  const dotenv = require("dotenv");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_1 = require("graphql");
5
5
  const fsx = require("fs-extra");
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.validate = exports.transpile = exports.stitch = exports.print = exports.merge = exports.lint = exports.configure = void 0;
5
5
  var configure_1 = require("./actions/configure");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const debug = require("debug");
5
5
  function replaceVars(value, envvars, path = '') {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const envvars_1 = require("./envvars");
5
5
  exports.default = [envvars_1.default];
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ALL_GRAPHQL_FILES = exports.STEPZEN_SERVER_URL = exports.EXPERIMENTAL_EXTENSIONS = void 0;
5
5
  const dotenv = require("dotenv");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.getAllGraphQLFiles = void 0;
5
5
  const fsx = require("fs-extra");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_1 = require("graphql");
5
5
  const graphql_helpers_1 = require("../utils/graphql-helpers");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_1 = require("graphql");
5
5
  const graphql_helpers_1 = require("../utils/graphql-helpers");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.cloneDeep = void 0;
5
5
  const cloneDeep = (obj) => JSON.parse(JSON.stringify(obj));
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.removeTypeFromSchema = exports.removeQueryMutationFromSchema = exports.mergeTypeIntoSchema = exports.mergeQueryMutationIntoSchema = exports.getSchema = exports.getExtensions = exports.getConfiguration = exports.findTypeInSchema = exports.findQueryMutationInSchema = exports.findNextAvailableSubfolder = exports.dedupeTempFolder = void 0;
5
5
  const debug = require("debug");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.rmtemp = void 0;
5
5
  const fs = require("fs");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.createSchemaElement = exports.createOrUpdateSdlDirective = void 0;
5
5
  const fs = require("fs");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_1 = require("graphql");
5
5
  const graphql_helpers_1 = require("./graphql-helpers");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_1 = require("graphql");
5
5
  const lodash_1 = require("lodash");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const config_exists_1 = require("./config-exists");
5
5
  exports.default = [config_exists_1.default];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stepzen/transpiler",
3
3
  "description": "The StepZen transpiler",
4
- "version": "0.34.0-experimental.d590c46",
4
+ "version": "0.34.0",
5
5
  "author": "Darren Waddell <darren@stepzen.com>",
6
6
  "license": "MIT",
7
7
  "files": [
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@graphql-tools/merge": "^8.3.15",
26
- "@stepzen/fetch": "0.34.0-experimental.d590c46",
26
+ "@stepzen/fetch": "0.34.0",
27
27
  "debug": "^4.3.4",
28
28
  "dotenv": "^16.0.3",
29
29
  "fs-extra": "^9.1.0",
@@ -58,5 +58,5 @@
58
58
  "nyc": "^15.1.0",
59
59
  "ts-node": "^10.8.2"
60
60
  },
61
- "gitHead": "d590c467e31d1b627acd6a15088e8541ecdad330"
61
+ "gitHead": "4f9364de289c13203f73ffe90e45b7807bd56fc4"
62
62
  }
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import * as fsx from 'fs-extra'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as fsx from 'fs-extra'
4
4
  import * as os from 'os'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as fsx from 'fs-extra'
4
4
  import * as glob from 'glob'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {DocumentNode, print} from 'graphql'
4
4
  import * as prettier from 'prettier'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {clone, cloneDeep} from 'lodash'
4
4
  import {parse, print, visit} from 'graphql'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {parse} from 'graphql'
4
4
  import * as dotenv from 'dotenv'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {buildASTSchema, DocumentNode, parse, print} from 'graphql'
4
4
  import * as fsx from 'fs-extra'
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  export {default as configure} from './actions/configure'
4
4
  export {default as lint} from './actions/lint'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import envvars from './envvars'
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as dotenv from 'dotenv'
4
4
  import * as debug from 'debug'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as fsx from 'fs-extra'
4
4
  import * as glob from 'glob'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {DocumentNode, parse, print, visit} from 'graphql'
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {DocumentNode, visit} from 'graphql'
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  export type DeepWriteable<T> = {-readonly [P in keyof T]: DeepWriteable<T[P]>}
4
4
  export const cloneDeep = <T>(obj: T): DeepWriteable<T> =>
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import {ASTNode, BREAK, GraphQLSchema, Kind, visit} from 'graphql'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as fs from 'fs'
4
4
  import * as path from 'path'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as fs from 'fs'
4
4
  import * as glob from 'glob'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {DocumentNode, visit} from 'graphql'
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {DocumentNode, visit} from 'graphql'
4
4
  import {filter, uniq} from 'lodash'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import configExists from './config-exists'
4
4