@miniflare/storage-memory
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -39,9 +39,8 @@ var __create = Object.create; | ||
} | ||
var collator = new Intl.Collator(); | ||
function listFilterMatch(options, name) { | ||
return !(options?.prefix && !name.startsWith(options.prefix) || options?.start && collator.compare(name, options.start) < 0 || options?.end && collator.compare(name, options.end) >= 0); | ||
return !(options?.prefix && !name.startsWith(options.prefix) || options?.start && (0, import_shared.lexicographicCompare)(name, options.start) < 0 || options?.end && (0, import_shared.lexicographicCompare)(name, options.end) >= 0); | ||
} | ||
function listPaginate(options, keys) { | ||
const direction = options?.reverse ? -1 : 1; | ||
keys.sort((a, b) => direction * collator.compare(a.name, b.name)); | ||
keys.sort((a, b) => direction * (0, import_shared.lexicographicCompare)(a.name, b.name)); | ||
const startAfter = options?.cursor ? (0, import_shared.base64Decode)(options.cursor) : ""; | ||
@@ -48,0 +47,0 @@ let startIndex = 0; |
{ | ||
"name": "@miniflare/storage-memory", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "In-memory storage module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -38,7 +38,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@miniflare/shared": "2.4.0" | ||
"@miniflare/shared": "2.5.0" | ||
}, | ||
"devDependencies": { | ||
"@miniflare/shared-test": "2.4.0" | ||
"@miniflare/shared-test": "2.5.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11825
197
+ Added@miniflare/shared@2.5.0(transitive)
- Removed@miniflare/shared@2.4.0(transitive)
Updated@miniflare/shared@2.5.0