@transcend-io/cli 4.120.1 → 4.121.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.
- package/README.md +97 -37
- package/build/cli-discover-silos.js +15 -4
- package/build/cli-discover-silos.js.map +1 -1
- package/build/cli-scan-packages.d.ts +3 -0
- package/build/cli-scan-packages.d.ts.map +1 -0
- package/build/cli-scan-packages.js +74 -0
- package/build/cli-scan-packages.js.map +1 -0
- package/build/code-scanning/constants.d.ts +12 -0
- package/build/code-scanning/constants.d.ts.map +1 -0
- package/build/code-scanning/constants.js +25 -0
- package/build/code-scanning/constants.js.map +1 -0
- package/build/code-scanning/findCodePackagesInFolder.d.ts +16 -0
- package/build/code-scanning/findCodePackagesInFolder.d.ts.map +1 -0
- package/build/code-scanning/findCodePackagesInFolder.js +50 -0
- package/build/code-scanning/findCodePackagesInFolder.js.map +1 -0
- package/build/code-scanning/findFilesToScan.d.ts +29 -0
- package/build/code-scanning/findFilesToScan.d.ts.map +1 -0
- package/build/{plugins → code-scanning}/findFilesToScan.js +12 -12
- package/build/code-scanning/findFilesToScan.js.map +1 -0
- package/build/code-scanning/index.d.ts +4 -0
- package/build/code-scanning/index.d.ts.map +1 -0
- package/build/{plugins → code-scanning}/index.js +1 -1
- package/build/code-scanning/index.js.map +1 -0
- package/build/code-scanning/integrations/cocoaPods.d.ts +3 -0
- package/build/code-scanning/integrations/cocoaPods.d.ts.map +1 -0
- package/build/code-scanning/integrations/cocoaPods.js +44 -0
- package/build/code-scanning/integrations/cocoaPods.js.map +1 -0
- package/build/code-scanning/integrations/gemfile.d.ts +3 -0
- package/build/code-scanning/integrations/gemfile.d.ts.map +1 -0
- package/build/code-scanning/integrations/gemfile.js +58 -0
- package/build/code-scanning/integrations/gemfile.js.map +1 -0
- package/build/code-scanning/integrations/gradle.d.ts +13 -0
- package/build/code-scanning/integrations/gradle.d.ts.map +1 -0
- package/build/code-scanning/integrations/gradle.js +81 -0
- package/build/code-scanning/integrations/gradle.js.map +1 -0
- package/build/{plugins → code-scanning}/integrations/index.d.ts +2 -0
- package/build/code-scanning/integrations/index.d.ts.map +1 -0
- package/build/{plugins → code-scanning}/integrations/index.js +2 -0
- package/build/code-scanning/integrations/index.js.map +1 -0
- package/build/code-scanning/integrations/javascriptPackageJson.d.ts +3 -0
- package/build/code-scanning/integrations/javascriptPackageJson.d.ts.map +1 -0
- package/build/code-scanning/integrations/javascriptPackageJson.js +38 -0
- package/build/code-scanning/integrations/javascriptPackageJson.js.map +1 -0
- package/build/code-scanning/integrations/pubspec.d.ts +3 -0
- package/build/code-scanning/integrations/pubspec.d.ts.map +1 -0
- package/build/code-scanning/integrations/pubspec.js +70 -0
- package/build/code-scanning/integrations/pubspec.js.map +1 -0
- package/build/code-scanning/integrations/pythonRequirementsTxt.d.ts +3 -0
- package/build/code-scanning/integrations/pythonRequirementsTxt.d.ts.map +1 -0
- package/build/code-scanning/integrations/pythonRequirementsTxt.js +47 -0
- package/build/code-scanning/integrations/pythonRequirementsTxt.js.map +1 -0
- package/build/code-scanning/types.d.ts +10 -0
- package/build/code-scanning/types.d.ts.map +1 -0
- package/build/{plugins → code-scanning}/types.js.map +1 -1
- package/build/codecs.d.ts +108 -0
- package/build/codecs.d.ts.map +1 -1
- package/build/codecs.js +91 -1
- package/build/codecs.js.map +1 -1
- package/build/graphql/fetchActiveSiloDiscoPlugin.d.ts +2 -3
- package/build/graphql/fetchActiveSiloDiscoPlugin.d.ts.map +1 -1
- package/build/graphql/fetchActiveSiloDiscoPlugin.js +1 -7
- package/build/graphql/fetchActiveSiloDiscoPlugin.js.map +1 -1
- package/build/graphql/fetchAllCodePackages.d.ts +52 -0
- package/build/graphql/fetchAllCodePackages.d.ts.map +1 -0
- package/build/graphql/fetchAllCodePackages.js +32 -0
- package/build/graphql/fetchAllCodePackages.js.map +1 -0
- package/build/graphql/fetchAllRepositories.d.ts +33 -0
- package/build/graphql/fetchAllRepositories.d.ts.map +1 -0
- package/build/graphql/fetchAllRepositories.js +32 -0
- package/build/graphql/fetchAllRepositories.js.map +1 -0
- package/build/graphql/fetchAllSoftwareDevelopmentKits.d.ts +38 -0
- package/build/graphql/fetchAllSoftwareDevelopmentKits.d.ts.map +1 -0
- package/build/graphql/fetchAllSoftwareDevelopmentKits.js +32 -0
- package/build/graphql/fetchAllSoftwareDevelopmentKits.js.map +1 -0
- package/build/graphql/gqls/codePackage.d.ts +4 -0
- package/build/graphql/gqls/codePackage.d.ts.map +1 -0
- package/build/graphql/gqls/codePackage.js +112 -0
- package/build/graphql/gqls/codePackage.js.map +1 -0
- package/build/graphql/gqls/index.d.ts +3 -0
- package/build/graphql/gqls/index.d.ts.map +1 -1
- package/build/graphql/gqls/index.js +3 -0
- package/build/graphql/gqls/index.js.map +1 -1
- package/build/graphql/gqls/repository.d.ts +4 -0
- package/build/graphql/gqls/repository.d.ts.map +1 -0
- package/build/graphql/gqls/repository.js +80 -0
- package/build/graphql/gqls/repository.js.map +1 -0
- package/build/graphql/gqls/softwareDevelopmentKit.d.ts +4 -0
- package/build/graphql/gqls/softwareDevelopmentKit.d.ts.map +1 -0
- package/build/graphql/gqls/softwareDevelopmentKit.js +92 -0
- package/build/graphql/gqls/softwareDevelopmentKit.js.map +1 -0
- package/build/graphql/index.d.ts +3 -0
- package/build/graphql/index.d.ts.map +1 -1
- package/build/graphql/index.js +3 -0
- package/build/graphql/index.js.map +1 -1
- package/build/graphql/syncAssessmentTemplates.js +2 -2
- package/build/graphql/syncAssessmentTemplates.js.map +1 -1
- package/build/graphql/syncAssessments.js +3 -3
- package/build/graphql/syncAssessments.js.map +1 -1
- package/build/graphql/syncCodePackages.d.ts +77 -0
- package/build/graphql/syncCodePackages.d.ts.map +1 -0
- package/build/graphql/syncCodePackages.js +150 -0
- package/build/graphql/syncCodePackages.js.map +1 -0
- package/build/graphql/syncDataSilos.js +2 -2
- package/build/graphql/syncDataSilos.js.map +1 -1
- package/build/graphql/syncRepositories.d.ts +65 -0
- package/build/graphql/syncRepositories.d.ts.map +1 -0
- package/build/graphql/syncRepositories.js +113 -0
- package/build/graphql/syncRepositories.js.map +1 -0
- package/build/graphql/syncSoftwareDevelopmentKits.d.ts +84 -0
- package/build/graphql/syncSoftwareDevelopmentKits.d.ts.map +1 -0
- package/build/graphql/syncSoftwareDevelopmentKits.js +118 -0
- package/build/graphql/syncSoftwareDevelopmentKits.js.map +1 -0
- package/build/graphql/uploadSiloDiscoveryResults.d.ts +1 -1
- package/build/graphql/uploadSiloDiscoveryResults.d.ts.map +1 -1
- package/build/graphql/uploadSiloDiscoveryResults.js +5 -2
- package/build/graphql/uploadSiloDiscoveryResults.js.map +1 -1
- package/build/tests/findCodePackagesInFolder.test.d.ts +2 -0
- package/build/tests/findCodePackagesInFolder.test.d.ts.map +1 -0
- package/build/tests/findCodePackagesInFolder.test.js +507 -0
- package/build/tests/findCodePackagesInFolder.test.js.map +1 -0
- package/build/tsbuildinfo +1 -1
- package/examples/code-scanning/test-gradle/test-nested-package-json/package.json +20 -0
- package/examples/code-scanning/test-package-json/package.json +20 -0
- package/package.json +5 -4
- package/LICENSE +0 -21
- package/build/plugins/constants.d.ts +0 -9
- package/build/plugins/constants.d.ts.map +0 -1
- package/build/plugins/constants.js +0 -11
- package/build/plugins/constants.js.map +0 -1
- package/build/plugins/findFilesToScan.d.ts +0 -12
- package/build/plugins/findFilesToScan.d.ts.map +0 -1
- package/build/plugins/findFilesToScan.js.map +0 -1
- package/build/plugins/index.d.ts +0 -4
- package/build/plugins/index.d.ts.map +0 -1
- package/build/plugins/index.js.map +0 -1
- package/build/plugins/integrations/cocoaPods.d.ts +0 -3
- package/build/plugins/integrations/cocoaPods.d.ts.map +0 -1
- package/build/plugins/integrations/cocoaPods.js +0 -30
- package/build/plugins/integrations/cocoaPods.js.map +0 -1
- package/build/plugins/integrations/gradle.d.ts +0 -3
- package/build/plugins/integrations/gradle.d.ts.map +0 -1
- package/build/plugins/integrations/gradle.js +0 -53
- package/build/plugins/integrations/gradle.js.map +0 -1
- package/build/plugins/integrations/index.d.ts.map +0 -1
- package/build/plugins/integrations/index.js.map +0 -1
- package/build/plugins/integrations/javascriptPackageJson.d.ts +0 -3
- package/build/plugins/integrations/javascriptPackageJson.d.ts.map +0 -1
- package/build/plugins/integrations/javascriptPackageJson.js +0 -32
- package/build/plugins/integrations/javascriptPackageJson.js.map +0 -1
- package/build/plugins/integrations/pythonRequirementsTxt.d.ts +0 -3
- package/build/plugins/integrations/pythonRequirementsTxt.d.ts.map +0 -1
- package/build/plugins/integrations/pythonRequirementsTxt.js +0 -33
- package/build/plugins/integrations/pythonRequirementsTxt.js.map +0 -1
- package/build/plugins/typeguards.d.ts +0 -9
- package/build/plugins/typeguards.d.ts.map +0 -1
- package/build/plugins/typeguards.js +0 -15
- package/build/plugins/typeguards.js.map +0 -1
- package/build/plugins/types.d.ts +0 -29
- package/build/plugins/types.d.ts.map +0 -1
- /package/build/{plugins → code-scanning}/types.js +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Transcend Inc.",
|
|
3
|
+
"name": "@test-example/nested-test",
|
|
4
|
+
"description": "Example npm nested package.",
|
|
5
|
+
"version": "4.120.1",
|
|
6
|
+
"homepage": "https://github.com/test-example/nested-test",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/test-example/nested-test.git"
|
|
10
|
+
},
|
|
11
|
+
"license": "UNLICENSED",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"dd-trace": "2.45.1",
|
|
14
|
+
"fast-csv": "^4.3.6"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"typescript": "^5.0.4"
|
|
18
|
+
},
|
|
19
|
+
"packageManager": "yarn@3.5.0"
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Transcend Inc.",
|
|
3
|
+
"name": "@test-example/test",
|
|
4
|
+
"description": "Example npm package.",
|
|
5
|
+
"version": "4.120.1",
|
|
6
|
+
"homepage": "https://github.com/test-example/test",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/test-example/test.git"
|
|
10
|
+
},
|
|
11
|
+
"license": "UNLICENSED",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"dd-trace": "2.45.1",
|
|
14
|
+
"fast-csv": "^4.3.6"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"typescript": "^5.0.4"
|
|
18
|
+
},
|
|
19
|
+
"packageManager": "yarn@3.5.0"
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"author": "Transcend Inc.",
|
|
3
3
|
"name": "@transcend-io/cli",
|
|
4
4
|
"description": "Small package containing useful typescript utilities.",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.121.0",
|
|
6
6
|
"homepage": "https://github.com/transcend-io/cli",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/transcend-io/cli.git"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "UNLICENSED",
|
|
12
12
|
"main": "build/index",
|
|
13
13
|
"bin": {
|
|
14
14
|
"tr-build-xdi-sync-endpoint": "./build/cli-build-xdi-sync-endpoint.js",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"tr-request-restart": "./build/cli-request-restart.js",
|
|
36
36
|
"tr-request-upload": "./build/cli-request-upload.js",
|
|
37
37
|
"tr-retry-request-data-silos": "./build/cli-retry-request-data-silos.js",
|
|
38
|
+
"tr-scan-packages": "./build/cli-scan-packages.js",
|
|
38
39
|
"tr-skip-request-data-silos": "./build/cli-skip-request-data-silos.js",
|
|
39
40
|
"tr-update-consent-manager": "./build/cli-update-consent-manager-to-latest.js",
|
|
40
41
|
"tr-upload-consent-preferences": "./build/cli-upload-consent-preferences.js",
|
|
@@ -61,9 +62,9 @@
|
|
|
61
62
|
"@transcend-io/handlebars-utils": "^1.1.0",
|
|
62
63
|
"@transcend-io/internationalization": "^1.6.0",
|
|
63
64
|
"@transcend-io/persisted-state": "^1.0.4",
|
|
64
|
-
"@transcend-io/privacy-types": "^4.
|
|
65
|
+
"@transcend-io/privacy-types": "^4.64.0",
|
|
65
66
|
"@transcend-io/secret-value": "^1.2.0",
|
|
66
|
-
"@transcend-io/type-utils": "^1.
|
|
67
|
+
"@transcend-io/type-utils": "^1.3.0",
|
|
67
68
|
"bluebird": "^3.7.2",
|
|
68
69
|
"cli-progress": "^3.11.2",
|
|
69
70
|
"colors": "^1.4.0",
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Transcend
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SiloDiscoveryConfig } from './types';
|
|
2
|
-
export declare const SILO_DISCOVERY_FUNCTIONS: {
|
|
3
|
-
[k in string]: SiloDiscoveryConfig;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* The supported plugin types
|
|
7
|
-
*/
|
|
8
|
-
export type SupportedPlugin = keyof typeof SILO_DISCOVERY_FUNCTIONS;
|
|
9
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/plugins/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAQ9C,eAAO,MAAM,wBAAwB,EAAE;KACpC,CAAC,IAAI,MAAM,GAAG,mBAAmB;CAMnC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,wBAAwB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SILO_DISCOVERY_FUNCTIONS = void 0;
|
|
4
|
-
const integrations_1 = require("./integrations");
|
|
5
|
-
exports.SILO_DISCOVERY_FUNCTIONS = {
|
|
6
|
-
cocoaPods: integrations_1.cocoaPods,
|
|
7
|
-
gradle: integrations_1.gradle,
|
|
8
|
-
javascriptPackageJson: integrations_1.javascriptPackageJson,
|
|
9
|
-
pythonRequirementsTxt: integrations_1.pythonRequirementsTxt,
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/plugins/constants.ts"],"names":[],"mappings":";;;AACA,iDAKwB;AAEX,QAAA,wBAAwB,GAEjC;IACF,SAAS,EAAT,wBAAS;IACT,MAAM,EAAN,qBAAM;IACN,qBAAqB,EAArB,oCAAqB;IACrB,qBAAqB,EAArB,oCAAqB;CACtB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SiloDiscoveryConfig, SiloDiscoveryRawResults } 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 fileGlobs - Globs to look for
|
|
7
|
-
* @param ignoreDirs - The directories to ignore (excludes node_modules and serverless-build)
|
|
8
|
-
* @param config - Silo Discovery configuration
|
|
9
|
-
* @returns the list of integrations
|
|
10
|
-
*/
|
|
11
|
-
export declare const findFilesToScan: (scanPath: string, fileGlobs: string, ignoreDirs: string, config: SiloDiscoveryConfig) => Promise<SiloDiscoveryRawResults[]>;
|
|
12
|
-
//# sourceMappingURL=findFilesToScan.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findFilesToScan.d.ts","sourceRoot":"","sources":["../../src/plugins/findFilesToScan.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvE;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,aAChB,MAAM,aACL,MAAM,cACL,MAAM,UACV,mBAAmB,KAC1B,QAAQ,uBAAuB,EAAE,CAoCnC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findFilesToScan.js","sourceRoot":"","sources":["../../src/plugins/findFilesToScan.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAiC;AACjC,sCAAmC;AAGnC;;;;;;;;GAQG;AACI,MAAM,eAAe,GAAG,KAAK,EAClC,QAAgB,EAChB,SAAiB,EACjB,UAAkB,EAClB,MAA2B,EACS,EAAE;IACtC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;IACzE,MAAM,cAAc,GAClB,SAAS,KAAK,EAAE;QACd,CAAC,CAAC,cAAc;QAChB,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,MAAM,YAAY,GAAG,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,GAAG,WAAW,CAAC,CAAC,MAAM,CACpE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CACxB,CAAC;IACF,IAAI;QACF,MAAM,WAAW,GAAa,MAAM,IAAA,mBAAQ,EAC1C,GAAG,QAAQ,OAAO,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAC5C;YACE,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,QAAQ,OAAO,GAAG,EAAE,CAAC;YAClE,MAAM,EAAE,IAAI;YACZ,SAAS,EAAE,IAAI;SAChB,CACF,CAAC;QACF,eAAM,CAAC,IAAI,CAAC,aAAa,WAAW,CAAC,MAAM,QAAQ,CAAC,CAAC;QACrD,MAAM,OAAO,GAAG,WAAW;aACxB,GAAG,CAAC,CAAC,QAAgB,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;aACjD,IAAI,EAAE,CAAC;QACV,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;QACpC,MAAM,IAAI,GAAG,CAAC,GAAG,UAAU,CAAC,CAAC;QAC7B,eAAM,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,MAAM,sBAAsB,CAAC,CAAC;QACzD,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YACxB,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,UAAU,EAAE,GAAG,QAAQ,OAAO,GAAG,CAAC,IAAI,EAAE;YACxC,mBAAmB,EAAE,IAAI;SAC1B,CAAC,CAAC,CAAC;KACL;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,IAAI,KAAK,CACb,wBAAwB,uBAAe,gBAAgB,KAAK,EAAE,CAC/D,CAAC;KACH;AACH,CAAC,CAAC;AAzCW,QAAA,eAAe,mBAyC1B"}
|
package/build/plugins/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,0CAAwB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cocoaPods.d.ts","sourceRoot":"","sources":["../../../src/plugins/integrations/cocoaPods.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAyB,MAAM,UAAU,CAAC;AAMtE,eAAO,MAAM,SAAS,EAAE,mBAuBvB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cocoaPods = void 0;
|
|
4
|
-
const fs_1 = require("fs");
|
|
5
|
-
const SPECIAL_CASE_MAP = {};
|
|
6
|
-
const podRegex = /pod '(.*?)'/;
|
|
7
|
-
const regex = new RegExp(podRegex, 'g');
|
|
8
|
-
exports.cocoaPods = {
|
|
9
|
-
supportedFiles: ['Podfile'],
|
|
10
|
-
ignoreDirs: ['Pods'],
|
|
11
|
-
scanFunction: (filePath) => {
|
|
12
|
-
const lines = (0, fs_1.readFileSync)(filePath)
|
|
13
|
-
.toString()
|
|
14
|
-
// split on new line character
|
|
15
|
-
.split(String.fromCharCode(10));
|
|
16
|
-
const deps = [];
|
|
17
|
-
lines.map((line) => {
|
|
18
|
-
if (regex.test(line)) {
|
|
19
|
-
const dep = podRegex.exec(line);
|
|
20
|
-
deps.push({
|
|
21
|
-
name: dep[1],
|
|
22
|
-
type: SPECIAL_CASE_MAP[dep[1]],
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return deps;
|
|
26
|
-
});
|
|
27
|
-
return deps;
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=cocoaPods.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cocoaPods.js","sourceRoot":"","sources":["../../../src/plugins/integrations/cocoaPods.ts"],"names":[],"mappings":";;;AAAA,2BAAkC;AAGlC,MAAM,gBAAgB,GAAuC,EAAE,CAAC;AAEhE,MAAM,QAAQ,GAAG,aAAa,CAAC;AAC/B,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AAC3B,QAAA,SAAS,GAAwB;IAC5C,cAAc,EAAE,CAAC,SAAS,CAAC;IAC3B,UAAU,EAAE,CAAC,MAAM,CAAC;IACpB,YAAY,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,MAAM,KAAK,GAAG,IAAA,iBAAY,EAAC,QAAQ,CAAC;aACjC,QAAQ,EAAE;YACX,8BAA8B;aAC7B,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;QAElC,MAAM,IAAI,GAA4B,EAAE,CAAC;QAEzC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACjB,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACpB,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAoB,CAAC;gBACnD,IAAI,CAAC,IAAI,CAAC;oBACR,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;oBACZ,IAAI,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;iBAC/B,CAAC,CAAC;aACJ;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gradle.d.ts","sourceRoot":"","sources":["../../../src/plugins/integrations/gradle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAyB/C,eAAO,MAAM,MAAM,EAAE,mBA2BpB,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.gradle = void 0;
|
|
4
|
-
const fs_1 = require("fs");
|
|
5
|
-
/**
|
|
6
|
-
* So far, there is two ways of defining dependancies that is supported
|
|
7
|
-
* implementation group: 'org.eclipse.jdt', name: 'org.eclipse.jdt.core', version: '3.28.0'
|
|
8
|
-
* or
|
|
9
|
-
* "org.eclipse.jgit:org.eclipse.jgit:4.9.2.201712150930-r"
|
|
10
|
-
* where the middle is the name of the dependency
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
const regex = [
|
|
14
|
-
/:(.\S*):/,
|
|
15
|
-
/name: ?[",'](.*?)[",']/,
|
|
16
|
-
/id [",'](.*?)[",'] version/,
|
|
17
|
-
/id ?\([",'](.*?)[",']\)/,
|
|
18
|
-
];
|
|
19
|
-
const SPECIAL_CASE_MAP = {
|
|
20
|
-
'dd-sdk-android-gradle-plugin': 'datadog',
|
|
21
|
-
'gradle-sfdc-build-tools': 'salesforce',
|
|
22
|
-
'gradle-aws-plugin-reboot': 'amazonWebServices',
|
|
23
|
-
'azure-storage': 'azureStorageAccount',
|
|
24
|
-
'appengine-api-1.0-sdk': 'googleCloud',
|
|
25
|
-
};
|
|
26
|
-
exports.gradle = {
|
|
27
|
-
supportedFiles: ['build.gradle**'],
|
|
28
|
-
ignoreDirs: [
|
|
29
|
-
'gradle-app.setting',
|
|
30
|
-
'gradle-wrapper.jar',
|
|
31
|
-
'gradle-wrapper.properties',
|
|
32
|
-
],
|
|
33
|
-
scanFunction: (filePath) => {
|
|
34
|
-
const lines = (0, fs_1.readFileSync)(filePath)
|
|
35
|
-
.toString()
|
|
36
|
-
// split on new line character
|
|
37
|
-
.split(String.fromCharCode(10));
|
|
38
|
-
const deps = [];
|
|
39
|
-
lines.map((line) => {
|
|
40
|
-
const rExp = regex.find((reg) => new RegExp(reg, 'g').test(line));
|
|
41
|
-
if (rExp != null) {
|
|
42
|
-
const dep = rExp.exec(line);
|
|
43
|
-
deps.push({
|
|
44
|
-
name: dep[1].replace('gradle', ''),
|
|
45
|
-
type: SPECIAL_CASE_MAP[dep[1]],
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
return line;
|
|
49
|
-
});
|
|
50
|
-
return deps;
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=gradle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gradle.js","sourceRoot":"","sources":["../../../src/plugins/integrations/gradle.ts"],"names":[],"mappings":";;;AAAA,2BAAkC;AAIlC;;;;;;;GAOG;AACH,MAAM,KAAK,GAAG;IACZ,UAAU;IACV,wBAAwB;IACxB,4BAA4B;IAC5B,yBAAyB;CAC1B,CAAC;AAEF,MAAM,gBAAgB,GAAuC;IAC3D,8BAA8B,EAAE,SAAS;IACzC,yBAAyB,EAAE,YAAY;IACvC,0BAA0B,EAAE,mBAAmB;IAC/C,eAAe,EAAE,qBAAqB;IACtC,uBAAuB,EAAE,aAAa;CACvC,CAAC;AAEW,QAAA,MAAM,GAAwB;IACzC,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,UAAU,EAAE;QACV,oBAAoB;QACpB,oBAAoB;QACpB,2BAA2B;KAC5B;IACD,YAAY,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,MAAM,KAAK,GAAG,IAAA,iBAAY,EAAC,QAAQ,CAAC;aACjC,QAAQ,EAAE;YACX,8BAA8B;aAC7B,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;QAElC,MAAM,IAAI,GAA4B,EAAE,CAAC;QACzC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACjB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAClE,IAAI,IAAI,IAAI,IAAI,EAAE;gBAChB,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAoB,CAAC;gBAC/C,IAAI,CAAC,IAAI,CAAC;oBACR,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;oBAClC,IAAI,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;iBAC/B,CAAC,CAAC;aACJ;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/integrations/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/integrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2CAAyB;AACzB,0DAAwC;AACxC,0DAAwC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"javascriptPackageJson.d.ts","sourceRoot":"","sources":["../../../src/plugins/integrations/javascriptPackageJson.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAO/C,eAAO,MAAM,qBAAqB,EAAE,mBA0BnC,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.javascriptPackageJson = void 0;
|
|
4
|
-
const fs_1 = require("fs");
|
|
5
|
-
const SPECIAL_CASE_MAP = {
|
|
6
|
-
dogapi: 'datadog',
|
|
7
|
-
'dd-trace': 'datadog',
|
|
8
|
-
};
|
|
9
|
-
exports.javascriptPackageJson = {
|
|
10
|
-
supportedFiles: ['package.json'],
|
|
11
|
-
ignoreDirs: ['node_modules', 'serverless-build', 'lambda-build'],
|
|
12
|
-
scanFunction: (filePath) => {
|
|
13
|
-
const file = (0, fs_1.readFileSync)(filePath, 'utf-8');
|
|
14
|
-
const asJson = JSON.parse(file);
|
|
15
|
-
const { dependencies = {}, devDependencies = {}, optionalDependencies = {}, } = asJson;
|
|
16
|
-
return [
|
|
17
|
-
...dependencies.map((dep) => ({
|
|
18
|
-
name: dep,
|
|
19
|
-
type: SPECIAL_CASE_MAP[dep],
|
|
20
|
-
})),
|
|
21
|
-
...devDependencies.map((dep) => ({
|
|
22
|
-
name: dep,
|
|
23
|
-
type: SPECIAL_CASE_MAP[dep],
|
|
24
|
-
})),
|
|
25
|
-
...optionalDependencies.map((dep) => ({
|
|
26
|
-
name: dep,
|
|
27
|
-
type: SPECIAL_CASE_MAP[dep],
|
|
28
|
-
})),
|
|
29
|
-
];
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=javascriptPackageJson.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"javascriptPackageJson.js","sourceRoot":"","sources":["../../../src/plugins/integrations/javascriptPackageJson.ts"],"names":[],"mappings":";;;AAAA,2BAAkC;AAGlC,MAAM,gBAAgB,GAAuC;IAC3D,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,SAAS;CACtB,CAAC;AAEW,QAAA,qBAAqB,GAAwB;IACxD,cAAc,EAAE,CAAC,cAAc,CAAC;IAChC,UAAU,EAAE,CAAC,cAAc,EAAE,kBAAkB,EAAE,cAAc,CAAC;IAChE,YAAY,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,MAAM,IAAI,GAAG,IAAA,iBAAY,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC7C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAChC,MAAM,EACJ,YAAY,GAAG,EAAE,EACjB,eAAe,GAAG,EAAE,EACpB,oBAAoB,GAAG,EAAE,GAC1B,GAAG,MAAM,CAAC;QACX,OAAO;YACL,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC;gBACpC,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,gBAAgB,CAAC,GAAG,CAAC;aAC5B,CAAC,CAAC;YACH,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC;gBACvC,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,gBAAgB,CAAC,GAAG,CAAC;aAC5B,CAAC,CAAC;YACH,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC;gBAC5C,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,gBAAgB,CAAC,GAAG,CAAC;aAC5B,CAAC,CAAC;SACJ,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pythonRequirementsTxt.d.ts","sourceRoot":"","sources":["../../../src/plugins/integrations/pythonRequirementsTxt.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAS/C,eAAO,MAAM,qBAAqB,EAAE,mBAwBnC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pythonRequirementsTxt = void 0;
|
|
4
|
-
const fs_1 = require("fs");
|
|
5
|
-
const SPECIAL_CASE_MAP = {
|
|
6
|
-
boto: 'amazonWebServices',
|
|
7
|
-
boto3: 'amazonWebServices',
|
|
8
|
-
heapapi: 'heap',
|
|
9
|
-
awstools: 'amazonWebServices',
|
|
10
|
-
};
|
|
11
|
-
exports.pythonRequirementsTxt = {
|
|
12
|
-
supportedFiles: ['requirements.txt'],
|
|
13
|
-
ignoreDirs: ['build', 'lib', 'lib64'],
|
|
14
|
-
scanFunction: (filePath) => {
|
|
15
|
-
const lines = (0, fs_1.readFileSync)(filePath)
|
|
16
|
-
.toString()
|
|
17
|
-
// split on new line character
|
|
18
|
-
.split(String.fromCharCode(10));
|
|
19
|
-
const deps = [];
|
|
20
|
-
lines.map((line) => {
|
|
21
|
-
if (line.includes('==')) {
|
|
22
|
-
const dep = line.split('==')[0];
|
|
23
|
-
deps.push({
|
|
24
|
-
name: dep,
|
|
25
|
-
type: SPECIAL_CASE_MAP[dep],
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return deps;
|
|
29
|
-
});
|
|
30
|
-
return deps;
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=pythonRequirementsTxt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pythonRequirementsTxt.js","sourceRoot":"","sources":["../../../src/plugins/integrations/pythonRequirementsTxt.ts"],"names":[],"mappings":";;;AAAA,2BAAkC;AAIlC,MAAM,gBAAgB,GAAuC;IAC3D,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,mBAAmB;IAC1B,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,mBAAmB;CAC9B,CAAC;AAEW,QAAA,qBAAqB,GAAwB;IACxD,cAAc,EAAE,CAAC,kBAAkB,CAAC;IACpC,UAAU,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;IACrC,YAAY,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,MAAM,KAAK,GAAG,IAAA,iBAAY,EAAC,QAAQ,CAAC;aACjC,QAAQ,EAAE;YACX,8BAA8B;aAC7B,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;QAElC,MAAM,IAAI,GAA4B,EAAE,CAAC;QAEzC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACjB,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;gBACvB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;gBAChC,IAAI,CAAC,IAAI,CAAC;oBACR,IAAI,EAAE,GAAG;oBACT,IAAI,EAAE,gBAAgB,CAAC,GAAG,CAAC;iBAC5B,CAAC,CAAC;aACJ;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SupportedPlugin } from './constants';
|
|
2
|
-
/**
|
|
3
|
-
* Helper to check if a plugin is supported
|
|
4
|
-
*
|
|
5
|
-
* @param plugin - the plugin to test
|
|
6
|
-
* @returns whether or not the plugin is supported
|
|
7
|
-
*/
|
|
8
|
-
export declare function isSupportedPlugin(plugin: string): plugin is SupportedPlugin;
|
|
9
|
-
//# sourceMappingURL=typeguards.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeguards.d.ts","sourceRoot":"","sources":["../../src/plugins/typeguards.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,eAAe,EAAE,MAAM,aAAa,CAAC;AAExE;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,eAAe,CAE3E"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSupportedPlugin = void 0;
|
|
4
|
-
const constants_1 = require("./constants");
|
|
5
|
-
/**
|
|
6
|
-
* Helper to check if a plugin is supported
|
|
7
|
-
*
|
|
8
|
-
* @param plugin - the plugin to test
|
|
9
|
-
* @returns whether or not the plugin is supported
|
|
10
|
-
*/
|
|
11
|
-
function isSupportedPlugin(plugin) {
|
|
12
|
-
return !!constants_1.SILO_DISCOVERY_FUNCTIONS[plugin];
|
|
13
|
-
}
|
|
14
|
-
exports.isSupportedPlugin = isSupportedPlugin;
|
|
15
|
-
//# sourceMappingURL=typeguards.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeguards.js","sourceRoot":"","sources":["../../src/plugins/typeguards.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AAExE;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,MAAc;IAC9C,OAAO,CAAC,CAAC,oCAAwB,CAAC,MAAyB,CAAC,CAAC;AAC/D,CAAC;AAFD,8CAEC"}
|
package/build/plugins/types.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface SiloDiscoveryRawResults {
|
|
2
|
-
/** The name of the potential data silo entry */
|
|
3
|
-
name: string;
|
|
4
|
-
/** A unique UUID (represents the same resource across different silo discovery runs) */
|
|
5
|
-
resourceId: string;
|
|
6
|
-
/** Any hosts associated with the entry */
|
|
7
|
-
host?: string;
|
|
8
|
-
/** Type of data silo */
|
|
9
|
-
type?: string | undefined;
|
|
10
|
-
}
|
|
11
|
-
export interface SiloDiscoveryConfig {
|
|
12
|
-
/** Directories to ignore when traversing */
|
|
13
|
-
ignoreDirs: string[];
|
|
14
|
-
/** Types of file that are supported */
|
|
15
|
-
supportedFiles: string[];
|
|
16
|
-
/** Scanning file depends on their type */
|
|
17
|
-
scanFunction: SiloDiscoveryFunction;
|
|
18
|
-
}
|
|
19
|
-
export interface SiloDiscoveryRawInput {
|
|
20
|
-
/** name of dependency */
|
|
21
|
-
name: string;
|
|
22
|
-
/** type of dependency, if applicable */
|
|
23
|
-
type: string | undefined;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* The silo discovery function interface
|
|
27
|
-
*/
|
|
28
|
-
export type SiloDiscoveryFunction = (filePath: string) => SiloDiscoveryRawInput[];
|
|
29
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/plugins/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,wFAAwF;IACxF,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,4CAA4C;IAC5C,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,uCAAuC;IACvC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,0CAA0C;IAC1C,YAAY,EAAE,qBAAqB,CAAC;CACrC;AAED,MAAM,WAAW,qBAAqB;IACpC,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,QAAQ,EAAE,MAAM,KACb,qBAAqB,EAAE,CAAC"}
|
|
File without changes
|