keycloakify 6.9.1 → 6.10.1
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 +4 -0
- package/bin/create-keycloak-email-directory.js +0 -0
- package/bin/download-builtin-keycloak-theme.d.ts +1 -1
- package/bin/download-builtin-keycloak-theme.js +50 -26
- package/bin/download-builtin-keycloak-theme.js.map +1 -1
- package/bin/keycloakify/generateKeycloakThemeResources.d.ts +2 -2
- package/bin/keycloakify/generateKeycloakThemeResources.js +134 -92
- package/bin/keycloakify/generateKeycloakThemeResources.js.map +1 -1
- package/bin/keycloakify/index.js +0 -0
- package/bin/keycloakify/keycloakify.d.ts +1 -1
- package/bin/keycloakify/keycloakify.js +135 -89
- package/bin/keycloakify/keycloakify.js.map +1 -1
- package/bin/link_in_test_app.js +4 -1
- package/bin/link_in_test_app.js.map +1 -1
- package/bin/tools/downloadAndUnzip.d.ts +2 -3
- package/bin/tools/downloadAndUnzip.js +460 -70
- package/bin/tools/downloadAndUnzip.js.map +1 -1
- package/bin/tools/grant-exec-perms.js +66 -21
- package/bin/tools/grant-exec-perms.js.map +1 -1
- package/bin/tsconfig.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/bin/download-builtin-keycloak-theme.ts +3 -3
- package/src/bin/keycloakify/generateKeycloakThemeResources.ts +4 -6
- package/src/bin/keycloakify/keycloakify.ts +2 -2
- package/src/bin/link_in_test_app.ts +2 -1
- package/src/bin/tools/downloadAndUnzip.ts +267 -58
- package/src/bin/tools/grant-exec-perms.ts +14 -7
@@ -22,6 +22,42 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
22
|
__setModuleDefault(result, mod);
|
23
23
|
return result;
|
24
24
|
};
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
32
|
+
});
|
33
|
+
};
|
34
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
35
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
36
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
37
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
38
|
+
function step(op) {
|
39
|
+
if (f) throw new TypeError("Generator is already executing.");
|
40
|
+
while (_) try {
|
41
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
42
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
43
|
+
switch (op[0]) {
|
44
|
+
case 0: case 1: t = op; break;
|
45
|
+
case 4: _.label++; return { value: op[1], done: false };
|
46
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
47
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
48
|
+
default:
|
49
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
50
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
51
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
52
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
53
|
+
if (t[2]) _.ops.pop();
|
54
|
+
_.trys.pop(); continue;
|
55
|
+
}
|
56
|
+
op = body.call(thisArg, _);
|
57
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
58
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
59
|
+
}
|
60
|
+
};
|
25
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
62
|
exports.main = exports.keycloakThemeEmailDirPath = exports.keycloakThemeBuildingDirPath = void 0;
|
27
63
|
var generateKeycloakThemeResources_1 = require("./generateKeycloakThemeResources");
|
@@ -37,97 +73,107 @@ var reactProjectDirPath = process.cwd();
|
|
37
73
|
exports.keycloakThemeBuildingDirPath = (0, path_1.join)(reactProjectDirPath, "build_keycloak");
|
38
74
|
exports.keycloakThemeEmailDirPath = (0, path_1.join)(exports.keycloakThemeBuildingDirPath, "..", "keycloak_email");
|
39
75
|
function main() {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
76
|
+
return __awaiter(this, void 0, void 0, function () {
|
77
|
+
var _a, isSilent, hasExternalAssets, logger, buildOptions, doBundlesEmailTemplate, jarFilePath, containerKeycloakVersion;
|
78
|
+
return __generator(this, function (_b) {
|
79
|
+
switch (_b.label) {
|
80
|
+
case 0:
|
81
|
+
_a = (0, cliOptions_1.getCliOptions)(process.argv.slice(2)), isSilent = _a.isSilent, hasExternalAssets = _a.hasExternalAssets;
|
82
|
+
logger = (0, logger_1.getLogger)({ isSilent: isSilent });
|
83
|
+
logger.log("🔏 Building the keycloak theme...⌚");
|
84
|
+
buildOptions = (0, BuildOptions_1.readBuildOptions)({
|
85
|
+
"packageJson": fs.readFileSync((0, path_1.join)(reactProjectDirPath, "package.json")).toString("utf8"),
|
86
|
+
"CNAME": (function () {
|
87
|
+
var cnameFilePath = (0, path_1.join)(reactProjectDirPath, "public", "CNAME");
|
88
|
+
if (!fs.existsSync(cnameFilePath)) {
|
89
|
+
return undefined;
|
90
|
+
}
|
91
|
+
return fs.readFileSync(cnameFilePath).toString("utf8");
|
92
|
+
})(),
|
93
|
+
"isExternalAssetsCliParamProvided": hasExternalAssets,
|
94
|
+
"isSilent": isSilent
|
95
|
+
});
|
96
|
+
return [4 /*yield*/, (0, generateKeycloakThemeResources_1.generateKeycloakThemeResources)({
|
97
|
+
keycloakThemeBuildingDirPath: exports.keycloakThemeBuildingDirPath,
|
98
|
+
keycloakThemeEmailDirPath: exports.keycloakThemeEmailDirPath,
|
99
|
+
"reactAppBuildDirPath": (0, path_1.join)(reactProjectDirPath, "build"),
|
100
|
+
buildOptions: buildOptions,
|
101
|
+
//We have to leave it at that otherwise we break our default theme.
|
102
|
+
//Problem is that we can't guarantee that the the old resources
|
103
|
+
//will still be available on the newer keycloak version.
|
104
|
+
"keycloakVersion": "11.0.3"
|
105
|
+
})];
|
106
|
+
case 1:
|
107
|
+
doBundlesEmailTemplate = (_b.sent()).doBundlesEmailTemplate;
|
108
|
+
jarFilePath = (0, generateJavaStackFiles_1.generateJavaStackFiles)({
|
109
|
+
"version": buildOptions.version,
|
110
|
+
keycloakThemeBuildingDirPath: exports.keycloakThemeBuildingDirPath,
|
111
|
+
doBundlesEmailTemplate: doBundlesEmailTemplate,
|
112
|
+
buildOptions: buildOptions
|
113
|
+
}).jarFilePath;
|
114
|
+
child_process.execSync("mvn package", {
|
115
|
+
"cwd": exports.keycloakThemeBuildingDirPath
|
116
|
+
});
|
117
|
+
containerKeycloakVersion = "20.0.1";
|
118
|
+
(0, generateStartKeycloakTestingContainer_1.generateStartKeycloakTestingContainer)({
|
119
|
+
keycloakThemeBuildingDirPath: exports.keycloakThemeBuildingDirPath,
|
120
|
+
"keycloakVersion": containerKeycloakVersion,
|
121
|
+
buildOptions: buildOptions
|
122
|
+
});
|
123
|
+
logger.log([
|
124
|
+
"",
|
125
|
+
"\u2705 Your keycloak theme has been generated and bundled into ./".concat((0, path_1.relative)(reactProjectDirPath, jarFilePath), " \uD83D\uDE80"),
|
126
|
+
"It is to be placed in \"/opt/keycloak/providers\" in the container running a quay.io/keycloak/keycloak Docker image.",
|
127
|
+
"",
|
128
|
+
//TODO: Restore when we find a good Helm chart for Keycloak.
|
129
|
+
//"Using Helm (https://github.com/codecentric/helm-charts), edit to reflect:",
|
130
|
+
"",
|
131
|
+
"value.yaml: ",
|
132
|
+
" extraInitContainers: |",
|
133
|
+
" - name: realm-ext-provider",
|
134
|
+
" image: curlimages/curl",
|
135
|
+
" imagePullPolicy: IfNotPresent",
|
136
|
+
" command:",
|
137
|
+
" - sh",
|
138
|
+
" args:",
|
139
|
+
" - -c",
|
140
|
+
" - curl -L -f -S -o /extensions/".concat((0, path_1.basename)(jarFilePath), " https://AN.URL.FOR/").concat((0, path_1.basename)(jarFilePath)),
|
141
|
+
" volumeMounts:",
|
142
|
+
" - name: extensions",
|
143
|
+
" mountPath: /extensions",
|
144
|
+
" ",
|
145
|
+
" extraVolumeMounts: |",
|
146
|
+
" - name: extensions",
|
147
|
+
" mountPath: /opt/keycloak/providers",
|
148
|
+
" extraEnv: |",
|
149
|
+
" - name: KEYCLOAK_USER",
|
150
|
+
" value: admin",
|
151
|
+
" - name: KEYCLOAK_PASSWORD",
|
152
|
+
" value: xxxxxxxxx",
|
153
|
+
" - name: JAVA_OPTS",
|
154
|
+
" value: -Dkeycloak.profile=preview",
|
155
|
+
"",
|
156
|
+
"",
|
157
|
+
"To test your theme locally you can spin up a Keycloak ".concat(containerKeycloakVersion, " container image with the theme pre loaded by running:"),
|
158
|
+
"",
|
159
|
+
"\uD83D\uDC49 $ ./".concat((0, path_1.relative)(reactProjectDirPath, (0, path_1.join)(exports.keycloakThemeBuildingDirPath, generateStartKeycloakTestingContainer_1.generateStartKeycloakTestingContainer.basename)), " \uD83D\uDC48"),
|
160
|
+
"",
|
161
|
+
"Test with different Keycloak versions by editing the .sh file. see available versions here: https://quay.io/repository/keycloak/keycloak?tab=tags",
|
162
|
+
"",
|
163
|
+
"Once your container is up and running: ",
|
164
|
+
"- Log into the admin console 👉 http://localhost:8080/admin username: admin, password: admin 👈",
|
165
|
+
'- Create a realm named "myrealm"',
|
166
|
+
'- Create a client with ID: "myclient", "Root URL": "https://www.keycloak.org/app/" and "Valid redirect URIs": "https://www.keycloak.org/app/*"',
|
167
|
+
"- Select Login Theme: ".concat(buildOptions.themeName, " (don't forget to save at the bottom of the page)"),
|
168
|
+
"- Go to \uD83D\uDC49 https://www.keycloak.org/app/ \uD83D\uDC48 Click \"Save\" then \"Sign in\". You should see your login page",
|
169
|
+
"",
|
170
|
+
"Video demoing this process: https://youtu.be/N3wlBoH4hKg",
|
171
|
+
""
|
172
|
+
].join("\n"));
|
173
|
+
return [2 /*return*/];
|
49
174
|
}
|
50
|
-
|
51
|
-
})(),
|
52
|
-
"isExternalAssetsCliParamProvided": hasExternalAssets,
|
53
|
-
"isSilent": isSilent
|
54
|
-
});
|
55
|
-
var doBundlesEmailTemplate = (0, generateKeycloakThemeResources_1.generateKeycloakThemeResources)({
|
56
|
-
keycloakThemeBuildingDirPath: exports.keycloakThemeBuildingDirPath,
|
57
|
-
keycloakThemeEmailDirPath: exports.keycloakThemeEmailDirPath,
|
58
|
-
"reactAppBuildDirPath": (0, path_1.join)(reactProjectDirPath, "build"),
|
59
|
-
buildOptions: buildOptions,
|
60
|
-
//We have to leave it at that otherwise we break our default theme.
|
61
|
-
//Problem is that we can't guarantee that the the old resources
|
62
|
-
//will still be available on the newer keycloak version.
|
63
|
-
"keycloakVersion": "11.0.3"
|
64
|
-
}).doBundlesEmailTemplate;
|
65
|
-
var jarFilePath = (0, generateJavaStackFiles_1.generateJavaStackFiles)({
|
66
|
-
"version": buildOptions.version,
|
67
|
-
keycloakThemeBuildingDirPath: exports.keycloakThemeBuildingDirPath,
|
68
|
-
doBundlesEmailTemplate: doBundlesEmailTemplate,
|
69
|
-
buildOptions: buildOptions
|
70
|
-
}).jarFilePath;
|
71
|
-
child_process.execSync("mvn package", {
|
72
|
-
"cwd": exports.keycloakThemeBuildingDirPath
|
73
|
-
});
|
74
|
-
//We want, however, to test in a container running the latest Keycloak version
|
75
|
-
var containerKeycloakVersion = "20.0.1";
|
76
|
-
(0, generateStartKeycloakTestingContainer_1.generateStartKeycloakTestingContainer)({
|
77
|
-
keycloakThemeBuildingDirPath: exports.keycloakThemeBuildingDirPath,
|
78
|
-
"keycloakVersion": containerKeycloakVersion,
|
79
|
-
buildOptions: buildOptions
|
175
|
+
});
|
80
176
|
});
|
81
|
-
logger.log([
|
82
|
-
"",
|
83
|
-
"\u2705 Your keycloak theme has been generated and bundled into ./".concat((0, path_1.relative)(reactProjectDirPath, jarFilePath), " \uD83D\uDE80"),
|
84
|
-
"It is to be placed in \"/opt/keycloak/providers\" in the container running a quay.io/keycloak/keycloak Docker image.",
|
85
|
-
"",
|
86
|
-
//TODO: Restore when we find a good Helm chart for Keycloak.
|
87
|
-
//"Using Helm (https://github.com/codecentric/helm-charts), edit to reflect:",
|
88
|
-
"",
|
89
|
-
"value.yaml: ",
|
90
|
-
" extraInitContainers: |",
|
91
|
-
" - name: realm-ext-provider",
|
92
|
-
" image: curlimages/curl",
|
93
|
-
" imagePullPolicy: IfNotPresent",
|
94
|
-
" command:",
|
95
|
-
" - sh",
|
96
|
-
" args:",
|
97
|
-
" - -c",
|
98
|
-
" - curl -L -f -S -o /extensions/".concat((0, path_1.basename)(jarFilePath), " https://AN.URL.FOR/").concat((0, path_1.basename)(jarFilePath)),
|
99
|
-
" volumeMounts:",
|
100
|
-
" - name: extensions",
|
101
|
-
" mountPath: /extensions",
|
102
|
-
" ",
|
103
|
-
" extraVolumeMounts: |",
|
104
|
-
" - name: extensions",
|
105
|
-
" mountPath: /opt/keycloak/providers",
|
106
|
-
" extraEnv: |",
|
107
|
-
" - name: KEYCLOAK_USER",
|
108
|
-
" value: admin",
|
109
|
-
" - name: KEYCLOAK_PASSWORD",
|
110
|
-
" value: xxxxxxxxx",
|
111
|
-
" - name: JAVA_OPTS",
|
112
|
-
" value: -Dkeycloak.profile=preview",
|
113
|
-
"",
|
114
|
-
"",
|
115
|
-
"To test your theme locally you can spin up a Keycloak ".concat(containerKeycloakVersion, " container image with the theme pre loaded by running:"),
|
116
|
-
"",
|
117
|
-
"\uD83D\uDC49 $ ./".concat((0, path_1.relative)(reactProjectDirPath, (0, path_1.join)(exports.keycloakThemeBuildingDirPath, generateStartKeycloakTestingContainer_1.generateStartKeycloakTestingContainer.basename)), " \uD83D\uDC48"),
|
118
|
-
"",
|
119
|
-
"Test with different Keycloak versions by editing the .sh file. see available versions here: https://quay.io/repository/keycloak/keycloak?tab=tags",
|
120
|
-
"",
|
121
|
-
"Once your container is up and running: ",
|
122
|
-
"- Log into the admin console 👉 http://localhost:8080/admin username: admin, password: admin 👈",
|
123
|
-
'- Create a realm named "myrealm"',
|
124
|
-
'- Create a client with ID: "myclient", "Root URL": "https://www.keycloak.org/app/" and "Valid redirect URIs": "https://www.keycloak.org/app/*"',
|
125
|
-
"- Select Login Theme: ".concat(buildOptions.themeName, " (don't forget to save at the bottom of the page)"),
|
126
|
-
"- Go to \uD83D\uDC49 https://www.keycloak.org/app/ \uD83D\uDC48 Click \"Save\" then \"Sign in\". You should see your login page",
|
127
|
-
"",
|
128
|
-
"Video demoing this process: https://youtu.be/N3wlBoH4hKg",
|
129
|
-
""
|
130
|
-
].join("\n"));
|
131
177
|
}
|
132
178
|
exports.main = main;
|
133
179
|
//# sourceMappingURL=keycloakify.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"keycloakify.js","sourceRoot":"","sources":["../../src/bin/keycloakify/keycloakify.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"keycloakify.js","sourceRoot":"","sources":["../../src/bin/keycloakify/keycloakify.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mFAAkF;AAClF,mEAAkE;AAClE,6BAA4F;AAC5F,2DAA+C;AAC/C,iGAAgG;AAChG,qCAAyB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AwB;wBACxB,uBAAuB;wBACvB,yCAAyC;wBACzC,EAAE;wBACF,EAAE;wBACF,gEAAyD,wBAAwB,2DAAwD;wBACzI,EAAE;wBACF,2BAAU,IAAA,eAAY,EAAC,mBAAmB,EAAE,IAAA,WAAQ,EAAC,oCAA4B,EAAE,6EAAqC,CAAC,QAAQ,CAAC,CAAC,kBAAK;wBACxI,EAAE;wBACF,mJAAmJ;wBACnJ,EAAE;wBACF,yCAAyC;wBACzC,iGAAiG;wBACjG,kCAAkC;wBAClC,gJAAgJ;wBAChJ,gCAAyB,YAAY,CAAC,SAAS,sDAAmD;wBAClG,iIAAyG;wBACzG,EAAE;wBACF,0DAA0D;wBAC1D,EAAE;qBACL,CAAC,IAAI,CAAC,IAAI,CAAC,CACf,CAAC;;;;;CACL;AAvGD,oBAuGC"}
|
package/bin/link_in_test_app.js
CHANGED
@@ -66,7 +66,10 @@ var fs = __importStar(require("fs"));
|
|
66
66
|
var keycloakifyDirPath = (0, path_1.join)(__dirname, "..", "..");
|
67
67
|
fs.writeFileSync((0, path_1.join)(keycloakifyDirPath, "dist", "package.json"), Buffer.from(JSON.stringify((function () {
|
68
68
|
var packageJsonParsed = JSON.parse(fs.readFileSync((0, path_1.join)(keycloakifyDirPath, "package.json")).toString("utf8"));
|
69
|
-
return __assign(__assign({}, packageJsonParsed), { "main": packageJsonParsed["main"].replace(/^dist\//, ""), "types": packageJsonParsed["types"].replace(/^dist\//, "")
|
69
|
+
return __assign(__assign({}, packageJsonParsed), { "main": packageJsonParsed["main"].replace(/^dist\//, ""), "types": packageJsonParsed["types"].replace(/^dist\//, ""), "bin": Object.fromEntries(Object.entries(packageJsonParsed["bin"]).map(function (_a) {
|
70
|
+
var _b = __read(_a, 2), k = _b[0], v = _b[1];
|
71
|
+
return [k, v.replace(/^dist\//, "")];
|
72
|
+
})) });
|
70
73
|
})(), null, 2), "utf8"));
|
71
74
|
var commonThirdPartyDeps = (function () {
|
72
75
|
var namespaceModuleNames = ["@emotion"];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link_in_test_app.js","sourceRoot":"","sources":["../src/bin/link_in_test_app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,6BAAkE;AAClE,yCAAwC;AACxC,qCAAyB;AAEzB,IAAM,kBAAkB,GAAG,IAAA,WAAQ,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAE3D,EAAE,CAAC,aAAa,CACZ,IAAA,WAAQ,EAAC,kBAAkB,EAAE,MAAM,EAAE,cAAc,CAAC,EACpD,MAAM,CAAC,IAAI,CACP,IAAI,CAAC,SAAS,CACV,CAAC;IACG,IAAM,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAA,WAAQ,EAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAErH,6BACO,iBAAiB,KACpB,MAAM,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,EACxD,OAAO,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,
|
1
|
+
{"version":3,"file":"link_in_test_app.js","sourceRoot":"","sources":["../src/bin/link_in_test_app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,6BAAkE;AAClE,yCAAwC;AACxC,qCAAyB;AAEzB,IAAM,kBAAkB,GAAG,IAAA,WAAQ,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAE3D,EAAE,CAAC,aAAa,CACZ,IAAA,WAAQ,EAAC,kBAAkB,EAAE,MAAM,EAAE,cAAc,CAAC,EACpD,MAA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mBAAmB,CAAC,CAAC,mBAC5I,CAAC;IAEF,YAAY,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAC9C,CAAC,CAAC,CAAC;AAEH,oBAAoB,CAAC,OAAO,CAAC,UAAA,mBAAmB;IAC5C,OAAA,YAAY,CAAC,OAAO,CAAC,UAAA,WAAW;QAC5B,OAAA,YAAY,CAAC;YACT,KAAK,EAAE,WAAW;YAClB,kBAAkB,EAAE,mBAAmB;SAC1C,CAAC;IAHF,CAGE,CACL;AALD,CAKC,CACJ,CAAC;AAEF,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;AAErD,YAAY,CAAC,EAAE,KAAK,EAAE,IAAA,WAAQ,EAAC,kBAAkB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;AAE9D,YAAY,CAAC,OAAO,CAAC,UAAA,WAAW;IAC5B,OAAA,YAAY,CAAC;QACT,KAAK,EAAE,WAAW;QAClB,kBAAkB,EAAE,aAAa;KACpC,CAAC;AAHF,CAGE,CACL,CAAC"}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
|
2
|
-
export declare function downloadAndUnzip(params: {
|
1
|
+
export declare function downloadAndUnzip({ url, destDirPath, pathOfDirToExtractInArchive, cacheDirPath }: {
|
3
2
|
isSilent: boolean;
|
4
3
|
url: string;
|
5
4
|
destDirPath: string;
|
6
5
|
pathOfDirToExtractInArchive?: string;
|
7
6
|
cacheDirPath: string;
|
8
|
-
}): void
|
7
|
+
}): Promise<void>;
|