@webiny/db-dynamodb 5.43.2 → 5.43.3-beta.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/db-dynamodb",
|
|
3
|
-
"version": "5.43.
|
|
3
|
+
"version": "5.43.3-beta.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"author": "Webiny Ltd",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@webiny/api": "5.43.
|
|
14
|
-
"@webiny/aws-sdk": "5.43.
|
|
15
|
-
"@webiny/db": "5.43.
|
|
16
|
-
"@webiny/error": "5.43.
|
|
17
|
-
"@webiny/plugins": "5.43.
|
|
18
|
-
"@webiny/utils": "5.43.
|
|
13
|
+
"@webiny/api": "5.43.3-beta.1",
|
|
14
|
+
"@webiny/aws-sdk": "5.43.3-beta.1",
|
|
15
|
+
"@webiny/db": "5.43.3-beta.1",
|
|
16
|
+
"@webiny/error": "5.43.3-beta.1",
|
|
17
|
+
"@webiny/plugins": "5.43.3-beta.1",
|
|
18
|
+
"@webiny/utils": "5.43.3-beta.1",
|
|
19
19
|
"date-fns": "2.29.3",
|
|
20
20
|
"dot-prop": "6.0.1",
|
|
21
21
|
"dynamodb-toolbox": "0.9.2",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/is-number": "7.0.5",
|
|
27
|
-
"@webiny/project-utils": "5.43.
|
|
27
|
+
"@webiny/project-utils": "5.43.3-beta.1",
|
|
28
28
|
"jest": "29.7.0",
|
|
29
29
|
"jest-dynalite": "3.6.1",
|
|
30
30
|
"rimraf": "6.0.1",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"build": "node ../cli/bin.js run build",
|
|
39
39
|
"watch": "node ../cli/bin.js run watch"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "c6d623eb1b715f3731434a8d3107b8fd8a1d6792"
|
|
42
42
|
}
|
|
@@ -10,7 +10,7 @@ const createValues = initialValue => {
|
|
|
10
10
|
return values.filter(Boolean);
|
|
11
11
|
};
|
|
12
12
|
const createCompareValues = value => {
|
|
13
|
-
return value.replace(/\s+/g, " ").trim().replace(/\?/g, `\\?`).replace(/\//g, `\\/`).replace(/:/g,
|
|
13
|
+
return value.replace(/\s+/g, " ").trim().replace(/\?/g, `\\?`).replace(/\//g, `\\/`).replace(/:/g, ` `).replace(/\-/g, `\\-`).split(" ").filter(val => {
|
|
14
14
|
return val.length > 0;
|
|
15
15
|
});
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_ValueFilterPlugin","require","createValues","initialValue","values","Array","isArray","filter","Boolean","createCompareValues","value","replace","trim","split","val","length","plugin","ValueFilterPlugin","operation","matches","compareValue","initialCompareValue","undefined","compareValues","some","target","every","match","RegExp","name","_default","exports","default"],"sources":["contains.ts"],"sourcesContent":["import { ValueFilterPlugin } from \"../definitions/ValueFilterPlugin\";\n\nconst createValues = (initialValue: string | string[]) => {\n const values = Array.isArray(initialValue) ? initialValue : [initialValue];\n\n return values.filter(Boolean);\n};\n\nconst createCompareValues = (value: string) => {\n return value\n .replace(/\\s+/g, \" \")\n .trim()\n .replace(/\\?/g, `\\\\?`)\n .replace(/\\//g, `\\\\/`)\n .replace(/:/g,
|
|
1
|
+
{"version":3,"names":["_ValueFilterPlugin","require","createValues","initialValue","values","Array","isArray","filter","Boolean","createCompareValues","value","replace","trim","split","val","length","plugin","ValueFilterPlugin","operation","matches","compareValue","initialCompareValue","undefined","compareValues","some","target","every","match","RegExp","name","_default","exports","default"],"sources":["contains.ts"],"sourcesContent":["import { ValueFilterPlugin } from \"../definitions/ValueFilterPlugin\";\n\nconst createValues = (initialValue: string | string[]) => {\n const values = Array.isArray(initialValue) ? initialValue : [initialValue];\n\n return values.filter(Boolean);\n};\n\nconst createCompareValues = (value: string) => {\n return value\n .replace(/\\s+/g, \" \")\n .trim()\n .replace(/\\?/g, `\\\\?`)\n .replace(/\\//g, `\\\\/`)\n .replace(/:/g, ` `)\n .replace(/\\-/g, `\\\\-`)\n .split(\" \")\n .filter(val => {\n return val.length > 0;\n });\n};\n\nconst plugin = new ValueFilterPlugin({\n operation: \"contains\",\n matches: ({ value: initialValue, compareValue: initialCompareValue }) => {\n if (!initialValue || (Array.isArray(initialValue) && initialValue.length === 0)) {\n return false;\n } else if (initialCompareValue === undefined || initialCompareValue === null) {\n return true;\n }\n const values = createValues(initialValue);\n const compareValues = createCompareValues(initialCompareValue);\n return values.some(target => {\n return compareValues.every(compareValue => {\n return target.match(new RegExp(compareValue, \"gi\")) !== null;\n });\n });\n }\n});\n\nplugin.name = \"dynamodb.value.filter.contains\";\n\nexport default plugin;\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAEA,MAAMC,YAAY,GAAIC,YAA+B,IAAK;EACtD,MAAMC,MAAM,GAAGC,KAAK,CAACC,OAAO,CAACH,YAAY,CAAC,GAAGA,YAAY,GAAG,CAACA,YAAY,CAAC;EAE1E,OAAOC,MAAM,CAACG,MAAM,CAACC,OAAO,CAAC;AACjC,CAAC;AAED,MAAMC,mBAAmB,GAAIC,KAAa,IAAK;EAC3C,OAAOA,KAAK,CACPC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CACpBC,IAAI,CAAC,CAAC,CACND,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CACrBA,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CACrBA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAClBA,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CACrBE,KAAK,CAAC,GAAG,CAAC,CACVN,MAAM,CAACO,GAAG,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