Skip to content

Commit

Permalink
release: v1.39.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Nov 21, 2023
1 parent 8fb51d3 commit b690f61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## v1.39.1 (21 Nov 2023)

* fix: lazyImport

## v1.39.0 (21 Nov 2023)

* feat: add isStrBlank
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "licia",
"version": "1.39.0",
"version": "1.39.1",
"description": "Useful utility collection with zero dependencies",
"bin": {
"licia": "./bin/licia.js"
Expand Down
4 changes: 2 additions & 2 deletions src/lazyImport.js
Expand Up @@ -45,10 +45,10 @@ exports = function(importFn, dirname) {
const { cache } = importFn;
if (cache) {
if (cache[moduleId]) {
return cache[moduleId];
return importFn(moduleId);
}
if (!endWith(moduleId, '.js') && cache[`${moduleId}.js`]) {
return cache[`${moduleId}.js`];
return importFn(`${moduleId}.js`);
}
}

Expand Down

0 comments on commit b690f61

Please sign in to comment.