idmp
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -146,14 +146,18 @@ const DEFAULT_MAX_AGE = 3e3; | ||
let idx = Infinity; | ||
for (let key of [ | ||
"idmp/src/index.ts", | ||
"idmp/", | ||
"idmp\\", | ||
"idmp" | ||
]) { | ||
const _idx = arr.findLastIndex((o) => o.includes(key)); | ||
if (_idx > -1) { | ||
idx = _idx; | ||
break; | ||
$0: | ||
for (let key of [ | ||
"idmp/src/index.ts", | ||
"idmp/", | ||
"idmp\\", | ||
"idmp" | ||
]) { | ||
let _idx = arr.length - 1; | ||
$1: | ||
for (; _idx >= 0; --_idx) { | ||
if (arr[_idx].indexOf(key) > -1) { | ||
idx = _idx; | ||
break $0; | ||
} | ||
} | ||
} | ||
} | ||
const line = arr[idx + 1] || ""; | ||
@@ -160,0 +164,0 @@ return line; |
{ | ||
"name": "idmp", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "cache response", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
62146
1043