@unchainedshop/plugins 4.8.11 → 4.8.13
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.
|
@@ -59,7 +59,7 @@ const gridfsHandler = async (req, res) => {
|
|
|
59
59
|
if (req.method === 'GET') {
|
|
60
60
|
const { s: signature, e: expiryTimestamp } = req.query;
|
|
61
61
|
const fileDocument = await modules.files.findFile({
|
|
62
|
-
url: `${GRIDFS_PUT_SERVER_PATH}/${directoryName}/${fileName}`,
|
|
62
|
+
url: `${GRIDFS_PUT_SERVER_PATH}/${directoryName}/${encodeURIComponent(fileName)}`,
|
|
63
63
|
});
|
|
64
64
|
if (fileDocument?.meta?.isPrivate) {
|
|
65
65
|
const expiry = parseInt(expiryTimestamp, 10);
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import {} from '@unchainedshop/core';
|
|
2
2
|
import { LocalSearch } from "./adapter.js";
|
|
3
|
-
import { isDocumentDBCompatModeEnabled } from '@unchainedshop/mongodb';
|
|
4
3
|
export const LocalSearchPlugin = {
|
|
5
4
|
key: 'shop.unchained.filters.local-search',
|
|
6
5
|
label: 'Local Search Filter Plugin',
|
|
7
6
|
version: '1.0.0',
|
|
8
7
|
adapters: [LocalSearch],
|
|
9
|
-
onRegister: () => {
|
|
10
|
-
if (isDocumentDBCompatModeEnabled()) {
|
|
11
|
-
throw new Error('Full-text search queries have been disabled due to DocumentDB compatibility mode (env UNCHAINED_DOCUMENTDB_COMPAT_MODE is trueish)');
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
8
|
};
|
|
15
9
|
export default LocalSearchPlugin;
|
|
16
10
|
export { LocalSearch } from "./adapter.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/plugins",
|
|
3
3
|
"description": "Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters",
|
|
4
|
-
"version": "4.8.
|
|
4
|
+
"version": "4.8.13",
|
|
5
5
|
"main": "lib/plugins-index.js",
|
|
6
6
|
"types": "lib/plugins-index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/unchainedshop/unchained#readme",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@unchainedshop/api": "^4.
|
|
41
|
-
"@unchainedshop/core-delivery": "^4.
|
|
42
|
-
"@unchainedshop/core-enrollments": "^4.
|
|
43
|
-
"@unchainedshop/core-orders": "^4.
|
|
44
|
-
"@unchainedshop/core-payment": "^4.
|
|
45
|
-
"@unchainedshop/core-products": "^4.
|
|
46
|
-
"@unchainedshop/core-warehousing": "^4.
|
|
47
|
-
"@unchainedshop/core-worker": "^4.
|
|
48
|
-
"@unchainedshop/events": "^4.
|
|
49
|
-
"@unchainedshop/file-upload": "^4.
|
|
50
|
-
"@unchainedshop/logger": "^4.
|
|
51
|
-
"@unchainedshop/utils": "^4.
|
|
40
|
+
"@unchainedshop/api": "^4.8.12",
|
|
41
|
+
"@unchainedshop/core-delivery": "^4.8.12",
|
|
42
|
+
"@unchainedshop/core-enrollments": "^4.8.12",
|
|
43
|
+
"@unchainedshop/core-orders": "^4.8.12",
|
|
44
|
+
"@unchainedshop/core-payment": "^4.8.12",
|
|
45
|
+
"@unchainedshop/core-products": "^4.8.12",
|
|
46
|
+
"@unchainedshop/core-warehousing": "^4.8.12",
|
|
47
|
+
"@unchainedshop/core-worker": "^4.8.12",
|
|
48
|
+
"@unchainedshop/events": "^4.8.12",
|
|
49
|
+
"@unchainedshop/file-upload": "^4.8.12",
|
|
50
|
+
"@unchainedshop/logger": "^4.8.12",
|
|
51
|
+
"@unchainedshop/utils": "^4.8.12"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@aws-sdk/client-eventbridge": ">= 3.714 < 4",
|