lucid-package 0.0.127 → 0.0.128
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/package.json +1 -1
- package/src/angularframeworkutils.js +1 -2
- package/src/cors.js +1 -2
- package/src/dataconnector.js +1 -2
- package/src/editorextension.js +6 -7
- package/src/filesystemutil.js +3 -4
- package/src/installationutil.js +3 -4
- package/src/interactibilityutil.js +4 -5
- package/src/package.js +6 -7
- package/src/packagemanifest.js +2 -2
- package/src/reactframeworkutils.js +1 -2
- package/src/shapelibrary.js +7 -8
- package/src/shellutil.d.ts +1 -2
- package/src/shellutil.js +1 -2
- package/src/ziputil.d.ts +0 -1
- package/src/ziputil.js +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createAngularEditorExtension =
|
|
3
|
+
exports.createAngularEditorExtension = createAngularEditorExtension;
|
|
4
4
|
const fs = require("fs/promises");
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const editorextension_1 = require("./editorextension");
|
|
@@ -26,4 +26,3 @@ async function createAngularEditorExtension(name, isInternal, skipSDKDependency)
|
|
|
26
26
|
console.log('Installing Angular dependencies');
|
|
27
27
|
(0, installationutil_1.installDependenciesIfNeeded)(isInternal, skipSDKDependency);
|
|
28
28
|
}
|
|
29
|
-
exports.createAngularEditorExtension = createAngularEditorExtension;
|
package/src/cors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.corsAllowLucid =
|
|
3
|
+
exports.corsAllowLucid = corsAllowLucid;
|
|
4
4
|
function corsAllowLucid(req, res, next) {
|
|
5
5
|
if (req.headers?.origin?.match(/.lucid(dev|staging|preprod|gov|govpreprod|).app$/) ||
|
|
6
6
|
req.headers?.origin?.match(/.luciddev.cloud$/)) {
|
|
@@ -10,4 +10,3 @@ function corsAllowLucid(req, res, next) {
|
|
|
10
10
|
}
|
|
11
11
|
next();
|
|
12
12
|
}
|
|
13
|
-
exports.corsAllowLucid = corsAllowLucid;
|
package/src/dataconnector.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createDataConnector =
|
|
3
|
+
exports.createDataConnector = createDataConnector;
|
|
4
4
|
const path = require("path");
|
|
5
5
|
const filesystemutil_1 = require("./filesystemutil");
|
|
6
6
|
const installationutil_1 = require("./installationutil");
|
|
@@ -26,4 +26,3 @@ async function createDataConnector(name, isInternal, skipSDKDependency) {
|
|
|
26
26
|
process.chdir(targetFolder);
|
|
27
27
|
(0, installationutil_1.installDependenciesIfNeeded)(isInternal, skipSDKDependency);
|
|
28
28
|
}
|
|
29
|
-
exports.createDataConnector = createDataConnector;
|
package/src/editorextension.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createEditorExtension = createEditorExtension;
|
|
4
|
+
exports.buildEditorExtension = buildEditorExtension;
|
|
5
|
+
exports.updateExtensionSDK = updateExtensionSDK;
|
|
6
|
+
exports.watchEditorExtension = watchEditorExtension;
|
|
7
|
+
exports.debugEditorExtension = debugEditorExtension;
|
|
8
|
+
exports.getAllExtensionNames = getAllExtensionNames;
|
|
4
9
|
const express = require("express");
|
|
5
10
|
const oldFs = require("fs");
|
|
6
11
|
const fs = require("fs/promises");
|
|
@@ -48,7 +53,6 @@ async function createEditorExtension(name, isInternal, skipSDKDependency, source
|
|
|
48
53
|
process.chdir(editorExtensionTargetFolder);
|
|
49
54
|
(0, installationutil_1.installDependenciesIfNeeded)(isInternal, skipSDKDependency, deps);
|
|
50
55
|
}
|
|
51
|
-
exports.createEditorExtension = createEditorExtension;
|
|
52
56
|
async function buildEditorExtension(name, isInternal, quiet = false, skipSdkDependency = false) {
|
|
53
57
|
const extensionCodePath = path.join('editorextensions', await getExtensionCodeDirectoryName(name));
|
|
54
58
|
process.chdir(extensionCodePath);
|
|
@@ -56,14 +60,12 @@ async function buildEditorExtension(name, isInternal, quiet = false, skipSdkDepe
|
|
|
56
60
|
const cli = new WebPackCLI();
|
|
57
61
|
await cli.run(['node', 'webpack', '--mode', 'production', ...(quiet ? ['--stats', 'errors-only'] : [])]);
|
|
58
62
|
}
|
|
59
|
-
exports.buildEditorExtension = buildEditorExtension;
|
|
60
63
|
async function updateExtensionSDK(name) {
|
|
61
64
|
const extensionCodePath = path.join('editorextensions', await getExtensionCodeDirectoryName(name));
|
|
62
65
|
process.chdir(extensionCodePath);
|
|
63
66
|
console.log((0, theme_1.success)('Installing latest SDK in extension ' + name));
|
|
64
67
|
console.log((0, shellutil_1.execSyncLoggingOutputOnError)('npm install lucid-extension-sdk@latest').toString());
|
|
65
68
|
}
|
|
66
|
-
exports.updateExtensionSDK = updateExtensionSDK;
|
|
67
69
|
/**
|
|
68
70
|
* Uses webpack to watch for changes in the editor extension
|
|
69
71
|
* @param name The editor extension name
|
|
@@ -107,7 +109,6 @@ async function watchEditorExtension(name, isInternal, quiet = false, ignoreNodeM
|
|
|
107
109
|
process.chdir(originalDirectory);
|
|
108
110
|
return { name, compiler };
|
|
109
111
|
}
|
|
110
|
-
exports.watchEditorExtension = watchEditorExtension;
|
|
111
112
|
/**
|
|
112
113
|
* Runs the editor extensions and shape libraries in debug mode, possibly including watching code for changes.
|
|
113
114
|
* @param extensionNames The names of the editor extensions
|
|
@@ -230,7 +231,6 @@ async function debugEditorExtension(extensionNames, isInternal, quiet = false, p
|
|
|
230
231
|
}
|
|
231
232
|
app.use('/resources', express.static('public'));
|
|
232
233
|
}
|
|
233
|
-
exports.debugEditorExtension = debugEditorExtension;
|
|
234
234
|
function listen(app, portToTry, pickAnyPort) {
|
|
235
235
|
const server = app
|
|
236
236
|
.listen(portToTry, 'localhost', () => {
|
|
@@ -350,4 +350,3 @@ async function getAllExtensionNames() {
|
|
|
350
350
|
return [];
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
exports.getAllExtensionNames = getAllExtensionNames;
|
package/src/filesystemutil.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.copyFileSync = copyFileSync;
|
|
4
|
+
exports.copyFolderRecursiveSync = copyFolderRecursiveSync;
|
|
5
|
+
exports.getNormalizedZipPath = getNormalizedZipPath;
|
|
4
6
|
const fs = require("fs");
|
|
5
7
|
const path = require("path");
|
|
6
8
|
function copyFileSync(source, target) {
|
|
@@ -13,7 +15,6 @@ function copyFileSync(source, target) {
|
|
|
13
15
|
}
|
|
14
16
|
fs.writeFileSync(targetFile, fs.readFileSync(source));
|
|
15
17
|
}
|
|
16
|
-
exports.copyFileSync = copyFileSync;
|
|
17
18
|
function copyFolderRecursiveSync(source, targetFolder) {
|
|
18
19
|
var files = [];
|
|
19
20
|
// Check if folder needs to be created or integrated
|
|
@@ -34,7 +35,6 @@ function copyFolderRecursiveSync(source, targetFolder) {
|
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
exports.copyFolderRecursiveSync = copyFolderRecursiveSync;
|
|
38
38
|
/**
|
|
39
39
|
* On Windows machines '\' is used as the file separator. To ensure that we correctly zip files on Windows
|
|
40
40
|
* machines we replace '\' with '/'.
|
|
@@ -42,4 +42,3 @@ exports.copyFolderRecursiveSync = copyFolderRecursiveSync;
|
|
|
42
42
|
function getNormalizedZipPath(rawPath) {
|
|
43
43
|
return path.sep === '\\' ? rawPath.replace(/\\/g, '/') : rawPath;
|
|
44
44
|
}
|
|
45
|
-
exports.getNormalizedZipPath = getNormalizedZipPath;
|
package/src/installationutil.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.installDependenciesIfNeeded = installDependenciesIfNeeded;
|
|
4
|
+
exports.installReactProject = installReactProject;
|
|
5
|
+
exports.installAngularProject = installAngularProject;
|
|
4
6
|
const oldFs = require("fs");
|
|
5
7
|
const path = require("path");
|
|
6
8
|
const shellutil_1 = require("./shellutil");
|
|
@@ -24,12 +26,9 @@ function installDependenciesIfNeeded(isInternal, skipSDKDependency = false, addi
|
|
|
24
26
|
console.log((0, shellutil_1.execSyncLoggingOutputOnError)(`npm install --silent ${additionalDependencies.reduce((acc, current) => `${acc} ${current}`, '')}`).toString());
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
|
-
exports.installDependenciesIfNeeded = installDependenciesIfNeeded;
|
|
28
29
|
function installReactProject(reactProjectName, typescript) {
|
|
29
30
|
console.log((0, shellutil_1.execSyncLoggingOutputOnError)(`npm install create-react-app && npx create-react-app ${reactProjectName} ${typescript ? '--template typescript' : ''}`).toString());
|
|
30
31
|
}
|
|
31
|
-
exports.installReactProject = installReactProject;
|
|
32
32
|
function installAngularProject(angularProjectName) {
|
|
33
33
|
console.log((0, shellutil_1.execSyncLoggingOutputOnError)(`npm install @angular/cli && npx ng new ${angularProjectName}`).toString());
|
|
34
34
|
}
|
|
35
|
-
exports.installAngularProject = installAngularProject;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.selectPrompt = selectPrompt;
|
|
4
|
+
exports.inputPrompt = inputPrompt;
|
|
5
|
+
exports.confirmPrompt = confirmPrompt;
|
|
6
|
+
exports.multiSelect = multiSelect;
|
|
4
7
|
const checkbox_1 = require("@inquirer/checkbox");
|
|
5
8
|
const confirm_1 = require("@inquirer/confirm");
|
|
6
9
|
const input_1 = require("@inquirer/input");
|
|
@@ -11,19 +14,15 @@ async function selectPrompt(message, options) {
|
|
|
11
14
|
choices: options.map((option, index) => ({ name: option, value: index })),
|
|
12
15
|
});
|
|
13
16
|
}
|
|
14
|
-
exports.selectPrompt = selectPrompt;
|
|
15
17
|
async function inputPrompt(message) {
|
|
16
18
|
return await (0, input_1.default)({ message: message });
|
|
17
19
|
}
|
|
18
|
-
exports.inputPrompt = inputPrompt;
|
|
19
20
|
async function confirmPrompt(message) {
|
|
20
21
|
return await (0, confirm_1.default)({ message: message });
|
|
21
22
|
}
|
|
22
|
-
exports.confirmPrompt = confirmPrompt;
|
|
23
23
|
async function multiSelect(message, options) {
|
|
24
24
|
return await (0, checkbox_1.default)({
|
|
25
25
|
message: message,
|
|
26
26
|
choices: options.map((option, index) => ({ name: option, value: index })),
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
exports.multiSelect = multiSelect;
|
package/src/package.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createEmptyPackage = createEmptyPackage;
|
|
4
|
+
exports.currentlyInPackage = currentlyInPackage;
|
|
5
|
+
exports.readJson = readJson;
|
|
6
|
+
exports.modifyManifest = modifyManifest;
|
|
7
|
+
exports.updateAllExtensionSDK = updateAllExtensionSDK;
|
|
8
|
+
exports.writePackage = writePackage;
|
|
4
9
|
const fsOld = require("fs");
|
|
5
10
|
const fs = require("fs/promises");
|
|
6
11
|
const JSZip = require("jszip");
|
|
@@ -18,16 +23,13 @@ async function createEmptyPackage(root) {
|
|
|
18
23
|
const source = path.join(__dirname, '..', 'templates', 'package');
|
|
19
24
|
(0, filesystemutil_1.copyFolderRecursiveSync)(source, root);
|
|
20
25
|
}
|
|
21
|
-
exports.createEmptyPackage = createEmptyPackage;
|
|
22
26
|
function currentlyInPackage() {
|
|
23
27
|
return ((fsOld.existsSync('editorextensions') || fsOld.existsSync('shapelibraries')) &&
|
|
24
28
|
fsOld.existsSync('manifest.json'));
|
|
25
29
|
}
|
|
26
|
-
exports.currentlyInPackage = currentlyInPackage;
|
|
27
30
|
async function readJson(path) {
|
|
28
31
|
return JSON.parse(await fs.readFile(path, 'utf8'));
|
|
29
32
|
}
|
|
30
|
-
exports.readJson = readJson;
|
|
31
33
|
const allScopes = new Set([
|
|
32
34
|
'DOWNLOAD',
|
|
33
35
|
'NETWORK',
|
|
@@ -45,7 +47,6 @@ async function modifyManifest(callback, manifestOverrideEnv) {
|
|
|
45
47
|
await callback(manifest);
|
|
46
48
|
await fs.writeFile('manifest.json', JSON.stringify(manifest, undefined, 2));
|
|
47
49
|
}
|
|
48
|
-
exports.modifyManifest = modifyManifest;
|
|
49
50
|
async function updateAllExtensionSDK() {
|
|
50
51
|
const manifest = await (0, packagemanifest_1.readManifest)();
|
|
51
52
|
for (const extension of manifest['extensions'] || []) {
|
|
@@ -55,7 +56,6 @@ async function updateAllExtensionSDK() {
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
exports.updateAllExtensionSDK = updateAllExtensionSDK;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @param manifestOverrideEnv The environment definine what manifest to read from. `manifest.env.json`
|
|
@@ -157,4 +157,3 @@ async function writePackage(quiet = false, manifestOverrideEnv, skipSdkDependenc
|
|
|
157
157
|
await fs.writeFile(fileName, zipBytes);
|
|
158
158
|
}, manifestOverrideEnv);
|
|
159
159
|
}
|
|
160
|
-
exports.writePackage = writePackage;
|
package/src/packagemanifest.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SettingType = void 0;
|
|
4
|
+
exports.readManifest = readManifest;
|
|
4
5
|
const fs = require("fs");
|
|
5
6
|
const fsPromises = require("fs/promises");
|
|
6
7
|
const lucid_extension_sdk_1 = require("lucid-extension-sdk");
|
|
@@ -258,4 +259,3 @@ async function readManifest(manifestOverrideEnv, basePath = '.') {
|
|
|
258
259
|
validateManifestOrThrow(raw);
|
|
259
260
|
return raw;
|
|
260
261
|
}
|
|
261
|
-
exports.readManifest = readManifest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createReactEditorExtension =
|
|
3
|
+
exports.createReactEditorExtension = createReactEditorExtension;
|
|
4
4
|
const fs = require("fs/promises");
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const editorextension_1 = require("./editorextension");
|
|
@@ -58,7 +58,6 @@ async function createReactEditorExtension(name, flavor, isInternal, skipSDKDepen
|
|
|
58
58
|
console.log('Installing React dependencies');
|
|
59
59
|
(0, installationutil_1.installDependenciesIfNeeded)(isInternal, skipSDKDependency);
|
|
60
60
|
}
|
|
61
|
-
exports.createReactEditorExtension = createReactEditorExtension;
|
|
62
61
|
async function copyFilesTo(sourceFolder, destFolder, endingWith) {
|
|
63
62
|
(await fs.readdir(sourceFolder))
|
|
64
63
|
.filter((filename) => endingWith.some((ext) => filename.endsWith(ext)))
|
package/src/shapelibrary.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createEmptyShapeLibrary = createEmptyShapeLibrary;
|
|
4
|
+
exports.createImageShapeLibrary = createImageShapeLibrary;
|
|
5
|
+
exports.getShapeListJson = getShapeListJson;
|
|
6
|
+
exports.buildShapeLibrary = buildShapeLibrary;
|
|
7
|
+
exports.debugShapeLibraries = debugShapeLibraries;
|
|
4
8
|
const express = require("express");
|
|
5
9
|
const fsSync = require("fs");
|
|
6
10
|
const fs = require("fs/promises");
|
|
@@ -32,7 +36,6 @@ async function createEmptyShapeLibrary(name) {
|
|
|
32
36
|
});
|
|
33
37
|
});
|
|
34
38
|
}
|
|
35
|
-
exports.createEmptyShapeLibrary = createEmptyShapeLibrary;
|
|
36
39
|
async function createImageShapeLibrary(name, imagePath, config) {
|
|
37
40
|
console.log((0, theme_1.success)('Creating image shape library in ' + path.join('shapelibraries', name)));
|
|
38
41
|
if (!fsSync.lstatSync(imagePath).isDirectory()) {
|
|
@@ -124,7 +127,6 @@ async function createImageShapeLibrary(name, imagePath, config) {
|
|
|
124
127
|
}
|
|
125
128
|
});
|
|
126
129
|
}
|
|
127
|
-
exports.createImageShapeLibrary = createImageShapeLibrary;
|
|
128
130
|
const defaultNameMap = new Map([
|
|
129
131
|
['rounding', 'Rounding'],
|
|
130
132
|
['fillColor', 'FillColor'],
|
|
@@ -172,7 +174,7 @@ async function getShapeListJson(nameInPackageManifest, packagePath, port = 9901)
|
|
|
172
174
|
'Stencil': {
|
|
173
175
|
'lcszVersion': '1',
|
|
174
176
|
'name': shapeName,
|
|
175
|
-
'i18n': {},
|
|
177
|
+
'i18n': {}, //TODO?
|
|
176
178
|
'locked': shapeData['locked'],
|
|
177
179
|
'sourcePackage': {
|
|
178
180
|
'packageId': packageManifest['id'] ?? '__local__',
|
|
@@ -219,7 +221,7 @@ async function getShapeListJson(nameInPackageManifest, packagePath, port = 9901)
|
|
|
219
221
|
}
|
|
220
222
|
if (shapeData['locked']?.includes('aspectRatio') && !properties['AspectRatio']) {
|
|
221
223
|
properties['AspectRatio'] =
|
|
222
|
-
shapeManifest['defaults']['width'] / shapeManifest['defaults']['height']
|
|
224
|
+
shapeManifest['defaults']['width'] / shapeManifest['defaults']['height'];
|
|
223
225
|
}
|
|
224
226
|
return {
|
|
225
227
|
'class': 'CustomBlock',
|
|
@@ -232,7 +234,6 @@ async function getShapeListJson(nameInPackageManifest, packagePath, port = 9901)
|
|
|
232
234
|
};
|
|
233
235
|
})));
|
|
234
236
|
}
|
|
235
|
-
exports.getShapeListJson = getShapeListJson;
|
|
236
237
|
async function buildShapeLibrary(name, quiet) {
|
|
237
238
|
const zip = new JSZip();
|
|
238
239
|
const addToZip = async (source) => {
|
|
@@ -259,7 +260,6 @@ async function buildShapeLibrary(name, quiet) {
|
|
|
259
260
|
}
|
|
260
261
|
await fs.writeFile(`shapelibraries/${name}.lcsz`, zipBytes);
|
|
261
262
|
}
|
|
262
|
-
exports.buildShapeLibrary = buildShapeLibrary;
|
|
263
263
|
async function debugShapeLibraries(packagePath = '.', pickAnyPort = false) {
|
|
264
264
|
let port = 9901;
|
|
265
265
|
const app = express();
|
|
@@ -349,4 +349,3 @@ async function debugShapeLibraries(packagePath = '.', pickAnyPort = false) {
|
|
|
349
349
|
};
|
|
350
350
|
listen();
|
|
351
351
|
}
|
|
352
|
-
exports.debugShapeLibraries = debugShapeLibraries;
|
package/src/shellutil.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function execSyncLoggingOutputOnError(cmd: string, quiet?: boolean): Buffer;
|
|
1
|
+
export declare function execSyncLoggingOutputOnError(cmd: string, quiet?: boolean): Buffer<ArrayBufferLike>;
|
package/src/shellutil.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execSyncLoggingOutputOnError =
|
|
3
|
+
exports.execSyncLoggingOutputOnError = execSyncLoggingOutputOnError;
|
|
4
4
|
const child_process = require("child_process");
|
|
5
5
|
const theme_1 = require("./theme");
|
|
6
6
|
function execSyncLoggingOutputOnError(cmd, quiet = false) {
|
|
@@ -13,4 +13,3 @@ function execSyncLoggingOutputOnError(cmd, quiet = false) {
|
|
|
13
13
|
throw e;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
exports.execSyncLoggingOutputOnError = execSyncLoggingOutputOnError;
|
package/src/ziputil.d.ts
CHANGED
package/src/ziputil.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.jsZipFileDeterministic =
|
|
3
|
+
exports.jsZipFileDeterministic = jsZipFileDeterministic;
|
|
4
4
|
const filesystemutil_1 = require("./filesystemutil");
|
|
5
5
|
// Use a fixed date for deterministic files and directories inside the zip
|
|
6
6
|
const DETERMINISTIC_DATE = new Date('2000-01-01T00:00:00Z');
|
|
@@ -38,4 +38,3 @@ function jsZipFileDeterministic(zip, filePath, data, options) {
|
|
|
38
38
|
;
|
|
39
39
|
return zip.file(normalizedPath, data, { ...options, date: fileDate });
|
|
40
40
|
}
|
|
41
|
-
exports.jsZipFileDeterministic = jsZipFileDeterministic;
|