@webiny/api-sync-to-opensearch 6.6.0-alpha.11 → 6.6.0-alpha.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features/Operations/Operations.js","sources":["../../../src/features/Operations/Operations.ts"],"sourcesContent":["import type { GenericRecord } from \"@webiny/api/types.js\";\nimport { Operations as OperationsAbstraction } from \"./abstractions/Operations.js\";\n\nexport enum OperationType {\n INSERT = \"INSERT\",\n MODIFY = \"MODIFY\",\n REMOVE = \"REMOVE\"\n}\n\nexport class Operations implements OperationsAbstraction.Interface {\n private _items: GenericRecord[] = [];\n private _count = 0;\n\n public get items(): GenericRecord[] {\n return this._items;\n }\n\n public get total(): number {\n return this.items.length;\n }\n\n public get count(): number {\n return this._count;\n }\n\n public clear() {\n this._items = [];\n this._count = 0;\n }\n\n public insert(params: OperationsAbstraction.InsertParams): void {\n this._count++;\n this.items.push(\n {\n index: {\n _id: params.id,\n _index: params.index\n }\n },\n params.data\n );\n }\n\n public modify(params: OperationsAbstraction.ModifyParams): void {\n this.insert(params);\n }\n\n public delete(params: OperationsAbstraction.DeleteParams): void {\n this._count++;\n this.items.push({\n delete: {\n _id: params.id,\n _index: params.index\n }\n });\n }\n}\n"],"names":["OperationType","Operations","params"],"mappings":"AAGO,IAAKA,2BAAaA,WAAAA,GAAAA,
|
|
1
|
+
{"version":3,"file":"features/Operations/Operations.js","sources":["../../../src/features/Operations/Operations.ts"],"sourcesContent":["import type { GenericRecord } from \"@webiny/api/types.js\";\nimport { Operations as OperationsAbstraction } from \"./abstractions/Operations.js\";\n\nexport enum OperationType {\n INSERT = \"INSERT\",\n MODIFY = \"MODIFY\",\n REMOVE = \"REMOVE\"\n}\n\nexport class Operations implements OperationsAbstraction.Interface {\n private _items: GenericRecord[] = [];\n private _count = 0;\n\n public get items(): GenericRecord[] {\n return this._items;\n }\n\n public get total(): number {\n return this.items.length;\n }\n\n public get count(): number {\n return this._count;\n }\n\n public clear() {\n this._items = [];\n this._count = 0;\n }\n\n public insert(params: OperationsAbstraction.InsertParams): void {\n this._count++;\n this.items.push(\n {\n index: {\n _id: params.id,\n _index: params.index\n }\n },\n params.data\n );\n }\n\n public modify(params: OperationsAbstraction.ModifyParams): void {\n this.insert(params);\n }\n\n public delete(params: OperationsAbstraction.DeleteParams): void {\n this._count++;\n this.items.push({\n delete: {\n _id: params.id,\n _index: params.index\n }\n });\n }\n}\n"],"names":["OperationType","Operations","params"],"mappings":"AAGO,IAAKA,2BAAaA,WAAAA,GAAAA,SAAAA,aAAAA;;;;;;AAMlB,MAAMC;IAIT,IAAW,QAAyB;QAChC,OAAO,IAAI,CAAC,MAAM;IACtB;IAEA,IAAW,QAAgB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM;IAC5B;IAEA,IAAW,QAAgB;QACvB,OAAO,IAAI,CAAC,MAAM;IACtB;IAEO,QAAQ;QACX,IAAI,CAAC,MAAM,GAAG,EAAE;QAChB,IAAI,CAAC,MAAM,GAAG;IAClB;IAEO,OAAOC,MAA0C,EAAQ;QAC5D,IAAI,CAAC,MAAM;QACX,IAAI,CAAC,KAAK,CAAC,IAAI,CACX;YACI,OAAO;gBACH,KAAKA,OAAO,EAAE;gBACd,QAAQA,OAAO,KAAK;YACxB;QACJ,GACAA,OAAO,IAAI;IAEnB;IAEO,OAAOA,MAA0C,EAAQ;QAC5D,IAAI,CAAC,MAAM,CAACA;IAChB;IAEO,OAAOA,MAA0C,EAAQ;QAC5D,IAAI,CAAC,MAAM;QACX,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YACZ,QAAQ;gBACJ,KAAKA,OAAO,EAAE;gBACd,QAAQA,OAAO,KAAK;YACxB;QACJ;IACJ;;aA7CQ,MAAM,GAAoB,EAAE;aAC5B,MAAM,GAAG;;AA6CrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-sync-to-opensearch",
|
|
3
|
-
"version": "6.6.0-alpha.
|
|
3
|
+
"version": "6.6.0-alpha.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"author": "Webiny Ltd.",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@webiny/api": "6.6.0-alpha.
|
|
19
|
-
"@webiny/api-opensearch": "6.6.0-alpha.
|
|
20
|
-
"@webiny/error": "6.6.0-alpha.
|
|
21
|
-
"@webiny/feature": "6.6.0-alpha.
|
|
18
|
+
"@webiny/api": "6.6.0-alpha.13",
|
|
19
|
+
"@webiny/api-opensearch": "6.6.0-alpha.13",
|
|
20
|
+
"@webiny/error": "6.6.0-alpha.13",
|
|
21
|
+
"@webiny/feature": "6.6.0-alpha.13",
|
|
22
22
|
"@webiny/stdlib": "0.0.21",
|
|
23
|
-
"@webiny/utils": "6.6.0-alpha.
|
|
24
|
-
"p-retry": "
|
|
23
|
+
"@webiny/utils": "6.6.0-alpha.13",
|
|
24
|
+
"p-retry": "9.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@webiny/build-tools": "6.6.0-alpha.
|
|
28
|
-
"@webiny/plugins": "6.6.0-alpha.
|
|
27
|
+
"@webiny/build-tools": "6.6.0-alpha.13",
|
|
28
|
+
"@webiny/plugins": "6.6.0-alpha.13",
|
|
29
29
|
"typescript": "7.0.2"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|