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

@philidem/rewrite-relative-paths

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@philidem/rewrite-relative-paths - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

8

package.json
{
"name": "@philidem/rewrite-relative-paths",
"version": "1.1.1",
"version": "1.1.2",
"description": "Tool for making import paths relative to project root and making require paths relative",

@@ -41,3 +41,3 @@ "keywords": [

"devDependencies": {
"@jupiterone/typescript-tools": "^13.0.1",
"@jupiterone/typescript-tools": "^13.2.1",
"nodemon": "^2.0.4"

@@ -48,6 +48,6 @@ },

"ignore": "^5.1.8",
"p-queue": "^6.6.1",
"p-queue": "^6.6.2",
"walker": "^1.0.7",
"yargs": "^15.4.1"
"yargs": "^16.2.0"
}
}

@@ -67,3 +67,3 @@ "use strict";

function handleFile(file) {
if (!file.endsWith('.ts')) {
if (!file.endsWith('.ts') && !file.endsWith('.tsx')) {
return;

@@ -116,2 +116,2 @@ }

exports.default = rewriteImports;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV3cml0ZUltcG9ydHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmV3cml0ZUltcG9ydHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxzREFBNkI7QUFFN0IsMkJBQTRDO0FBQzVDLGtEQUEwQjtBQUMxQixvREFBNEI7QUFDNUIsK0JBQW1EO0FBRW5ELE1BQU0sRUFBRSxRQUFRLEVBQUUsU0FBUyxFQUFFLEdBQUcsYUFBVSxDQUFDO0FBRTNDLE1BQU0sTUFBTSxHQUFHLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUVqQyxNQUFNLEtBQUssR0FBRyxJQUFJLGlCQUFNLENBQUMsRUF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 @@ "use strict";

file.endsWith('.ts') ||
file.endsWith('.jsx') ||
file.endsWith('.tsx') ||
file.indexOf('.') === -1) {

@@ -115,2 +117,2 @@ fixFile(rootDir, file);

exports.default = rewriteRequires;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV3cml0ZVJlcXVpcmVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Jld3JpdGVSZXF1aXJlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHNEQUE2QjtBQUM3QiwyQkFBNEM7QUFFNUMsa0RBQTBCO0FBQzFCLG9EQUE0QjtBQUM1QixnREFBd0I7QUFFeEIsTUFBTSxFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQUUsR0FBRyxhQUFVLENBQUM7QUFFM0MsTUFBTSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0FBRWpDLE1BQU0sS0FBSyxHQUFHLElBQUksaUJBQU0sQ0FBQyxFQUFFLFdBQVcsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0FBRTdDLE1BQU0sbUJBQW1CLEdBQUcsNkJBQTZCLENBQUM7QUFDMUQsTUFBTSxtQkFBbUIsR0FBRyxpQ0FBaUMsQ0FBQztBQUM5RCxNQUFNLCtCQUErQixHQUFHLHFEQUFxRCxDQUFDO0FBQzlGLE1BQU0sd0JBQXdCLEdBQUcseUJBQXlCLENBQUM7QUFDM0QsTUFBTSx3QkFBd0IsR0FBRyx5QkFBeUIsQ0FBQztBQUUzRCxTQUFTLGNBQWMsQ0FBQyxPQUFlLEVBQUUsT0FBZTtJQUN0RCxPQUFPLFVBQ0wsQ0FBUyxFQUNULE1BQWMsRUFDZCxZQUFvQixFQUNwQixLQUFhO1FBRWIsTUFBTSxJQUFJLEdBQUcsR0FBRyxHQUFHLGNBQUksQ0FBQyxPQUFPLENBQUMsT0FBTy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GlvbnMuZGlyKTtcblxuICBjb25zb2xlLmxvZyhcbiAgICBgUmV3cml0aW5nIH4vKiBwYXRocyBpbiAke2NoYWxrLmJvbGQoXG4gICAgICByb290RGlyICsgJy8qKi8qJ1xuICAgICl9IHNvIHRoYXQgdGhleSBhcmUgcmVsYXRpdmUuLi5gXG4gICk7XG5cbiAgY29uc3QgZmlsdGVyID0gYXdhaXQgY3JlYXRlSWdub3JlRmlsdGVyKCk7XG5cbiAgYXdhaXQgbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgIFdhbGtlcihyb290RGlyKVxuICAgICAgLmZpbHRlckRpcihmdW5jdGlvbiAoZGlyOiBzdHJpbmcsIHN0YXRzOiBmcy5TdGF0cykge1xuICAgICAgICBpZiAoZGlyLnN0YXJ0c1dpdGgocm9vdERpcikpIHtcbiAgICAgICAgICBkaXIgPSBkaXIuc3Vic3RyaW5nKHJvb3REaXIubGVuZ3RoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChkaXIuY2hhckF0KDApID09PSAnLycpIHtcbiAgICAgICAgICBkaXIgPSBkaXIuc3Vic3RyaW5nKDEpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKGRpci5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICBkaXIgPSAnLic7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gZmlsdGVyLmlzSWdub3JlZChkaXIpID8gZmFsc2UgOiB0cnVlO1xuICAgICAgfSlcbiAgICAgIC5vbignZmlsZScsIGZ1bmN0aW9uIChmaWxlOiBzdHJpbmcsIHN0YXRzOiBmcy5TdGF0cykge1xuICAgICAgICBpZiAoXG4gICAgICAgICAgZmlsZS5lbmRzV2l0aCgnLmpzJykgfHxcbiAgICAgICAgICBmaWxlLmVuZHNXaXRoKCcudHMnKSB8fFxuICAgICAgICAgIGZpbGUuaW5kZXhPZignLicpID09PSAtMVxuICAgICAgICApIHtcbiAgICAgICAgICBmaXhGaWxlKHJvb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LlN0YXRzKSB7XG4gICAgICAgIGlmIChcbiAgICAgICAgICBmaWxlLmVuZHNXaXRoKCcuanMnKSB8fFxuICAgICAgICAgIGZpbGUuZW5kc1dpdGgoJy50cycpIHx8XG4gICAgICAgICAgZmlsZS5lbmRzV2l0aCgnLmpzeCcpIHx8XG4gICAgICAgICAgZmlsZS5lbmRzV2l0aCgnLnRzeCcpIHx8XG4gICAgICAgICAgZmlsZS5pbmRleE9mKCcuJykgPT09IC0xXG4gICAgICAgICkge1xuICAgICAgICAgIGZpeEZpbGUocm9vdERpciwgZmlsZSk7XG4gICAgICAgIH1cbiAgICAgIH0pXG4gICAgICAub24oJ2VuZCcsIGZ1bmN0aW9uICgpIHtcbiAgICAgICAgcmVzb2x2ZSh1bmRlZmluZWQpO1xuICAgICAgfSk7XG4gIH0pO1xuXG4gIGF3YWl0IHF1ZXVlLm9uSWRsZSgpO1xuXG4gIGNvbnNvbGUubG9nKGNoYWxrLmdyZWVuKGNoYWxrLmJvbGQoJ0RvbmUhJykpKTtcbn1cbiJdfQ==
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