@lensjs/express 1.0.3 → 1.0.5

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/dist/index.cjs CHANGED
@@ -48,10 +48,10 @@ const lens = async (config) => {
48
48
  ...config,
49
49
  ...defaultConfig
50
50
  };
51
- if (config.requestWatcherEnabled) {
51
+ if (mergedConfig.requestWatcherEnabled) {
52
52
  watchers.push(new import_core.RequestWatcher());
53
53
  }
54
- if (config.queryWatcher?.enabled) {
54
+ if (mergedConfig.queryWatcher?.enabled) {
55
55
  watchers.push(new import_core.QueryWatcher());
56
56
  }
57
57
  const { ignoredPaths, normalizedPath } = import_core.lensUtils.prepareIgnoredPaths(
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@ const lens = async (config) => {
20
20
  ...config,
21
21
  ...defaultConfig
22
22
  };
23
- if (config.requestWatcherEnabled) {
23
+ if (mergedConfig.requestWatcherEnabled) {
24
24
  watchers.push(new RequestWatcher());
25
25
  }
26
- if (config.queryWatcher?.enabled) {
26
+ if (mergedConfig.queryWatcher?.enabled) {
27
27
  watchers.push(new QueryWatcher());
28
28
  }
29
29
  const { ignoredPaths, normalizedPath } = lensUtils.prepareIgnoredPaths(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensjs/express",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Express adapter for Lens",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,9 +21,13 @@
21
21
  "build": "tsup --clean"
22
22
  },
23
23
  "dependencies": {
24
+ "@lensjs/core": "1.0.4",
24
25
  "express": "^5.1.0",
25
26
  "utf-8-validate": "^6.0.5"
26
27
  },
28
+ "peerDependencies": {
29
+ "@lensjs/core": "^1.0.4"
30
+ },
27
31
  "trustedDependencies": [
28
32
  "utf-8-validate"
29
33
  ],