@cocreate/lazy-loader 1.15.1 → 1.15.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.15.2](https://github.com/CoCreate-app/CoCreate-lazy-loader/compare/v1.15.1...v1.15.2) (2024-01-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update to support new query system ([0891371](https://github.com/CoCreate-app/CoCreate-lazy-loader/commit/08913711bcbc5d3a86d3d385b916de8da3ad7c45))
7
+
1
8
  ## [1.15.1](https://github.com/CoCreate-app/CoCreate-lazy-loader/compare/v1.15.0...v1.15.1) (2024-01-09)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/lazy-loader",
3
- "version": "1.15.1",
3
+ "version": "1.15.2",
4
4
  "description": "A simple lazy-loader component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "lazy-loader",
package/src/server.js CHANGED
@@ -207,10 +207,10 @@ async function fetchScriptFromDatabaseAndSave(name, moduleConfig) {
207
207
  host: moduleConfig.object.hostname,
208
208
  array: moduleConfig.array,
209
209
  $filter: {
210
- query: [
211
- { key: "host", value: [moduleConfig.object.hostname, '*'], operator: "$in" },
212
- { key: "pathname", value: moduleConfig.object.pathname, operator: "$eq" }
213
- ],
210
+ query: {
211
+ host: { $in: [moduleConfig.object.hostname, '*'] },
212
+ pathname: moduleConfig.object.pathname
213
+ },
214
214
  limit: 1
215
215
  },
216
216
  organization_id