@transcend-io/cli 6.16.0 → 6.17.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 +1 -0
- package/build/code-scanning/constants.d.ts.map +1 -1
- package/build/code-scanning/constants.js +2 -0
- package/build/code-scanning/constants.js.map +1 -1
- package/build/code-scanning/integrations/index.d.ts +1 -0
- package/build/code-scanning/integrations/index.d.ts.map +1 -1
- package/build/code-scanning/integrations/index.js +1 -0
- package/build/code-scanning/integrations/index.js.map +1 -1
- package/build/code-scanning/integrations/swift.d.ts +3 -0
- package/build/code-scanning/integrations/swift.d.ts.map +1 -0
- package/build/code-scanning/integrations/swift.js +62 -0
- package/build/code-scanning/integrations/swift.js.map +1 -0
- package/build/codecs.d.ts +2 -0
- package/build/codecs.d.ts.map +1 -1
- package/build/graphql/fetchAllRequestIdentifiers.d.ts +8 -0
- package/build/graphql/fetchAllRequestIdentifiers.d.ts.map +1 -1
- package/build/graphql/syncPartitions.d.ts.map +1 -1
- package/build/graphql/syncPartitions.js +4 -0
- package/build/graphql/syncPartitions.js.map +1 -1
- package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.js +1 -1
- package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.js.map +1 -1
- package/build/tests/findCodePackagesInFolder.test.js +16 -0
- package/build/tests/findCodePackagesInFolder.test.js.map +1 -1
- package/build/tsbuildinfo +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/code-scanning/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/code-scanning/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAW7C,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE;KAClC,CAAC,IAAI,MAAM,GAAG,kBAAkB;CASlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE;KACjC,CAAC,IAAI,eAAe,GAAG,kBAAkB;CAU3C,CAAC"}
|
|
@@ -13,6 +13,7 @@ exports.SILO_DISCOVERY_CONFIGS = {
|
|
|
13
13
|
pythonRequirementsTxt: integrations_1.pythonRequirementsTxt,
|
|
14
14
|
gemfile: integrations_1.gemfile,
|
|
15
15
|
pubspec: integrations_1.pubspec,
|
|
16
|
+
swift: integrations_1.swift,
|
|
16
17
|
};
|
|
17
18
|
exports.CODE_SCANNING_CONFIGS = {
|
|
18
19
|
[privacy_types_1.CodePackageType.CocoaPods]: integrations_1.cocoaPods,
|
|
@@ -22,5 +23,6 @@ exports.CODE_SCANNING_CONFIGS = {
|
|
|
22
23
|
[privacy_types_1.CodePackageType.Gemfile]: integrations_1.gemfile,
|
|
23
24
|
[privacy_types_1.CodePackageType.Pubspec]: integrations_1.pubspec,
|
|
24
25
|
[privacy_types_1.CodePackageType.ComposerJson]: integrations_1.composerJson,
|
|
26
|
+
[privacy_types_1.CodePackageType.Swift]: integrations_1.swift,
|
|
25
27
|
};
|
|
26
28
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/code-scanning/constants.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/code-scanning/constants.ts"],"names":[],"mappings":";;;AACA,iDASwB;AACxB,+DAA8D;AAE9D;;GAEG;AACU,QAAA,sBAAsB,GAE/B;IACF,SAAS,EAAT,wBAAS;IACT,MAAM,EAAN,qBAAM;IACN,qBAAqB,EAArB,oCAAqB;IACrB,qBAAqB,EAArB,oCAAqB;IACrB,OAAO,EAAP,sBAAO;IACP,OAAO,EAAP,sBAAO;IACP,KAAK,EAAL,oBAAK;CACN,CAAC;AAEW,QAAA,qBAAqB,GAE9B;IACF,CAAC,+BAAe,CAAC,SAAS,CAAC,EAAE,wBAAS;IACtC,CAAC,+BAAe,CAAC,MAAM,CAAC,EAAE,qBAAM;IAChC,CAAC,+BAAe,CAAC,WAAW,CAAC,EAAE,oCAAqB;IACpD,CAAC,+BAAe,CAAC,eAAe,CAAC,EAAE,oCAAqB;IACxD,CAAC,+BAAe,CAAC,OAAO,CAAC,EAAE,sBAAO;IAClC,CAAC,+BAAe,CAAC,OAAO,CAAC,EAAE,sBAAO;IAClC,CAAC,+BAAe,CAAC,YAAY,CAAC,EAAE,2BAAY;IAC5C,CAAC,+BAAe,CAAC,KAAK,CAAC,EAAE,oBAAK;CAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/code-scanning/integrations/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/code-scanning/integrations/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
|
@@ -21,4 +21,5 @@ __exportStar(require("./pythonRequirementsTxt"), exports);
|
|
|
21
21
|
__exportStar(require("./gemfile"), exports);
|
|
22
22
|
__exportStar(require("./pubspec"), exports);
|
|
23
23
|
__exportStar(require("./composerJson"), exports);
|
|
24
|
+
__exportStar(require("./swift"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/code-scanning/integrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2CAAyB;AACzB,0DAAwC;AACxC,0DAAwC;AACxC,4CAA0B;AAC1B,4CAA0B;AAC1B,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/code-scanning/integrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2CAAyB;AACzB,0DAAwC;AACxC,0DAAwC;AACxC,4CAA0B;AAC1B,4CAA0B;AAC1B,iDAA+B;AAC/B,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swift.d.ts","sourceRoot":"","sources":["../../../src/code-scanning/integrations/swift.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAqB9C,eAAO,MAAM,KAAK,EAAE,kBAmBnB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.swift = void 0;
|
|
27
|
+
const fs_1 = require("fs");
|
|
28
|
+
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
29
|
+
const type_utils_1 = require("@transcend-io/type-utils");
|
|
30
|
+
const t = __importStar(require("io-ts"));
|
|
31
|
+
const path_1 = require("path");
|
|
32
|
+
const SwiftPackage = t.type({
|
|
33
|
+
pins: t.array(t.type({
|
|
34
|
+
identity: t.string,
|
|
35
|
+
kind: t.string,
|
|
36
|
+
location: t.string,
|
|
37
|
+
state: t.type({
|
|
38
|
+
revision: t.string,
|
|
39
|
+
version: t.string,
|
|
40
|
+
}),
|
|
41
|
+
})),
|
|
42
|
+
version: t.number,
|
|
43
|
+
});
|
|
44
|
+
exports.swift = {
|
|
45
|
+
supportedFiles: ['Package.resolved'],
|
|
46
|
+
ignoreDirs: [],
|
|
47
|
+
scanFunction: (filePath) => {
|
|
48
|
+
const fileContents = (0, fs_1.readFileSync)(filePath, 'utf-8');
|
|
49
|
+
const parsed = (0, type_utils_1.decodeCodec)(SwiftPackage, fileContents);
|
|
50
|
+
return [
|
|
51
|
+
{
|
|
52
|
+
name: (0, path_1.dirname)(filePath).split('/').pop() || '',
|
|
53
|
+
type: privacy_types_1.CodePackageType.CocoaPods,
|
|
54
|
+
softwareDevelopmentKits: parsed.pins.map((target) => ({
|
|
55
|
+
name: target.identity,
|
|
56
|
+
version: target.state.version,
|
|
57
|
+
})),
|
|
58
|
+
},
|
|
59
|
+
];
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=swift.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swift.js","sourceRoot":"","sources":["../../../src/code-scanning/integrations/swift.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAkC;AAElC,+DAA8D;AAC9D,yDAAuD;AACvD,yCAA2B;AAC3B,+BAA+B;AAE/B,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,KAAK,CACX,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC;YACZ,QAAQ,EAAE,CAAC,CAAC,MAAM;YAClB,OAAO,EAAE,CAAC,CAAC,MAAM;SAClB,CAAC;KACH,CAAC,CACH;IACD,OAAO,EAAE,CAAC,CAAC,MAAM;CAClB,CAAC,CAAC;AAEU,QAAA,KAAK,GAAuB;IACvC,cAAc,EAAE,CAAC,kBAAkB,CAAC;IACpC,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,CAAC,QAAQ,EAAE,EAAE;QACzB,MAAM,YAAY,GAAG,IAAA,iBAAY,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAErD,MAAM,MAAM,GAAG,IAAA,wBAAW,EAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QAEvD,OAAO;YACL;gBACE,IAAI,EAAE,IAAA,cAAO,EAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE;gBAC9C,IAAI,EAAE,+BAAe,CAAC,SAAS;gBAC/B,uBAAuB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;oBACpD,IAAI,EAAE,MAAM,CAAC,QAAQ;oBACrB,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;iBAC9B,CAAC,CAAC;aACJ;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
|
package/build/codecs.d.ts
CHANGED
|
@@ -17418,6 +17418,7 @@ export declare const SoftwareDevelopmentKitInput: t.IntersectionC<[t.TypeC<{
|
|
|
17418
17418
|
REQUIREMENTS_TXT: unknown;
|
|
17419
17419
|
GRADLE: unknown;
|
|
17420
17420
|
COCOA_PODS: unknown;
|
|
17421
|
+
SWIFT: unknown;
|
|
17421
17422
|
PUBSPEC: unknown;
|
|
17422
17423
|
GEMFILE: unknown;
|
|
17423
17424
|
COMPOSER_JSON: unknown;
|
|
@@ -17466,6 +17467,7 @@ export declare const CodePackageInput: t.IntersectionC<[t.TypeC<{
|
|
|
17466
17467
|
REQUIREMENTS_TXT: unknown;
|
|
17467
17468
|
GRADLE: unknown;
|
|
17468
17469
|
COCOA_PODS: unknown;
|
|
17470
|
+
SWIFT: unknown;
|
|
17469
17471
|
PUBSPEC: unknown;
|
|
17470
17472
|
GEMFILE: unknown;
|
|
17471
17473
|
COMPOSER_JSON: unknown;
|