Skip to content

Commit ce9a264

Browse files
committed
release: v1.39.0
1 parent cea6a77 commit ce9a264

5 files changed

Lines changed: 20 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.39.0 (21 Nov 2023)
2+
3+
* feat: add isStrBlank
4+
15
## v1.38.2 (4 Jul 2023)
26

37
* fix(remove): loop through undefined values

index.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4043,6 +4043,7 @@
40434043
"browser",
40444044
"miniprogram"
40454045
],
4046+
"since": "1.39.0",
40464047
"test": [
40474048
"node",
40484049
"browser"
@@ -4264,6 +4265,7 @@
42644265
"stackTrace",
42654266
"splitPath",
42664267
"startWith",
4268+
"endWith",
42674269
"defineProp",
42684270
"isStr",
42694271
"has",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "licia",
3-
"version": "1.38.2",
3+
"version": "1.39.0",
44
"description": "Useful utility collection with zero dependencies",
55
"bin": {
66
"licia": "./bin/licia.js"

src/isStrBlank.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
/* module
1717
* env: all
18+
* since: 1.39.0
1819
*/
1920

2021
/* typescript

src/lazyImport.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929

3030
_(
31-
'stackTrace splitPath startWith defineProp isStr has objToStr unique concat keys isArr toBool'
31+
'stackTrace splitPath startWith endWith defineProp isStr has objToStr unique concat keys isArr toBool'
3232
);
3333

3434
const path = require('path');
@@ -41,6 +41,17 @@ exports = function(importFn, dirname) {
4141
}
4242
moduleId = path.join(dirname, moduleId);
4343
}
44+
45+
const { cache } = importFn;
46+
if (cache) {
47+
if (cache[moduleId]) {
48+
return cache[moduleId];
49+
}
50+
if (!endWith(moduleId, '.js') && cache[`${moduleId}.js`]) {
51+
return cache[`${moduleId}.js`];
52+
}
53+
}
54+
4455
return proxyExports(importFn, moduleId);
4556
};
4657
};

0 commit comments

Comments
 (0)