@defer/client
Advanced tools
Comparing version 2.2.0 to 2.2.1-alpha-20240228160422-c2bc549016bdfd87ebf5b01157e574b5999d5aa0
@@ -107,5 +107,6 @@ "use strict"; | ||
if (filters?.metadata && filters.metadata.length > 0 && execution.metadata) { | ||
return filters.metadata | ||
.filter((mdFilter) => mdFilter.values.length > 0) | ||
.some((mdFilter) => mdFilter.values.some((value) => execution.metadata[mdFilter.key] === value)); | ||
const metadataFilters = filters.metadata.filter((mdFilter) => mdFilter.values.length > 0); | ||
if (!metadataFilters.some((mdFilter) => mdFilter.values.some((value) => execution.metadata[mdFilter.key] === value))) { | ||
return false; | ||
} | ||
} | ||
@@ -112,0 +113,0 @@ if (filters?.scheduleAt && |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = "2.2.0"; | ||
exports.default = "2.2.1-alpha-20240228160422-c2bc549016bdfd87ebf5b01157e574b5999d5aa0"; |
@@ -101,5 +101,6 @@ // Copyright (c) 2023 Defer SAS <hello@defer.run>. | ||
if (filters?.metadata && filters.metadata.length > 0 && execution.metadata) { | ||
return filters.metadata | ||
.filter((mdFilter) => mdFilter.values.length > 0) | ||
.some((mdFilter) => mdFilter.values.some((value) => execution.metadata[mdFilter.key] === value)); | ||
const metadataFilters = filters.metadata.filter((mdFilter) => mdFilter.values.length > 0); | ||
if (!metadataFilters.some((mdFilter) => mdFilter.values.some((value) => execution.metadata[mdFilter.key] === value))) { | ||
return false; | ||
} | ||
} | ||
@@ -106,0 +107,0 @@ if (filters?.scheduleAt && |
@@ -1,1 +0,1 @@ | ||
export default "2.2.0"; | ||
export default "2.2.1-alpha-20240228160422-c2bc549016bdfd87ebf5b01157e574b5999d5aa0"; |
{ | ||
"name": "@defer/client", | ||
"version": "2.2.0", | ||
"version": "2.2.1-alpha-20240228160422-c2bc549016bdfd87ebf5b01157e574b5999d5aa0", | ||
"description": "Zero infrastructure NodeJS background jobs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -1,2 +0,2 @@ | ||
declare const _default: "2.2.0"; | ||
declare const _default: "2.2.1-alpha-20240228160422-c2bc549016bdfd87ebf5b01157e574b5999d5aa0"; | ||
export default _default; |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
151830
3256
2