@faasjs/load 0.0.2-beta.320 → 0.0.2-beta.321

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.js CHANGED
@@ -187,7 +187,8 @@ function findModule(list, key, options = { excludes: [] }) {
187
187
  Object.keys(pkg.peerDependenciesMeta).forEach((key2) => {
188
188
  if (pkg.peerDependenciesMeta[key2].optional) {
189
189
  const index = deps.indexOf(key2);
190
- deps.splice(index, 1);
190
+ if (index >= 0)
191
+ deps.splice(index, 1);
191
192
  }
192
193
  });
193
194
  }
package/dist/index.mjs CHANGED
@@ -168,7 +168,8 @@ function findModule(list, key, options = { excludes: [] }) {
168
168
  Object.keys(pkg.peerDependenciesMeta).forEach((key2) => {
169
169
  if (pkg.peerDependenciesMeta[key2].optional) {
170
170
  const index = deps.indexOf(key2);
171
- deps.splice(index, 1);
171
+ if (index >= 0)
172
+ deps.splice(index, 1);
172
173
  }
173
174
  });
174
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/load",
3
- "version": "0.0.2-beta.320",
3
+ "version": "0.0.2-beta.321",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "dist"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@faasjs/deep_merge": "^0.0.2-beta.320",
26
- "@faasjs/func": "^0.0.2-beta.320",
25
+ "@faasjs/deep_merge": "^0.0.2-beta.321",
26
+ "@faasjs/func": "^0.0.2-beta.321",
27
27
  "@rollup/plugin-node-resolve": "*",
28
28
  "@swc/core": "*",
29
29
  "js-yaml": "*",