Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@waiting/shared-types-dev

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waiting/shared-types-dev - npm Package Compare versions

Comparing version 8.4.0 to 8.4.1

11

CHANGELOG.md

@@ -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 @@

12

dist/index.cjs.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc