@transcend-io/cli 4.2.2 → 4.3.2

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 (53) hide show
  1. package/build/cli-discover-silos.js +3 -2
  2. package/build/cli-discover-silos.js.map +1 -1
  3. package/build/codecs.d.ts +35 -14
  4. package/build/codecs.d.ts.map +1 -1
  5. package/build/codecs.js +11 -2
  6. package/build/codecs.js.map +1 -1
  7. package/build/graphql/gqls/dataPoint.d.ts.map +1 -1
  8. package/build/graphql/gqls/dataPoint.js +7 -0
  9. package/build/graphql/gqls/dataPoint.js.map +1 -1
  10. package/build/graphql/gqls/template.d.ts +0 -1
  11. package/build/graphql/gqls/template.d.ts.map +1 -1
  12. package/build/graphql/gqls/template.js +1 -8
  13. package/build/graphql/gqls/template.js.map +1 -1
  14. package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
  15. package/build/graphql/pullTranscendConfiguration.js +35 -25
  16. package/build/graphql/pullTranscendConfiguration.js.map +1 -1
  17. package/build/graphql/syncDataSilos.d.ts +8 -0
  18. package/build/graphql/syncDataSilos.d.ts.map +1 -1
  19. package/build/graphql/syncDataSilos.js +11 -3
  20. package/build/graphql/syncDataSilos.js.map +1 -1
  21. package/build/graphql/syncTemplates.d.ts.map +1 -1
  22. package/build/graphql/syncTemplates.js +2 -8
  23. package/build/graphql/syncTemplates.js.map +1 -1
  24. package/build/plugins/constants.d.ts +2 -2
  25. package/build/plugins/constants.d.ts.map +1 -1
  26. package/build/plugins/constants.js +3 -2
  27. package/build/plugins/constants.js.map +1 -1
  28. package/build/plugins/findFilesToScan.d.ts +11 -0
  29. package/build/plugins/findFilesToScan.d.ts.map +1 -0
  30. package/build/plugins/findFilesToScan.js +34 -0
  31. package/build/plugins/findFilesToScan.js.map +1 -0
  32. package/build/plugins/integrations/cocoapods.d.ts +3 -0
  33. package/build/plugins/integrations/cocoapods.d.ts.map +1 -0
  34. package/build/plugins/integrations/cocoapods.js +10 -0
  35. package/build/plugins/integrations/cocoapods.js.map +1 -0
  36. package/build/plugins/integrations/index.d.ts +3 -0
  37. package/build/plugins/integrations/index.d.ts.map +1 -0
  38. package/build/plugins/integrations/index.js +15 -0
  39. package/build/plugins/integrations/index.js.map +1 -0
  40. package/build/plugins/integrations/packageJson.d.ts +3 -0
  41. package/build/plugins/integrations/packageJson.d.ts.map +1 -0
  42. package/build/plugins/integrations/packageJson.js +19 -0
  43. package/build/plugins/integrations/packageJson.js.map +1 -0
  44. package/build/plugins/types.d.ts +9 -1
  45. package/build/plugins/types.d.ts.map +1 -1
  46. package/build/tests/readTranscendYaml.test.js +0 -1
  47. package/build/tests/readTranscendYaml.test.js.map +1 -1
  48. package/build/tsbuildinfo +1 -1
  49. package/package.json +2 -2
  50. package/build/plugins/scanPackageJson.d.ts +0 -10
  51. package/build/plugins/scanPackageJson.d.ts.map +0 -1
  52. package/build/plugins/scanPackageJson.js +0 -51
  53. package/build/plugins/scanPackageJson.js.map +0 -1
@@ -1,10 +0,0 @@
1
- import { SiloDiscoveryFunction } from './types';
2
- /**
3
- * Helper to scan for data silos in all package.json files that it can find in a directory
4
- *
5
- * @param scanPath - Where to look for package.json files
6
- * @param ignoreDirs - The directories to ignore (excludes node_modules and serverless-build)
7
- * @returns the list of integrations
8
- */
9
- export declare const scanPackageJson: SiloDiscoveryFunction;
10
- //# sourceMappingURL=scanPackageJson.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scanPackageJson.d.ts","sourceRoot":"","sources":["../../src/plugins/scanPackageJson.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA0BhD;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,qBAuB7B,CAAC"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.scanPackageJson = void 0;
7
- const fs_1 = require("fs");
8
- const fast_glob_1 = __importDefault(require("fast-glob"));
9
- const SUPPORTED_FILE_SCANS = ['package.json'];
10
- const IGNORE_DIRS = ['node_modules', 'serverless-build', 'lambda-build'];
11
- /**
12
- * Helper that will scan a package json and return a list of dependencies
13
- *
14
- * @param filePath - Path to load the package.json file
15
- * @returns a set of node dependencies
16
- */
17
- function scanOneFile(filePath) {
18
- const file = (0, fs_1.readFileSync)(filePath, 'utf-8');
19
- const asJson = JSON.parse(file);
20
- const { dependencies = {}, devDependencies = {}, optionalDependencies = {}, } = asJson;
21
- return [
22
- ...Object.keys(dependencies),
23
- ...Object.keys(devDependencies),
24
- ...Object.keys(optionalDependencies),
25
- ];
26
- }
27
- /**
28
- * Helper to scan for data silos in all package.json files that it can find in a directory
29
- *
30
- * @param scanPath - Where to look for package.json files
31
- * @param ignoreDirs - The directories to ignore (excludes node_modules and serverless-build)
32
- * @returns the list of integrations
33
- */
34
- const scanPackageJson = async (scanPath, ignoreDirs) => {
35
- const dirsToIgnore = [...IGNORE_DIRS, ...ignoreDirs.split(',')].filter((dir) => dir.length > 0);
36
- const filesToScan = await (0, fast_glob_1.default)(`${scanPath}/**/${SUPPORTED_FILE_SCANS.join('|')}`, {
37
- ignore: dirsToIgnore.map((dir) => `${scanPath}/**/${dir}`),
38
- unique: true,
39
- onlyFiles: true,
40
- });
41
- const allDeps = filesToScan
42
- .map((filePath) => scanOneFile(filePath))
43
- .flat();
44
- const uniqueDeps = new Set(allDeps);
45
- return [...uniqueDeps].map((dep) => ({
46
- name: dep,
47
- resourceId: `${scanPath}/**/${dep}`,
48
- }));
49
- };
50
- exports.scanPackageJson = scanPackageJson;
51
- //# sourceMappingURL=scanPackageJson.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scanPackageJson.js","sourceRoot":"","sources":["../../src/plugins/scanPackageJson.ts"],"names":[],"mappings":";;;;;;AAAA,2BAAkC;AAElC,0DAAiC;AAGjC,MAAM,o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