@paroicms/server-image-cache-engine 1.15.1 → 1.16.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.
|
@@ -13,16 +13,16 @@ function setupImageProcessor({ cpuCoresPerFile, allowConcurrency, appLog, }) {
|
|
|
13
13
|
if (cpuCoresPerFile !== undefined) {
|
|
14
14
|
// https://sharp.pixelplumbing.com/api-utility#concurrency
|
|
15
15
|
sharp_1.default.concurrency(cpuCoresPerFile);
|
|
16
|
-
appLog.
|
|
16
|
+
appLog.debug(`Set sharp concurrency (cpu cores per file) to '${cpuCoresPerFile}' (was ${oldValue})`);
|
|
17
17
|
}
|
|
18
|
-
else {
|
|
19
|
-
appLog.
|
|
18
|
+
else if (oldValue > 1) {
|
|
19
|
+
appLog.debug(`Use the sharp concurrency (cpu cores per file) default value: ${oldValue}`);
|
|
20
20
|
}
|
|
21
21
|
if (!allowConcurrency) {
|
|
22
22
|
exports.sharpQueue = (0, async_lib_1.createAsyncQueue)({
|
|
23
23
|
delayMs: 50,
|
|
24
24
|
});
|
|
25
|
-
appLog.
|
|
25
|
+
appLog.debug(`Mode "one image processing at a time" is enabled`);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
function execImmediately(task) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-processor-setup.js","sourceRoot":"","sources":["../src/image-processor-setup.ts"],"names":[],"mappings":";;;;;;AAYA,kDAqBC;AAjCD,gDAAoD;AAEpD,kDAA0B;AAEf,QAAA,UAAU,GAA6D,eAAe,CAAC;AAQlG,SAAgB,mBAAmB,CAAC,EAClC,eAAe,EACf,gBAAgB,EAChB,MAAM,GACqB;IAC3B,MAAM,QAAQ,GAAG,eAAK,CAAC,WAAW,EAAE,CAAC;IACrC,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;QAClC,0DAA0D;QAC1D,eAAK,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACnC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"image-processor-setup.js","sourceRoot":"","sources":["../src/image-processor-setup.ts"],"names":[],"mappings":";;;;;;AAYA,kDAqBC;AAjCD,gDAAoD;AAEpD,kDAA0B;AAEf,QAAA,UAAU,GAA6D,eAAe,CAAC;AAQlG,SAAgB,mBAAmB,CAAC,EAClC,eAAe,EACf,gBAAgB,EAChB,MAAM,GACqB;IAC3B,MAAM,QAAQ,GAAG,eAAK,CAAC,WAAW,EAAE,CAAC;IACrC,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;QAClC,0DAA0D;QAC1D,eAAK,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACnC,MAAM,CAAC,KAAK,CACV,kDAAkD,eAAe,UAAU,QAAQ,GAAG,CACvF,CAAC;IACJ,CAAC;SAAM,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;QACxB,MAAM,CAAC,KAAK,CAAC,iEAAiE,QAAQ,EAAE,CAAC,CAAC;IAC5F,CAAC;IACD,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,kBAAU,GAAG,IAAA,4BAAgB,EAAC;YAC5B,OAAO,EAAE,EAAE;SACZ,CAAC,CAAC;QACH,MAAM,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACnE,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CAA+B,IAAO;IAC5D,OAAO,IAAI,EAAmB,CAAC;AACjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/server-image-cache-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "The image variant engine that we use at Paroi.",
|
|
5
5
|
"author": "Paroi Team",
|
|
6
6
|
"main": "dist/api.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@paroi/async-lib": "~0.3.1",
|
|
37
37
|
"@paroi/data-formatters-lib": "~0.4.0",
|
|
38
|
-
"@paroicms/internal-anywhere-lib": "1.
|
|
39
|
-
"@paroicms/public-anywhere-lib": "0.
|
|
40
|
-
"@paroicms/public-server-lib": "0.
|
|
41
|
-
"@paroicms/internal-server-lib": "1.
|
|
38
|
+
"@paroicms/internal-anywhere-lib": "1.19.0",
|
|
39
|
+
"@paroicms/public-anywhere-lib": "0.11.0",
|
|
40
|
+
"@paroicms/public-server-lib": "0.19.0",
|
|
41
|
+
"@paroicms/internal-server-lib": "1.9.0",
|
|
42
42
|
"ico-endec": "~0.1.6",
|
|
43
43
|
"sharp": "~0.33.4"
|
|
44
44
|
},
|