@waiting/shared-types-dev
Advanced tools
Comparing version 8.4.0 to 8.4.1
@@ -6,2 +6,13 @@ # Change Log | ||
## 8.4.1 (2021-03-31) | ||
### Bug Fixes | ||
* **types-dev:** compare path via toLocaleLowerCase() ([43d3cba](https://github.com/waitingsong/shared/commit/43d3cba2d0e98809ccfd19cbc7e51197289b5a96)) | ||
# 8.4.0 (2021-03-31) | ||
@@ -8,0 +19,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 8.3.0 | ||
* @version 8.4.0 | ||
* @author waiting | ||
@@ -316,7 +316,7 @@ * @license MIT | ||
const resolvedPath = sharedCore.pathResolve(sharedCore.dirname(node.getSourceFile().fileName), module); | ||
const path = require.resolve(resolvedPath); | ||
const path = require.resolve(resolvedPath).toLocaleLowerCase(); | ||
// console.info({ | ||
// module, fupath: path, jsPath, tsPath, | ||
// }) | ||
return (path === jsPath || path === tsPath) && !!path; | ||
return (path === jsPath.toLocaleLowerCase() || path === tsPath.toLocaleLowerCase()) && !!path; | ||
} | ||
@@ -328,3 +328,3 @@ else { | ||
// }) | ||
return path === jsPath && !!path; | ||
return path === jsPath.toLocaleLowerCase() && !!path; | ||
} | ||
@@ -359,5 +359,5 @@ } | ||
const filename = declaration.getSourceFile().fileName; | ||
const path = require.resolve(filename); | ||
const path = require.resolve(filename).toLocaleLowerCase(); | ||
// console.log({ path, tsPath }) | ||
return path === tsPath; | ||
return path === tsPath.toLocaleLowerCase() && !!path; | ||
} | ||
@@ -364,0 +364,0 @@ catch (ex) { |
@@ -77,7 +77,7 @@ import { pathResolve, dirname, } from '@waiting/shared-core'; | ||
const resolvedPath = pathResolve(dirname(node.getSourceFile().fileName), module); | ||
const path = require.resolve(resolvedPath); | ||
const path = require.resolve(resolvedPath).toLocaleLowerCase(); | ||
// console.info({ | ||
// module, fupath: path, jsPath, tsPath, | ||
// }) | ||
return (path === jsPath || path === tsPath) && !!path; | ||
return (path === jsPath.toLocaleLowerCase() || path === tsPath.toLocaleLowerCase()) && !!path; | ||
} | ||
@@ -89,3 +89,3 @@ else { | ||
// }) | ||
return path === jsPath && !!path; | ||
return path === jsPath.toLocaleLowerCase() && !!path; | ||
} | ||
@@ -120,5 +120,5 @@ } | ||
const filename = declaration.getSourceFile().fileName; | ||
const path = require.resolve(filename); | ||
const path = require.resolve(filename).toLocaleLowerCase(); | ||
// console.log({ path, tsPath }) | ||
return path === tsPath; | ||
return path === tsPath.toLocaleLowerCase() && !!path; | ||
} | ||
@@ -125,0 +125,0 @@ catch (ex) { |
{ | ||
"name": "@waiting/shared-types-dev", | ||
"author": "waiting", | ||
"version": "8.4.0", | ||
"version": "8.4.1", | ||
"description": "shared typescript types devel", | ||
@@ -28,4 +28,4 @@ "private": false, | ||
"dependencies": { | ||
"@waiting/shared-core": "^8.4.0", | ||
"@waiting/shared-types": "^8.4.0", | ||
"@waiting/shared-core": "^8.4.1", | ||
"@waiting/shared-types": "^8.4.1", | ||
"ts-morph": "10" | ||
@@ -91,3 +91,3 @@ }, | ||
}, | ||
"gitHead": "eded3369cfddd7ead2ac3af244034e8fc3b42b69" | ||
"gitHead": "8af33359bda91ffe30104c70b07aece0e3e84896" | ||
} |
@@ -133,7 +133,7 @@ import { | ||
const resolvedPath = pathResolve(dirname(node.getSourceFile().fileName), module) | ||
const path = require.resolve(resolvedPath) | ||
const path = require.resolve(resolvedPath).toLocaleLowerCase() | ||
// console.info({ | ||
// module, fupath: path, jsPath, tsPath, | ||
// }) | ||
return (path === jsPath || path === tsPath) && !! path | ||
return (path === jsPath.toLocaleLowerCase() || path === tsPath.toLocaleLowerCase()) && !! path | ||
} | ||
@@ -145,3 +145,3 @@ else { | ||
// }) | ||
return path === jsPath && !! path | ||
return path === jsPath.toLocaleLowerCase() && !! path | ||
} | ||
@@ -185,5 +185,5 @@ } | ||
const filename = declaration.getSourceFile().fileName | ||
const path = require.resolve(filename) | ||
const path = require.resolve(filename).toLocaleLowerCase() | ||
// console.log({ path, tsPath }) | ||
return path === tsPath | ||
return path === tsPath.toLocaleLowerCase() && !! path | ||
} | ||
@@ -190,0 +190,0 @@ catch (ex) { |
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
84534
Updated@waiting/shared-core@^8.4.1
Updated@waiting/shared-types@^8.4.1