Socket
Socket
Sign inDemoInstall

typescript-transform-paths

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-transform-paths - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.0.2"></a>
## [1.0.2](https://github.com/LeDDGroup/typescript-transform-paths/compare/v1.0.1...v1.0.2) (2019-04-24)
### Bug Fixes
* produce posix path in windows ([5059c3d](https://github.com/LeDDGroup/typescript-transform-paths/commit/5059c3d)), closes [#5](https://github.com/LeDDGroup/typescript-transform-paths/issues/5)
<a name="1.0.1"></a>

@@ -7,0 +17,0 @@ ## [1.0.1](https://github.com/LeDDGroup/typescript-transform-paths/compare/v1.0.0...v1.0.1) (2019-04-12)

3

lib/index.js

@@ -12,2 +12,3 @@ "use strict";

var path_1 = require("path");
var slash = require("slash");
var transformer = function (_) {

@@ -37,3 +38,3 @@ return function (context) { return function (rootNode) {

var out = path.resolve.replace(/\*/g, match[1]);
var file = path_1.relative(fileDir, path_1.resolve(baseUrl, out));
var file = slash(path_1.relative(fileDir, path_1.resolve(baseUrl, out)));
return ts.updateImportDeclaration(node, node.decorators, node.modifiers, node.importClause,

@@ -40,0 +41,0 @@ // If it's in the same level or below add the ./

{
"name": "typescript-transform-paths",
"version": "1.0.1",
"version": "1.0.2",
"description": "Transforms absolute imports to relative",

@@ -32,5 +32,8 @@ "keywords": [],

},
"dependencies": {},
"dependencies": {
"slash": "^2.0.0"
},
"devDependencies": {
"@types/node": "^10.12.21",
"@types/slash": "^2.0.0",
"standard-version": "^4.4.0",

@@ -37,0 +40,0 @@ "ttypescript": "^1.5.6",

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