New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

typescript-require

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-require - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

tmp/tsreq/test/assets/ship.js

7

index.js

@@ -44,4 +44,5 @@ var vm = require('vm');

var tmpDir = path.join(process.cwd(), "tmp", "tsreq");
var jsname = path.join(tmpDir, path.basename(module.filename, ".ts") + ".js");
var relativeFolder = path.dirname(path.relative(process.cwd(), module.filename));
var jsname = path.join(tmpDir, relativeFolder, path.basename(module.filename, ".ts") + ".js");
if (!isModified(module.filename, jsname)) {

@@ -58,3 +59,3 @@ return jsname;

"--outDir",
tmpDir,
path.join(tmpDir, relativeFolder),
libPath,

@@ -61,0 +62,0 @@ options.nodeLib ? path.resolve(__dirname, "typings/node.d.ts") : null,

@@ -20,3 +20,3 @@ {

],
"version": "0.2.8",
"version": "0.2.9",
"main": "./index.js",

@@ -23,0 +23,0 @@ "repository": {

@@ -9,5 +9,4 @@ require('..')

var ship = require('./assets/ship');
console.log(ship)
expect(ship).to.not.be.empty;
})
})
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